lua-users home
lua-l archive

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


Well thats why the support is experimental.. that'll teach me to release it without actually trying to compile the shared lib on x86 architecture.

I'll take a look at it tonight and figure out what's what. I am using gcc version 4.5.1 20100924 (Red Hat 4.5.1-4) (GCC) .

maybe try -fPIC (note capital)?

-Curt


On 2/14/2012 6:02 PM, Ezra Sims wrote:
On 2/14/2012 11:42 AM, curt wrote:
Tuna is a multi-threaded API that allows task-switching at the c/c++ level -- http://northarc.com/tuna

I have a candidate up which loads it as a native (shared library) module. The manual has been updated, and its available through http://northarc.com/tuna/downloads.html as a release candidate (0.4.2)


Awesome! I've been keeping an eye on Tuna since your first thread, a native module seals it for me. Sadly, getting a compile error on my box (Arch x86, GCC 4.6.2-5):

g++ -fpic -O3 -Werror -Wall -MD -Isrc -c -o  objs/tuna.lo src/tuna.cpp
In file included from src/tuna.cpp:191:0:
src/asm.h: In function ‘void swapStack()’:
src/asm.h:63:49: error: PIC register clobbered by ‘ebx’ in ‘asm’
In file included from src/tuna.cpp:191:0:
src/asm.h:76:49: error: PIC register clobbered by ‘ebx’ in ‘asm’
src/asm.h: In function ‘void saveStack()’:
src/asm.h:82:49: error: PIC register clobbered by ‘ebx’ in ‘asm’
In file included from src/tuna.cpp:191:0:
src/asm.h:95:49: error: PIC register clobbered by ‘ebx’ in ‘asm’
make: *** [objs/tuna.lo] Error 1

Might just be my GCC version, but perhaps you have a better idea of what's up?