Error compiling: c++11 features

166 views
Skip to first unread message

Gonzalo

unread,
Nov 21, 2016, 6:21:55 PM11/21/16
to libtins
Hi, I’m trying to compile the library in Ubuntu 16.04 64 bits to 32 bits. It worked when I compile it normally but now it throw this

CMake Warning at CMakeLists.txt:104 (MESSAGE):
  The compiler doesn't support the necessary C++11 features.  Disabling C++11
  on this build

I know it’s not the version because I already did it, but I can’t for 32 bits. I’m using a toolchain file and have the latest version of gcc - g++ (6).

Thanks.

Gonzalo

unread,
Nov 21, 2016, 6:32:10 PM11/21/16
to libtins
This is some CMakeError.log, the error is clearly when trying 32 bits:

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

The output was:
1
/usr/bin/ld: se salta el /usr/lib/gcc/x86_64-linux-gnu/6/libgcc.a incompatible mientras se busca -lgcc
/usr/bin/ld: no se puede encontrar -lgcc
/usr/bin/ld: se salta el /usr/lib/gcc/x86_64-linux-gnu/6/libgcc.a incompatible mientras se busca -lgcc
/usr/bin/ld: no se puede encontrar -lgcc
collect2: error: ld returned 1 exit status


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

The output was:
1
/usr/bin/ld: se salta el /usr/lib/gcc/x86_64-linux-gnu/6/libstdc++.so incompatible mientras se busca -lstdc++
/usr/bin/ld: se salta el /usr/lib/gcc/x86_64-linux-gnu/6/libstdc++.a incompatible mientras se busca -lstdc++
/usr/bin/ld: no se puede encontrar -lstdc++
/usr/bin/ld: se salta el /usr/lib/gcc/x86_64-linux-gnu/6/libgcc.a incompatible mientras se busca -lgcc
/usr/bin/ld: no se puede encontrar -lgcc
collect2: error: ld returned 1 exit status

Matias Fontanini

unread,
Nov 21, 2016, 6:37:37 PM11/21/16
to libtins
Can you provide the command you're using and the version of libtins you're trying to build? Remember you need to use -DCROSS_COMPILING when calling CMake, as specified in the website.
Reply all
Reply to author
Forward
0 new messages