Closed
Bug 681678
Opened 14 years ago
Closed 14 years ago
Compile error in Mac OSX Lion 10.7, stdarg.h header not found in 10.6 SDK
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: dave.chand.mailinglist, Unassigned)
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_1) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.856.0 Safari/535.2
Steps to reproduce:
I tried building Firefox Beta on Mac OSX 10.7 Lion from source using the mercurial beta source repo.
Actual results:
I have encountered the following error:
gcc-4.2 -o host_pathsub.o -c -Wall -W -Wno-unused -Wpointer-arith -Wdeclaration-after-statement -Wcast-align -W -isysroot /Developer/SDKs/MacOSX10.6.sdk -fno-strict-aliasing -fno-common -pthread -DNO_X11 -DNDEBUG -DTRIMMED -g -O3 -DXP_UNIX -DXP_MACOSX -DNO_X11 -O3 -DUNICODE -D_UNICODE -I/Volumes/HD2/src/mozilla-beta/config -I. -I../dist/include -I../dist/include/nsprpub -I/Volumes/HD2/src/mozilla-beta/obj-x86_64-apple-darwin11.1.0/x86_64/dist/include/nspr -I/Volumes/HD2/src/mozilla-beta/obj-x86_64-apple-darwin11.1.0/x86_64/dist/include/nss -I/Volumes/HD2/src/mozilla-beta/obj-x86_64-apple-darwin11.1.0/x86_64/dist/include/nspr /Volumes/HD2/src/mozilla-beta/config/pathsub.c
In file included from /Volumes/HD2/src/mozilla-beta/config/pathsub.c:46:
/Developer/SDKs/MacOSX10.6.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory
/Volumes/HD2/src/mozilla-beta/config/pathsub.c: In function ‘fail’:
/Volumes/HD2/src/mozilla-beta/config/pathsub.c:80: warning: implicit declaration of function ‘va_start’
/Volumes/HD2/src/mozilla-beta/config/pathsub.c:82: warning: implicit declaration of function ‘va_end’
make[6]: *** [host_pathsub.o] Error 1
make[6]: *** Waiting for unfinished jobs....
make[5]: *** [export_tier_base] Error 2
make[4]: *** [tier_base] Error 2
make[3]: *** [default] Error 2
make[2]: *** [realbuild] Error 2
make[1]: *** [realbuild] Error 2
make: *** [build] Error 2
Expected results:
Probably a successful build.
Comment 1•14 years ago
|
||
Bug 655339 might have some helpful info regarding this.
Reporter | ||
Comment 2•14 years ago
|
||
I have compiled and installed 32bit grep 2.9, for building firefox, but the error still occurs.
Comment 3•14 years ago
|
||
What .mozconfig file are you using?
> the mercurial beta source repo
What exactly is this? Please provide a link to it.
What build of XCode 4.1 are you using? As far as I know, build 4B110 is the current build.
> /Developer/SDKs/MacOSX10.6.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No such > file or directory
I assume a stdarg.h file actually does exist at this location, whose contents are as follows:
/* This file is public domain. */
/* GCC uses its own copy of this header */
#if defined(__GNUC__)
#include_next <stdarg.h>
#elif defined(__MWERKS__)
#include "mw_stdarg.h"
#else
#error "This header only supports __MWERKS__."
#endif
I remember getting similar errors when I copied over /Developer/SDKs/MacOSX10.5.sdk from another partition running OS X 10.6, and tried to use the 10.5 SDK with XCode 4.1 (which is unsupported).
Did you by any chance upgrade from OS X 10.6, and/or from an earlier version of XCode?
Are you using an older version of XCode (older than 4.1) -- one not intended for use on OS X 10.7?
Reporter | ||
Comment 4•14 years ago
|
||
I was using the unsupported 10.5 SDK. The issue is resolved after using the 10.6 SDK on Lion.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•