[MacPorts] #66820: boost181 @1.81.0+universal: "combined" is not a known value of feature <architecture> :info:build error: legal values: "x86" ... "arm+x86"
MacPorts
noreply at macports.org
Wed Feb 8 08:01:07 UTC 2023
#66820: boost181 @1.81.0+universal: "combined" is not a known value of feature
<architecture> :info:build error: legal values: "x86" ... "arm+x86"
-----------------------+-----------------------
Reporter: kaamui | Owner: michaelld
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: boost181 |
-----------------------+-----------------------
Comment (by kaamui):
Using the script of Jesse in [https://stackoverflow.com/a/69924892/4759678
this thread], I was able to compile boost 1.81.0 as a universal binary.
It seems to be a configuration issue on boost's side, when using the
`arm+x86` option.
boost issue => https://github.com/boostorg/coroutine/issues/60
Maybe the linkflags option is helping the linker not to fail for
coroutine_context, and is what's missing when `arm+x86` option is used :
`./b2 toolset=clang-darwin target-os=darwin architecture=arm abi=aapcs
cxxflags="-arch arm64" cflags="-arch arm64" linkflags="-arch arm64" -a`
in the main.log file
[https://trac.macports.org/attachment/ticket/66820/main.log#L627 L627], we
can see that patches are applied for `sysv` architecture, where I'm on a
arm64 (hence `aapcs` architecture). Maybe these patches are applied
independently of the arch, maybe some equivalent patches are missing for
`aapcs` architecture.
--
Ticket URL: <https://trac.macports.org/ticket/66820#comment:9>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list