lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi Mike,

I'm not able to compile LuaJIT on latest MacOSX. It looks like my /usr/include/unwind.h does not have what is supposed to be there, then again there are dozen of unwind.h's from gcc folders that have this information, for example, this one here has it:

/Developer/usr/lib/gcc/i686-apple-darwin11/4.2.1/include/unwind.h

but again, this one does not (it looks as if Apple rewrote it):

/usr/include/unwind.h

I'm not sure whether It's legal to post the contents of the Apple file.



malkia ~/p/luajit $ git log -1 && uname -a && xcodebuild -showsdks && make clean && make
commit bcc196eed385f6935dedc45a08f7deac2cb062a5
Author: Mike Pall <mike>
Date:   Mon Jun 13 03:22:10 2011 +0200

    Fix dumping of already stripped functions with debug info.
Darwin malkiaBook.local 11.0.0 Darwin Kernel Version 11.0.0: Sun May 29 19:42:41 PDT 2011; root:xnu-1699.22.64~1/RELEASE_X86_64 x86_64
Mac OS X SDKs:
	Mac OS X 10.6                 	-sdk macosx10.6
	Mac OS X 10.7                 	-sdk macosx10.7

iOS SDKs:
	iOS 5.0                       	-sdk iphoneos5.0

iOS Simulator SDKs:
	iPhoneSimulator 4.0           	-sdk iphonesimulator4.0
	iPhoneSimulator 4.1           	-sdk iphonesimulator4.1
	iPhoneSimulator 4.2           	-sdk iphonesimulator4.2
	Simulator - iOS 4.3           	-sdk iphonesimulator4.3
	Simulator - iOS 5.0           	-sdk iphonesimulator5.0

make -C src clean
rm -f luajit libluajit.a libluajit.so buildvm lj_vm.s lj_bcdef.h lj_ffdef.h lj_libdef.h lj_recdef.h lj_folddef.h ../lib/vmdef.lua *.o *.obj *.lib *.exp *.dll *.exe *.manifest *.pdb *.ilk
==== Building LuaJIT 2.0.0-beta7 ====
make -C src
HOSTCC    buildvm.o
HOSTCC    buildvm_asm.o
HOSTCC    buildvm_peobj.o
HOSTCC    buildvm_lib.o
HOSTCC    buildvm_fold.o
HOSTLINK  buildvm
BUILDVM   lj_vm.s
ASM       lj_vm.o
CC        lj_gc.o
BUILDVM   lj_ffdef.h
CC        lj_err.o
lj_err.c:199: error: expected declaration specifiers or ‘...’ before ‘_Unwind_Exception_Class’
lj_err.c: In function ‘lj_err_unwind_dwarf’:
lj_err.c:206: error: ‘uexclass’ undeclared (first use in this function)
lj_err.c:206: error: (Each undeclared identifier is reported only once
lj_err.c:206: error: for each function it appears in.)
lj_err.c:232: error: ‘_Unwind_Ptr’ undeclared (first use in this function)
lj_err.c:243: error: expected ‘)’ before ‘lj_vm_unwind_rethrow’
lj_err.c: In function ‘err_raise_ext’:
lj_err.c:264: error: ‘_Unwind_Exception_Class’ undeclared (first use in this function)
make[1]: *** [lj_err.o] Error 1
make: *** [default] Error 2

Thanks,
Dimiter "malkia" Stanev.