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 error ubuntu 14.04.1 #4631

Closed
roblatham00 opened this issue Jan 14, 2015 · 5 comments
Closed

build error ubuntu 14.04.1 #4631

roblatham00 opened this issue Jan 14, 2015 · 5 comments
Labels

Comments

@roblatham00
Copy link

@roblatham00 roblatham00 commented Jan 14, 2015

Giving servo a try (pulled from github this morning), but run into this build error:

% ./mach build
    Updating git repository `https://github.com/servo/gcc-rs`
   Compiling png-sys v1.6.16 (https://github.com/servo/rust-png#cc1976df)
   Compiling freetype-sys v2.4.11 (https://github.com/servo/libfreetype2#f5c49c0d)
   Compiling glfw-sys v3.0.4 (https://github.com/servo/glfw?ref=cargo-3.0.4#765dace7)
   Compiling stb_image v0.1.0 (https://github.com/servo/rust-stb-image#97d7e440)
   Compiling expat-sys v2.1.0 (https://github.com/servo/libexpat#da2ddaf7)
   Compiling harfbuzz v0.1.0 (https://github.com/servo/rust-harfbuzz#0489e7da)
   Compiling mozjs-sys v0.0.0 (https://github.com/servo/mozjs#0dd618fc)
   Compiling task_info v0.0.1 (file:///home/robl/src/servo/components/servo)
   Compiling egl v0.1.0 (https://github.com/servo/rust-egl#88f2a138)
   Compiling xlib v0.1.0 (https://github.com/servo/rust-xlib#58ec3847)
   Compiling html5ever_macros v0.0.0 (https://github.com/servo/html5ever#0abe5e30)
   Compiling gl_common v0.0.1 (https://github.com/bjz/gl-rs.git#b5e3f4f7)
Build failed, waiting for other jobs to finish...
Failed to run custom build command for `freetype-sys v2.4.11 (https://github.com/servo/libfreetype2#f5c49c0d)`
Process didn't exit successfully: `make -f makefile.cargo` (status=2)
--- stdout
cd /home/robl/src/servo/components/servo/target/native/freetype-sys-2000ed3efd86d8e0 && CC=ccache gcc AR=ar /home/robl/.cargo/git/checkouts/libfreetype2-5dcc32a0c29b8f10/master/configure --without-zlib --disable-shared --with-pic=yes

--- stderr
gcc: error: AR=ar: No such file or directory
gcc: error: unrecognized command line option ‘--without-zlib’
gcc: error: unrecognized command line option ‘--with-pic=yes’
make: *** [all] Error 1

I seem to be the one linux user with a build error (other open issues are on OS X) so I must be doing something wrong. Where can I find more detailed build logs or get a more verbose build output?

@jdm
Copy link
Member

@jdm jdm commented Jan 14, 2015

Huh, how is CC=ccache gcc AR=ar supposed to work?

@jdm
Copy link
Member

@jdm jdm commented Jan 14, 2015

Oh, your CC is ccache gcc, which messes up when it hits https://github.com/servo/libfreetype2/blob/master/makefile.cargo#L32 .

@jdm jdm added the P-linux label Jan 14, 2015
@roblatham00
Copy link
Author

@roblatham00 roblatham00 commented Jan 14, 2015

Thanks for noticing that. it's supposed to work by treating 'ccache gcc' as the compiler, but the white space catches more than a few build systems.

@roblatham00
Copy link
Author

@roblatham00 roblatham00 commented Jan 14, 2015

should be

cd $(OUT_DIR) && CC="$(CC)" AR="$(AR)" $(SRC_DIR)/configure $(strip $(CONFIGURE_FLAGS))
@jdm
Copy link
Member

@jdm jdm commented Jan 14, 2015

Good point. Can you make a pull request for that?

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.

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