Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 641054 - dev-perl/List-MoreUtils-XS-0.426 - Checking for cc... ld: -pipe: unknown option
Summary: dev-perl/List-MoreUtils-XS-0.426 - Checking for cc... ld: -pipe: unknown option
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Perl team
Depends on:
Reported: 2017-12-14 21:02 UTC by imese
Modified: 2021-03-19 15:29 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description imese 2017-12-14 21:02:35 UTC
Next to last line.

>>> Emerging (1 of 1) dev-perl/List-MoreUtils-XS-0.426.0::gentoo
 * List-MoreUtils-XS-0.426.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                                            [ ok ]
>>> Unpacking source...
>>> Unpacking List-MoreUtils-XS-0.426.tar.gz to /var/tmp/portage/dev-perl/List-MoreUtils-XS-0.426.0/work
>>> Source unpacked in /var/tmp/portage/dev-perl/List-MoreUtils-XS-0.426.0/work
>>> Preparing source in /var/tmp/portage/dev-perl/List-MoreUtils-XS-0.426.0/work/List-MoreUtils-XS-0.426 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-perl/List-MoreUtils-XS-0.426.0/work/List-MoreUtils-XS-0.426 ...
 * Using ExtUtils::MakeMaker
 * perl Makefile.PL PREFIX=/usr INSTALLDIRS=vendor INSTALLMAN3DIR=none DESTDIR=/var/tmp/portage/dev-perl/List-MoreUtils-XS-0.426.0/image/
Checking whether pureperl is required... no
Checking for cc... ld: -pipe: unknown option
ld: use the --help option for usage information

If I change the linker to ld.bfd the next to last line is:

Checking for cc... ld: unrecognised emulation mode: arch=native

CFLAGS="-march=native -O2 -pipe"

Happens on two nearly identical laptops and nearly same configuration gentoo wise.

Will supply more info on command.
Comment 1 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2017-12-22 22:52:52 UTC
The cause of this is likely setting the variable LD= in your environment.

Due to a bunch of complicated things, upstream expects LD to be a CCLD, aka: a CC which can link, like GCC.

Its nuts, but upstream are hard to reason with, and their tools are a gordian knot which makes this hard to workaround.

Its a real bug, but atm, I'm not sure how to deal with it in ways that don't involve hired goons.

Also, please note that the autoconf behaviour mentioned in the linked ticket is not necessarily actual autoconf, but somebody elses re-imagining/interpretation of what autoconf is, which may or may not be the same thing.