[MacPorts] #64176: Some perl modules built with +universal only installed arm64 binaries
MacPorts
noreply at macports.org
Fri Dec 10 13:25:47 UTC 2021
#64176: Some perl modules built with +universal only installed arm64 binaries
-------------------------------------------------+-------------------------
Reporter: jgrg | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.7.1
Resolution: | Keywords: arm64
Port: p5-math-random-isaac-xs p5-params- | x86_64 universal
validate p5-www-form-urlencoded-xs |
-------------------------------------------------+-------------------------
Changes (by ryandesign):
* port: => p5-math-random-isaac-xs p5-params-validate p5-www-form-
urlencoded-xs
Comment:
Normally you should file a separate ticket for each separate issue. Each
port will need a separate fix for this issue.
I'm currently on Catalina on which universal building is not possible, but
I can still see from a build log of p5.28-math-random-isaac-xs what the
problem is:
{{{
CFLAGS='-pipe -Os
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -arch
x86_64'
}}}
{{{
LDFLAGS='-L/opt/local/lib -Wl,-headerpad_max_install_names
-Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk
-arch x86_64'
}}}
{{{
---> Building p5.28-math-random-isaac-xs
}}}
{{{
/usr/bin/clang -Isrc -I/opt/local/lib/perl5/5.28/darwin-thread-multi-
2level/CORE -DUSE_INT -c -fno-common -DPERL_DARWIN -pipe -Os -fno-strict-
aliasing -fstack-protector-strong -I/opt/local/include
-DPERL_USE_SAFE_PUTENV -Wno-error=implicit-function-declaration -O3 -o
src/rand.o src/rand.c
/usr/bin/clang -Isrc -I/opt/local/lib/perl5/5.28/darwin-thread-multi-
2level/CORE -DVERSION="1.004" -DXS_VERSION="1.004" -DUSE_INT -c -fno-
common -DPERL_DARWIN -pipe -Os -fno-strict-aliasing -fstack-protector-
strong -I/opt/local/include -DPERL_USE_SAFE_PUTENV -Wno-error=implicit-
function-declaration -O3 -o lib/Math/Random/ISAAC/XS.o
lib/Math/Random/ISAAC/XS.c
ExtUtils::Mkbootstrap::Mkbootstrap('blib/arch/auto/Math/Random/ISAAC/XS/XS.bs')
env LD_RUN_PATH=/opt/local/lib/perl5/5.28/darwin-thread-multi-2level/CORE
/usr/bin/clang -bundle -undefined dynamic_lookup -L/opt/local/lib
-Wl,-headerpad_max_install_names -fstack-protector-strong -o
blib/arch/auto/Math/Random/ISAAC/XS/XS.bundle lib/Math/Random/ISAAC/XS.o
src/rand.o
}}}
The CFLAGS and LDFLAGS MacPorts has requested are not being used.
Presumably the same is true for the other two ports. However each port's
build system will need to be individually investigated to determine why it
is not honoring these flags and how to fix it. I'm not well versed in how
perl modules build. I see a Build.PL file but I don't see any mention of
CFLAGS or LDFLAGS in there so I don't know what needs to be changed. If
you can figure it out, let us know or submit a pull request.
--
Ticket URL: <https://trac.macports.org/ticket/64176#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list