This is the mail archive of the crossgcc@sourceware.cygnus.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more infromation.


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

RE: cross gcc for pc windos x86 as host and powerpc as target


	Hi,

> configure:562: checking if compiler cc1chill has been built
> configure:593: checking for gcc
> configure:706: checking whether the C compiler
> (/cygdrive/e/build-gcc/gcc/xgcc
> -B/cygdrive/e/build-gcc/gcc/ -B/usr/local/ppc-ibm-eabi/bin/ -g -O2 ) works
> configure:722: /cygdrive/e/build-gcc/gcc/xgcc -B/cygdrive/e/build-gcc/gcc/
> -B/usr/local/ppc-ibm-eabi/bin/ -o conftest -g -O2   conftest.c  1>&5
> /usr/local/ppc-ibm-eabi/bin/ld: warning: cannot find entry symbol _start;
> defaulting to 01800074
> /cygdrive/e/build-gcc/gcc/libgcc.a(eabi.o)(.got2+0x8): undefined reference
> to
> `__SDATA_START__'
> /cygdrive/e/build-gcc/gcc/libgcc.a(eabi.o)(.got2+0xc): undefined reference
> to
> `__SBSS_END__'
> /cygdrive/e/build-gcc/gcc/libgcc.a(eabi.o)(.got2+0x14): undefined
> reference to
> `__SDATA2_START__'
> /cygdrive/e/build-gcc/gcc/libgcc.a(eabi.o)(.got2+0x18): undefined
> reference to
> `__SBSS2_END__'
> collect2: ld returned 1 exit status
> configure: failed program was:
> 
> #line 717 "configure"
> #include "confdefs.h"
> 
> main(){return(0);}
> 
> 
> Am i missing some startup file here ?
> I copied some target crt.o file to /usr/target/include directory.
	[Stephane Dalton]  Make sure you've take a look at the specs file
used by gcc... (you can find the path using the -v switch) under the
	*link section you should see -Tsomething.ld%s and under *lib section
you sould see (typically) the same -lsomething -lc if those sections are
empty that might be your problem.

	Hope this will help

	bye



------
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]