Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jun 10th, 2005, 11:11 PM   #1
EverLearning
Hobbyist Programmer
 
EverLearning's Avatar
 
Join Date: May 2005
Location: Indiana
Posts: 130
Rep Power: 4 EverLearning is on a distinguished road
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.
__________________
got math? yumm...

"All men by nature desire to know" -Aristotle, Metaphysics
EverLearning is offline   Reply With Quote
Old Jun 12th, 2005, 12:44 AM   #2
EverLearning
Hobbyist Programmer
 
EverLearning's Avatar
 
Join Date: May 2005
Location: Indiana
Posts: 130
Rep Power: 4 EverLearning is on a distinguished road
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.
__________________
got math? yumm...

"All men by nature desire to know" -Aristotle, Metaphysics
EverLearning is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 2:02 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC