JACoders / OpenJK

Community effort to maintain and improve Jedi Academy (SP & MP) + Jedi Outcast (SP only) released by Raven Software
GNU General Public License v2.0
2.03k stars 614 forks source link

build failure #170

Closed netfab closed 11 years ago

netfab commented 11 years ago

Hi,

I'm trying to build lastest git on Gentoo Linux amd64 multilib with gcc-4.6.3 and got this build failure :

[ 12%] Building CXX object code/CMakeFiles/openjk_sp.x86_64.dir/qcommon/cm_patch.cpp.o cd /var/tmp/portage/games-engines/openjk-9999/work/openjk-9999_build/code && /usr/bin/x86_64-pc-linux-gnu-g++ -DNDEBUG -march=core2 -mcx16 -msahf -maes -mpclmul -mpopcnt -mfpmath=sse --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=6144 -msse4.1 -msse4.2 -mavx -mtune=generic -O2 -pipe -w -fpermissive -I/usr/include/AL -I/usr/include/SDL2 -o CMakeFiles/openjk_sp.x86_64.dir/qcommon/cm_patch.cpp.o -c /var/tmp/portage/games-engines/openjk-9999/work/openjk-9999/code/qcommon/cm_patch.cpp /var/tmp/portage/games-engines/openjk-9999/work/openjk-9999/code/client/snd_mix.cpp: In function 'void S_WriteLinearBlastStereo16()': /var/tmp/portage/games-engines/openjk-9999/work/openjk-9999/code/client/snd_mix.cpp:67:6: error: redefinition of 'void S_WriteLinearBlastStereo16()' /var/tmp/portage/games-engines/openjk-9999/work/openjk-9999/code/client/snd_mix.cpp:35:6: error: 'void S_WriteLinearBlastStereo16()' previously defined here make[2]: *\ [code/CMakeFiles/openjk_sp.x86_64.dir/client/snd_mix.cpp.o] Error 1

Thanks.

aisouard commented 11 years ago

Try to merge this file with mine : https://github.com/exidl/OpenJK/blob/master/codemp/client/snd_mix.cpp

netfab commented 11 years ago

Thanks, that fixes this particular error. But further I hit another error relative to asm. Maybe I should wait.

Building ASM_NASM object codemp/CMakeFiles/openjk.x86_64.dir/sys/snapvector.nasm.o cd /var/tmp/portage/games-engines/openjk-9999/work/openjk-9999_build/codemp && /usr/bin/nasm -I/var/tmp/portage/games-engines/openjk-9999/work/openjk-9999/codemp -I/usr/include -I/usr/include/SDL2 -I/usr/include/AL -f elf64 -o CMakeFiles/openjk.x86_64.dir/sys/snapvector.nasm.o /var/tmp/portage/games-engines/openjk-9999/work/openjk-9999/codemp/sys/snapvector.nasm /var/tmp/portage/games-engines/openjk-9999/work/openjk-9999/codemp/sys/snapvector.nasm:24: error: instruction not supported in 64-bit mode /var/tmp/portage/games-engines/openjk-9999/work/openjk-9999/codemp/sys/snapvector.nasm:25: error: instruction not supported in 64-bit mode /var/tmp/portage/games-engines/openjk-9999/work/openjk-9999/codemp/sys/snapvector.nasm:45: error: instruction not supported in 64-bit mode /var/tmp/portage/games-engines/openjk-9999/work/openjk-9999/codemp/sys/snapvector.nasm:46: error: instruction not supported in 64-bit mode /var/tmp/portage/games-engines/openjk-9999/work/openjk-9999/codemp/sys/snapvector.nasm:52: error: instruction not supported in 64-bit mode /var/tmp/portage/games-engines/openjk-9999/work/openjk-9999/codemp/sys/snapvector.nasm:53: error: instruction not supported in 64-bit mode /var/tmp/portage/games-engines/openjk-9999/work/openjk-9999/codemp/sys/snapvector.nasm:73: error: instruction not supported in 64-bit mode /var/tmp/portage/games-engines/openjk-9999/work/openjk-9999/codemp/sys/snapvector.nasm:74: error: instruction not supported in 64-bit mode /var/tmp/portage/games-engines/openjk-9999/work/openjk-9999/codemp/sys/snapvector.nasm:80: error: instruction not supported in 64-bit mode /var/tmp/portage/games-engines/openjk-9999/work/openjk-9999/codemp/sys/snapvector.nasm:81: error: instruction not supported in 64-bit mode /var/tmp/portage/games-engines/openjk-9999/work/openjk-9999/codemp/sys/snapvector.nasm:101: error: instruction not supported in 64-bit mode /var/tmp/portage/games-engines/openjk-9999/work/openjk-9999/codemp/sys/snapvector.nasm:102: error: instruction not supported in 64-bit mode make[2]: *\ [codemp/CMakeFiles/openjk.x86_64.dir/sys/snapvector.nasm.o] Error 1

aisouard commented 11 years ago

Make sure that your Makefile compiles with -m32 flags.

cmake -i .

Set the CFLAGS, CXXFLAGS, and other linker flags to -m32

netfab commented 11 years ago

Ok, I got it, thanks for your help.

exander77 commented 11 years ago

I succesfully built it on 64bit Lunux, but it needs a few modifications. I got a few of them cleaned up and they are in pull request.

eezstreet commented 11 years ago

Closed.