lua-users home
lua-l archive

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


Has anybody out there had luck compiling LuaJIT on Solaris 11? Any
help would be greatly appreciated.  If I use the default make file and
the Solaris linker I get the following error:

make
==== Building LuaJIT 2.0.0-beta7 ====
make -C src
.....
CC        lib_os.o
CC        lib_package.o
CC        lib_debug.o
CC        lib_jit.o
CC        lib_ffi.o
CC        lib_init.o
AR        libluajit.a
CC        luajit.o
BUILDVM   ../lib/vmdef.lua
DYNLINK   libluajit.so
ld: fatal: file /usr/sfw/lib/gcc/i386-pc-solaris2.11/3.4.3/crtbegin.o;
section [7].eh_frame and file lj_vm_dyn.o; section [9].eh_frame have
incompatibile attributes and cannot be merged into a single output
section
collect2: ld returned 1 exit status

If I use the GNU version of ld via LD_ALTEXEC it dies almost immediately:

LD_ALTEXEC=/usr/sfw/bin/gld make
==== Building LuaJIT 2.0.0-beta7 ====
make -C src
make[1]: Entering directory `/root/LuaJIT-2.0.0-beta7/src'
HOSTCC    buildvm.o
HOSTCC    buildvm_asm.o
HOSTCC    buildvm_peobj.o
HOSTCC    buildvm_lib.o
HOSTCC    buildvm_fold.o
HOSTLINK  buildvm
/usr/sfw/bin/gld:built in linker script:21: syntax error
collect2: ld returned 1 exit status
make[1]: *** [buildvm] Error 1
make[1]: Leaving directory `/root/LuaJIT-2.0.0-beta7/src'
make: *** [default] Error 2

Regards,

Will