building egcs on Irix 6.5.4

Cliff Miller cbm@research.bell-labs.com
Fri Oct 1 00:00:00 GMT 1999


> /files1/gnu/egcs-1.1.2/irix65/build/gcc/xgcc
> -B/files1/gnu/egcs-1.1.2/irix65/build/gcc/ -g -O2 -fno-implicit-templates
> -mabi=64  -shared -o libstdc++.so.2.9.0 `cat piclist` -lm
> ld64: FATAL   9  : I/O error (-lm): No such file or directory
> collect2: ld returned 32 exit status

i just had this problem myself.  it indicates that the libs for your abi (n64
in this case) are not installed.  look in /usr/lib64.  you probably won't find
libm.{so,a}.  if not, install the compiler_eoe.sw64.* modules.

the egcs configure should probably check for this library since it is implicitly
required by g++, in all abi's, even if not explicitly requested by the user.
i was blithely unaware of this during my build of 1.1.2 until i (or more
accurately, one of my irate users) actually tried to *use* the g++ binary.
it shouldn't necessarily be fatal to configure, since the build works fine
without it, and if you only need gcc and never g++, it doesn't matter.
but somehow its absence should be brought to the builder's attention.
the above error message will be very opaque to a sysadmin who has
not had extensive experience in dealing with multilib problems on sgi
(which btw is why i now spell it sgigh... the g is silent...).

-cbm
--
CLIFF MILLER (cbm@research.bell-labs.com)  908-582-6450.  Office MH 2C-415.



More information about the Gcc-help mailing list