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 on El Capitan #10201

Closed
dongz9 opened this issue Mar 26, 2016 · 8 comments
Closed

Build error on El Capitan #10201

dongz9 opened this issue Mar 26, 2016 · 8 comments
Labels

Comments

@dongz9
Copy link

@dongz9 dongz9 commented Mar 26, 2016

Hi,

I met the following error message when building servo:

In file included from /usr/include/sys/types.h:121:
/usr/include/sys/_types/_pid_t.h:30:31: error: cannot combine with previous 'type-name' declaration specifier
typedef __darwin_pid_t        pid_t;
                              ^
./confdefs.h:16:15: note: expanded from macro 'pid_t'
#define pid_t int
              ^
4 errors generated.
configure: failed program was:
#line 12469 "configure"
#include "confdefs.h"
 #include <stdio.h>
                             #include <string.h>
                             #include <zlib.h>
int main() {
 #if ZLIB_VERNUM < 0x1230
                             #error "Insufficient zlib version (0x1230 required)."
                             #endif
; return 0; }
configure: error: Insufficient zlib version for --with-system-zlib (1.2.3 required)

Any idea how to fix it?

@KiChjang
Copy link
Member

@KiChjang KiChjang commented Mar 26, 2016

It looks like your version of zlib is outdated. Have you tried updating it?

@dongz9
Copy link
Author

@dongz9 dongz9 commented Mar 26, 2016

I've installed homebrew/dupes/zlib, which is 1.2.8. I guess the build system didn't find it? Is there anyway to configure which zlib to use?

@dongz9
Copy link
Author

@dongz9 dongz9 commented Mar 26, 2016

Umm, I checked OSX's default zlib version, which is 1.2.5.

#define ZLIB_VERSION "1.2.5"
#define ZLIB_VERNUM 0x1250
#define ZLIB_VER_MAJOR 1
#define ZLIB_VER_MINOR 2
#define ZLIB_VER_REVISION 5
#define ZLIB_VER_SUBREVISION 0

This makes me really confusing now...

@jdm jdm added P-mac A-build labels Mar 26, 2016
@dongz9
Copy link
Author

@dongz9 dongz9 commented Mar 26, 2016

I just took a closer look, the solution turns out to set CPP=clang -E (the default value is gcc -E). Anyway, the original error message was really confusing...

@perlun
Copy link
Contributor

@perlun perlun commented Mar 26, 2016

Hmm, that's weird; I built Servo on El Capitan just a few days ago. Got a build error first (but a different one than this 😄) but after resolving that, it worked fine. I guess I could try rebuilding from latest master but it'll take some time.

@perlun
Copy link
Contributor

@perlun perlun commented Mar 26, 2016

Rebuilt here - worked fine, the resulting binary seems to work also.

dongz9 - could you include some more details from the build error? From what I can tell in the posted log, the error you're seeing is from some autoconf/configure script, likely a dependency coming from some create (I am yet too unfamiliar with the servo code base to be able to give more details than that...).

@andrewdavidmackenzie
Copy link
Contributor

@andrewdavidmackenzie andrewdavidmackenzie commented Jul 12, 2016

Just did the debug build (first attempt ever) and it all built fine with no errors and runs fine also.

@nox
Copy link
Member

@nox nox commented Oct 1, 2017

I cannot reproduce this.

@nox nox closed this Oct 1, 2017
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
6 participants
You can’t perform that action at this time.