[MacPorts] #65534: nspr @4.34+universal arm64, x86_64 fails to build
MacPorts
noreply at macports.org
Thu Jul 28 17:38:06 UTC 2022
#65534: nspr @4.34+universal arm64,x86_64 fails to build
-----------------------+--------------------
Reporter: potterpg | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: nspr |
-----------------------+--------------------
Comment (by kencu):
well fixing nspr to use the proper flags during compiling and linking just
runs into an error when it tries to run the arm64 binary on the intel
system :>
So paradoxically the "bad" fix above, which does the wrong thing with the
archs, actually works... hah.
{{{
Executing: cd "/opt/local/var/macports/build/_opt_macports-
ports_devel_nspr/nspr/work/nspr-4.34/nspr-arm64" && /usr/bin/make -j8 -w
all
make: Entering directory `/opt/local/var/macports/build/_opt_macports-
ports_devel_nspr/nspr/work/nspr-4.34/nspr-arm64'
/Library/Developer/CommandLineTools/usr/bin/make -C config export
make[1]: Entering directory `/opt/local/var/macports/build/_opt_macports-
ports_devel_nspr/nspr/work/nspr-4.34/nspr-arm64/config'
/usr/bin/clang -arch arm64 -o now.o -c -I/opt/local/include
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -pipe -Os
-arch arm64 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk
-Wall -fno-common -pthread -Os -fPIC -UDEBUG -DPACKAGE_NAME=\"\"
-DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\"
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DNDEBUG=1 -DXP_UNIX=1
-DDARWIN=1 -DHAVE_BSD_FLOCK=1 -DHAVE_SOCKLEN_T=1
-DHAVE_POINTER_LOCALTIME_R=1 -DHAS_CONNECTX=1 -DHAVE_CRT_EXTERNS_H=1
-DHAVE_DLADDR=1 -DHAVE_LCHOWN=1 -DHAVE_SETPRIORITY=1 -DHAVE_STRERROR=1
-DHAVE_SYSCALL=1 -DFORCE_PR_LOG -D_PR_PTHREADS -UHAVE_CVAR_BUILT_ON_SEM
now.c
/usr/bin/clang -arch arm64 now.o -L/opt/local/lib
-Wl,-headerpad_max_install_names -arch arm64
-Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -o
now
/usr/bin/clang -arch arm64 -o nsinstall.o -c -I/opt/local/include
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -pipe -Os
-arch arm64 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk
-Wall -fno-common -pthread -Os -fPIC -UDEBUG -DPACKAGE_NAME=\"\"
-DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\"
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DNDEBUG=1 -DXP_UNIX=1
-DDARWIN=1 -DHAVE_BSD_FLOCK=1 -DHAVE_SOCKLEN_T=1
-DHAVE_POINTER_LOCALTIME_R=1 -DHAS_CONNECTX=1 -DHAVE_CRT_EXTERNS_H=1
-DHAVE_DLADDR=1 -DHAVE_LCHOWN=1 -DHAVE_SETPRIORITY=1 -DHAVE_STRERROR=1
-DHAVE_SYSCALL=1 -DFORCE_PR_LOG -D_PR_PTHREADS -UHAVE_CVAR_BUILT_ON_SEM
nsinstall.c
/usr/bin/clang -arch arm64 nsinstall.o -L/opt/local/lib
-Wl,-headerpad_max_install_names -arch arm64
-Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -o
nsinstall
rm -f nfspwd; cp nfspwd.pl nfspwd; chmod +x nfspwd
rm -f ../dist/bin/nspr-config
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_macports-
ports_devel_nspr/nspr/work/nspr-4.34/nspr-arm64/config'
/Library/Developer/CommandLineTools/usr/bin/make -C pr export
make[1]: Entering directory `/opt/local/var/macports/build/_opt_macports-
ports_devel_nspr/nspr/work/nspr-4.34/nspr-arm64/pr'
/Library/Developer/CommandLineTools/usr/bin/make -C include export
make[2]: Entering directory `/opt/local/var/macports/build/_opt_macports-
ports_devel_nspr/nspr/work/nspr-4.34/nspr-arm64/pr/include'
/Library/Developer/CommandLineTools/usr/bin/make -C md export
make[3]: Entering directory `/opt/local/var/macports/build/_opt_macports-
ports_devel_nspr/nspr/work/nspr-4.34/nspr-arm64/pr/include/md'
../../../config/./nsinstall -R -m 444 ./_aix32.cfg ./_aix64.cfg
./_bsdi.cfg ./_darwin.cfg ./_freebsd.cfg ./_hpux32.cfg ./_hpux64.cfg
./_linux.cfg ./_netbsd.cfg ./_nto.cfg ./_openbsd.cfg ./_os2.cfg ./_qnx.cfg
./_riscos.cfg ./_scoos.cfg ./_solaris.cfg ./_unixware.cfg ./_unixware7.cfg
./_win95.cfg ./_winnt.cfg ../../../dist/include/nspr/md
make[3]: ../../../config/./nsinstall: Bad CPU type in executable
make[3]: *** [export] Error 1
}}}
--
Ticket URL: <https://trac.macports.org/ticket/65534#comment:10>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list