* cross-compiling problems (linux to ppc)
@ 2004-03-31 11:17 sting sting
2004-03-31 16:55 ` Hollis Blanchard
0 siblings, 1 reply; 3+ messages in thread
From: sting sting @ 2004-03-31 11:17 UTC (permalink / raw)
To: linuxppc-dev
Hello,
My host is a linux x86 RedHat machine.
My Target is Linux PowerPC machine.
Now , I had followed the instructions on :
http://penguinppc.org/embedded/cross-compiling/
the only diffference I had made was added the "--prefix=/opt/ppc"
so that it will insatll it in a different directory (because
I need also original binutil and gcc to compile for x86 linux targets).
what I did is :
downloaded latest release tars of binutils and gcc.
for binutil:
I created a toplevel build directory and from there:
./configure --target=powerpc-linux --prefix=/opt/ppc
make
make install
and it went OK.
Now , fior gcc:
I created a toplevel build directory and from there:
./configure --target=powerpc-linux --prefix=/opt/ppc --disable-shared
--disable-threads --enable-languages=c --with-newlib
I get immediately the following mesage:
../gcc-3.3.2/configure --target=powerpc-linux --prefix=/opt/ppc
--disable-shared --disable-threads --enable-languages=c --with-newlib |more
Configuring for a i686-pc-linux-gnu host.
*** This configuration is not supported in the following subdirectories:
target-libstdc++-v3 target-libf2c target-libffi target-boehm-gc
target-zlib target-libjava zlib fastjar target-libobjc
(Any other directories should still work fine.)
but it finishes the ./configure command.
Then , in make , I get after some time the following error messages:
if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
/home/sad/src/build-gcc/gcc/xgcc -B/home/sad/src/build-gcc/gcc/ -B/opt/ppc
erpc-linux/bin/ -B/opt/ppc/powerpc-linux/lib/ -isystem /opt/ppc/powerpc-linu
clude -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prot
es -Wmissing-prototypes -isystem ./include -fPIC -g -DIN_LIBGCC2 -D__GCC_F
_NOT_NEEDED -Dinhibit_libc -I. -I. -I../../gcc-3.3.2/gcc -I../../gcc-3.3.2/g
-I../../gcc-3.3.2/gcc/config -I../../gcc-3.3.2/gcc/../include -fPIC -mstri
lign -DL_muldi3 -c ../../gcc-3.3.2/gcc/libgcc2.c -o libgcc/./_muldi3.o
In file included from tconfig.h:22,
from ../../gcc-3.3.2/gcc/libgcc2.c:36:
../../gcc-3.3.2/gcc/config/rs6000/linux.h:89:20: signal.h: No such file or d
tory
In file included from tconfig.h:22,
from ../../gcc-3.3.2/gcc/libgcc2.c:36:
../../gcc-3.3.2/gcc/config/rs6000/linux.h:98: error: parse error before "sta
"
../../gcc-3.3.2/gcc/config/rs6000/linux.h:98: warning: no semicolon at end o
ruct or union
Needless to say, but still , I have signal.h under /usr/include ,
/usr/include/linux, and in some other
locations
regards
sting
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: cross-compiling problems (linux to ppc)
2004-03-31 11:17 cross-compiling problems (linux to ppc) sting sting
@ 2004-03-31 16:55 ` Hollis Blanchard
2004-03-31 18:01 ` Mark Guertin
0 siblings, 1 reply; 3+ messages in thread
From: Hollis Blanchard @ 2004-03-31 16:55 UTC (permalink / raw)
To: sting sting; +Cc: linuxppc-dev
On Wed, 2004-03-31 at 05:17, sting sting wrote:
> Now , I had followed the instructions on :
> http://penguinppc.org/embedded/cross-compiling/
> ../../gcc-3.3.2/gcc/config/rs6000/linux.h:89:20: signal.h: No such file or d
> tory
> In file included from tconfig.h:22,
> from ../../gcc-3.3.2/gcc/libgcc2.c:36:
> ../../gcc-3.3.2/gcc/config/rs6000/linux.h:98: error: parse error before "sta
> "
> ../../gcc-3.3.2/gcc/config/rs6000/linux.h:98: warning: no semicolon at end o
> ruct or union
There's a patch you can apply listed on the page (read carefully). It
will only work if you only want to build kernels (i.e. no glibc, no
userspace).
The other alternative is to install *target* kernel headers (not
/usr/include) and build against those. This is just silly if you don't
want glibc, but the toolchain people are apparently too busy to care.
--
Hollis Blanchard
IBM Linux Technology Center
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: cross-compiling problems (linux to ppc)
2004-03-31 16:55 ` Hollis Blanchard
@ 2004-03-31 18:01 ` Mark Guertin
0 siblings, 0 replies; 3+ messages in thread
From: Mark Guertin @ 2004-03-31 18:01 UTC (permalink / raw)
To: linuxppc-dev list
On 31-Mar-04, at 11:55 AM, Hollis Blanchard wrote:
>
> There's a patch you can apply listed on the page (read carefully). It
> will only work if you only want to build kernels (i.e. no glibc, no
> userspace).
>
> The other alternative is to install *target* kernel headers (not
> /usr/include) and build against those. This is just silly if you don't
> want glibc, but the toolchain people are apparently too busy to care.
>
>
That's exactly what I had to do to get my cross-compiler setup working
(but I didn't think that much of it as I also used glibc, etc).
Mark
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-03-31 18:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-31 11:17 cross-compiling problems (linux to ppc) sting sting
2004-03-31 16:55 ` Hollis Blanchard
2004-03-31 18:01 ` Mark Guertin
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).