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]
Other format: [Raw text]

gcc-3.0.4, powerpc


Hi!

 I'm new at this, but I read the FAQ and all that, and I hope I'm not posting a typical newbie problem (if so, apologize in advance, and let me know), here we go:

  First:
	how can I know which "targets" I can compile a cross-compiler for?
	Where can I find a complete list?

  Second (and most important for me):
	I'm trying to make a cross-compiler for powerpc, in a Linux RedHat 7.2 host (standard distribution, no add-ons, etc).
	I followed the order explained in the FAQ, so I compiled successfully binutils, at least I hope, and they seem to run, but I don't know how to be sure.
	After that I tryied to compile gcc (3.0.4), sources from a tar ball, for the powepc target. It seemed to work, until an error occurs when configuring powerpc-eabi/libiberty, this is what's going on:

------------------------------------------------------------------------------
Configuring in powerpc-eabi/libiberty
loading cache ../config.cache
checking host system type... powerpc-unknown-eabi
checking build system type... i686-pc-linux-gnu
checking for powerpc-eabi-ar... (cached) powerpc-eabi-ar
checking for powerpc-eabi-ranlib... (cached) powerpc-eabi-ranlib
checking for gcc... (cached) /home/etxjopu/cross/build-gcc/gcc/xgcc -B/home/etxjopu/cross/build-gcc/gcc/ -B/project/powerpc-eabi/bin/ -B/project/powerpc-eabi/lib/ -isystem /project/powerpc-eabi/include
checking whether we are using GNU C... (cached) yes
checking whether /home/etxjopu/cross/build-gcc/gcc/xgcc -B/home/etxjopu/cross/build-gcc/gcc/ -B/project/powerpc-eabi/bin/ -B/project/powerpc-eabi/lib/ -isystem /project/powerpc-eabi/include accepts -g... (cached) yes
checking for POSIXized ISC... no
checking for working const... yes
checking for inline... inline
checking for a BSD compatible install... (cached) /usr/bin/install -c
xhost-mkfrag is unchanged
checking how to run the C preprocessor... (cached) /lib/cpp
checking for sys/file.h... yes
checking for sys/param.h... yes
checking for limits.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for unistd.h... (cached) yes
checking for strings.h... yes
checking for sys/time.h... yes
checking for time.h... yes
checking for sys/resource.h... (cached) yes
checking for sys/stat.h... yes
checking for sys/mman.h... yes
checking for fcntl.h... yes
checking for sys/wait.h that is POSIX.1 compatible... no
checking whether time.h and sys/time.h may both be included... no
checking whether errno must be declared... yes
checking whether the C compiler (/home/etxjopu/cross/build-gcc/gcc/xgcc -B/home/etxjopu/cross/build-gcc/gcc/ -B/project/powerpc-eabi/bin/ -B/project/powerpc-eabi/lib/ -isystem /project/powerpc-eabi/include -g -O2 ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
make: *** [configure-target-libiberty] Error 1

------------------------------------------------------------------------------

tail powerpc-eabi/libiberty/config.log
/home/etxjopu/cross/build-gcc/gcc/libgcc.a(eabi.o)(.got2+0x48): undefined reference to `__DTOR_END__'
/home/etxjopu/cross/build-gcc/gcc/libgcc.a(eabi.o)(.got2+0x4c): undefined reference to `__EXCEPT_START__'
/home/etxjopu/cross/build-gcc/gcc/libgcc.a(eabi.o)(.got2+0x50): undefined reference to `__EXCEPT_END__'
collect2: ld returned 1 exit status
configure: failed program was:

#line 1945 "configure"
#include "confdefs.h"

main(){return(0);}

------------------------------------------------------------------------------

Seems that there's something wrong with the linker or? Any ideas??

Thanks a lot!

/Josep


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


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