Fix autoconf CPU detection on Raspberry Pi#101
Open
AlgorithMan-de wants to merge 1 commit intorbowler:masterfrom
Open
Fix autoconf CPU detection on Raspberry Pi#101AlgorithMan-de wants to merge 1 commit intorbowler:masterfrom
AlgorithMan-de wants to merge 1 commit intorbowler:masterfrom
Conversation
Autoconf falsely detects an "armv7l" CPU on Cortex machines like several Raspberry Pi 3 and 4 models, when they run in 32 bit mode (which they do in current versions of Raspberry Pi OS (previously called Raspbian). This change works around the issue by correcting the host_cpu in configure.ac. See also - https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70210 - https://savannah.gnu.org/support/index.php?110360
|
Good |
Contributor
|
This doesn't work for me. lscpu | grep 'Model name' | cut -d: -f2 | xargs | tr '[:upper:]' '[:lower:]' results in the following output: armv7 processor rev 4 (v7l) and assigning this string to host_cpu is results in failures when make is run. The original suggestion of setting host_cpu to cortex-a53 works ok for me but I don't know if it works in every other possible case. |
Author
|
host_cpu=cortex-a53 works on Raspberry Pi 3, but Raspberry Pi 4 has cortex-a72. It might be backwards compatible. would host_cpu=armv7 work? Then another |
Author
|
armv7 doesn't seem to be a legal value, but arm7 is. So |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Autoconf falsely detects an "armv7l" CPU on Cortex
machines like several Raspberry Pi 3 and 4 models,
when they run in 32 bit mode (which they do in
current versions of Raspberry Pi OS (previously
called Raspbian).
This change works around the issue by correcting the
host_cpu in configure.ac.
See also