[MacPorts] #65534: nspr @4.34+universal arm64, x86_64 fails to build
MacPorts
noreply at macports.org
Thu Jul 28 17:43:02 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):
removing the muniversal PortGroup throws an "i386" arch into the mix based
on the ancient coding of this build system, which fails:
{{{
---> Building nspr
Executing: cd "/opt/local/var/macports/build/_opt_macports-
ports_devel_nspr/nspr/work/nspr-4.34/nspr" && /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'
/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/config'
/usr/bin/clang -arch i386 -o now.o -c -I/opt/local/include
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -pipe -Os
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -arch arm64
-arch x86_64 -Wall -fno-common -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
-DFORCE_PR_LOG -D_PR_PTHREADS -UHAVE_CVAR_BUILT_ON_SEM now.c
/usr/bin/clang -arch i386 now.o -L/opt/local/lib
-Wl,-headerpad_max_install_names
-Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk
-arch arm64 -arch x86_64 -o now
ld: warning: The i386 architecture is deprecated for macOS (remove from
the Xcode build setting: ARCHS)
ld: warning: ignoring file
/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/lib/libSystem.tbd,
missing required architecture i386 in file
/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/lib/libSystem.tbd
(3 slices)
Undefined symbols for architecture i386:
"___stdoutp", referenced from:
_main in now.o
"_fprintf", referenced from:
_main in now.o
"_time", referenced from:
_main in now.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
make[1]: *** [now] Error 1
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_macports-
ports_devel_nspr/nspr/work/nspr-4.34/nspr/config'
make: *** [export] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_macports-
ports_devel_nspr/nspr/work/nspr-4.34/nspr'
Command failed: cd "/opt/local/var/macports/build/_opt_macports-
ports_devel_nspr/nspr/work/nspr-4.34/nspr" && /usr/bin/make -j8 -w all
Exit code: 2
}}}
--
Ticket URL: <https://trac.macports.org/ticket/65534#comment:11>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list