tags:

views:

17

answers:

0

I can not build jcc on mac os.

Here's what fails.

gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -O3 -D_java_generics -DJCC_VER="2.6" -I/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers -I_jcc -Ijcc/sources -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c jcc/sources/jcc.cpp -o build/temp.macosx-10.3-i386-2.6/jcc/sources/jcc.o -DPYTHON -fno-strict-aliasing -Wno-write-strings

/Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory
In file included from jcc/sources/JObject.h:21,
                 from jcc/sources/jcc.cpp:26:
jcc/sources/JCCEnv.h:44:15: error: map: No such file or directory
In file included from jcc/sources/jcc.cpp:18:
/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers/jni.h: In member function ‘_jobject* JNIEnv_::NewObject(_jclass*, _jmethodID*, ...)’:
/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers/jni.h:862: error: ‘va_start’ was not declared in this scope
/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers/jni.h:864: error: ‘va_end’ was not declared in this scope

...and so on until I get this in the end.

lipo: can't figure out the architecture type of: /var/folders/oT/oTvN3Ly7F1mFcVTdD1iygU+++TI/-Tmp-//cc2XxaPU.out
error: command 'gcc' failed with exit status 1

It says there's no stdarg.h in /Developer/SDKs/MacOSX10.4u.sdk/usr/include/. But I checked and it's there.

Any ideas for a fix please?