Thread View: gnu.gcc.help
1 messages
1 total messages
Started by Steve Creps
Wed, 30 Dec 1992 22:50
GCC 2.3.3 Sun Sparc Solaris 2.1 problem with assembler
Author: Steve Creps
Date: Wed, 30 Dec 1992 22:50
Date: Wed, 30 Dec 1992 22:50
47 lines
2238 bytes
2238 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads