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

  1. Newsgroups: gnu.gcc.help
  2. Path: sparky!uunet!kithrup!cygnus.com!zoo
  3. From: zoo@cygnus.com (david d 'zoo' zuhn)
  4. Subject: Re: installing gcc linker (ld)
  5. X-Md4-Signature: 796e8ab8f16556f2173a375c72eba996
  6. Organization: Cygnus Support -- +1 415 322 3816
  7. Distribution: gnu
  8. Date: Tue, 21 Jul 1992 18:44:50 GMT
  9. Message-ID: <ZOO.92Jul21134450@cirdan.cygnus.com>
  10. In-Reply-To: jclark@sdcc3.ucsd.edu's message of 21 Jul 92 18: 55:22 GMT
  11. References: <9207162210.AA26434@cod.nosc.mil> <1992Jul18.190052.11346@utkux1.utk.edu>
  12.     <35900@sdcc12.ucsd.edu>
  13. Sender: news@kithrup.COM (Network News)
  14. Nntp-Posting-Host: cirdan.cygnus.com
  15. Lines: 22
  16.  
  17.  
  18.    +laser3$ ld -d -r -Bstatic -o test2.o test.o
  19.    +ld: test.o: wrong machine type
  20.    +collect: /usr/bin/ld returned 4 exit status
  21.  
  22.    However, your stated command line seems to indicate that you're
  23.    using the sparc 'ld' rather than
  24.    '/usr/local/lib/gcc-lib/sun3/2.2.2/ld' (or something to that
  25.    effect).
  26.  
  27. Actually, what's probably happening here is that collect is being
  28. installed for the cross-compiler, and collect has buried in it some
  29. hardcoded pathnames for where to find the system linker.  
  30.  
  31. You need to remove the ld in $(libsubdir)/ld and replace that with the
  32. cross-linker.  The linker in the binutils should work just find for a
  33. cross-68k environment.
  34.  
  35.  
  36.   david d 'zoo' zuhn |  
  37.     cygnus support   |  "Man made it, man can fix it."
  38.     zoo@cygnus.com   |          -- anonymous biker in South Dakota
  39.