[MacPorts] #64013: Testing fails: ld: dynamic main executables must link with libSystem.dylib for architecture x86_64
MacPorts
noreply at macports.org
Sat Nov 20 07:17:06 UTC 2021
#64013: Testing fails: ld: dynamic main executables must link with libSystem.dylib
for architecture x86_64
-------------------------+-----------------------------
Reporter: ryandesign | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone: MacPorts Future
Component: base | Version: 2.7.1
Resolution: | Keywords: monterey
Port: |
-------------------------+-----------------------------
Changes (by ryandesign):
* keywords: => monterey
Old description:
> Testing base fails on macOS 11:
>
> {{{
> ===> making test in src/machista1.0
> clang -dynamiclib -g -O2 -std=c99 -Wextra -Wall -pedantic -fPIC
> -Wl,-single_module \
> $(if [ 20 -lt 10 ]; then echo "-arch i386 -arch ppc";
> elif [ 20 -lt 20 ]; then echo "-arch x86_64 -arch i386"; else echo "-arch
> x86_64 -arch arm64"; fi) \
> -nostdlib \
> -install_name tests/libmachista-test-dependency.dylib \
> tests/empty.c \
> -o tests/libmachista-test-dependency.dylib
> ld: dynamic main executables must link with libSystem.dylib for
> architecture x86_64
> clang: error: linker command failed with exit code 1 (use -v to see
> invocation)
> make[2]: *** [tests/libmachista-test-dependency.dylib] Error 1
> make[1]: *** [test] Error 1
> make: *** [test] Error 1
> }}}
New description:
Testing base fails on macOS 12:
{{{
===> making test in src/machista1.0
clang -dynamiclib -g -O2 -std=c99 -Wextra -Wall -pedantic -fPIC
-Wl,-single_module \
$(if [ 20 -lt 10 ]; then echo "-arch i386 -arch ppc"; elif
[ 20 -lt 20 ]; then echo "-arch x86_64 -arch i386"; else echo "-arch
x86_64 -arch arm64"; fi) \
-nostdlib \
-install_name tests/libmachista-test-dependency.dylib \
tests/empty.c \
-o tests/libmachista-test-dependency.dylib
ld: dynamic main executables must link with libSystem.dylib for
architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
make[2]: *** [tests/libmachista-test-dependency.dylib] Error 1
make[1]: *** [test] Error 1
make: *** [test] Error 1
}}}
--
Comment:
We only see this on macOS 12,
both [https://build.macports.org/builders/base-
12_arm64/builds/6/steps/test/logs/stdio on arm64]
and [https://build.macports.org/builders/base-
12_x86_64/builds/7/steps/test/logs/stdio on x86_64].
--
Ticket URL: <https://trac.macports.org/ticket/64013#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list