• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Building gcc
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Building gcc


  • Subject: Building gcc
  • From: Frode <email@hidden>
  • Date: Fri, 21 Oct 2005 17:53:03 +0200

Hi!

I'm building gcc 4.0.0 (build 4061) but fails to do this when ".libs/libstdc++.6.0.3.dylib" is about to get linked. Ld reports:


ld: .libs/mt_allocator.o malformed object, illegal reference for -dynamic code (reference to a coalesced section (__TEXT,__textcoal_nt) from section (__TEXT,__eh_frame) relocation entry (4))
ld: .libs/mt_allocator.o malformed object, illegal reference for -dynamic code (reference to a coalesced section (__TEXT,__textcoal_nt) from section (__TEXT,__eh_frame) relocation entry (8))
ld: .libs/mt_allocator.o malformed object, illegal reference for -dynamic code (reference to a coalesced section (__TEXT,__textcoal_nt) from section (__TEXT,__eh_frame) relocation entry (12))
ld: .libs/mt_allocator.o malformed object, illegal reference for -dynamic code (reference to a coalesced section (__TEXT,__textcoal_nt) from section (__TEXT,__eh_frame) relocation entry (52))
ld: .libs/ctype.o malformed object, illegal reference for -dynamic code (reference to a coalesced section (__TEXT,__textcoal_nt) from section (__TEXT,__eh_frame) relocation entry (48))
ld: .libs/ctype.o malformed object, illegal reference for -dynamic code (reference to a coalesced section (__TEXT,__textcoal_nt) from section (__TEXT,__eh_frame) relocation entry (52))
ld: .libs/ctype.o malformed object, illegal reference for -dynamic code (reference to a coalesced section (__TEXT,__textcoal_nt) from section (__TEXT,__eh_frame) relocation entry (56))
ld: .libs/ctype.o malformed object, illegal reference for -dynamic code (reference to a coalesced section (__TEXT,__textcoal_nt) from section (__TEXT,__eh_frame) relocation entry (92))
ld: .libs/ctype.o malformed object, illegal reference for -dynamic code (reference to a coalesced section (__TEXT,__textcoal_nt) from section (__TEXT,__eh_frame) relocation entry (96))
ld: .libs/ctype.o malformed object, illegal reference for -dynamic code (reference to a coalesced section (__TEXT,__textcoal_nt) from section (__TEXT,__eh_frame) relocation entry (100))
ld: .libs/ctype.o malformed object, illegal reference for -dynamic code (reference to a coalesced section (__TEXT,__textcoal_nt) from section (__TEXT,__eh_frame) relocation entry (104))
ld: .libs/ctype.o malformed object, illegal reference for -dynamic code (reference to a coalesced section (__TEXT,__textcoal_nt) from section (__TEXT,__eh_frame) relocation entry (108))
ld: .libs/functexcept.o malformed object, illegal reference for -dynamic code (reference to a coalesced section (__TEXT,__textcoal_nt) from section (__TEXT,__eh_frame) relocation entry (66))
.
.
.
etc.


I'm not sure I understand what this mean. How can I fix this?

I started the build by following the hints in README.Apple:

	mkdir -p build/obj build/dst build/sym
	gnumake install RC_OS=macos RC_ARCHS=ppc TARGETS=ppc \
		SRCROOT=`pwd` OBJROOT=`pwd`/build/obj \
		DSTROOT=`pwd`/build/dst SYMROOT=`pwd`/build/sym


Thanks for any help! /Roger

8< ------------------- This is the link command that fails

/Volumes/Veber/darwin/src_rcs_download/gcc-4061/build/obj/obj-powerpc- powerpc/gcc/xgcc -shared-libgcc -B/Volumes/Veber/darwin/src_rcs_download/gcc-4061/build/obj/obj- powerpc-powerpc/gcc/ -nostdinc++ -L/Volumes/Veber/darwin/src_rcs_download/gcc-4061/build/obj/obj- powerpc-powerpc/powerpc-apple-darwin7/libstdc++-v3/src -L/Volumes/Veber/darwin/src_rcs_download/gcc-4061/build/obj/obj- powerpc-powerpc/powerpc-apple-darwin7/libstdc++-v3/src/.libs -B/usr/powerpc-apple-darwin7/bin/ -B/usr/powerpc-apple-darwin7/lib/ -isystem /usr/powerpc-apple-darwin7/include -isystem /usr/powerpc-apple-darwin7/sys-include -dynamiclib -flat_namespace -undefined suppress -o .libs/libstdc++.6.0.3.dylib .libs/bitmap_allocator.o .libs/pool_allocator.o .libs/mt_allocator.o .libs/codecvt.o .libs/complex_io.o .libs/ctype.o .libs/debug.o .libs/debug_list.o .libs/functexcept.o .libs/globals_locale.o .libs/globals_io.o .libs/ios.o .libs/ios_failure.o .libs/ios_init.o .libs/ios_locale.o .libs/limits.o .libs/list.o .libs/locale.o .libs/locale_init.o .libs/locale_facets.o .libs/localename.o .libs/stdexcept.o .libs/strstream.o .libs/tree.o .libs/allocator-inst.o .libs/concept-inst.o .libs/fstream-inst.o .libs/ext-inst.o .libs/io-inst.o .libs/istream-inst.o .libs/locale-inst.o .libs/locale-misc-inst.o .libs/misc-inst.o .libs/ostream-inst.o .libs/sstream-inst.o .libs/streambuf-inst.o .libs/string-inst.o .libs/valarray-inst.o .libs/wlocale-inst.o .libs/wstring-inst.o .libs/atomicity.o .libs/codecvt_members.o .libs/collate_members.o .libs/ctype_members.o .libs/messages_members.o .libs/monetary_members.o .libs/numeric_members.o .libs/time_members.o .libs/basic_file.o .libs/c++locale.o .libs/libstdc++.lax/libmath.a/signbit.o .libs/libstdc++.lax/libmath.a/stubs.o .libs/libstdc++.lax/libsupc++convenience.a/cp-demangle.o .libs/libstdc++.lax/libsupc++convenience.a/del_op.o .libs/libstdc++.lax/libsupc++convenience.a/del_opnt.o .libs/libstdc++.lax/libsupc++convenience.a/del_opv.o .libs/libstdc++.lax/libsupc++convenience.a/del_opvnt.o .libs/libstdc++.lax/libsupc++convenience.a/eh_alloc.o .libs/libstdc++.lax/libsupc++convenience.a/eh_aux_runtime.o .libs/libstdc++.lax/libsupc++convenience.a/eh_catch.o .libs/libstdc++.lax/libsupc++convenience.a/eh_exception.o .libs/libstdc++.lax/libsupc++convenience.a/eh_globals.o .libs/libstdc++.lax/libsupc++convenience.a/eh_personality.o .libs/libstdc++.lax/libsupc++convenience.a/eh_term_handler.o .libs/libstdc++.lax/libsupc++convenience.a/eh_terminate.o .libs/libstdc++.lax/libsupc++convenience.a/eh_throw.o .libs/libstdc++.lax/libsupc++convenience.a/eh_type.o .libs/libstdc++.lax/libsupc++convenience.a/eh_unex_handler.o .libs/libstdc++.lax/libsupc++convenience.a/guard.o .libs/libstdc++.lax/libsupc++convenience.a/new_handler.o .libs/libstdc++.lax/libsupc++convenience.a/new_op.o .libs/libstdc++.lax/libsupc++convenience.a/new_opnt.o .libs/libstdc++.lax/libsupc++convenience.a/new_opv.o .libs/libstdc++.lax/libsupc++convenience.a/new_opvnt.o .libs/libstdc++.lax/libsupc++convenience.a/pure.o .libs/libstdc++.lax/libsupc++convenience.a/tinfo.o .libs/libstdc++.lax/libsupc++convenience.a/tinfo2.o .libs/libstdc++.lax/libsupc++convenience.a/vec.o .libs/libstdc++.lax/libsupc++convenience.a/vterminate.o -L/Volumes/Veber/darwin/src_rcs_download/gcc-4061/build/obj/obj- powerpc-powerpc/powerpc-apple-darwin7/libstdc++-v3/src -L/Volumes/Veber/darwin/src_rcs_download/gcc-4061/build/obj/obj- powerpc-powerpc/powerpc-apple-darwin7/libstdc++-v3/src/.libs -lm ../libmath/.libs/libmath.a -lm ../libsupc++/.libs/libsupc++convenience.a -lm -lm -lc -Wl,-single_module -Wl,-flat_namespace -install_name /usr/lib/libstdc++.6.dylib -compatibility_version 7 -current_version 7.3

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Xcode & deployment options
  • Next by Date: Re: Speeding up XCode?
  • Previous by thread: Re: Xcode & deployment options
  • Next by thread: e-mail format
  • Index(es):
    • Date
    • Thread