![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Hobbyist Programmer
Join Date: May 2005
Location: Indiana
Posts: 130
Rep Power: 4
![]() |
gcc flag errors
I don't know much about compilers yet, but this hasn't happened before; gcc gives me this:
%gcc -c file.c (compiling with -Wall does not produce anything unusual) %gcc -o file file.o ld: fatal: option -dn and -P are incompatible ld: fatal: Flags processing errors collect2: ld returned 1 exit status %gcc -Wall file.c -o file ..... (same stuff for a long time except line # and on different occasion cc**** is different) /usr/ccs/bin/as: "/var/tmp//cct3ZI2F.s", line 514: error: unknown opcode ".uleb128" /usr/ccs/bin/as: "/var/tmp//cct3ZI2F.s", line 514: error: statement syntax object file is generated but not .exe; cc seems to work ok. here's this: %gcc -v Reading specs from /package/GNU/gcc/3.4.3/sparc-sunos5.8/lib/gcc/sparc-sun- solaris2.8/3.4.3/specs Configured with: ../configure --prefix=/package/GNU/gcc/3.4.3/sparc-sunos5.8 --enable- languages=c,c++,f77,objc --disable-libgcj --disable-nls --enable-threads=posix --with- cpu=ultrasparc --host=sparc-sun-solaris2.8 --with-gnu-as --with-gnu-ld --with- as=/usr/site/ecn/bin/as --with-ld=/usr/site/ecn/bin/ld Thread model: posix gcc version 3.4.3 Any ideas what's going on and why? and how to fix this? (i'm ssh-ed into my school's lab machine) Any help is much appreciated. |
|
|
|
|
|
#2 |
|
Hobbyist Programmer
Join Date: May 2005
Location: Indiana
Posts: 130
Rep Power: 4
![]() |
semi-resolved ???
Dunno what the heck it's doing...
started working, but I'm still kind of suspicious. I did not do a thing, just started using cc. After googling for a while with the same "error-message" all I could find is other people's questions about the same thing on similar forums and the only half-answer I saw was: "assembler is producing something different from what gcc expects" .... go figure Oh, yeah, the OPs in those threads/forums didn't come back ... maybe gcc just becomes possessed once in a blue moon :eek: So, if anyone has something to say about this topic (seriously though), I would be interested to know. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|