https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66523
Bug ID: 66523 Summary: the new clang-based assembler in Xcode 7 on 10.11 fails on libobjc/NXConstStr.m Product: gcc Version: 5.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: howarth.at.gcc at gmail dot com Target Milestone: --- Created attachment 35773 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35773&action=edit proposed fix from Iain Sandoe The new clang-based assembler in Xcode 7 fails to build libobjc in FSF gcc 5.1 with the following error... /bin/sh ./libtool --mode=compile /sw/src/fink.build/gcc5-5.1.0-2/darwin_objdir/./gcc/xgcc -B/sw/src/fink.build/gcc5-5.1.0-2/darwin_objdir/./gcc/ -B/sw/lib/gcc5/x86_64-apple-darwin15.0.0/bin/ -B/sw/lib/gcc5/x86_64-apple-darwin15.0.0/lib/ -isystem /sw/lib/gcc5/x86_64-apple-darwin15.0.0/include -isystem /sw/lib/gcc5/x86_64-apple-darwin15.0.0/sys-include /sw/src/fink.build/gcc5-5.1.0-2/gcc-5.1.0/libobjc/NXConstStr.m -c \ -I. -I/sw/src/fink.build/gcc5-5.1.0-2/gcc-5.1.0/libobjc -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -DIN_GCC -DIN_TARGET_LIBS -fno-strict-aliasing -fexceptions -I/sw/src/fink.build/gcc5-5.1.0-2/gcc-5.1.0/libobjc/../gcc -I/sw/src/fink.build/gcc5-5.1.0-2/gcc-5.1.0/libobjc/../gcc/config -I../.././gcc -I/sw/src/fink.build/gcc5-5.1.0-2/gcc-5.1.0/libobjc/../libgcc -I../libgcc -I/sw/src/fink.build/gcc5-5.1.0-2/gcc-5.1.0/libobjc/../include -fgnu-runtime \ -o NXConstStr.lo libtool: compile: /sw/src/fink.build/gcc5-5.1.0-2/darwin_objdir/./gcc/xgcc -B/sw/src/fink.build/gcc5-5.1.0-2/darwin_objdir/./gcc/ -B/sw/lib/gcc5/x86_64-apple-darwin15.0.0/bin/ -B/sw/lib/gcc5/x86_64-apple-darwin15.0.0/lib/ -isystem /sw/lib/gcc5/x86_64-apple-darwin15.0.0/include -isystem /sw/lib/gcc5/x86_64-apple-darwin15.0.0/sys-include /sw/src/fink.build/gcc5-5.1.0-2/gcc-5.1.0/libobjc/NXConstStr.m -c -I. -I/sw/src/fink.build/gcc5-5.1.0-2/gcc-5.1.0/libobjc -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -DIN_GCC -DIN_TARGET_LIBS -fno-strict-aliasing -fexceptions -I/sw/src/fink.build/gcc5-5.1.0-2/gcc-5.1.0/libobjc/../gcc -I/sw/src/fink.build/gcc5-5.1.0-2/gcc-5.1.0/libobjc/../gcc/config -I../.././gcc -I/sw/src/fink.build/gcc5-5.1.0-2/gcc-5.1.0/libobjc/../libgcc -I../libgcc -I/sw/src/fink.build/gcc5-5.1.0-2/gcc-5.1.0/libobjc/../include -fgnu-runtime -fno-common -DPIC -o .libs/NXConstStr.o /var/tmp//ccc9efWx.s:98:17: error: non-local symbol required in directive .no_dead_strip L_OBJC_Module ^ make: *** [NXConstStr.lo] Error 1 The proposed patch from Iain Sandoe suppresses this assembler error and allows libobjc to build under the clang-based assembler.