-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Wrong value of triple on PowerPC: PowerMacintosh-unknown-darwin
instead of powerpc-apple-darwin
#22956
Comments
This triplet is generated by acr. would you like to try to submit a pr there to fix the “unknown” id? |
But this shouldnt affect de build |
Can you do the fix in https://github.com/radareorg/acr/blob/ac9f0d400a6152d04fa30cffea2c79c29ab156cd/src/acr-sh#L1628 to generate the right triplet? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Build system misdetects the triple:
The issue is likely that
mk/gcc.mk
usesuname -m
on Darwin, but that does not return the processor family or an arch; on a powerpc Mac is returns a rather unusablePower Macintosh
.What returns the correct value in a case of a
ppc
build isuname -p
. Notice, though, that this still cannot be used with-arch
flag, since it is not the build arch, but cpu family. And forppc64
build the correct triple will bepowerpc64-apple-darwin*
.Also, for macOS it should be
powerpc*-apple-darwin*
; not sure what is the correct value for Pure Darwin (if anyone still uses it).Environment
The text was updated successfully, but these errors were encountered: