linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* glibc-2.1.2 cross-compile problem
@ 2000-04-20 16:43 Elizabeth Clarke
  2000-04-26  0:24 ` Graham Stoney
  0 siblings, 1 reply; 7+ messages in thread
From: Elizabeth Clarke @ 2000-04-20 16:43 UTC (permalink / raw)
  To: linuxppc-dev


I'm having a problem compiling glibc-2.1.2 using the xppc
cross-compilation toolset. I (believe I) have followed the instructions
for patching glibc
and all seemed fine, but I get the following, any help much
appriciated!:


/opt/xppc/bin/powerpc-linux-gcc ../sysdeps/unix/sysv/linux/poll.c -c
-DNDEBUG=1 -DSOFT_FLOAT -O2 -Wall
-Winline -Wstrict-prototypes -Wwrite-strings -mcpu=860 -msoft-float
-fpic    -I../include -I.  -I.. -I../libio  -I../sysdeps/powerpc/elf
-I../linuxthreads/sysdeps/unix/sysv/linux
-I../linuxthreads/sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv
-I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/powerpc
-I../sysdeps/unix/sysv/linux/powerpc -I../sysdeps/unix/sysv/linux
-I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman
-I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix
-I../sysdeps/posix -I../sysdeps/powerpc -I../sysdeps/wordsize-32
-I../sysdeps/ieee754 -I../sysdeps/libm-ieee754 -I../sysdeps/generic/elf
-I../sysdeps/generic  -nostdinc -isystem
/opt/xppc/lib/gcc-lib/powerpc-linux/egcs-2.91.66/include -isystem
/usr/local/amino/module3/linux/linux/include -D_LIBC_REENTRANT -include
../include/libc-symbols.h  -DPIC   -o poll.os
../sysdeps/unix/bsd/poll.c: In function `__emulate_poll':
In file included from ../sysdeps/unix/sysv/linux/poll.c:62:
../sysdeps/unix/bsd/poll.c:194: internal error--insn does not satisfy
its constraints:
(insn 1390 183 187 (set (reg:SI 12 r12)
        (unspec[
                (symbol_ref:SI ("@max_fd_size.39"))
                (reg:SI 65 lr)
            ]  8)) 398 {*movsi_got_internal} (nil)
    (nil))
toplev.c:1367: Internal compiler error in function
fatal_insn


Thanks
Beth

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: glibc-2.1.2 cross-compile problem
  2000-04-20 16:43 glibc-2.1.2 cross-compile problem Elizabeth Clarke
@ 2000-04-26  0:24 ` Graham Stoney
  2000-04-26 14:37   ` Elizabeth Clarke
  0 siblings, 1 reply; 7+ messages in thread
From: Graham Stoney @ 2000-04-26  0:24 UTC (permalink / raw)
  To: Elizabeth Clarke; +Cc: linuxppc-dev


Elizabeth Clarke writes:
> I'm having a problem compiling glibc-2.1.2 using the xppc
> cross-compilation toolset. I (believe I) have followed the instructions
> for patching glibc and all seemed fine, but I get the following, any help
> much appriciated!:

Are you running gcc-2.95.2?

Regards,
Graham

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: glibc-2.1.2 cross-compile problem
  2000-04-26  0:24 ` Graham Stoney
@ 2000-04-26 14:37   ` Elizabeth Clarke
  2000-04-26 16:58     ` David Edelsohn
  2000-04-26 19:01     ` Matt Porter
  0 siblings, 2 replies; 7+ messages in thread
From: Elizabeth Clarke @ 2000-04-26 14:37 UTC (permalink / raw)
  To: linuxppc-dev


Graham Stoney wrote:
>
> Elizabeth Clarke writes:
> > I'm having a problem compiling glibc-2.1.2 using the xppc
> > cross-compilation toolset. I (believe I) have followed the instructions
> > for patching glibc and all seemed fine, but I get the following, any help
> > much appriciated!:
>
> Are you running gcc-2.95.2?

I wasn't, but I grabbed it yesterday afternoon and been trying to
compile it as per the instructions at
http://members.home.net/mmporter/linux/cross/ which I found in your FAQ.
I grabbed and compiled the latest binutils okay. But.... can't get gcc
to compile. It took a little pursuading before it would use the
new binutils, and now complains about stdio.h being missing:

/usr/local/src/gcc-2.95.2/gcc/xgcc -B/usr/local/src/gcc-2.95.2/gcc/
-B/usr/local/powerpc-linux/bin/ -c -DHAVE_CONFIG_H -g -O2 -I.
-I./../../include  choose-temp.c
choose-temp.c:29: stdio.h: No such file or directory
choose-temp.c:30: sys/types.h: No such file or directory
choose-temp.c:32: unistd.h: No such file or directory
choose-temp.c:35: stdlib.h: No such file or directory
choose-temp.c:38: sys/file.h: No such file or directory
make[2]: *** [choose-temp.o] Error 1
make[2]: Leaving directory
`/usr/local/src/gcc-2.95.2/powerpc-linux/libiberty'
make[1]: *** [all-target-libiberty] Error 2
make[1]: Leaving directory `/usr/local/src/gcc-2.95.2'


Aaaaaarrrrggggghhhhhhhhhhh!
Beth
 feeling a little frustrated

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: glibc-2.1.2 cross-compile problem
  2000-04-26 14:37   ` Elizabeth Clarke
@ 2000-04-26 16:58     ` David Edelsohn
  2000-04-26 19:01     ` Matt Porter
  1 sibling, 0 replies; 7+ messages in thread
From: David Edelsohn @ 2000-04-26 16:58 UTC (permalink / raw)
  To: Elizabeth Clarke; +Cc: linuxppc-dev


	The cross-tools want to have the target system header files
available in a directory called "sys-include" underneath the target
triplet in the installation directory.  The target triplet directory wants
to look like /usr on the real system and the gcc-fixed header files will
go into the regular "include" directory.

David

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: glibc-2.1.2 cross-compile problem
  2000-04-26 14:37   ` Elizabeth Clarke
  2000-04-26 16:58     ` David Edelsohn
@ 2000-04-26 19:01     ` Matt Porter
  2000-04-27 14:22       ` Elizabeth Clarke
  1 sibling, 1 reply; 7+ messages in thread
From: Matt Porter @ 2000-04-26 19:01 UTC (permalink / raw)
  To: Elizabeth Clarke; +Cc: linuxppc-dev


On Wed, Apr 26, 2000 at 02:37:25PM +0000, Elizabeth Clarke wrote:
>
> Graham Stoney wrote:
> >
> > Elizabeth Clarke writes:
> > > I'm having a problem compiling glibc-2.1.2 using the xppc
> > > cross-compilation toolset. I (believe I) have followed the instructions
> > > for patching glibc and all seemed fine, but I get the following, any help
> > > much appriciated!:
> >
> > Are you running gcc-2.95.2?
>
> I wasn't, but I grabbed it yesterday afternoon and been trying to
> compile it as per the instructions at
> http://members.home.net/mmporter/linux/cross/ which I found in your FAQ.
> I grabbed and compiled the latest binutils okay. But.... can't get gcc
> to compile. It took a little pursuading before it would use the
> new binutils, and now complains about stdio.h being missing:
>
> /usr/local/src/gcc-2.95.2/gcc/xgcc -B/usr/local/src/gcc-2.95.2/gcc/
> -B/usr/local/powerpc-linux/bin/ -c -DHAVE_CONFIG_H -g -O2 -I.
> -I./../../include  choose-temp.c
> choose-temp.c:29: stdio.h: No such file or directory

Are you sure you followed the directions on my site?  You need to
configure your build of gcc with "--with-newlib" then link to your
kernel headers, then build glibc.

--
Matt Porter
mmporter@home.com
This is Linux Country. On a quiet night, you can hear Windows reboot.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: glibc-2.1.2 cross-compile problem
  2000-04-26 19:01     ` Matt Porter
@ 2000-04-27 14:22       ` Elizabeth Clarke
  2000-04-28  0:42         ` Graham Stoney
  0 siblings, 1 reply; 7+ messages in thread
From: Elizabeth Clarke @ 2000-04-27 14:22 UTC (permalink / raw)
  To: Matt Porter; +Cc: linuxppc-dev, linuxpp-embedded


Matt Porter wrote:

> > /usr/local/src/gcc-2.95.2/gcc/xgcc -B/usr/local/src/gcc-2.95.2/gcc/
> > -B/usr/local/powerpc-linux/bin/ -c -DHAVE_CONFIG_H -g -O2 -I.
> > -I./../../include  choose-temp.c
> > choose-temp.c:29: stdio.h: No such file or directory
>
> Are you sure you followed the directions on my site?  You need to
> configure your build of gcc with "--with-newlib" then link to your
> kernel headers, then build glibc.

Yes... after all they are not complex instructions.

I sorted that problem (stdio.h missing) by copying the newlib headers
into /usr/local/powerpc-linux/include. So it gets past that now. But....

/usr/local/src/gcc-2.95.2/gcc/xgcc -B/usr/local/src/gcc-2.95.2/gcc/
-B/usr/local/powerpc-linux/bin/ -c -g -O2 -I. -I. -D_IO_MTSAFE_IO
iogetline.c -o pic/iogetline.o
/usr/local/src/gcc-2.95.2/gcc/xgcc -B/usr/local/src/gcc-2.95.2/gcc/
-B/usr/local/powerpc-linux/bin/ -c -g -O2 -I. -I. -D_IO_MTSAFE_IO
iogetline.c
In file included from iolibio.h:1,
                 from libioP.h:47,
                 from iogetline.c:26:
libio.h:30: _G_config.h: No such file or directory
make[1]: *** [iogetline.o] Error 1
make[1]: Leaving directory
`/usr/local/src/gcc-2.95.2/powerpc-linux/libio'

So now I'm where Graham Stoney was at Date: Thu, 12 Aug 1999 14:34:44
-0400.
I *think* it is looking for _G_config.h from my host includes, but it
simply isn't putting the path on the command line. Which I think it did
at one point, or at least on of those -I. was -I./../../include.
Arghh I'm must be going mad, or stupid. Surely its should not be as bad
as this?

Any help very much appreciated!
Beth

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: glibc-2.1.2 cross-compile problem
  2000-04-27 14:22       ` Elizabeth Clarke
@ 2000-04-28  0:42         ` Graham Stoney
  0 siblings, 0 replies; 7+ messages in thread
From: Graham Stoney @ 2000-04-28  0:42 UTC (permalink / raw)
  To: Elizabeth Clarke; +Cc: linuxppc-dev


Hi Elizabeth,

Elizabeth Clarke writes:
> /usr/local/src/gcc-2.95.2/gcc/xgcc -B/usr/local/src/gcc-2.95.2/gcc/
> -B/usr/local/powerpc-linux/bin/ -c -g -O2 -I. -I. -D_IO_MTSAFE_IO
> iogetline.c -o pic/iogetline.o
> /usr/local/src/gcc-2.95.2/gcc/xgcc -B/usr/local/src/gcc-2.95.2/gcc/
> -B/usr/local/powerpc-linux/bin/ -c -g -O2 -I. -I. -D_IO_MTSAFE_IO
> iogetline.c
> In file included from iolibio.h:1,
>                  from libioP.h:47,
>                  from iogetline.c:26:
> libio.h:30: _G_config.h: No such file or directory
> make[1]: *** [iogetline.o] Error 1
> make[1]: Leaving directory
> `/usr/local/src/gcc-2.95.2/powerpc-linux/libio'
>
> So now I'm where Graham Stoney was at Date: Thu, 12 Aug 1999 14:34:44
> -0400.

Can't remember what I did to solve this, but I got past it somehow. Try
doing a "make install", and see if it installs enough of the compiler to go
ahead with the glibc build. I found I had to build gcc in two passes, firstly
with --with-newlib, and then without once glibc was installed.

> Surely its should not be as bad as this?

Agreed. Funnily enough though, it's better than it used to be. I remember when
I was a lad, before "configure" was around...

Good luck,
Graham
--
Graham Stoney
Principal Hardware/Software Engineer
Canon Information Systems Research Australia
Ph: +61 2 9805 2909  Fax: +61 2 9805 2929

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2000-04-28  0:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-04-20 16:43 glibc-2.1.2 cross-compile problem Elizabeth Clarke
2000-04-26  0:24 ` Graham Stoney
2000-04-26 14:37   ` Elizabeth Clarke
2000-04-26 16:58     ` David Edelsohn
2000-04-26 19:01     ` Matt Porter
2000-04-27 14:22       ` Elizabeth Clarke
2000-04-28  0:42         ` Graham Stoney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).