[MacPorts] #67395: cpuid @1.8.2: build fails on Tiger and Leopard
MacPorts
noreply at macports.org
Tue May 9 01:18:39 UTC 2023
#67395: cpuid @1.8.2: build fails on Tiger and Leopard
---------------------------+--------------------
Reporter: Cebtenzzre | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Keywords: tiger leopard | Port: cpuid
---------------------------+--------------------
I cannot install the cpuid port on Tiger 10.4.8 i386 with Xcode 2.5 or
Leopard 10.5.8 i386 with Xcode 3.1.4. The build fails with this error:
{{{
:info:build /usr/bin/gcc-4.2 -I/opt/local/include -Os -arch i386 -I. -fno-
strict-aliasing -std=gnu89 -Wall -Wextra -Wdeclaration-after-statement
-Wimplicit-function-declaration -Wmissing-declarations -Wmissing-
prototypes -Wno-long-long -Wno-overlength-strings -Wold-style-definition
-Wstrict-prototypes -fPIC -arch x86_64 -MD -c -o cache.o cache.c
:info:build gcc-4.2: -E, -S, -save-temps and -M options are not allowed
with multiple -arch flags
:info:build make: *** [cache.o] Error 1
}}}
Patching `-arch x86_64` out of the Makefile does not work because gcc 4.2
cannot compile cpuid.c anyway:
{{{
gcc-4.2 -I/opt/local/include -Os -arch i386 -I. -fno-strict-aliasing
-std=gnu89 -Wall -Wextra -Wdeclaration-after-statement -Wimplicit-
function-declaration -Wmissing-declarations -Wmissing-prototypes -Wno-
long-long -Wno-overlength-strings -Wold-style-definition -Wstrict-
prototypes -fPIC -MD -c -o cpuid.o cpuid.c
cpuid.c: In function 'cpuid_native':
cpuid.c:153: error: can't find a register in class 'BREG' while reloading
'asm'
cpuid.c:153: error: 'asm' operand has impossible constraints
}}}
The build works fine with gcc-mp-7 or clang-mp-3.4.
--
Ticket URL: <https://trac.macports.org/ticket/67395>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list