Open barracuda156 opened 5 months ago
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
@trufae The build is broken for unrelated reason: https://github.com/radareorg/radare2/issues/22955
I will check what’s going on with the triple here. Even if affecting nothing, it will be nice to have it fixed.
Can you do the fix in https://github.com/radareorg/acr/blob/ac9f0d400a6152d04fa30cffea2c79c29ab156cd/src/acr-sh#L1628 to generate the right triplet?
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