lpereira / lwan

Experimental, scalable, high performance HTTP server
https://lwan.ws
GNU General Public License v2.0
5.94k stars 548 forks source link

Can't make lwan #209

Closed alex-bender closed 7 years ago

alex-bender commented 7 years ago

System: Debian 8

uname -a
Linux bender 4.9.0-0.bpo.2-amd64 #1 SMP Debian 4.9.13-1~bpo8+1 (2017-02-27) x86_64 GNU/Linux
cmake .. -DCMAKE_BUILD_TYPE=Release
[...]
/usr/bin/ld: /tmp/ccadO1lz.ltrans0.ltrans.o: relocation R_X86_64_PC32 against symbol `coro_swapcontext' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
src/lib/CMakeFiles/lwan-shared.dir/build.make:86: recipe for target 'src/lib/liblwan.so' failed
make[2]: *** [src/lib/liblwan.so] Error 1
CMakeFiles/Makefile2:162: recipe for target 'src/lib/CMakeFiles/lwan-shared.dir/all' failed
make[1]: *** [src/lib/CMakeFiles/lwan-shared.dir/all] Error 2
Makefile:117: recipe for target 'all' failed
make: *** [all] Error 2
lpereira commented 7 years ago

That's odd. I'll try to reproduce this tonight on a pristine Debian 8 install and report back.

On Thu, Oct 19, 2017, 03:57 Alex Bender notifications@github.com wrote:

System: Debian 8

uname -a Linux bender 4.9.0-0.bpo.2-amd64 #1 SMP Debian 4.9.13-1~bpo8+1 (2017-02-27) x86_64 GNU/Linux

cmake .. -DCMAKE_BUILD_TYPE=Release [...] /usr/bin/ld: /tmp/ccadO1lz.ltrans0.ltrans.o: relocation R_X86_64_PC32 against symbol `coro_swapcontext' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: Bad value collect2: error: ld returned 1 exit status src/lib/CMakeFiles/lwan-shared.dir/build.make:86: recipe for target 'src/lib/liblwan.so' failed make[2]: [src/lib/liblwan.so] Error 1 CMakeFiles/Makefile2:162: recipe for target 'src/lib/CMakeFiles/lwan-shared.dir/all' failed make[1]: [src/lib/CMakeFiles/lwan-shared.dir/all] Error 2 Makefile:117: recipe for target 'all' failed make: *** [all] Error 2

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/lpereira/lwan/issues/209, or mute the thread https://github.com/notifications/unsubscribe-auth/AAA6mfWVC0_MfP815OwPJUHcHP-zuS4fks5stys0gaJpZM4P_DQ6 .

lpereira commented 7 years ago

@alex-bender This seems to be fixed now -- tested and reproduced on an up-to-date Debian 8 installation. Please confirm; feel free to reopen if it's still broken for you.

alex-bender commented 7 years ago

@lpereira thanks, it works!