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