aarch64 vs arm64 Package incompatibility [24.1 g++ cmake] [SOLVED]

Hello All,

Again, I am a linux novice so totally am expecting to be making a fool of myself here, but could someone point out my mistakes:

Last week I attempted to move from 23.2 to 24.1 in order to gain 64b user applications. However after reflashing my Jetson TX1 with the latest 24.1 files. This was rather painless. However…

Upon booting and wanting to build some code I go to call cmake, no cmake installed. No big issues, sudo apt-get install cmake: NO, incompatible with your architecture. A quick check of the ubuntu package page confirms the issue: It exists for arm64, and the system architecture is labeled as aarch64. Quick; to the google mobile! Surprisingly little coverage, but this pretty much explains it.

No biggie, I’ve compiled cmake before… download source, run build script; NO! No g++ found. Alright a quick check:

ubuntu@tegra-ubuntu:~$ ls -l /usr/bin/aarch64-linux-gnu-*
lrwxrwxrwx 1 root root  9 Apr 15  2014 /usr/bin/aarch64-linux-gnu-addr2line -> addr2line
lrwxrwxrwx 1 root root  2 Apr 15  2014 /usr/bin/aarch64-linux-gnu-ar -> ar
lrwxrwxrwx 1 root root  2 Apr 15  2014 /usr/bin/aarch64-linux-gnu-as -> as
lrwxrwxrwx 1 root root  7 Apr 15  2014 /usr/bin/aarch64-linux-gnu-c++filt -> c++filt
lrwxrwxrwx 1 root root  7 Apr  7  2014 /usr/bin/aarch64-linux-gnu-cpp -> cpp-4.8
lrwxrwxrwx 1 root root  7 Apr  5  2014 /usr/bin/aarch64-linux-gnu-cpp-4.8 -> cpp-4.8
lrwxrwxrwx 1 root root  7 Apr 15  2014 /usr/bin/aarch64-linux-gnu-elfedit -> elfedit
lrwxrwxrwx 1 root root  7 Apr  7  2014 /usr/bin/aarch64-linux-gnu-gcc -> gcc-4.8
lrwxrwxrwx 1 root root  7 Apr  5  2014 /usr/bin/aarch64-linux-gnu-gcc-4.8 -> gcc-4.8
lrwxrwxrwx 1 root root 10 Apr  7  2014 /usr/bin/aarch64-linux-gnu-gcc-ar -> gcc-ar-4.8
lrwxrwxrwx 1 root root 10 Apr  5  2014 /usr/bin/aarch64-linux-gnu-gcc-ar-4.8 -> gcc-ar-4.8
lrwxrwxrwx 1 root root 10 Apr  7  2014 /usr/bin/aarch64-linux-gnu-gcc-nm -> gcc-nm-4.8
lrwxrwxrwx 1 root root 10 Apr  5  2014 /usr/bin/aarch64-linux-gnu-gcc-nm-4.8 -> gcc-nm-4.8
lrwxrwxrwx 1 root root 14 Apr  7  2014 /usr/bin/aarch64-linux-gnu-gcc-ranlib -> gcc-ranlib-4.8
lrwxrwxrwx 1 root root 14 Apr  5  2014 /usr/bin/aarch64-linux-gnu-gcc-ranlib-4.8 -> gcc-ranlib-4.8
lrwxrwxrwx 1 root root  8 Apr  7  2014 /usr/bin/aarch64-linux-gnu-gcov -> gcov-4.8
lrwxrwxrwx 1 root root  8 Apr  5  2014 /usr/bin/aarch64-linux-gnu-gcov-4.8 -> gcov-4.8
lrwxrwxrwx 1 root root  5 Apr 15  2014 /usr/bin/aarch64-linux-gnu-gprof -> gprof
lrwxrwxrwx 1 root root  2 Apr 15  2014 /usr/bin/aarch64-linux-gnu-ld -> ld
lrwxrwxrwx 1 root root  6 Apr 15  2014 /usr/bin/aarch64-linux-gnu-ld.bfd -> ld.bfd
lrwxrwxrwx 1 root root  2 Apr 15  2014 /usr/bin/aarch64-linux-gnu-nm -> nm
lrwxrwxrwx 1 root root  7 Apr 15  2014 /usr/bin/aarch64-linux-gnu-objcopy -> objcopy
lrwxrwxrwx 1 root root  7 Apr 15  2014 /usr/bin/aarch64-linux-gnu-objdump -> objdump
lrwxrwxrwx 1 root root  6 Apr 15  2014 /usr/bin/aarch64-linux-gnu-ranlib -> ranlib
lrwxrwxrwx 1 root root  7 Apr 15  2014 /usr/bin/aarch64-linux-gnu-readelf -> readelf
lrwxrwxrwx 1 root root  4 Apr 15  2014 /usr/bin/aarch64-linux-gnu-size -> size
lrwxrwxrwx 1 root root  7 Apr 15  2014 /usr/bin/aarch64-linux-gnu-strings -> strings
lrwxrwxrwx 1 root root  5 Apr 15  2014 /usr/bin/aarch64-linux-gnu-strip -> strip

Hrm it would appear the 24.1 release doesn’t come with g++, could be problematic.

No worries, I’ve always wanted to compile a compiler! Downloaded source, worked, installed, back to cmake: Missing c++ standard libs…

There is only so much reinventing(compiling) the wheel I can manually take doing… For now I feel like the development environment of the 64b userspace is more a hindrance than advantage. Mainly due to the incompatibility with sudo apt-get install.

Opinions? Thoughts? Have I missed something blatantly obvious?

I’m not where I can check actual packages right now, but very few distributions come with development tools already in place (and even more so for embedded distributions). Typically:

apt search g++
apt-get install ...whatever desired...

Damn I should have saved the logs… This is rather awkward, however when I tried this last week I could have sworn

apt-get install ...anything...

Returned saying incompatible architecture…, But ofc now that I go back to regenerate the situation it is functioning.

As mentioned make a fool of myself.