Skip to content
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

v8: build with gcc6 #36515

Merged
merged 1 commit into from
Mar 9, 2018
Merged

v8: build with gcc6 #36515

merged 1 commit into from
Mar 9, 2018

Conversation

xeji
Copy link
Contributor

@xeji xeji commented Mar 8, 2018

Motivation for this change

Doesn't build with gcc7 due to this issue in upstream code.

/cc ZHF #36453 - please backport to 18.03

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@ryantm
Copy link
Member

ryantm commented Mar 8, 2018

@GrahamcOfBorg eval

@Mic92
Copy link
Member

Mic92 commented Mar 8, 2018

@GrahamcOfBorg build v8

@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Partial log (click to expand)

  ACTION Generating icuuc shim headers _private_tmp_nix_build_v8_5_4_232_drv_0_source_third_party_icu_icu_gyp_icuuc_target_generate_icuuc_shim_headers.intermediate
  TOUCH /private/tmp/nix-build-v8-5.4.232.drv-0/source/out/Release/obj.target/third_party/icu/icuuc.stamp
  CXX(target) /private/tmp/nix-build-v8-5.4.232.drv-0/source/out/Release/obj.target/v8_libbase/src/base/accounting-allocator.o
g++: error: unrecognized command line option '-Wshorten-64-to-32'
g++: error: unrecognized command line option '-stdlib=libc++'
make: *** [src/v8_libbase.target.mk:198: /private/tmp/nix-build-v8-5.4.232.drv-0/source/out/Release/obj.target/v8_libbase/src/base/accounting-allocator.o] Error 1
rm _private_tmp_nix_build_v8_5_4_232_drv_0_source_third_party_icu_icu_gyp_icuuc_target_generate_icuuc_shim_headers.intermediate _private_tmp_nix_build_v8_5_4_232_drv_0_source_third_party_icu_icu_gyp_icui18n_target_generate_icui18n_shim_headers.intermediate
make: Leaving directory '/private/tmp/nix-build-v8-5.4.232.drv-0/source/out'
builder for '/nix/store/ac518bv50r1jxyhil70pk5z8argk1ci4-v8-5.4.232.drv' failed with exit code 2
error: build of '/nix/store/ac518bv50r1jxyhil70pk5z8argk1ci4-v8-5.4.232.drv' failed

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Partial log (click to expand)

shrinking /nix/store/zr817iiq153fc1r9whai7l0ng571vkr2-v8-5.4.232/bin/d8
strip is /nix/store/lvx1acn1ig1j2km8jds5x3ggh3f2wa8v-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/zr817iiq153fc1r9whai7l0ng571vkr2-v8-5.4.232/lib  /nix/store/zr817iiq153fc1r9whai7l0ng571vkr2-v8-5.4.232/bin
patching script interpreter paths in /nix/store/zr817iiq153fc1r9whai7l0ng571vkr2-v8-5.4.232
checking for references to /build in /nix/store/zr817iiq153fc1r9whai7l0ng571vkr2-v8-5.4.232...
shrinking RPATHs of ELF executables and libraries in /nix/store/zr817iiq153fc1r9whai7l0ng571vkr2-v8-5.4.232
shrinking /nix/store/zr817iiq153fc1r9whai7l0ng571vkr2-v8-5.4.232/lib/libv8.so
shrinking /nix/store/zr817iiq153fc1r9whai7l0ng571vkr2-v8-5.4.232/bin/d8
shrinking /nix/store/zr817iiq153fc1r9whai7l0ng571vkr2-v8-5.4.232/bin/mksnapshot
/nix/store/zr817iiq153fc1r9whai7l0ng571vkr2-v8-5.4.232

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Partial log (click to expand)

shrinking /nix/store/2rrq4c2c5wfnl0qgifdnkzy6lm7v30xf-v8-5.4.232/lib/libv8.so
strip is /nix/store/b0zlxla7dmy1iwc3g459rjznx59797xy-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/2rrq4c2c5wfnl0qgifdnkzy6lm7v30xf-v8-5.4.232/lib  /nix/store/2rrq4c2c5wfnl0qgifdnkzy6lm7v30xf-v8-5.4.232/bin
patching script interpreter paths in /nix/store/2rrq4c2c5wfnl0qgifdnkzy6lm7v30xf-v8-5.4.232
checking for references to /build in /nix/store/2rrq4c2c5wfnl0qgifdnkzy6lm7v30xf-v8-5.4.232...
shrinking RPATHs of ELF executables and libraries in /nix/store/2rrq4c2c5wfnl0qgifdnkzy6lm7v30xf-v8-5.4.232
shrinking /nix/store/2rrq4c2c5wfnl0qgifdnkzy6lm7v30xf-v8-5.4.232/bin/d8
shrinking /nix/store/2rrq4c2c5wfnl0qgifdnkzy6lm7v30xf-v8-5.4.232/bin/mksnapshot
shrinking /nix/store/2rrq4c2c5wfnl0qgifdnkzy6lm7v30xf-v8-5.4.232/lib/libv8.so
/nix/store/2rrq4c2c5wfnl0qgifdnkzy6lm7v30xf-v8-5.4.232

@xeji
Copy link
Contributor Author

xeji commented Mar 8, 2018

The build on darwin was broken since Feb 16 (https://hydra.nixos.org/build/69365537).
With this change it still fails but for what looks like a different reason.
So should we merge this anyway and fix darwin later?

@@ -11586,6 +11586,7 @@ with pkgs;
inherit (python2Packages) python gyp;
cctools = darwin.cctools;
icu = icu58; # v8-5.4.232 fails against icu4c-59.1
stdenv = overrideCC stdenv gcc6;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you alter the compiler only on linux and not on darwin at least?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure, will do

doesn't build with gcc 7 due to this issue in upstream code:
https://bugs.chromium.org/p/chromium/issues/detail?id=614289
@xeji
Copy link
Contributor Author

xeji commented Mar 8, 2018

limited the compiler change to linux and squashed into one commit

@GrahamcOfBorg GrahamcOfBorg added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin and removed 10.rebuild-darwin: 1-10 labels Mar 8, 2018
@Mic92 Mic92 merged commit b306490 into NixOS:master Mar 9, 2018
@Mic92
Copy link
Member

Mic92 commented Mar 9, 2018

backport in 3c4c591

@xeji xeji deleted the v8-gcc6 branch March 9, 2018 08:17
@xeji
Copy link
Contributor Author

xeji commented Mar 9, 2018

cc #31747

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants