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

Build failure with macOS Sierra #13348

Closed
tetsuharuohzeki opened this issue Sep 21, 2016 · 2 comments
Closed

Build failure with macOS Sierra #13348

tetsuharuohzeki opened this issue Sep 21, 2016 · 2 comments
Labels

Comments

@tetsuharuohzeki
Copy link
Member

@tetsuharuohzeki tetsuharuohzeki commented Sep 21, 2016

env

Steps to reproduce

./mach clean && ./mach build --dev

Actual Result

linking errors

tracking in #11846

compiling mozjs-sys is failed

error: failed to run custom build command for `mozjs_sys v0.0.0 (https://github.com/servo/mozjs#87c47526)`
process didn't exit successfully: `/Users/tetsuharu/src/servo/repo1/target/debug/build/mozjs_sys-661d4efe7c7ca939/build-script-build` (exit code: 101)
--- stdout
[[ /Users/tetsuharu/src/servo/repo1/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/master/mozjs/js/src/configure -ot /Users/tetsuharu/src/servo/repo1/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/master/mozjs/js/src/configure.in ]] && touch /Users/tetsuharu/src/servo/repo1/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/master/mozjs/js/src/configure || true
[[ /Users/tetsuharu/src/servo/repo1/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/master/mozjs/js/src/old-configure -ot /Users/tetsuharu/src/servo/repo1/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/master/mozjs/js/src/old-configure.in ]] && touch /Users/tetsuharu/src/servo/repo1/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/master/mozjs/js/src/old-configure || true
! [[ /Users/tetsuharu/src/servo/repo1/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/master/mozjs/js/src/configure.in -ot /Users/tetsuharu/src/servo/repo1/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/master/mozjs/js/src/configure ]] && touch /Users/tetsuharu/src/servo/repo1/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/master/mozjs/js/src/configure || true
! [[ /Users/tetsuharu/src/servo/repo1/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/master/mozjs/js/src/old-configure.in -ot /Users/tetsuharu/src/servo/repo1/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/master/mozjs/js/src/old-configure ]] && touch /Users/tetsuharu/src/servo/repo1/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/master/mozjs/js/src/old-configure || true
if [[ /Users/tetsuharu/src/servo/repo1/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/master/mozjs/js/src/configure -nt /Users/tetsuharu/src/servo/repo1/target/debug/build/mozjs_sys-661d4efe7c7ca939/out/config.status ]] ; then \
      cd /Users/tetsuharu/src/servo/repo1/target/debug/build/mozjs_sys-661d4efe7c7ca939/out && \
      PYTHON="python" MOZ_TOOLS="" \
      CC="gcc" CPP="gcc -E" CXX="g++" AR="ar" \
      /Users/tetsuharu/src/servo/repo1/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/master/mozjs/js/src/configure --disable-jemalloc --disable-js-shell --disable-tests --without-intl-api --build-backends=RecursiveMake --disable-shared-js || (cat config.log && exit 1) ; \
    fi
cd /Users/tetsuharu/src/servo/repo1/target/debug/build/mozjs_sys-661d4efe7c7ca939/out && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile -j4
if test -d dist/bin ; then touch dist/bin/.purgecaches ; fi
/Applications/Xcode.app/Contents/Developer/usr/bin/make recurse_pre-export
/Users/tetsuharu/src/servo/repo1/target/debug/build/mozjs_sys-661d4efe7c7ca939/out/_virtualenv/bin/python -m mozbuild.action.process_install_manifest --no-remove dist/include _build_manifests/install/dist_include
/Users/tetsuharu/src/servo/repo1/target/debug/build/mozjs_sys-661d4efe7c7ca939/out/_virtualenv/bin/python -m mozbuild.action.process_install_manifest --no-remove dist/public _build_manifests/install/dist_public
/Users/tetsuharu/src/servo/repo1/target/debug/build/mozjs_sys-661d4efe7c7ca939/out/_virtualenv/bin/python -m mozbuild.action.process_install_manifest --no-remove dist/private _build_manifests/install/dist_private
/Users/tetsuharu/src/servo/repo1/target/debug/build/mozjs_sys-661d4efe7c7ca939/out/_virtualenv/bin/python -m mozbuild.action.process_install_manifest --no-remove dist/sdk _build_manifests/install/dist_sdk
Elapsed: 0.00s; From dist/private: Kept 0 existing; Added/updated 0; Removed 0 files and 0 directories.
Elapsed: 0.00s; From dist/sdk: Kept 0 existing; Added/updated 0; Removed 0 files and 0 directories.
Elapsed: 0.00s; From dist/public: Kept 0 existing; Added/updated 0; Removed 0 files and 0 directories.
/Users/tetsuharu/src/servo/repo1/target/debug/build/mozjs_sys-661d4efe7c7ca939/out/_virtualenv/bin/python -m mozbuild.action.process_install_manifest --no-remove _tests _build_manifests/install/_tests
Elapsed: 0.03s; From dist/include: Kept 150 existing; Added/updated 0; Removed 0 files and 0 directories.
Elapsed: 0.00s; From _tests: Kept 1 existing; Added/updated 0; Removed 0 files and 0 directories.
/Applications/Xcode.app/Contents/Developer/usr/bin/make recurse_export
make[4]: Nothing to be done for `host'.
make[4]: Nothing to be done for `export'.
make[4]: Nothing to be done for `export'.
make[4]: Nothing to be done for `export'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make recurse_compile
make[4]: Nothing to be done for `target'.
make[4]: Nothing to be done for `target'.
make[4]: Nothing to be done for `host'.
make[4]: Nothing to be done for `target'.
make[4]: Nothing to be done for `target'.
make[4]: Nothing to be done for `target'.
make[4]: Nothing to be done for `target'.
make[4]: Nothing to be done for `target'.
make[4]: Nothing to be done for `target'.
make[4]: Nothing to be done for `host'.
make[4]: Nothing to be done for `target'.
make[4]: Nothing to be done for `target'.
/usr/bin/g++ -std=gnu++11 -o ConditionVariable.o -c  -fvisibility=hidden -fvisibility-inlines-hidden -DNDEBUG=1 -DTRIMMED=1 -DENABLE_BINARYDATA -DENABLE_SIMD -DENABLE_SHARED_ARRAY_BUFFER -DEXPORT_JS_API -I/Users/tetsuharu/src/servo/repo1/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/master/mozjs/js/src -I/Users/tetsuharu/src/servo/repo1/target/debug/build/mozjs_sys-661d4efe7c7ca939/out/js/src -I/Users/tetsuharu/src/servo/repo1/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/master/mozjs/intl/icu/source/common -I/Users/tetsuharu/src/servo/repo1/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/master/mozjs/intl/icu/source/i18n -I/Users/tetsuharu/src/servo/repo1/target/debug/build/mozjs_sys-661d4efe7c7ca939/out/dist/include          -fPIC  -DMOZILLA_CLIENT -include /Users/tetsuharu/src/servo/repo1/target/debug/build/mozjs_sys-661d4efe7c7ca939/out/js/src/js-confdefs.h -MD -MP -MF .deps/ConditionVariable.o.pp -Qunused-arguments  -Qunused-arguments -Wall -Wc++11-compat -Wempty-body -Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wwrite-strings -Wc++11-compat-pedantic -Wc++14-compat -Wc++14-compat-pedantic -Wc++1z-compat -Wclass-varargs -Wimplicit-fallthrough -Wloop-analysis -Wstring-conversion -Wthread-safety -Wno-invalid-offsetof -Wno-inline-new-delete -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-unknown-warning-option -Wno-return-type-c-linkage -fno-common -stdlib=libc++ -fno-rtti -fno-exceptions -fno-math-errno -pthread -pipe  -g -O3 -fno-stack-protector -fomit-frame-pointer  -Wno-shadow  /Users/tetsuharu/src/servo/repo1/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/master/mozjs/js/src/threading/posix/ConditionVariable.cpp
/usr/bin/g++ -std=gnu++11 -o Mutex.o -c  -fvisibility=hidden -fvisibility-inlines-hidden -DNDEBUG=1 -DTRIMMED=1 -DENABLE_BINARYDATA -DENABLE_SIMD -DENABLE_SHARED_ARRAY_BUFFER -DEXPORT_JS_API -I/Users/tetsuharu/src/servo/repo1/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/master/mozjs/js/src -I/Users/tetsuharu/src/servo/repo1/target/debug/build/mozjs_sys-661d4efe7c7ca939/out/js/src -I/Users/tetsuharu/src/servo/repo1/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/master/mozjs/intl/icu/source/common -I/Users/tetsuharu/src/servo/repo1/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/master/mozjs/intl/icu/source/i18n -I/Users/tetsuharu/src/servo/repo1/target/debug/build/mozjs_sys-661d4efe7c7ca939/out/dist/include          -fPIC  -DMOZILLA_CLIENT -include /Users/tetsuharu/src/servo/repo1/target/debug/build/mozjs_sys-661d4efe7c7ca939/out/js/src/js-confdefs.h -MD -MP -MF .deps/Mutex.o.pp -Qunused-arguments  -Qunused-arguments -Wall -Wc++11-compat -Wempty-body -Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wwrite-strings -Wc++11-compat-pedantic -Wc++14-compat -Wc++14-compat-pedantic -Wc++1z-compat -Wclass-varargs -Wimplicit-fallthrough -Wloop-analysis -Wstring-conversion -Wthread-safety -Wno-invalid-offsetof -Wno-inline-new-delete -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-unknown-warning-option -Wno-return-type-c-linkage -fno-common -stdlib=libc++ -fno-rtti -fno-exceptions -fno-math-errno -pthread -pipe  -g -O3 -fno-stack-protector -fomit-frame-pointer  -Wno-shadow  /Users/tetsuharu/src/servo/repo1/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/master/mozjs/js/src/threading/posix/Mutex.cpp
/usr/bin/g++ -std=gnu++11 -o Thread.o -c  -fvisibility=hidden -fvisibility-inlines-hidden -DNDEBUG=1 -DTRIMMED=1 -DENABLE_BINARYDATA -DENABLE_SIMD -DENABLE_SHARED_ARRAY_BUFFER -DEXPORT_JS_API -I/Users/tetsuharu/src/servo/repo1/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/master/mozjs/js/src -I/Users/tetsuharu/src/servo/repo1/target/debug/build/mozjs_sys-661d4efe7c7ca939/out/js/src -I/Users/tetsuharu/src/servo/repo1/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/master/mozjs/intl/icu/source/common -I/Users/tetsuharu/src/servo/repo1/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/master/mozjs/intl/icu/source/i18n -I/Users/tetsuharu/src/servo/repo1/target/debug/build/mozjs_sys-661d4efe7c7ca939/out/dist/include          -fPIC  -DMOZILLA_CLIENT -include /Users/tetsuharu/src/servo/repo1/target/debug/build/mozjs_sys-661d4efe7c7ca939/out/js/src/js-confdefs.h -MD -MP -MF .deps/Thread.o.pp -Qunused-arguments  -Qunused-arguments -Wall -Wc++11-compat -Wempty-body -Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wwrite-strings -Wc++11-compat-pedantic -Wc++14-compat -Wc++14-compat-pedantic -Wc++1z-compat -Wclass-varargs -Wimplicit-fallthrough -Wloop-analysis -Wstring-conversion -Wthread-safety -Wno-invalid-offsetof -Wno-inline-new-delete -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-unknown-warning-option -Wno-return-type-c-linkage -fno-common -stdlib=libc++ -fno-rtti -fno-exceptions -fno-math-errno -pthread -pipe  -g -O3 -fno-stack-protector -fomit-frame-pointer  -Wno-shadow  /Users/tetsuharu/src/servo/repo1/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/master/mozjs/js/src/threading/posix/Thread.cpp
/usr/bin/g++ -std=gnu++11 -o Initialization.o -c  -fvisibility=hidden -fvisibility-inlines-hidden -DNDEBUG=1 -DTRIMMED=1 -DENABLE_BINARYDATA -DENABLE_SIMD -DENABLE_SHARED_ARRAY_BUFFER -DEXPORT_JS_API -I/Users/tetsuharu/src/servo/repo1/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/master/mozjs/js/src -I/Users/tetsuharu/src/servo/repo1/target/debug/build/mozjs_sys-661d4efe7c7ca939/out/js/src -I/Users/tetsuharu/src/servo/repo1/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/master/mozjs/intl/icu/source/common -I/Users/tetsuharu/src/servo/repo1/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/master/mozjs/intl/icu/source/i18n -I/Users/tetsuharu/src/servo/repo1/target/debug/build/mozjs_sys-661d4efe7c7ca939/out/dist/include          -fPIC  -DMOZILLA_CLIENT -include /Users/tetsuharu/src/servo/repo1/target/debug/build/mozjs_sys-661d4efe7c7ca939/out/js/src/js-confdefs.h -MD -MP -MF .deps/Initialization.o.pp -Qunused-arguments  -Qunused-arguments -Wall -Wc++11-compat -Wempty-body -Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wwrite-strings -Wc++11-compat-pedantic -Wc++14-compat -Wc++14-compat-pedantic -Wc++1z-compat -Wclass-varargs -Wimplicit-fallthrough -Wloop-analysis -Wstring-conversion -Wthread-safety -Wno-invalid-offsetof -Wno-inline-new-delete -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-unknown-warning-option -Wno-return-type-c-linkage -fno-common -stdlib=libc++ -fno-rtti -fno-exceptions -fno-math-errno -pthread -pipe  -g -O3 -fno-stack-protector -fomit-frame-pointer  -Wno-shadow  /Users/tetsuharu/src/servo/repo1/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/master/mozjs/js/src/vm/Initialization.cpp
/usr/bin/g++ -std=gnu++11 -o TraceLogging.o -c  -fvisibility=hidden -fvisibility-inlines-hidden -DNDEBUG=1 -DTRIMMED=1 -DENABLE_BINARYDATA -DENABLE_SIMD -DENABLE_SHARED_ARRAY_BUFFER -DEXPORT_JS_API -I/Users/tetsuharu/src/servo/repo1/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/master/mozjs/js/src -I/Users/tetsuharu/src/servo/repo1/target/debug/build/mozjs_sys-661d4efe7c7ca939/out/js/src -I/Users/tetsuharu/src/servo/repo1/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/master/mozjs/intl/icu/source/common -I/Users/tetsuharu/src/servo/repo1/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/master/mozjs/intl/icu/source/i18n -I/Users/tetsuharu/src/servo/repo1/target/debug/build/mozjs_sys-661d4efe7c7ca939/out/dist/include          -fPIC  -DMOZILLA_CLIENT -include /Users/tetsuharu/src/servo/repo1/target/debug/build/mozjs_sys-661d4efe7c7ca939/out/js/src/js-confdefs.h -MD -MP -MF .deps/TraceLogging.o.pp -Qunused-arguments  -Qunused-arguments -Wall -Wc++11-compat -Wempty-body -Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wwrite-strings -Wc++11-compat-pedantic -Wc++14-compat -Wc++14-compat-pedantic -Wc++1z-compat -Wclass-varargs -Wimplicit-fallthrough -Wloop-analysis -Wstring-conversion -Wthread-safety -Wno-invalid-offsetof -Wno-inline-new-delete -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-unknown-warning-option -Wno-return-type-c-linkage -fno-common -stdlib=libc++ -fno-rtti -fno-exceptions -fno-math-errno -pthread -pipe  -g -O3 -fno-stack-protector -fomit-frame-pointer  -Wno-shadow  /Users/tetsuharu/src/servo/repo1/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/master/mozjs/js/src/vm/TraceLogging.cpp

--- stderr
/Users/tetsuharu/src/servo/repo1/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/master/mozjs/js/src/threading/posix/ConditionVariable.cpp:77:12: error: use of undeclared identifier 'pthread_condattr_setclock'; did you mean 'pthread_condattr_setpshared'?
  int r1 = pthread_condattr_setclock(&attr, WhichClock);
           ^~~~~~~~~~~~~~~~~~~~~~~~~
           pthread_condattr_setpshared
/usr/include/pthread.h:322:5: note: 'pthread_condattr_setpshared' declared here
int pthread_condattr_setpshared(pthread_condattr_t *, int);
    ^
1 error generated.
make[4]: *** [ConditionVariable.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [js/src/target] Error 2
make[2]: *** [compile] Error 2
make[1]: *** [default] Error 2
make: *** [all] Error 2
thread 'main' panicked at 'assertion failed: result.success()', /Users/tetsuharu/src/servo/repo1/./.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/master/build.rs:43
stack backtrace:
   1:        0x103a460ea - std::sys::backtrace::tracing::imp::write::h4b09e6e8c01db097
   2:        0x103a496af - std::panicking::default_hook::{{closure}}::h1d3243f546573ff4
   3:        0x103a48d05 - std::panicking::default_hook::h96c288d728df3ebf
   4:        0x103a49256 - std::panicking::rust_panic_with_hook::hb1322e5f2588b4db
   5:        0x103a35003 - std::panicking::begin_panic::h0914615a412ba184
   6:        0x103a3e524 - build_script_build::main::h3ffd603ac8cbc58d
   7:        0x103a49c6a - __rust_maybe_catch_panic
   8:        0x103a48846 - std::rt::lang_start::haaae1186de9de8cb
   9:        0x103a3ec89 - main

Build FAILED in 0:00:26
@tetsuharuohzeki
Copy link
Member Author

@tetsuharuohzeki tetsuharuohzeki commented Sep 21, 2016

compiling mozjs-sys is failed

This should be fixed by servo/mozjs#103

bors-servo added a commit that referenced this issue Sep 21, 2016
…r=Ms2ger

Update mozjs_sys to fix the build failure on macOS Sierra

- #13348
- This only fixes the failure to compile mozjs_sys. Linking problem with xcode 8 is still opened (#11846)

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13349)
<!-- Reviewable:end -->
@nox
Copy link
Member

@nox nox commented Oct 5, 2017

That mozjs PR landed, closing.

@nox nox closed this Oct 5, 2017
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this issue Oct 1, 2019
…cOS Sierra (from saneyuki:update-mozjs-to-fix-build-on-sierra); r=Ms2ger

- servo/servo#13348
- This only fixes the failure to compile mozjs_sys. Linking problem with xcode 8 is still opened (servo/servo#11846)

Source-Repo: https://github.com/servo/servo
Source-Revision: 236c687b66ff47f68b4d469db6bc35cdf415fcbf

UltraBlame original commit: a33c53c26dc7700f9be66c5c1b6f640e15e3ee43
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this issue Oct 1, 2019
…cOS Sierra (from saneyuki:update-mozjs-to-fix-build-on-sierra); r=Ms2ger

- servo/servo#13348
- This only fixes the failure to compile mozjs_sys. Linking problem with xcode 8 is still opened (servo/servo#11846)

Source-Repo: https://github.com/servo/servo
Source-Revision: 236c687b66ff47f68b4d469db6bc35cdf415fcbf

UltraBlame original commit: a33c53c26dc7700f9be66c5c1b6f640e15e3ee43
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this issue Oct 1, 2019
…cOS Sierra (from saneyuki:update-mozjs-to-fix-build-on-sierra); r=Ms2ger

- servo/servo#13348
- This only fixes the failure to compile mozjs_sys. Linking problem with xcode 8 is still opened (servo/servo#11846)

Source-Repo: https://github.com/servo/servo
Source-Revision: 236c687b66ff47f68b4d469db6bc35cdf415fcbf

UltraBlame original commit: a33c53c26dc7700f9be66c5c1b6f640e15e3ee43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.