vorbis icon indicating copy to clipboard operation
vorbis copied to clipboard

Building on macos arm through rosetta terminal causes ld: unknown option

Open maxwalley opened this issue 1 year ago • 2 comments

I am building this on an arm mac though I am using a rosetta based terminal so am building for x86_64.

I run the following commands

./autogen.sh ./configure --prefix=<build_dest> --with-ogg=<ogg 1.3.5 install location> make

and I get the following error message:

CC test_sharedbook-sharedbook.o CCLD test_sharedbook ld: unknown options: -force_cpusubtype_ALL clang: error: linker command failed with exit code 1 (use -v to see invocation) make[3]: *** [test_sharedbook] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2

maxwalley avatar Jan 17 '24 17:01 maxwalley

I also get this error on my Intel Mac Mini (with Xcode 15.0.1 installed, no Rosetta involved, just a straight x86_64 build). Removing the -force_cpusubtype_ALL argument from lines 205, 206, and 207 of the configure.ac file before running autogen.sh seems to avoid the issue.

jfriesne avatar Feb 16 '24 19:02 jfriesne

According to https://github.com/ali-rantakari/trash/issues/43

"-force_cpusubtype_ALL is only relevant when building for PowerPC and is no longer allowed in Xcode 15."

bemoody avatar Jul 25 '24 22:07 bemoody