You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into this in my Fetchy branch, but I can reproduce in master, so I know it's not me.
git clone git@github.com:scoder/lupa.git
cd lupa
wget http://luajit.org/download/LuaJIT-2.0.2.tar.gz
tar xvf LuaJIT-2.0.2.tar.gz
cd LuaJIT-2.0.2/
make
cd ..
virtualenv venv
source venv/bin/activate
python setup.py install
If I've got my reproduction steps right, this should grab the latest Lupa, then the latest LuaJIT, then builds LuaJIT, creates a virtualenv, and attempts to install Lupa into that virtualenv.
The error goes like this:
found LuaJIT build in /home/philip/projects/lupa/LuaJIT-2.0.2/src
building statically
building without Cython
running install
running build
running build_py
copying lupa/version.py -> build/lib.linux-x86_64-2.7/lupa
running build_ext
building 'lupa._lupa' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/home/philip/projects/lupa/LuaJIT-2.0.2/src -I/usr/include/python2.7 -c lupa/_lupa.c -o build/temp.linux-x86_64-2.7/lupa/_lupa.o
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro build/temp.linux-x86_64-2.7/lupa/_lupa.o /home/philip/projects/lupa/LuaJIT-2.0.2/src/libluajit.a -o build/lib.linux-x86_64-2.7/lupa/_lupa.so
/usr/bin/ld: /home/philip/projects/lupa/LuaJIT-2.0.2/src/libluajit.a(lj_err.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/home/philip/projects/lupa/LuaJIT-2.0.2/src/libluajit.a: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
I'm hoping you'll have more insight into this issue than I do.
The text was updated successfully, but these errors were encountered:
Thanks, scoder. I feel like an idiot for burning so much time trying to
reverse-engineer the LuaJIT makefile, never thinking to try adding
"CFLAGS=-fPIC" into the make arguments. That works perfectly.
I ran into this in my Fetchy branch, but I can reproduce in master, so I know it's not me.
If I've got my reproduction steps right, this should grab the latest Lupa, then the latest LuaJIT, then builds LuaJIT, creates a virtualenv, and attempts to install Lupa into that virtualenv.
The error goes like this:
I'm hoping you'll have more insight into this issue than I do.
The text was updated successfully, but these errors were encountered: