Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling error in GNU/Linux #6

Open
pxsxs opened this issue Aug 30, 2020 · 1 comment
Open

Compiling error in GNU/Linux #6

pxsxs opened this issue Aug 30, 2020 · 1 comment

Comments

@pxsxs
Copy link

pxsxs commented Aug 30, 2020

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
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants