Public bug reported:
I'm working on a Tritium ARMv7 dev board
(https://www.amazon.com/gp/product/B07D4L7GXZ). It has a Cortex-A7
(https://libre.computer/products/boards/all-h3-cc/).
I'm testing native build of a package using Clang.
GCC provides the following triplet:
$ gcc -dumpmachine
arm-linux-gnueabihf
Clang provides the following triplet:
$ clang -dumpmachine
armv8l-unknown-linux-gnueabihf
The Clang triplet is very unusual. I've never seen a compiler claim
armv8l. ARM does not even have a hit for ARMv8l on their site
(https://www.google.com/search?q="armv8l"+site%3Aarm.com). According to
https://github.com/tsandmann/armv8l-toolchain-linux, it is an ARM A-53
toolchain. It looks like the mis-identification is causing some folks
trouble, including me (https://stackoverflow.com/q/27121199/608639).
Perhaps it would be a good idea if Clang reported something closer to
the board it is running on.
********************
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.2 LTS
Release: 18.04
Codename: bionic
$ apt-cache policy clang
clang:
Installed: 1:6.0-41~exp5~ubuntu1
Candidate: 1:6.0-41~exp5~ubuntu1
Version table:
*** 1:6.0-41~exp5~ubuntu1 500
500 http://ports.ubuntu.com bionic-updates/universe armhf Packages
100 /var/lib/dpkg/status
1:6.0-41~exp4 500
500 http://ports.ubuntu.com bionic/universe armhf Packages
** Affects: clang (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1827175
Title:
armv8l-unknown-linux-gnueabihf triplet from clang -dumpmachine on
ARMv7l
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/clang/+bug/1827175/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs