Kangaroo icon indicating copy to clipboard operation
Kangaroo copied to clipboard

not compile on arm64 (jetson Nano)

Open CrunchyFanch opened this issue 5 years ago • 2 comments

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

CrunchyFanch avatar Dec 03 '20 21:12 CrunchyFanch

I've got the same issue on jetson nano.

@JeanLucPons is there a way to compile it on an arm architecture?

otschek avatar Mar 01 '21 08:03 otschek

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:

  1. Open the Makefile using the nano text editor:
nano Makefile
  1. Locate the CXXFLAGS line and update it as follows:
CXXFLAGS = -Wno-unused-result -Wno-write-strings -O2 -I.
  1. Press Ctrl + O to save the file, then press Enter. Finally, press Ctrl + X to exit the nano editor.

  2. Run the make all command 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.

amar0636 avatar May 08 '23 06:05 amar0636