• C

Internal compiler error: program ld got fatal signal 6

When i try to compile a little  module for the oracle webserver I get this error from
the linker (on solaris):

bash$ make
gcc     -c -o AWMLcart.o -g -I/internet/home/oracle7//ows/3.0/public AWMLcart.c
gcc -g -L/internet/home/oracle7//ows/3.0/lib -o AWMLcart.so -G AWMLcart.o  -lnsl -lm -lsocket -ldl -laio
gcc: Internal compiler error: program ld got fatal signal 6
*** Error code 1

On another solaris box this works.. It  also works on other modules on this machine..
What does fatal signal 6 mean?

mortenmo
LVL 1
mortenmoAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jtwine100697Commented:
  I believe signal 6 is IOT (IOT Instruction).  Have yuo tried building your module while the load is lower?  (Assuming it might be high when you get the signal...)

-=- James.
0
tdubroffCommented:
I've gotten that error a few times myself.  I think it has to do with the load on the machine.  After several hours of waiting, I'd try again and then everything would work.

-Ted
0
mortenmoAuthor Commented:
It has to be something more.. Since another module isn't doing this and its about the
same size etc..

But then again it does work on another machine.
0
Webinar: Miercom Evaluates Wi-Fi Security

It's not just about Wi-Fi connectivity anymore. A wireless security breach can cost your business large amounts of time, trouble, and expense. Plus, hear first-hand from Miercom how WatchGuard's Wi-Fi security stacks up against the competition in our upcoming webinar!

jtwine100697Commented:
The size of the module does not matter...  It is the load on the machine at the time of compilation.

   Check "uptime" or "who" to see the load on the system at the time of the crash.

-=- James.
0
mortenmoAuthor Commented:
bash$ uptime
 12:56am  up 9 day(s), 23:14,  1 user,  load average: 0.04, 0.07, 0.35
bash$ uname -a
SunOS www 5.5.1 Generic_103640-08 sun4u sparc SUNW,Ultra-2
bash$ make
gcc     -c -o AWMLcart.o -g -I/internet/home/oracle7//ows/3.0/public AWMLcart.c
gcc -g -L/internet/home/oracle7//ows/3.0/lib -o AWMLcart.so -G AWMLcart.o  -lnsl -lm -lsocket -ldl
gcc: Internal compiler error: program ld got fatal signal 6
*** Error code 1
make: Fatal error: Command failed for target `AWMLcart.so'
bash$

Well I tried now in the middle of the night for me.
Don't tell me an ultrasparc2 can't handle 0.04 in load. Might it be something wrong
with my binaries.
0
jtwine100697Commented:
  Well...  Now I am out of ideas...

-=- James.
0
jtwine100697Commented:
  Could it be an incompatable version of "ld" for the version of "gcc" you are using?

-=- James.
0
mortenmoAuthor Commented:
No.. making another module works.. It might be something about what I include in it
Tried to take out parts but it doesnt help. :(
0
jtwine100697Commented:
  Way out of ideas now...  Sorry!

-=- James.
0
braveheartCommented:
Is the version of gcc the same on both machines?
Is it the same gcc executable being used each time?
If not, were they built in identical ways - there are a million and one different configurations.
0
nebekerCommented:
It looks like you're building a shared library, right?  If so, is it possible that the library is being used by another process, and the linker isn't able to open the file to overwrite it?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C

From novice to tech pro — start learning today.