This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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

cross-compiler for powerpc-eabi on FreeBSD 2.2


I have been able to successfully build a cross-compiler for the
powerpc-eabi target on an i386 machine running FreeBSD 4.2 machine with
the following:

binutils-2.9.5.0.29
gcc-2.95.2
newlib-1.8.2

I am following the same procedure now on another i386 machine running
FreeBSD 2.2.2, but the build fails while generating xgcc. I must also
mention that binutils-powerpc-eabi has been successfully built.

configure is being invoked with the following options:
--target=powerpc-eabi
--with-newlib
 --with-cpu=860

The last part of the failure log is as below:

gcc -c -DCROSS_COMPILE -DIN_GCC -DHAIFA   -g -O2   -DHAVE_CONFIG_H
-I.
-I/home/vjayaram/tree/build/src/gnu/usr.bin/gcc-powerpc-eabi/../../../contrib/gcc-2.95.2/gcc
-I/home/vjayaram/tree/build/src/gnu/usr.bin/gcc-powerpc-eabi/../../../contrib/gcc-2.95.2/gcc/config
-I/home/vjayaram/tree/build/src/gnu/usr.bin/gcc-powerpc-eabi/../../../contrib/gcc-2.95.2/gcc/../include
/home/vjayaram/tree/build/src/gnu/usr.bin/gcc-powerpc-eabi/../../../contrib/gcc-2.95.2/gcc/cpperror.c

gcc -c -DCROSS_COMPILE -DIN_GCC -DHAIFA   -g -O2   -DHAVE_CONFIG_H
-I.
-I/home/vjayaram/tree/build/src/gnu/usr.bin/gcc-powerpc-eabi/../../../contrib/gcc-2.95.2/gcc
-I/home/vjayaram/tree/build/src/gnu/usr.bin/gcc-powerpc-eabi/../../../contrib/gcc-2.95.2/gcc/config
-I/home/vjayaram/tree/build/src/gnu/usr.bin/gcc-powerpc-eabi/../../../contrib/gcc-2.95.2/gcc/../include
/home/vjayaram/tree/build/src/gnu/usr.bin/gcc-powerpc-eabi/../../../contrib/gcc-2.95.2/gcc/cppexp.c

gcc -c -DCROSS_COMPILE -DIN_GCC -DHAIFA   -g -O2   -DHAVE_CONFIG_H
-I.
-I/home/vjayaram/tree/build/src/gnu/usr.bin/gcc-powerpc-eabi/../../../contrib/gcc-2.95.2/gcc
-I/home/vjayaram/tree/build/src/gnu/usr.bin/gcc-powerpc-eabi/../../../contrib/gcc-2.95.2/gcc/config
-I/home/vjayaram/tree/build/src/gnu/usr.bin/gcc-powerpc-eabi/../../../contrib/gcc-2.95.2/gcc/../include
/home/vjayaram/tree/build/src/gnu/usr.bin/gcc-powerpc-eabi/../../../contrib/gcc-2.95.2/gcc/cppfiles.c

gcc -DCROSS_COMPILE -DIN_GCC -DHAIFA   -g -O2   -DHAVE_CONFIG_H    -I.
-I/home/vjayaram/tree/build/src/gnu/usr.bin/gcc-powerpc-eabi/../../../contrib/gcc-2.95.2/gcc
-I/home/vjayaram/tree/build/src/gnu/usr.bin/gcc-powerpc-eabi/../../../contrib/gcc-2.95.2/gcc/config
-I/home/vjayaram/tree/build/src/gnu/usr.bin/gcc-powerpc-eabi/../../../contrib/gcc-2.95.2/gcc/../include
-DGCC_INCLUDE_DIR=\"/usr/build/2.2/crossgcc/lib/gcc-lib/powerpc-eabi/2.95.2/include\"
-DGPLUSPLUS_INCLUDE_DIR=\"/usr/build/2.2/crossgcc/lib/gcc-lib/powerpc-eabi/2.95.2/../../../..`echo
/usr/build/2.2/crossgcc | sed -e 's|^/usr/build/2.2/crossgcc||' -e
's|/[^/]*|/..|g'`/include/g++-3\"
-DLOCAL_INCLUDE_DIR=\"/usr/build/2.2/crossgcc/include\"
-DCROSS_INCLUDE_DIR=\"/usr/build/2.2/crossgcc/lib/gcc-lib/powerpc-eabi/2.95.2/../../../../powerpc-eabi/sys-include\"
-DTOOL_INCLUDE_DIR=\"/usr/build/2.2/crossgcc/lib/gcc-lib/powerpc-eabi/2.95.2/../../../../powerpc-eabi/include\"
-c `echo
/home/vjayaram/tree/build/src/gnu/usr.bin/gcc-powerpc-eabi/../../../contrib/gcc-2.95.2/gcc/cppinit.c
| sed 's,^\./,,'`
gcc -c -DCROSS_COMPILE -DIN_GCC -DHAIFA   -g -O2   -DHAVE_CONFIG_H
-I.
-I/home/vjayaram/tree/build/src/gnu/usr.bin/gcc-powerpc-eabi/../../../contrib/gcc-2.95.2/gcc
-I/home/vjayaram/tree/build/src/gnu/usr.bin/gcc-powerpc-eabi/../../../contrib/gcc-2.95.2/gcc/config
-I/home/vjayaram/tree/build/src/gnu/usr.bin/gcc-powerpc-eabi/../../../contrib/gcc-2.95.2/gcc/../include
/home/vjayaram/tree/build/src/gnu/usr.bin/gcc-powerpc-eabi/../../../contrib/gcc-2.95.2/gcc/cppulp.c

ar rc libcpp.a cpplib.o cpphash.o cppalloc.o cpperror.o cppexp.o
cppfiles.o  cppinit.o cppulp.o prefix.o version.o mbchar.o
if [ -f ranlib ]  || [ -f /usr/bin/ranlib -o -f /bin/ranlib ] ; then
ranlib libcpp.a ; else true ; fi
gcc -DCROSS_COMPILE -DIN_GCC -DHAIFA   -g -O2   -DHAVE_CONFIG_H  -o
gen-protos  gen-protos.o scan.o libcpp.a ` case "obstack.o" in ?*) echo
obstack.o ;; esac ` ` case "" in ?*) echo  ;; esac ` ` case "" in ?*)
echo  ;; esac `    ` case "" in ?*) echo  ;; esac ` ` case "" in ?*)
echo  ;; esac `

/home/vjayaram/tree/build/src/gnu/usr.bin/gcc-powerpc-eabi/../../../contrib/gcc-2.95.2/gcc/cpphash.c:326:
Undefined symbol `_cpp_error' referenced from text segment
/home/vjayaram/tree/build/src/gnu/usr.bin/gcc-powerpc-eabi/../../../contrib/gcc-2.95.2/gcc/cpphash.c:390:
Undefined symbol `_cpp_error' referenced from text segment
/home/vjayaram/tree/build/src/gnu/usr.bin/gcc-powerpc-eabi/../../../contrib/gcc-2.95.2/gcc/cpphash.c:486:
Undefined symbol `_cpp_warning' referenced from text segment
/home/vjayaram/tree/build/src/gnu/usr.bin/gcc-powerpc-eabi/../../../contrib/gcc-2.95.2/gcc/cpphash.c:536:
Undefined symbol `_cpp_error' referenced from text segment
/home/vjayaram/tree/build/src/gnu/usr.bin/gcc-powerpc-eabi/../../../contrib/gcc-2.95.2/gcc/cpphash.c:602:
Undefined symbol `_cpp_buf_line_and_col' referenced from text segment
/home/vjayaram/tree/build/src/gnu/usr.bin/gcc-powerpc-eabi/../../../contrib/gcc-2.95.2/gcc/cpphash.c:611:
Undefined symbol `_check_macro_name' referenced from text segment
/home/vjayaram/tree/build/src/gnu/usr.bin/gcc-powerpc-eabi/../../../contrib/gcc-2.95.2/gcc/cpphash.c:639:
Undefined symbol `_cpp_pedwarn' referenced from text segment
/home/vjayaram/tree/build/src/gnu/usr.bin/gcc-powerpc-eabi/../../../contrib/gcc-2.95.2/gcc/cpphash.c:643:
Undefined symbol `_cpp_pedwarn' referenced from text segment
/home/vjayaram/tree/build/src/gnu/usr.bin/gcc-powerpc-eabi/../../../contrib/gcc-2.95.2/gcc/cpphash.c:739:
Undefined symbol `_cpp_pedwarn' referenced from text segment

Anyone, any thoughts?

Thanks,
Vinay




------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


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