-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build of v8/tools/gyp/mksnapshot fails with -fuse-ld=gold with binutils 2.25.1 #6603
Comments
|
#6393 is labeled lts-watch-v4.x so it's scheduled for v4.x and v5.x I'll close, there is nothing left to do except release. @BlackYoup You can apply https://github.com/nodejs/node/commit/3cdb506.patch for now to work around the issue. |
@bnoordhuis Well, I didn't explicitly said it but I tried this patch first and still have the same build issue. But it builds by directly setting the value to 0 in
|
I'll reopen, perhaps recent changes broke something. With master, |
@bnoordhuis do you want me to try with current master then ? |
You can if you want to, there's a decent chance it'll work for you. I still need to look into why it's only partially disabled, though. |
FWIW I've had to overwrite @bnoordhuis the patch you linked to sets |
This appears to be the only option for now to get this to compile on certain OS/architecture combinations (Docker Hub being one of them). Hopefully this is just a temporary solution. See nodejs/node#4212 and nodejs/node#6603 for more details.
@bnoordhuis could it be that these flags in |
It looks like suppressing `-B` and `-fuse-ld=gold` from common.gypi is not very reliable. I'm positive it worked when commit 3cdb506 ("build: don't compile with -B") was merged but subsequent updates appear to have broken it again. Take the nuclear option and disable them from `tools/node_gyp.py`. Fixes: nodejs#6603 PR-URL: nodejs#6650 Refs: nodejs#6393 Reviewed-By: Anna Henningsen <[email protected]>
It looks like suppressing `-B` and `-fuse-ld=gold` from common.gypi is not very reliable. I'm positive it worked when commit 3cdb506 ("build: don't compile with -B") was merged but subsequent updates appear to have broken it again. Take the nuclear option and disable them from `tools/node_gyp.py`. Fixes: #6603 PR-URL: #6650 Refs: #6393 Reviewed-By: Anna Henningsen <[email protected]>
It looks like suppressing `-B` and `-fuse-ld=gold` from common.gypi is not very reliable. I'm positive it worked when commit 3cdb506 ("build: don't compile with -B") was merged but subsequent updates appear to have broken it again. Take the nuclear option and disable them from `tools/node_gyp.py`. Fixes: #6603 PR-URL: #6650 Refs: #6393 Reviewed-By: Anna Henningsen <[email protected]>
It looks like suppressing `-B` and `-fuse-ld=gold` from common.gypi is not very reliable. I'm positive it worked when commit 3cdb506 ("build: don't compile with -B") was merged but subsequent updates appear to have broken it again. Take the nuclear option and disable them from `tools/node_gyp.py`. Fixes: #6603 PR-URL: #6650 Refs: #6393 Reviewed-By: Anna Henningsen <[email protected]>
It looks like suppressing `-B` and `-fuse-ld=gold` from common.gypi is not very reliable. I'm positive it worked when commit 3cdb506 ("build: don't compile with -B") was merged but subsequent updates appear to have broken it again. Take the nuclear option and disable them from `tools/node_gyp.py`. Fixes: #6603 PR-URL: #6650 Refs: #6393 Reviewed-By: Anna Henningsen <[email protected]>
This appears to be the only option for now to get this to compile on certain OS/architecture combinations (Docker Hub being one of them). Hopefully this is just a temporary solution. See nodejs/node#4212 and nodejs/node#6603 for more details.
Hi everyone,
I'm building node from source but I'm getting a gold error at linking phase of v8/tools/gyp/mksnapshot:
My gold version:
GNU gold (GNU Binutils 2.25.1) 1.11
I do not have this error with binutils 2.26 or if I set
'linux_use_gold_flags%': 0
indeps/v8/build/toolchain.gypi
I wanted to know if there was a more global flag to disable -fuse-ld ? I checked #4212 but didn't really help.
If I set --without-snapshot it builds too but I'm not a fan of disabling a feature because it doesn't build.
Binutils 2.26 is not yet fully available on my platform, hence my question.
Here is the result of the configure:
Thanks for your help !
The text was updated successfully, but these errors were encountered: