hakchi icon indicating copy to clipboard operation
hakchi copied to clipboard

compile errors in ubuntu 19.04

Open rovingrambler opened this issue 6 years ago • 4 comments

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

rovingrambler avatar Dec 12 '19 15:12 rovingrambler

I get the same error on ubuntu 18.04.

AlexITC avatar Jan 24 '20 02:01 AlexITC

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

Mikaa avatar Oct 22 '20 13:10 Mikaa

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

angpa avatar Nov 14 '20 17:11 angpa

Hello. You may perform the following i just tried and worked in the Debian 11:

  1. 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.

ioef avatar May 14 '22 16:05 ioef