GNU bug report logs - #44422
AC_CANONICAL_HOST sets wrong $host_cpu on Raspberry Pi 3

Previous Next

Package: automake;

Reported by: Viktor Engelmann <viktor.engelmann <at> googlemail.com>

Date: Tue, 3 Nov 2020 16:18:01 UTC

Severity: normal

Done: Karl Berry <karl <at> freefriends.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 44422 in the body.
You can then email your comments to 44422 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-automake <at> gnu.org:
bug#44422; Package automake. (Tue, 03 Nov 2020 16:18:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Viktor Engelmann <viktor.engelmann <at> googlemail.com>:
New bug report received and forwarded. Copy sent to bug-automake <at> gnu.org. (Tue, 03 Nov 2020 16:18:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Viktor Engelmann <viktor.engelmann <at> googlemail.com>
To: bug-automake <at> gnu.org
Subject: AC_CANONICAL_HOST sets wrong $host_cpu on Raspberry Pi 3
Date: Tue, 3 Nov 2020 17:16:42 +0100
I'm trying to port a project to docker and I'm also testing it on my
Raspberry Pi 3B+

when I *./configure* and *make* the project, it fails with this message

gcc: error: unrecognized -mcpu target: armv7l
gcc: note: valid arguments are: arm8 arm810 strongarm [...] cortex-a53 [...]
gcc: error: missing argument to '-march='

lscpu says this:

Architecture:        armv7l
Byte Order:          Little Endian
CPU(s):              4
On-line CPU(s) list: 0-3
Thread(s) per core:  1
Core(s) per socket:  4
Socket(s):           1
Vendor ID:           ARM
Model:               4
Model name:          Cortex-A53
Stepping:            r0p4
CPU max MHz:         1200.0000
CPU min MHz:         600.0000
BogoMIPS:            38.40
Flags:               half thumb fastmult vfp edsp neon vfpv3 tls vfpv4
idiva idi
                     vt vfpd32 lpae evtstrm crc32

So it seems to me that AC_CANONICAL_HOST sets $host_cpu to armv7l,
although that is the Architecture and should be passed to -march
instead. -mcpu should get the Model name.

I couldn't get it to accept the --host=cpu-os-abi parameter, because
cortex-a35 contains a dash and that seems to confuse autoconf (that
produces the error message Invalid configuration
`cortex-a53-unknown-linux-gnueabihf': machine `cortex-a53-unknown' not
recognized). I did manage to compile with
--host=native-unknown-linux-gnueabihf, but I'd rather not define a fixed
ABI, because that would break the cross-platform compatibility of the
Dockerfile.

I'm using autoconf 2.69 from the docker base image "ubuntu:latest".





Information forwarded to bug-automake <at> gnu.org:
bug#44422; Package automake. (Tue, 03 Nov 2020 22:31:02 GMT) Full text and rfc822 format available.

Message #8 received at 44422 <at> debbugs.gnu.org (full text, mbox):

From: Karl Berry <karl <at> freefriends.org>
To: viktor.engelmann <at> googlemail.com
Cc: 44422 <at> debbugs.gnu.org
Subject: Re: bug#44422: AC_CANONICAL_HOST sets wrong $host_cpu on Raspberry Pi
 3
Date: Tue, 3 Nov 2020 15:30:32 -0700
    Subject: bug#44422: AC_CANONICAL_HOST sets wrong $host_cpu on
    Raspberry Pi 3

This sounds like an Autoconf issue to me? (Personally, I would not dare
guess what to do about the twisty maze of arm architecture variants.) I
resubmitted it on your behalf at:
https://savannah.gnu.org/support/index.php?110360

Thanks for the report,
Karl




Reply sent to Karl Berry <karl <at> freefriends.org>:
You have taken responsibility. (Tue, 17 Nov 2020 02:24:03 GMT) Full text and rfc822 format available.

Notification sent to Viktor Engelmann <viktor.engelmann <at> googlemail.com>:
bug acknowledged by developer. (Tue, 17 Nov 2020 02:24:03 GMT) Full text and rfc822 format available.

Message #13 received at 44422-done <at> debbugs.gnu.org (full text, mbox):

From: Karl Berry <karl <at> freefriends.org>
To: 44422-done <at> debbugs.gnu.org
Date: Mon, 16 Nov 2020 19:23:48 -0700



bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 15 Dec 2020 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 131 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.