-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
Closed
Labels
buildIssues and PRs related to build files or the CI.Issues and PRs related to build files or the CI.
Description
- 13.7.0:
- Linux:
linking fails with ld.gold (binutils-2.33.1) in this way:
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: error: /var/tmp/portage/net-libs/nodejs-13.7.0-r1/work/node-v13.7.0/src/large_pages/ld.implicit.script:10:10: syntax error, unexpected STRING
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: fatal error: unable to parse script file /var/tmp/portage/net-libs/nodejs-13.7.0-r1/work/node-v13.7.0/src/large_pages/ld.implicit.script
collect2: error: ld returned 1 exit status
make: *** [cctest.target.mk:195: /var/tmp/portage/net-libs/nodejs-13.7.0-r1/work/node-v13.7.0/out/Release/cctest] Error 1
make: *** Waiting for unfinished jobs....
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: error: /var/tmp/portage/net-libs/nodejs-13.7.0-r1/work/node-v13.7.0/src/large_pages/ld.implicit.script:10:10: syntax error, unexpected STRING
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: fatal error: unable to parse script file /var/tmp/portage/net-libs/nodejs-13.7.0-r1/work/node-v13.7.0/src/large_pages/ld.implicit.script
collect2: error: ld returned 1 exit status
make: *** [mkcodecache.target.mk:172: /var/tmp/portage/net-libs/nodejs-13.7.0-r1/work/node-v13.7.0/out/Release/mkcodecache] Error 1
switching to ld.bfd yields in a error-less compilation and installation on gentoo.
Forcing the ld.bfd linker was done by prepending LDFLAGS="${LDFLAGS} -Wl,-fuse-ld=bfd" to the emerge command.
Searching around I found this:
https://lists.gnu.org/archive/html/bug-binutils/2016-12/msg00035.html
https://bugzilla.redhat.com/show_bug.cgi?id=927573
https://sourceware.org/bugzilla/show_bug.cgi?id=15373
Which says that ld.gold does not support the Insert statement in linker scripts.
If you want me to test something, please feel free to do so.
devurandom and astefanutti
Metadata
Metadata
Assignees
Labels
buildIssues and PRs related to build files or the CI.Issues and PRs related to build files or the CI.