Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 777075 - media-gfx/graphite2-1.3.14[perl] Can't exec "-shared": No such file or directory at /usr/lib64/perl5/5.32/ExtUtils/CBuilder/Base.pm line 342. when LD=""
Summary: media-gfx/graphite2-1.3.14[perl] Can't exec "-shared": No such file or direct...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-18 19:06 UTC by Alessandro Barbieri
Modified: 2021-03-19 15:30 UTC (History)
2 users (show)

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


Attachments
graphite2-1.3.14:20210318-190242.log (graphite2-1.3.14:20210318-190242.log,34.44 KB, text/plain)
2021-03-18 19:06 UTC, Alessandro Barbieri
Details
graphite2.info (graphite2.info,11.15 KB, text/plain)
2021-03-19 02:48 UTC, Alessandro Barbieri
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Barbieri 2021-03-18 19:06:08 UTC
* Using Module::Build                                                                                                 
 * perl Build.PL --installdirs=vendor --libdoc= --destdir=/var/tmp/portage/media-gfx/graphite2-1.3.14/image --create_packlist=1
WARNING: the following files are missing in your kit:                                                                  
        README                                                                                                         
Please inform the author.
                                                                                                                                                                                                                                              
Can't exec "-shared": No such file or directory at /usr/lib64/perl5/5.32/ExtUtils/CBuilder/Base.pm line 342.
Warning: ExtUtils::CBuilder not installed or no compiler detected
Proceeding with configuration, but compilation may fail during Build

Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'Text-Gr2' version '0.01'
Building Text-Gr2
Error: no compiler detected to compile 'lib/Text/Gr2.c'.  Aborting
 * ERROR: media-gfx/graphite2-1.3.14::gentoo failed (compile phase):
 *   Compilation failed
 * 
 * Call stack:
 *     ebuild.sh, line  125:  Called src_compile
 *   environment, line 5100:  Called perl-module_src_compile
 *   environment, line 4083:  Called die
 * The specific snippet of code:
 *           ./Build build || die "Compilation failed";
Comment 1 Alessandro Barbieri 2021-03-18 19:06:30 UTC
Created attachment 692283 [details]
graphite2-1.3.14:20210318-190242.log

buildlog
Comment 2 Ionen Wolkens gentoo-dev 2021-03-18 22:19:34 UTC
Can't reproduce.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-03-19 02:35:23 UTC
Please detail what environment you're using and include emerge --info in future, even if the error is 'obvious' because it saves a huge amount of time if it _isn't_.
Comment 4 Alessandro Barbieri 2021-03-19 02:48:51 UTC
Created attachment 692346 [details]
graphite2.info

emerge --info
Comment 5 Alessandro Barbieri 2021-03-19 02:50:45 UTC
LD=gcc "solved" the issue
Comment 6 Ionen Wolkens gentoo-dev 2021-03-19 09:46:12 UTC
I can reproduce now, but I don't think LD="" is something that should be taken into account.

It's not uncommon that packages use LD=gcc by default too, overriding that globally is likely to give all sort of option errors regardless of linker.

-fuse-ld=lld and/or a symlink would let you use lld anyway with less unnecessary errors (personally I prefer not to use lld with gcc though, and don't feel it's worth fixing issues at the moment).
Comment 7 Alessandro Barbieri 2021-03-19 15:30:14 UTC
It's the same issue as https://bugs.gentoo.org/641054