home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / gnu / gcc / help / 1755 < prev    next >
Encoding:
Text File  |  1992-07-22  |  1.5 KB  |  42 lines

  1. Newsgroups: gnu.gcc.help
  2. Path: sparky!uunet!darwin.sura.net!mips!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!osf.ORG!meissner
  3. From: meissner@osf.ORG
  4. Subject: Re: installing gcc linker (ld)
  5. Message-ID: <9207221431.AA03131@tiktok.osf.org>
  6. Sender: daemon@cis.ohio-state.edu
  7. Organization: GNUs Not Usenet
  8. References: meissner@osf.ORG
  9. Distribution: gnu
  10. Date: Wed, 22 Jul 1992 06:31:14 GMT
  11. Lines: 29
  12.  
  13. |    +laser3$ ld -d -r -Bstatic -o test2.o test.o
  14. |    +ld: test.o: wrong machine type
  15. |    +collect: /usr/bin/ld returned 4 exit status
  16. |    However, your stated command line seems to indicate that you're
  17. |    using the sparc 'ld' rather than
  18. |    '/usr/local/lib/gcc-lib/sun3/2.2.2/ld' (or something to that
  19. |    effect).
  20. | Actually, what's probably happening here is that collect is being
  21. | installed for the cross-compiler, and collect has buried in it some
  22. | hardcoded pathnames for where to find the system linker.  
  23. | You need to remove the ld in $(libsubdir)/ld and replace that with the
  24. | cross-linker.  The linker in the binutils should work just find for a
  25. | cross-68k environment.
  26.  
  27. Or alternatively, put the real linker as $(libsubdir)/real-ld, and
  28. then you can happily do cross development of GCC and G++ files.  If
  29. your system needs collect, and you replace 'ld' with a real linker,
  30. you will not be able to use static constructors and destructors in
  31. G++.
  32.  
  33. --
  34. Michael Meissner    email: meissner@osf.org        phone: 617-621-8861
  35. Open Software Foundation, 11 Cambridge Center, Cambridge, MA, 02142
  36.  
  37. You are in a twisty little passage of standards, all conflicting.
  38.