[MacPorts] #66820: boost 181 at 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
Fri Feb 3 09:23:56 UTC 2023
#66820: boost 181 at 1.81.0+universal: "combined" is not a known value of feature
<architecture> :info:build error: legal values: "x86" ... "arm+x86"
--------------------+--------------------
Reporter: kaamui | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port:
--------------------+--------------------
Boost 1.81.1 fails to build on Mac M1 with the following output :
{{{
sudo port install boost181 +universal
---> Computing dependencies for boost181
---> Fetching archive for boost181
---> Attempting to fetch
boost181-1.81.0_4+no_single+no_static+python310+universal.darwin_21.arm64-x86_64.tbz2
from https://packages.macports.org/boost181
---> Attempting to fetch
boost181-1.81.0_4+no_single+no_static+python310+universal.darwin_21.arm64-x86_64.tbz2
from https://fra.de.packages.macports.org/boost181
---> Attempting to fetch
boost181-1.81.0_4+no_single+no_static+python310+universal.darwin_21.arm64-x86_64.tbz2
from https://nue.de.packages.macports.org/boost181
---> Fetching distfiles for boost181
---> Verifying checksums for boost181
---> Extracting boost181
---> Applying patches to boost181
---> Configuring boost181
---> Building boost181
Error: Failed to build boost181: command execution failed
Error: See
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_boost181/boost181/main.log
for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe
there is a bug.
Error: Processing of port boost181 failed
}}}
main.log is attached, but the issue seems to be related to the fact that
"combined" case previously used was replaced by "arm+x86", but not
everywhere apparently.
{{{
:info:build
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_boost181/boost181/work/boost_1_81_0/tools/build/src/build/feature.jam:491:
in feature.validate-value-string from module feature
:info:build error: "combined" is not a known value of feature
<architecture>
:info:build error: legal values: "x86" "ia64" "sparc" "power" "loongarch"
"mips" "mips1" "mips2" "mips3" "mips4" "mips32" "mips32r2" "mips64"
"parisc" "arm" "riscv" "s390x" "arm+x86"
:info:build
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_boost181/boost181/work/boost_1_81_0/tools/build/src/build/property.jam:337:
in validate1 from module property
:info:build
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_boost181/boost181/work/boost_1_81_0/tools/build/src/build/property.jam:363:
in property.validate from module property
:info:build
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_boost181/boost181/work/boost_1_81_0/tools/build/src/build
/build-request.jam:286: in convert-command-line-element from module build-
request
:info:build
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_boost181/boost181/work/boost_1_81_0/tools/build/src/build
/build-request.jam:222: in build-request.convert-command-line-elements
from module build-request
:info:build
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_boost181/boost181/work/boost_1_81_0/tools/build/src
/build-system.jam:774: in load from module build-system
:info:build
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_boost181/boost181/work/boost_1_81_0/tools/build/src/kernel/modules.jam:294:
in import from module modules
:info:build
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_boost181/boost181/work/boost_1_81_0/tools/build/src/kernel/bootstrap.jam:135:
in module scope from module
}}}
Note that Boost 1.81.0 adds a workaround that could resolve boost issues
in universal variant : https://trac.macports.org/ticket/64954
https://trac.macports.org/ticket/66686
https://github.com/boostorg/build/commit/d312a161524213b7966eec440158f38fbaa497c2
Fixing Boost 1.81.0 compilation would probably enable boost but also
poppler (that depends on boost 1.76 actually, should be upgraded to
1.81.0) as universal packages
--
Ticket URL: <https://trac.macports.org/ticket/66820>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list