Opened 2 years ago

Closed 2 years ago

Last modified 19 months ago

#64013 closed defect (fixed)

Testing fails on macOS 12: ld: dynamic main executables must link with libSystem.dylib for architecture x86_64

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by:
Priority: Normal Milestone: MacPorts 2.8.0
Component: base Version: 2.7.1
Keywords: monterey Cc:
Port:

Description (last modified by ryandesign (Ryan Carsten Schmidt))

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

Change History (4)

comment:1 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: monterey added

We only see this on macOS 12, both on arm64 and on x86_64.

comment:2 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: Testing fails: ld: dynamic main executables must link with libSystem.dylib for architecture x86_64Testing fails on macOS 12: ld: dynamic main executables must link with libSystem.dylib for architecture x86_64

comment:3 Changed 2 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

comment:4 Changed 19 months ago by jmroot (Joshua Root)

Milestone: MacPorts FutureMacPorts 2.8.0
Note: See TracTickets for help on using tickets.