compile errors in ubuntu 19.04
make[1]: Entering directory '/home/user/hakchi/sntool' crc32.o gcc: error: unrecognized command line option ‘-mthumb’; did you mean ‘-mtbm’? gcc: error: unrecognized command line option ‘-mfpu=neon-vfpv4’ gcc: error: unrecognized command line option ‘-mfloat-abi=hard’ make[1]: *** [Makefile:46: crc32.o] Error 1 make[1]: Leaving directory '/home/user/hakchi/sntool' make: *** [Makefile:90: bin/sntool] Error 2
I get the same error on ubuntu 18.04.
I get the same with Slackware using gcc 5.5.0.
make[1]: Entering directory '/tmp/hakchi/sntool'
crc32.o
gcc: error: unrecognized command line option ‘-mthumb’
gcc: error: unrecognized command line option ‘-mfpu=neon-vfpv4’
gcc: error: unrecognized command line option ‘-mfloat-abi=hard’
Makefile:46: recipe for target 'crc32.o' failed
make[1]: *** [crc32.o] Error 1
make[1]: Leaving directory '/tmp/hakchi/sntool'
Makefile:90: recipe for target 'bin/sntool' failed
make: *** [bin/sntool] Error 2
Same error on 5.4.0-52-generic #57~18.04.1-Ubuntu
gcc: error: unrecognized command line option ‘-mthumb’; did you mean ‘-mtbm’? gcc: error: unrecognized command line option ‘-mfpu=neon-vfpv4’ gcc: error: unrecognized command line option ‘-mfloat-abi=hard’ Makefile:46: recipe for target 'crc32.o' failed make[1]: *** [crc32.o] Error 1 make[1]: Leaving directory '/home/$user/hakchi/sntool' Makefile:90: recipe for target 'bin/sntool' failed make: *** [bin/sntool] Error 2
Hello. You may perform the following i just tried and worked in the Debian 11:
- Optional if you don't already have the cross compilation/arm tools. Otherwise go to 2 directly :
sudo apt-get install libc6-armel-cross libc6-dev-armel-cross binutils-arm-linux-gnueabi libncurses5-dev build-essential bison flex libssl-dev bc
sudo apt-get install gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf
export CROSS_COMPILE='arm-linux-gnueabihf-' make clean make
Enjoy.