newlibc compilation problems

Sami Lempinen ssl@sci.fi
Mon Jul 14 23:54:00 GMT 1997


-----BEGIN PGP SIGNED MESSAGE-----

Hello,

Many thanks for your reply.

On 12-Jul-97 Charles Brain wrote:

>I had a similar problem to this, what it is I believe is that it can't
>find the ar program,
>either because it is looking in the wrong directory or using the wrong
>filename, or
>you haven't built binutils to produce an ar.
>
>In my case it was the wrong file name and I fixed it by using
>--program-prefix = i386-pc-go32.
>but your target is different.
>
>It may also be necessary to add the path to the ar file in target/bin.
>

I do not believe the problem is with finding the ar program -- rather, it is
the libc.a that ar is looking for in /lib:

ar x /lib/libc.a Ovfork.o _exit.o _sigvec.o abort.o access.o cerror.o chmod.o
chown.o close.o creat.o dup.o dup2.o errlst.o execl.o execle.o execv.o execve.o
execvp.o fork.o fstat.o getdtablesize.o getpid.o getrusage.o gettimeofday.o
ieee_globals.o ioctl.o isatty.o kill.o link.o lseek.o open.o pipe.o popen.o
read.o sbrk.o setitimer.o sigblock.o signal.o sigpause.o sigsetjmp.o
sigsetmask.o sigtramp.o sigvec.o sleep.o start_float.o stat.o time.o times.o
umask.o unlink.o utime.o utimes.o wait.o wait3.o wait4.o write.o rem.o
multiply.o umultiply.o 
ar: /lib/libc.a: No such file or directory

On my system, libc.a is in /usr/lib, but creating a link from /lib/libc.a ->
/usr/lib/libc.a puts the compilation in a loop as it cannot find the symbols it
requires in the libc.a archive.

My next question is: what does the compilation want with libc.a at this stage?
Which libc.a does it want? A Linux one or a Sun one?

Thanks again,

Sami


=======================================================
               Sami Lempinen * ssl@sci.fi 
   http://www.sci.fi/~ssl/ * http://www.snowman.sci.fi/
   "I want to die like my grandfather, peacefully in my 
   sleep, not screaming in terror like his passengers."

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: noconv

iQCVAwUBM8sRFyRFo0lpa/91AQH1SwP+J3feeVQCwlVE+yMNM9VtEk5EJij1FjGz
azMa11FlGA9SHbMCS+HxHLvwYfKDQunHpY5FPwaWDP95aJV+xSFFVEMI9HwGkUFO
+zm+rWvSFM2e8KPuE5kGGHKib1dGRv6Llg1UW3ep9WeyF3vyQazSVpvBjdRYtj4H
S14oIuqKG+A=
=hQiZ
-----END PGP SIGNATURE-----



More information about the crossgcc mailing list