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

Cannot compile #4359

Closed
th0114nd opened this issue Dec 13, 2014 · 6 comments
Closed

Cannot compile #4359

th0114nd opened this issue Dec 13, 2014 · 6 comments

Comments

@th0114nd
Copy link

@th0114nd th0114nd commented Dec 13, 2014

Executing ./mach build fails on OSX10.10.1, with the following version of rustc and cargo

$ rustc --version=verbose
rustc 0.13.0-nightly (193390d0e 2014-12-11 22:56:54 +0000)
binary: rustc
commit-hash: 193390d0e48f6d8fb58acb7d0460c14acf907322
commit-date: 2014-12-11 22:56:54 +0000
host: x86_64-apple-darwin
release: 0.13.0-nightly
$ cargo version
cargo 0.0.1-pre-nightly (0f6667c 2014-12-08 21:19:01 +0000)

The output (after a several git clones) is as follows:

Downloading Rust snapshot: 100.0%
Extracting Rust snapshot...
Snapshot Rust ready.
Downloading Cargo nightly...
Downloading Cargo nightly: 100.5%
Extracting Cargo nightly...
Cargo ready.
    Updating git repository `https://github.com/sfackler/rust-phf`
    Updating git repository `https://github.com/Jurily/rust-xxhash`
    Updating registry `https://github.com/rust-lang/crates.io-index`
    Updating git repository `https://github.com/netvl/rust-xml`
    Updating git repository `https://github.com/tomaka/glutin`
    Updating git repository `https://github.com/servo/rust-cocoa`
    Updating git repository `https://github.com/tomaka/android-rs-glue`
    Updating git repository `https://github.com/huonw/compile_msg`
    Updating git repository `https://github.com/servo/glfw-rs`
    Updating git repository `https://github.com/servo/glfw`
   Compiling task_info v0.0.1 (file:///Users/tim/servo/components/servo)
   Compiling png-sys v1.6.3 (https://github.com/servo/libpng?ref=servo#d01f32b4)
   Compiling mozjs-sys v0.0.0 (https://github.com/servo/mozjs#0dd618fc)
   Compiling expat-sys v2.1.0 (https://github.com/servo/libexpat#da2ddaf7)
   Compiling glfw-sys v3.0.4 (https://github.com/servo/glfw?ref=cargo-3.0.4#765dace7)
   Compiling freetype-sys v2.4.11 (https://github.com/servo/libfreetype2#f5c49c0d)
   Compiling stb_image v0.1.0 (https://github.com/servo/rust-stb-image#74488fef)
   Compiling harfbuzz v0.1.0 (https://github.com/servo/rust-harfbuzz#8aab2154)
   Compiling encoding-index-simpchinese v1.0.20140915 (https://github.com/lifthrasiir/rust-encoding#a06637cc)
   Compiling html5ever_macros v0.0.0 (https://github.com/servo/html5ever?ref=servo#87c7e8b7)
   Compiling pkg-config v0.1.0 (https://github.com/alexcrichton/pkg-config-rs#9b3b44a2)
   Compiling xxhash v0.0.1 (https://github.com/Jurily/rust-xxhash#7e4174e7)
   Compiling khronos_api v0.0.1 (https://github.com/bjz/gl-rs.git#79cd3b3f)
   Compiling encoding-index-korean v1.0.20140915 (https://github.com/lifthrasiir/rust-encoding#a06637cc)
   Compiling encoding-index-singlebyte v1.0.20140915 (https://github.com/lifthrasiir/rust-encoding#a06637cc)
   Compiling core_foundation v0.1.0 (https://github.com/servo/rust-core-foundation#6fa0b908)
   Compiling geom v0.1.0 (https://github.com/servo/rust-geom#95e74613)
   Compiling gl_common v0.0.1 (https://github.com/bjz/gl-rs.git#79cd3b3f)
   Compiling mime v0.0.1 (https://github.com/hyperium/mime.rs#5264e046)
   Compiling freetype v0.1.0 (https://github.com/servo/rust-freetype#e55b0611)
   Compiling png v0.1.0 (https://github.com/servo/rust-png#b0b4acde)
   Compiling encoding-index-tradchinese v1.0.20140915 (https://github.com/lifthrasiir/rust-encoding#a06637cc)
Build failed, waiting for other jobs to finish...
Failed to run custom build command for `mozjs-sys v0.0.0 (https://github.com/servo/mozjs#0dd618fc)`
Process didn't exit successfully: `make -f makefile.cargo` (status=2)
--- stdout
cd /Users/tim/servo/components/servo/target/native/mozjs-sys-c58a7d09513f4944 && /Users/tim/.cargo/git/checkouts/mozjs-2284529523a8d467/master/js/src/configure --enable-gczeal
creating cache ./config.cache
checking host system type... x86_64-apple-darwin14.0.0
checking target system type... x86_64-apple-darwin14.0.0
checking build system type... x86_64-apple-darwin14.0.0
checking for gawk... gawk
checking for gcc-4.2... /usr/local/bin/gcc-4.2
checking for g++-4.2... /usr/local/bin/g++-4.2
checking for perl5... /opt/local/bin/perl5
checking for gcc... /usr/local/bin/gcc-4.2
checking whether the C compiler (/usr/local/bin/gcc-4.2  ) works... yes
checking whether the C compiler (/usr/local/bin/gcc-4.2  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether /usr/local/bin/gcc-4.2 accepts -g... no
checking for c++... /usr/local/bin/g++-4.2
checking whether the C++ compiler (/usr/local/bin/g++-4.2  ) works... yes
checking whether the C++ compiler (/usr/local/bin/g++-4.2  ) is a cross-compiler... no
checking whether we are using GNU C++... yes
checking whether /usr/local/bin/g++-4.2 accepts -g... no
checking for ranlib... ranlib
checking for as... /opt/local/bin/as
checking for ar... ar
checking for ld... ld
checking for strip... strip
checking for windres... no
checking how to run the C preprocessor... /lib/cpp
checking how to run the C++ preprocessor... /lib/cpp
checking for sb-conf... no
checking for ve... no
checking for a BSD compatible install... /opt/local/bin/ginstall -c
checking whether ln -s works... yes
checking for minimum required perl version >= 5.006... 5.016003
checking for full perl installation... yes
checking for python2.7... /opt/local/bin/python2.7
checking for doxygen... :
checking for autoconf... /usr/local/bin/autoconf
checking for makedepend... /opt/X11/bin/makedepend
checking for xargs... /usr/bin/xargs
checking for pbbuild... no
checking for xcodebuild... /usr/bin/xcodebuild
checking for sdp... /usr/bin/sdp
checking for gmake... /opt/local/bin/gmake
checking for X... no
checking that static assertion macros used in autoconf tests work... yes
checking whether the C compiler supports -Werror=return-type... yes
checking whether the C compiler supports -Wtype-limits... no
checking whether the C compiler supports -Wempty-body... yes
checking whether the C compiler supports -Wno-overlength-strings... yes
checking whether the C compiler supports -Wno-variadic-macros... yes
checking whether the C++ compiler supports -Werror=return-type... yes
checking whether the C++ compiler supports -Wtype-limits... no
checking whether the C++ compiler supports -Wempty-body... yes
checking whether the C++ compiler supports -Wno-unused-local-typedefs... no
checking whether the C++ compiler supports -Wno-overlength-strings... yes
checking whether the C++ compiler supports -Wno-invalid-offsetof... yes
checking whether the C++ compiler supports -Wno-variadic-macros... yes
checking whether the C++ compiler supports -Wno-unused-but-set-variable... no
checking whether the C++ compiler supports -Wno-unused-variable... yes
checking whether the C++ compiler supports -Wno-uninitialized... no
checking whether the C++ compiler supports -Wno-undefined-inline... no
checking whether the C++ compiler supports -Wno-parentheses-equality... no
checking whether the C++ compiler supports -Wno-unused-function... yes
checking whether the C++ compiler supports -Wno-null-conversion... no
checking whether the C++ compiler supports -Wno-unused-private-field... no
checking whether ld has archive extraction flags... no
checking for 64-bit OS... yes
checking for Python version >= 2.5 but not 3.x... yes
checking for custom <stdint.h> implementation... none specified
checking for -framework ExceptionHandling... yes
checking for -dead_strip option to ld... yes
checking for ANSI C header files... no
checking for working const... yes
checking for mode_t... no
checking for off_t... no
checking for pid_t... no
checking for size_t... no
checking for __stdcall... no
checking for ssize_t... no
checking for st_blksize in struct stat... no
checking for siginfo_t... no
checking for the size of void*... 8
checking for the alignment of void*...
--- stderr
couldn't understand kern.osversion `14.0.0'
configure: error: No alignment found for void*
make: *** [all] Error 1

Build completed in 112.47s
``
@jdm
Copy link
Member

@jdm jdm commented Dec 13, 2014

This is a known problem with Yosemite right now: servo/mozjs#19

I'd be willing to accept a patch to the configure script to tide us over until #4338 is fixed, since the upgraded version does not have this problem.

@jdm
Copy link
Member

@jdm jdm commented Dec 13, 2014

That being said, apparently brew uninstall apple-gcc42 fixes this.

@th0114nd
Copy link
Author

@th0114nd th0114nd commented Dec 13, 2014

I can confirm that brew uninstall apple-gcc42 allows compilation to go through.

1 similar comment
@mseri
Copy link

@mseri mseri commented Jan 20, 2015

I can confirm that brew uninstall apple-gcc42 allows compilation to go through.

@frewsxcv
Copy link
Member

@frewsxcv frewsxcv commented Jun 29, 2015

Does it seem fair to close this now?

@jdm
Copy link
Member

@jdm jdm commented Jun 29, 2015

Yep. We upgraded spidermonkey so this shouldn't be an issue any longer.

@jdm jdm closed this Jun 29, 2015
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
4 participants
You can’t perform that action at this time.