Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cc: error: unrecognized command line option ‘-m64’ #1734

Open
ABCDEFZ-jk opened this issue Aug 25, 2024 · 2 comments
Open

cc: error: unrecognized command line option ‘-m64’ #1734

ABCDEFZ-jk opened this issue Aug 25, 2024 · 2 comments

Comments

@ABCDEFZ-jk
Copy link

My device is Nvidia Jetson TX2, Ubuntu 20, aarch64
I followed the instructions in this link and encountered many "cc: error: unrecognized command line option '- m64'" errors when executing the make -j6 command

How can I solve this error? Is there any discussion about ARM version compilation

abcdefz@ubuntu:/home/tf/aa/build$ make [ 0%] Performing build step for 'geogram' [ 0%] Building C object src/lib/geogram/third_party/CMakeFiles/geogram_third_party.dir/zlib/adler32.c.o cc: error: unrecognized command line option ‘-m64’ make[5]: *** [src/lib/geogram/third_party/CMakeFiles/geogram_third_party.dir/build.make:76: src/lib/geogram/third_party/CMakeFiles/geogram_third_party.dir/zlib/adler32.c.o] Error 1 make[4]: *** [CMakeFiles/Makefile2:711: src/lib/geogram/third_party/CMakeFiles/geogram_third_party.dir/all] Error 2 make[3]: *** [Makefile:156: all] Error 2 make[2]: *** [CMakeFiles/geogram.dir/build.make:86: external/src/geogram-stamp/geogram-build] Error 2 make[1]: *** [CMakeFiles/Makefile2:158: CMakeFiles/geogram.dir/all] Error 2 make: *** [Makefile:91: all] Error 2

@servantftechnicolor
Copy link
Contributor

I don't think the current cmake is ready for ARM.

@simogasp modified the cmake for Apple ARM new cpus but that is not a generic ARM target.

I personally don't have any ARM device available currently, so i can't help.

@BlaineHein
Copy link

For other AliceVision reasons, I am now running CMake version 3.29.8 on the jetpack 6.0 download (Ubuntu 22.04)
Hardware is NVIDIA Orin Nano 8gb.
Error message due to failure to detect ARM CPU and installing X64 architecture instead (the -m64 switch)
These are the steps I used to build Geogram (sorry, I have not gone through to make them readable yet...)
DOWNLOAD GEOGRAM from https://github.com/BrunoLevy/geogram/releases
copy and Extract geogram_1.9.0.tar.gz ./

cd /geogram_1.9.0
If not already done: apt-get install cmake build-essential libx11-dev libxcb1-dev libxau-dev libxdmcp-dev
apt-get install libxi-dev libxcursor-dev libxinerama-dev libxrandr-dev

./configure.sh Linux64-nonx86-gcc-dynamic
cd build/Linux64-nonx86-gcc-dynamic-Release
make -j 8 or cmake --build
make install

Let me know if this works for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants