FrictionalGames / PenumbraOverture

Penumbra: Overture is a first person horror game, using the HPL1 Engine.
http://www.penumbragame.com/
GNU General Public License v3.0
530 stars 104 forks source link

Compiling error in GNU/Linux #6

Open pxsxs opened 4 years ago

pxsxs commented 4 years ago

here is CMakeError.log:

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /usr/bin/cc 
Build flags: -m32
Id flags:  

The output was:
1
/usr/bin/ld: cannot find Scrt1.o: No such file or directory
/usr/bin/ld: cannot find crti.o: No such file or directory
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/10/libgcc.a when searching for -lgcc
/usr/bin/ld: cannot find -lgcc
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/10/libgcc.a when searching for -lgcc
/usr/bin/ld: cannot find -lgcc
collect2: error: ld returned 1 exit status

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /usr/bin/c++ 
Build flags: -m32
Id flags:  

The output was:
1
/usr/bin/ld: cannot find Scrt1.o: No such file or directory
/usr/bin/ld: cannot find crti.o: No such file or directory
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/10/libstdc++.so when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/10/libstdc++.a when searching for -lstdc++
/usr/bin/ld: cannot find -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/10/libstdc++.so when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libm.so when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libm.a when searching for -lm
/usr/bin/ld: cannot find -lm
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libm.so when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/10/libgcc.a when searching for -lgcc
/usr/bin/ld: cannot find -lgcc
collect2: error: ld returned 1 exit status

Determining if the C compiler works failed with the following output:
Change Dir: /home/keyra/po/PenumbraOverture/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_7766b/fast && /usr/bin/gmake -f CMakeFiles/cmTC_7766b.dir/build.make CMakeFiles/cmTC_7766b.dir/build
gmake[1]: Entering directory '/home/keyra/po/PenumbraOverture/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_7766b.dir/testCCompiler.c.o
/usr/bin/cc   -m32    -o CMakeFiles/cmTC_7766b.dir/testCCompiler.c.o   -c /home/keyra/po/PenumbraOverture/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTC_7766b
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_7766b.dir/link.txt --verbose=1
/usr/bin/cc -m32     -rdynamic CMakeFiles/cmTC_7766b.dir/testCCompiler.c.o  -o cmTC_7766b 
/usr/bin/ld: cannot find Scrt1.o: No such file or directory
/usr/bin/ld: cannot find crti.o: No such file or directory
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/10/libgcc.a when searching for -lgcc
/usr/bin/ld: cannot find -lgcc
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/10/libgcc.a when searching for -lgcc
/usr/bin/ld: cannot find -lgcc
collect2: error: ld returned 1 exit status
gmake[1]: *** [CMakeFiles/cmTC_7766b.dir/build.make:87: cmTC_7766b] Error 1
gmake[1]: Leaving directory '/home/keyra/po/PenumbraOverture/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:121: cmTC_7766b/fast] Error 2

and CMakeOutput.log:

The system is: Linux - 5.7.0-2-amd64 - x86_64
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler: /usr/bin/cc 
Build flags: -m32
Id flags: -c 

The output was:
0

Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "CMakeCCompilerId.o"

The C compiler identification is GNU, found in "/home/keyra/po/PenumbraOverture/CMakeFiles/3.16.3/CompilerIdC/CMakeCCompilerId.o"

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler: /usr/bin/c++ 
Build flags: -m32
Id flags: -c 

The output was:
0

Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "CMakeCXXCompilerId.o"

The CXX compiler identification is GNU, found in "/home/keyra/po/PenumbraOverture/CMakeFiles/3.16.3/CompilerIdCXX/CMakeCXXCompilerId.o"
k0pernicus commented 4 years ago

Hi, it seems you don't have the correct libraries and tools to build the game for 32bits architecture on a 64bits architecture.

Do you have gcc-multilib in your system?