Hi,
I got another issue when building a new TK1 image with BSP 2.7. The recipe libcryptopp-native fails with the error below.
How to overcome this error?
ERROR: libcryptopp-native-5.6.3-r1 do_compile: oe_runmake failed
ERROR: libcryptopp-native-5.6.3-r1 do_compile: Function failed: do_compile (log file is located at /home/user/oe-core/build/tmp-glibc/work/x86_64-linux/libcryptopp-native/5.6.3-r1/temp/log.do_compile.24911)
ERROR: Logfile of failure stored in: /home/user/oe-core/build/tmp-glibc/work/x86_64-linux/libcryptopp-native/5.6.3-r1/temp/log.do_compile.24911
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 4 CC=gcc -m32 CXX=g++ -m32 -f GNUmakefile
| ERROR: oe_runmake failed
| WARNING: CRYPTOPP_NO_UNALIGNED_DATA_ACCESS is not defined in config.h.
| WARNING: CRYPTOPP_INIT_PRIORITY is not defined in config.h.
| WARNING: CRYPTOPP_MAINTAIN_BACKWARDS_COMPATIBILITY_562 is defined in config.h.
| WARNING: You should make these changes in config.h, and not CXXFLAGS.
| WARNING: You can 'mv config.recommend config.h', but it breaks versioning.
| WARNING: See http://cryptopp.com/wiki/config.h for more details.
|
| g++ -m32 -isystem/home/user/oe-core/build/tmp-glibc/sysroots/x86_64-linux/usr/include -O2 -pipe -DNDEBUG -fPIC -c cryptlib.cpp
| g++ -m32 -isystem/home/user/oe-core/build/tmp-glibc/sysroots/x86_64-linux/usr/include -O2 -pipe -DNDEBUG -fPIC -c cpu.cpp
| g++ -m32 -isystem/home/user/oe-core/build/tmp-glibc/sysroots/x86_64-linux/usr/include -O2 -pipe -DNDEBUG -fPIC -c des.cpp
| g++ -m32 -isystem/home/user/oe-core/build/tmp-glibc/sysroots/x86_64-linux/usr/include -O2 -pipe -DNDEBUG -fPIC -c skipjack.cpp
| In file included from stdcpp.h:9:0,
| from cryptlib.h:87,
| from cryptlib.cpp:18:
| /usr/include/c++/5/string:38:28: fatal error: bits/c++config.h: No such file or directory
| compilation terminated.
| GNUmakefile:467: recipe for target 'cryptlib.o' failed
| make: *** [cryptlib.o] Error 1
| make: *** Waiting for unfinished jobs....
| In file included from stdcpp.h:9:0,
| from cryptlib.h:87,
| from misc.h:21,
| from des.cpp:18:
| /usr/include/c++/5/string:38:28: fatal error: bits/c++config.h: No such file or directory
| compilation terminated.
| In file included from stdcpp.h:9:0,
| from cryptlib.h:87,
| from misc.h:21,
| from cpu.cpp:13:
| /usr/include/c++/5/string:38:28: fatal error: bits/c++config.h: No such file or directory
| compilation terminated.
| GNUmakefile:467: recipe for target 'des.o' failed
| make: *** [des.o] Error 1
| GNUmakefile:467: recipe for target 'cpu.o' failed
| make: *** [cpu.o] Error 1
| In file included from stdcpp.h:9:0,
| from cryptlib.h:87,
| from seckey.h:16,
| from skipjack.h:9,
| from skipjack.cpp:8:
| /usr/include/c++/5/string:38:28: fatal error: bits/c++config.h: No such file or directory
| compilation terminated.
| GNUmakefile:467: recipe for target 'skipjack.o' failed
| make: *** [skipjack.o] Error 1
| WARNING: /home/user/oe-core/build/tmp-glibc/work/x86_64-linux/libcryptopp-native/5.6.3-r1/temp/run.do_compile.24911:1 exit 1 from 'exit 1'
| ERROR: Function failed: do_compile (log file is located at /home/user/oe-core/build/tmp-glibc/work/x86_64-linux/libcryptopp-native/5.6.3-r1/temp/log.do_compile.24911)
ERROR: Task (virtual:native:/home/user/oe-core/build/../layers/meta-toradex-tegra/recipes-support/libcryptopp/libcryptopp_5.6.3.bb:do_compile) failed with exit code '1'