CGO Linking Issue on macOS
With the latest v2.2.14
, I'm encountering the following issue building on macOS:
/usr/local/go/pkg/tool/darwin_arm64/link: running clang++ failed: exit status 1
/usr/bin/clang++ -arch arm64 -Wl,-headerpad,1144 -o $WORK/b088/exe/a.out /var/folders/db/q1bfj6z50835dfj20c73z16r0000gn/T/go-link-2966711230/go.o /var/folders/db/q1bfj6z50835dfj20c73z16r0000gn/T/go-link-2966711230/000000.o /var/folders/db/q1bfj6z50835dfj20c73z16r0000gn/T/go-link-2966711230/000001.o /var/folders/db/q1bfj6z50835dfj20c73z16r0000gn/T/go-link-2966711230/000002.o /var/folders/db/q1bfj6z50835dfj20c73z16r0000gn/T/go-link-2966711230/000003.o /var/folders/db/q1bfj6z50835dfj20c73z16r0000gn/T/go-link-2966711230/000004.o /var/folders/db/q1bfj6z50835dfj20c73z16r0000gn/T/go-link-2966711230/000005.o /var/folders/db/q1bfj6z50835dfj20c73z16r0000gn/T/go-link-2966711230/000006.o /var/folders/db/q1bfj6z50835dfj20c73z16r0000gn/T/go-link-2966711230/000007.o /var/folders/db/q1bfj6z50835dfj20c73z16r0000gn/T/go-link-2966711230/000008.o /var/folders/db/q1bfj6z50835dfj20c73z16r0000gn/T/go-link-2966711230/000009.o /var/folders/db/q1bfj6z50835dfj20c73z16r0000gn/T/go-link-2966711230/000010.o /var/folders/db/q1bfj6z50835dfj20c73z16r0000gn/T/go-link-2966711230/000011.o /var/folders/db/q1bfj6z50835dfj20c73z16r0000gn/T/go-link-2966711230/000012.o /var/folders/db/q1bfj6z50835dfj20c73z16r0000gn/T/go-link-2966711230/000013.o /var/folders/db/q1bfj6z50835dfj20c73z16r0000gn/T/go-link-2966711230/000014.o -O2 -g -g -Wl,--allow-multiple-definition -framework CoreServices -framework CoreAudio -framework CoreMIDI -framework CoreFoundation -lresolv -O2 -g -framework CoreFoundation
ld: unknown options: --allow-multiple-definition
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
XCode 16.1, macOS 14.7 on arm64.