not compile on arm64 (jetson Nano)
Hi Jean luc. Do u know if a g++ compilation is possible to your project on a Jetson Nano (arm64 CPU) with a GM20B (Nvidia Maxwell ccap 5.3) ?
I have the following error when i try
make gpu=1 ccap=53 all
cd obj && mkdir -p SECPK1 g++ -DWITHGPU -m64 -mssse3 -Wno-unused-result -Wno-write-strings -O2 -I. -I/usr/local/cuda/include -o obj/SECPK1/IntGroup.o -c SECPK1/IntGroup.cpp g++: error: unrecognized command line option ‘-m64’ g++: error: unrecognized command line option ‘-mssse3’ Makefile:80: recipe for target 'obj/SECPK1/IntGroup.o' failed make: *** [obj/SECPK1/IntGroup.o] Error 1
Regards Fanch
I've got the same issue on jetson nano.
@JeanLucPons is there a way to compile it on an arm architecture?
If you have this problem
┌──(userland㉿localhost)-[~/Kangaroo] └─$ make all cd obj && mkdir -p SECPK1 g++ -m64 -mssse3 -Wno-unused-result -Wno-write-strings -O2 -I. -o obj/SECPK1/IntGroup.o -c SECPK1/IntGroup.cpp g++: error: unrecognized command-line option '-m64' g++: error: unrecognized command-line option '-mssse3' make: *** [Makefile:40: obj/SECPK1/IntGroup.o] Error 1
This is the solution
It seems that the compiler you are using does not recognize the -m64 and -mssse3 options. These options are specific to certain compilers and architectures.
Since you are using Kali Linux on userland, which is an emulation environment, it's possible that the compiler provided may not have full support for all options.
To resolve this issue, we can modify the Makefile to remove the -m64 and -mssse3 options. Please follow the steps below:
- Open the Makefile using the
nanotext editor:
nano Makefile
- Locate the
CXXFLAGSline and update it as follows:
CXXFLAGS = -Wno-unused-result -Wno-write-strings -O2 -I.
-
Press
Ctrl + Oto save the file, then pressEnter. Finally, pressCtrl + Xto exit the nano editor. -
Run the
make allcommand again:
make all
This modification should remove the unrecognized options and allow the compilation process to proceed without errors. Let me know if you encounter any further issues.