/usr/lib/crt0.o Undefined symbol ___fpu_control/___setfpucw

/usr/lib/crt0.o Undefined symbol ___fpu_control/___setfpucw

Post by Jason E Ha » Fri, 03 Dec 1993 04:16:29



I have Linux SLS patch 13 and I am encountering the following problem
while trying to compile CircleMud 2.2.0.  BTW this only occures in the making
of CircleMuds' Utils not the actual program.  

/usr/lib/crt0.o Undefined symbol ___fpu_control reference from text segment.
/usr/lib/crt0.o Undefined symbol ___setfpucw reference from text segment.

I have looked at the crt0.S and they are there.  What can I get to fix the    
problem?

Thnks.

Jason


--
_______________________________________________________
     Smile!!!
*   *                Jason Edward Harp        
  ^

 
 
 

/usr/lib/crt0.o Undefined symbol ___fpu_control/___setfpucw

Post by Steve Yelvingt » Fri, 03 Dec 1993 18:37:41



 > I have Linux SLS patch 13 and I am encountering the following problem
 > while trying to compile CircleMud 2.2.0.  BTW this only occures in the making
 > of CircleMuds' Utils not the actual program.  

 > /usr/lib/crt0.o Undefined symbol ___fpu_control reference from text segment.
 > /usr/lib/crt0.o Undefined symbol ___setfpucw reference from text segment.

I ran into the same problem while compiling a version of man. I'm actually
glad to see that somebody else is running into this -- I thought I might
have bollixed up some obscure point while upgrading my libraries (to 4.4.4).

Does anybody have an answer for this?

--

Assistant news editor/metro, Star Tribune, Minneapolis (work) 612-673-4460

 
 
 

/usr/lib/crt0.o Undefined symbol ___fpu_control/___setfpucw

Post by Olaf Fleb » Fri, 03 Dec 1993 20:17:44



Quote:>I have Linux SLS patch 13 and I am encountering the following problem
>while trying to compile CircleMud 2.2.0.  BTW this only occures in the making
>of CircleMuds' Utils not the actual program.  
>/usr/lib/crt0.o Undefined symbol ___fpu_control reference from text segment.
>/usr/lib/crt0.o Undefined symbol ___setfpucw reference from text segment.
>I have looked at the crt0.S and they are there.  What can I get to fix the    
>problem?
>Thnks.
>Jason

[ I am wondering how many people managed to corrupt their libraries ]

Somehow you have installed different versions of crt0.o and libc.*

Please get packages/GCC/release.libc-4.4.4 from tsx-11 or sunsite and
update your libs according to the instructions in ths file.

You need image-4.4.4 (and inc-4.4.4 if you have not installed versions
4.4.4 before)

Cheers
  Olaf
--
  Olaf Flebbe,  Theoretische Astrophysik Tuebingen

 
 
 

/usr/lib/crt0.o Undefined symbol ___fpu_control/___setfpucw

Post by Hal N. Broo » Fri, 03 Dec 1993 20:39:42




> > I have Linux SLS patch 13 and I am encountering the following problem
> > while trying to compile CircleMud 2.2.0.  BTW this only occures in the making
> > of CircleMuds' Utils not the actual program.  

> > /usr/lib/crt0.o Undefined symbol ___fpu_control reference from text segment.
> > /usr/lib/crt0.o Undefined symbol ___setfpucw reference from text segment.

>I ran into the same problem while compiling a version of man. I'm actually
>glad to see that somebody else is running into this -- I thought I might
>have bollixed up some obscure point while upgrading my libraries (to 4.4.4).

>Does anybody have an answer for this?

When you use the -g option of gcc, /usr/lib/gcrt0.o is linked in rather
than /usr/lib/crt0.o.

With the libc-4.4.4 distribution, /usr/lib/gcrt0.o is only available in
the extra-4.4.4.tar.gz file.

Either get /usr/lib/gcrt0.o out of extra-4.4.4.tar.gz, or don't use
the -g option of gcc.

======================================================================

======================================================================

 
 
 

/usr/lib/crt0.o Undefined symbol ___fpu_control/___setfpucw

Post by Christian Holt » Sat, 04 Dec 1993 01:45:46




> > I have Linux SLS patch 13 and I am encountering the following problem
> > while trying to compile CircleMud 2.2.0.  BTW this only occures in the making
> > of CircleMuds' Utils not the actual program.  
> > /usr/lib/crt0.o Undefined symbol ___fpu_control reference from text segment.
> > /usr/lib/crt0.o Undefined symbol ___setfpucw reference from text segment.
>I ran into the same problem while compiling a version of man. I'm actually
>glad to see that somebody else is running into this -- I thought I might
>have bollixed up some obscure point while upgrading my libraries (to 4.4.4).
>Does anybody have an answer for this?
>--

>Assistant news editor/metro, Star Tribune, Minneapolis (work) 612-673-4460

I have had these problems too. However, I have a solution.

The problem stems from adding the -g debug flag for gcc.
If you remove the -g flag, it works fine.
What also works is adding the -lc flag as well (this includes the libc
libraries which seems to have these symbols within).

Places in the Makefile you can fix this at:
You usually find the -g flag at one of two places:
CC=gcc -g -O -JUNK -ETC
or at
CFLAGS= -g -O -JUNK -ETC -DMORE_STUFF

Removing the -g or addin the -lc here will fix the problems.
To be truthful, adding the -lc to these lines isn't elegent, but it
works. (they belong on a line LIBS= or something similar)

What I'd like to know is why isn't this figured out on it's own?
That is, why isn't gcc smart enough to know what it need for
debugging?

        Helpfully,
                Doc

_________From the computer of --Doctor What--____________________(C. Holtje)___

]   Mail me for help, a  |          Yappappaa yappappaa iishanten             [
]   subscription to my   |            Hashagu koi wa ike no koi.              [
] periodical, or for fun |       My other account is a Linux account.         [
-------------------------------------------------------------------------------
Thought for the day:

The time is right to make new friends.