RE: Cross-compile package combinations

4 messages, 3 authors, 2003-12-16 · open the first message on its own page

RE: Cross-compile package combinations

From: Silverton Aron-C1710C <hidden>
Date: 2003-12-11 21:57:03

Continuing this top-posting madness:

I am trying to build gcc 3.2.3 for powerpc-linux on i386.  I have binutils
2.14 built already.  I have not done anything with glibc as of yet.  Here is
where I die:

[lots of stuff omitted]
mkdir libgcc
mkdir nof
mkdir libgcc/nof
if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
/usr/proj/ssr/linux_bsp/mcip805/build-tools/build-boot-gcc/gcc/xgcc
-B/usr/proj/ssr/linux_bsp/mcip805/build-tools/build-boot-gcc/gcc/
-B/usr/proj/ssr/linux_bsp/mcip805/tools/powerpc-linux/bin/
-B/usr/proj/ssr/linux_bsp/mcip805/tools/powerpc-linux/lib/ -isystem
/usr/proj/ssr/linux_bsp/mcip805/tools/powerpc-linux/include -O2  -DIN_GCC
-DCROSS_COMPILE   -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -isystem ./include  -fPIC -g -DHAVE_GTHR_DEFAULT
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I.
-I../../gcc-3.2.3/gcc -I../../gcc-3.2.3/gcc/. -I../../gcc-3.2.3/gcc/config
-I../../gcc-3.2.3/gcc/../include  -fPIC -mstrict-align -DL_muldi3 -c
../../gcc-3.2.3/gcc/libgcc2.c -o libgcc/./_muldi3.o
In file included from tconfig.h:21,
                 from ../../gcc-3.2.3/gcc/libgcc2.c:36:
../../gcc-3.2.3/gcc/config/rs6000/linux.h:81:20: signal.h: No such file or
directory
../../gcc-3.2.3/gcc/config/rs6000/linux.h:82:26: sys/ucontext.h: No such
file or directory
make[2]: *** [libgcc/./_muldi3.o] Error 1
make[2]: Leaving directory
`/usr/proj/ssr/linux_bsp/mcip805/build-tools/build-boot-gcc/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory
`/usr/proj/ssr/linux_bsp/mcip805/build-tools/build-boot-gcc/gcc'
make: *** [all-gcc] Error 2

I issued the commands:

$ ../gcc-3.2.3/configure --target=$TARGET --prefix=${PREFIX}
--without-headers --with-newlib --enable-langauges=c

$ make all-gcc

I am not using crosstools.  I may trie it if I can figure out how to specify
the paths to put everything where I want it.

Any suggestions?

Thanks,

Aron

owner-linuxppc-embedded@lists.linuxppc.org
<mailto:owner-linuxppc-embedded@lists.linuxppc.org> wrote:
I have indeed tried a fairly recent version of GCC, the
aforementioned 3.2.3 with Linux 2.4.23 and it works like a charm
in our PPC environment. I didn't bother with the 3.3.x release of
GCC mainly because other toolchains used for other stuff in our
environment also used 3.2.3, so I wanted to stay in lockstep with
those versions.

~Ashwin



quoted
From: "listmember@orkun.us" <redacted>
To: linuxppc-embedded@lists.linuxppc.org
CC: "Dan Kegel" <redacted>
Subject: Re: Cross-compile package combinations
Date: Thu, 11 Dec 2003 10:06:40 -0600 (CST)

quoted
Silverton Aron-C1710C wrote:
quoted
Hello all,

Can somebody give me a clue as to which versions of binutils,
gcc, and glibc are compatible with each other?  I'd like to
use gcc 3.2 or 3.3 and I am developing on i386 targeting
PowerPC.  I'll be using 2.4 kernels initially and then moving
to 2.6.

If there is a known reference or recent previous post (I
didn't see one in my initial search) I'd appreciate a pointer.
As Ashwin mentioned, http://kegel.com/crosstool might come in
handy. See also the matrix at http://embeddedtux.org.
- Dan
Funny, I was just about to ask  very similar question. I will be
working an a IBM PPC405G based development board (Cogent CSB272)
for an internal project. I would like to use as up-to-date
versions of GCC, GLIBC and Linux 2.4 kernel as possible (without
sacrificing stability).

- Has anyone used recently released 2.4.23 (kernel.org) in any
PPC project yet? If it is not good to use for PPC based
development? Do I need to get a ppc specific modified kernel or
do I need to apply any patches to linus 2.4.23 kernel to get it
working in PPC405 embedded environment.

- Kernel 2.4.x README still says the official kernel compiler is
gcc
2.95.3. Is it still the case or using a more recent GCC compiler
is now acceptable? In the last Linux embedded project I was in
we had used this one along with a very early build of kernel. I
was not the one to set the development environment so bear with
me if these sound basic questions to you.

- I built a toolchain using crosstools based on gcc 3.3.2, glibc
2.3.2 and binutils 2.14.90.0.5. Crosstools default .dat files
pull kernel
2.4.21 but I also got the tools compiled using 2.4.23 sources. I
have not tested them yet since I don't have the board yet? Any
comments regarding this combination?

Looking at some ppc linux distros (not necessarily embedded):

YDL 3.0: kernel 2.4.20, gcc ? glibc 2.3.1, binutils ?
Mandrake: kernel 2.3.21, gcc 3.2.2, glibc, 2.3.1, binutils ?
Gentoo: kernel 2.4.22, gcc ? glibc 2.3.2?, binutils ?

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

RE: Cross-compile package combinations

From: Beena <hidden>
Date: 2003-12-11 23:15:48

I have observed the same errors when trying to build the bootstrap gcc
3.2.3. I understand that
this is because gcc 3.2.3 build (in case of powerpc) looks for some glibc
files. So I first built gcc 2.95.3,
then glibc 2.2.1 and then built bootstrap gcc 3.2.2(you could try with
3.2.3) and it compiled fine.

Hope this helps.
Beena

-----Original Message-----
From: owner-linuxppc-embedded@lists.linuxppc.org
[mailto:owner-linuxppc-embedded@lists.linuxppc.org]On Behalf Of
Silverton Aron-C1710C
Sent: Thursday, December 11, 2003 1:57 PM
To: 'Ashwin Bihari'; 'listmember@orkun.us';
'linuxppc-embedded@lists.linuxppc.org'
Cc: 'dank@kegel.com'
Subject: RE: Cross-compile package combinations



Continuing this top-posting madness:

I am trying to build gcc 3.2.3 for powerpc-linux on i386.  I have binutils
2.14 built already.  I have not done anything with glibc as of yet.  Here is
where I die:

[lots of stuff omitted]
mkdir libgcc
mkdir nof
mkdir libgcc/nof
if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
/usr/proj/ssr/linux_bsp/mcip805/build-tools/build-boot-gcc/gcc/xgcc
-B/usr/proj/ssr/linux_bsp/mcip805/build-tools/build-boot-gcc/gcc/
-B/usr/proj/ssr/linux_bsp/mcip805/tools/powerpc-linux/bin/
-B/usr/proj/ssr/linux_bsp/mcip805/tools/powerpc-linux/lib/ -isystem
/usr/proj/ssr/linux_bsp/mcip805/tools/powerpc-linux/include -O2  -DIN_GCC
-DCROSS_COMPILE   -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -isystem ./include  -fPIC -g -DHAVE_GTHR_DEFAULT
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I.
-I../../gcc-3.2.3/gcc -I../../gcc-3.2.3/gcc/. -I../../gcc-3.2.3/gcc/config
-I../../gcc-3.2.3/gcc/../include  -fPIC -mstrict-align -DL_muldi3 -c
../../gcc-3.2.3/gcc/libgcc2.c -o libgcc/./_muldi3.o
In file included from tconfig.h:21,
                 from ../../gcc-3.2.3/gcc/libgcc2.c:36:
../../gcc-3.2.3/gcc/config/rs6000/linux.h:81:20: signal.h: No such file or
directory
../../gcc-3.2.3/gcc/config/rs6000/linux.h:82:26: sys/ucontext.h: No such
file or directory
make[2]: *** [libgcc/./_muldi3.o] Error 1
make[2]: Leaving directory
`/usr/proj/ssr/linux_bsp/mcip805/build-tools/build-boot-gcc/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory
`/usr/proj/ssr/linux_bsp/mcip805/build-tools/build-boot-gcc/gcc'
make: *** [all-gcc] Error 2

I issued the commands:

$ ../gcc-3.2.3/configure --target=$TARGET --prefix=${PREFIX}
--without-headers --with-newlib --enable-langauges=c

$ make all-gcc

I am not using crosstools.  I may trie it if I can figure out how to specify
the paths to put everything where I want it.

Any suggestions?

Thanks,

Aron


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

Re: Cross-compile package combinations

From: Dan Kegel <hidden>
Date: 2003-12-12 04:26:23

Beena wrote:
I have observed the same errors when trying to build the bootstrap gcc
3.2.3. I understand that
this is because gcc 3.2.3 build (in case of powerpc) looks for some glibc
files. So I first built gcc 2.95.3,
then glibc 2.2.1 and then built bootstrap gcc 3.2.2(you could try with
3.2.3) and it compiled fine.
One of the reasons I did crosstool was to avoid that kind of
hackery.  With crosstool, you don't need to build gcc 2.95.3
just to build gcc 3.2.3.  Crosstool does clean builds from pristine,
minimally patched source.
- Dan


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

RE: Cross-compile package combinations

From: Beena <hidden>
Date: 2003-12-16 18:21:36

I used crosstool and was able to effortlessly install gcc 3.3.2, glibc 2.3.2
for powerpc. Thanks a lot for your suggestion.

-Beena

-----Original Message-----
From: Dan Kegel [mailto:dank@kegel.com]
Sent: Thursday, December 11, 2003 8:26 PM
To: Beena
Cc: Silverton Aron-C1710C; 'Ashwin Bihari'; listmember@orkun.us;
linuxppc-embedded@lists.linuxppc.org
Subject: Re: Cross-compile package combinations


Beena wrote:
I have observed the same errors when trying to build the bootstrap gcc
3.2.3. I understand that
this is because gcc 3.2.3 build (in case of powerpc) looks for some glibc
files. So I first built gcc 2.95.3,
then glibc 2.2.1 and then built bootstrap gcc 3.2.2(you could try with
3.2.3) and it compiled fine.
One of the reasons I did crosstool was to avoid that kind of
hackery.  With crosstool, you don't need to build gcc 2.95.3
just to build gcc 3.2.3.  Crosstool does clean builds from pristine,
minimally patched source.
- Dan


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help