home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / gnu / gcc / help / 2838 < prev    next >
Encoding:
Text File  |  1992-12-30  |  2.1 KB  |  60 lines

  1. Newsgroups: gnu.gcc.help
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!swrinde!emory!sol.ctr.columbia.edu!usenet.ucs.indiana.edu!silver.ucs.indiana.edu!creps
  3. From: creps@silver.ucs.indiana.edu (Steve Creps)
  4. Subject: GCC 2.3.3 Sun Sparc Solaris 2.1 problem with assembler
  5. Message-ID: <C03GsH.MMD@usenet.ucs.indiana.edu>
  6. Sender: news@usenet.ucs.indiana.edu (USENET News System)
  7. Nntp-Posting-Host: silver.ucs.indiana.edu
  8. Organization: Indiana University
  9. Distribution: gnu
  10. Date: Wed, 30 Dec 1992 22:50:41 GMT
  11. Lines: 47
  12.  
  13.  
  14.    As the subject line says, I'm trying to install gcc 2.3.3 on a Sun
  15. Sparcstation running Solaris 2.1.  I was at first trying to compile it
  16. for Solaris from another Sparcstation running SunOS 4.1, but the
  17. problem seems to be the same even after I pulled the Cygnus binaries
  18. off of ftp.uu.net.  I therefore suspect that the executable for gcc is
  19. OK, but there is a problem with the assembler stuff.
  20.  
  21.    What it looks like is a problem with the assembly pass of a
  22. compile.  If it finds /bin/as it will return some errors about unknown
  23. options 'y' and 's'.  However, when it finds gas compiled for sparc
  24. (built with "make asparc") I seem to consistently get errors for
  25. unknown pseudo-ops.  For example, trying to compile the hello.c file
  26. that came with the Cygnus stuff, I get this:
  27.  
  28. #include <stdio.h>
  29.  
  30. extern int printf();
  31.  
  32. int main(int argc, char **argv) {
  33.         (void) printf("hello: The compilation tools appear to be installed correctly on your %s.\n",
  34.                 MACHINE);
  35.         return(0);
  36. } /* main() */
  37.  
  38.  
  39. Script started on Wed Dec 30 17:40:17 1992
  40. 201% which gcc
  41. /opt/cygnus/bin/gcc
  42. 202% which as
  43. /usr/local/bin/as
  44. 203% gcc hello.c -DMACHINE='"sparc"'
  45. hello.c:2:Unknown pseudo-op:  '.section'
  46. hello.c:2:Rest of line ignored. 1st junk character valued 34 ().
  47. 204% ^D
  48. script done on Wed Dec 30 17:41:07 1992
  49.  
  50.    By the way, the gas executable was built on the Sparc running SunOS
  51. 4.1.
  52.  
  53.    Does anyone see an obvious problem with what I'm doing?  If not,
  54. then what should I look for that could be giving the above error
  55. messages?  Thanks for any help you can give me.
  56.  
  57. -    -    -    -    -    -    -    -    -    -
  58. Steve Creps, Indiana University
  59. creps@silver.ucs.indiana.edu
  60.