This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Cross compiling problem - i686 Linux to PowerPC - HELP


Host: i686-pc-linux-gnu (Red Hat 8.0)
Target: powerpc-linux
binutils: 2.9.1
gcc: 2.8.1
newlib: 1.8.2

I'm trying to build a cross-compiler for powerpc. I am
using the "build-cross.sh" script which I found in the
GCC FAQ. I always get the same error with make:

************************************************************
[create the makefile here]
....
....
creating Makefile
./build-cross.sh: compile binutils, gcc, and newlib.
make[1]: Switching to directory
`/root/crossc/b-powerpc-linux/libiberty'
if [ -n "" ] && [ ! -d pic ]; then \
  mkdir pic; \
else true; fi
touch stamp-picdir
echo "# !Automatically generated from
../../src/libiberty/functions.def"\
  "- DO NOT EDIT!" >needed2.awk
grep '^DEFVAR(' < ../../src/libiberty/functions.def \
 | sed -e '/DEFVAR/s|DEFVAR.\([^,]*\).*|/\1/ { printf
"#ifndef NEED_\1\\n#define NEED_\1\\n#endif\\n" }|' \
 >>needed2.awk
grep '^DEFFUNC(' < ../../src/libiberty/functions.def \
 | sed -e '/DEFFUNC/s|DEFFUNC.\([^,]*\).*|/\1/ {
printf "#ifndef NEED_\1\\n#define NEED_\1\\n#endif\\n"
}|' \
 >>needed2.awk
gcc -c -g -O2 -I. -I../../src/libiberty/../include 
../../src/libiberty/dummy.c 2>/dev/null
make[1]: *** [dummy.o] Error 1
make[1]: Exiting directory
`/root/crossc/b-powerpc-linux/libiberty'
make: *** [all-libiberty] Error 2

************************************************************

I can't understand this message. What I am doing
wrong?
Could anybody help me? thank you in advance

Rafael Ch.


___________________________________________________
Yahoo! Móviles
Personaliza tu móvil con tu logo y melodía favorito 
en http://moviles.yahoo.es


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]