This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: -mmacosx-version-min and libgcc



On Sep 28, 2005, at 7:46 PM, Geoffrey Keating wrote:



When using a shared libgcc, GCC links with '-lgcc_s -lgcc', with the intention of having those symbols in the system's libgcc used from the shared library, but backfilling from the static library if those symbols are not available.

And this breaks building on powerpc-darwin7.9:
output from the build:
make \
CFLAGS="-g -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -fno-common " \
CONFIG_H="tconfig.h auto-host.h /Users/pinskia/src/combine/gcc/gcc/../include/ansidecl.h" TM_H="tm.h options.h /Users/pinskia/src/combine/gcc/gcc/config/rs6000/rs6000.h /Users/pinskia/src/combine/gcc/gcc/config/darwin.h /Users/pinskia/src/combine/gcc/gcc/config/rs6000/darwin.h /Users/pinskia/src/combine/gcc/gcc/config/rs6000/darwin7.h /Users/pinskia/src/combine/gcc/gcc/defaults.h insn-constants.h insn-flags.h options.h" \
INCLUDES="-I. -I. -I/Users/pinskia/src/combine/gcc/gcc -I/Users/pinskia/src/combine/gcc/gcc/. -I/Users/pinskia/src/combine/gcc/gcc/../include -I./../intl -I/Users/pinskia/src/combine/gcc/gcc/../libcpp/include " \
MAKEOVERRIDES= \
-f libgcc.mk all
./xgcc -B./ -B/Users/pinskia/combine/powerpc-apple-darwin7.9.0/bin/ -isystem /Users/pinskia/combine/powerpc-apple-darwin7.9.0/include -isystem /Users/pinskia/combine/powerpc-apple-darwin7.9.0/sys-include -L/Users/pinskia/src/combine/gcc/objdir/gcc/../ld -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -Wa,-force_cpusubtype_ALL -pipe -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -dynamiclib -nodefaultlibs -Wl,-install_name,/Users/pinskia/combine/lib/libgcc_s`if test . != . ; then echo _. ; fi`.1.dylib -Wl,-flat_namespace -o libgcc_s`if test . != . ; then echo _. ; fi`.1.dylib.tmp -Wl,-exported_symbols_list,libgcc/./libgcc.map -compatibility_version 1 -current_version 1.0 libgcc/./_muldi3_s.o libgcc/./_negdi2_s.o libgcc/./_lshrdi3_s.o libgcc/./_ashldi3_s.o libgcc/./_ashrdi3_s.o libgcc/./_cmpdi2_s.o libgcc/./_ucmpdi2_s.o libgcc/./_floatdidf_s.o libgcc/./_floatdisf_s.o libgcc/./_fixunsdfsi_s.o libgcc/./_fixunssfsi_s.o libgcc/./_fixunsdfdi_s.o libgcc/./_fixdfdi_s.o libgcc/./_fixunssfdi_s.o libgcc/./_fixsfdi_s.o libgcc/./_fixxfdi_s.o libgcc/./_fixunsxfdi_s.o libgcc/./_floatdixf_s.o libgcc/./_fixunsxfsi_s.o libgcc/./_fixtfdi_s.o libgcc/./_fixunstfdi_s.o libgcc/./_floatditf_s.o libgcc/./_clear_cache_s.o libgcc/./_enable_execute_stack_s.o libgcc/./_trampoline_s.o libgcc/./__main_s.o libgcc/./_absvsi2_s.o libgcc/./_absvdi2_s.o libgcc/./_addvsi3_s.o libgcc/./_addvdi3_s.o libgcc/./_subvsi3_s.o libgcc/./_subvdi3_s.o libgcc/./_mulvsi3_s.o libgcc/./_mulvdi3_s.o libgcc/./_negvsi2_s.o libgcc/./_negvdi2_s.o libgcc/./_ctors_s.o libgcc/./_ffssi2_s.o libgcc/./_ffsdi2_s.o libgcc/./_clz_s.o libgcc/./_clzsi2_s.o libgcc/./_clzdi2_s.o libgcc/./_ctzsi2_s.o libgcc/./_ctzdi2_s.o libgcc/./_popcount_tab_s.o libgcc/./_popcountsi2_s.o libgcc/./_popcountdi2_s.o libgcc/./_paritysi2_s.o libgcc/./_paritydi2_s.o libgcc/./_powisf2_s.o libgcc/./_powidf2_s.o libgcc/./_powixf2_s.o libgcc/./_powitf2_s.o libgcc/./_mulsc3_s.o libgcc/./_muldc3_s.o libgcc/./_mulxc3_s.o libgcc/./_multc3_s.o libgcc/./_divsc3_s.o libgcc/./_divdc3_s.o libgcc/./_divxc3_s.o libgcc/./_divtc3_s.o libgcc/./_divdi3_s.o libgcc/./_moddi3_s.o libgcc/./_udivdi3_s.o libgcc/./_umoddi3_s.o libgcc/./_udiv_w_sdiv_s.o libgcc/./_udivmoddi4_s.o libgcc/./darwin-tramp_s.o libgcc/./darwin-ldouble_s.o libgcc/./unwind-dw2_s.o libgcc/./unwind-dw2-fde-darwin_s.o libgcc/./unwind-sjlj_s.o libgcc/./unwind-c_s.o libgcc/./darwin-fallback_s.o -lc && if [ -f libgcc_s`if test . != . ; then echo _. ; fi`.1.dylib ]; then mv -f libgcc_s`if test . != . ; then echo _. ; fi`.1.dylib libgcc_s`if test . != . ; then echo _. ; fi`.1.dylib.backup; else true; fi && mv libgcc_s`if test . != . ; then echo _. ; fi`.1.dylib.tmp libgcc_s`if test . != . ; then echo _. ; fi`.1.dylib
ld: warning -L: directory name (/Users/pinskia/src/combine/gcc/objdir/gcc/../ld) does not exist
for mlib in '' ; do \
-o libgcc_s.10.4.dylib_T${mlib} \
-s /Users/pinskia/src/combine/gcc/gcc/config/rs6000/darwin-libgcc.10.4.ver -c -u \
libgcc_s${mlib}.1.dylib || exit 1 ; \
done
/bin/sh: line 1: -o: command not found
make: *** [libgcc_s.10.4.dylib] Error 1


-- Pinski


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]