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]

m68k-elf-gcc cross compiler: please help


Hi All

I have built and installed a m68k-elf-gcc cross compiler. I've done it on
Cygwin running on Win2K. But the compiler does'nt work at all. I tried
compiling a dummy C program (with only an empty main method) and got the
error messages copied and pasted at the end of this mail.

There are undefined references in start (crt0.o) to  __stak,
__FINI_SECTION__, hardware_init_hook,
software__init_hook, and so on...

I have no clue to a possible solution.


Can someone please help me out ??

Thanking you in advance.

Dipak Jha
Patni Computer Systems Ltd.
Noida

********************* error messages *********************************


/home/Administrator/install/lib/gcc-lib/m68k-elf/2.95.3-5/../../../../m68k-e
lf/b
in/ld: warning: cannot find entry symbol _start; defaulting to 80000074
/home/Administrator/install/lib/gcc-lib/m68k-elf/2.95.3-5/../../../../m68k-e
lf/l
ib/crt0.o: In function `start':
/home/Administrator/install/lib/gcc-lib/m68k-elf/2.95.3-5/../../../../m68k-e
lf/l
ib/crt0.o(.text+0x2): undefined reference to `__stack'
/home/Administrator/install/lib/gcc-lib/m68k-elf/2.95.3-5/../../../../m68k-e
lf/l
ib/crt0.o(.text+0x58): undefined reference to `__FINI_SECTION__'
/home/Administrator/install/lib/gcc-lib/m68k-elf/2.95.3-5/../../../../m68k-e
lf/l
ib/crt0.o(.text+0x38): undefined reference to `hardware_init_hook'
/home/Administrator/install/lib/gcc-lib/m68k-elf/2.95.3-5/../../../../m68k-e
lf/l
ib/crt0.o(.text+0x48): undefined reference to `software_init_hook'
/home/Administrator/install/lib/gcc-lib/m68k-elf/2.95.3-5/../../../../m68k-e
lf/l
ib/crt0.o(.text+0x5e): undefined reference to `atexit'
/home/Administrator/install/lib/gcc-lib/m68k-elf/2.95.3-5/../../../../m68k-e
lf/l
ib/crt0.o(.text+0x64): undefined reference to `__INIT_SECTION__'
/home/Administrator/install/lib/gcc-lib/m68k-elf/2.95.3-5/../../../../m68k-e
lf/l
ib/crt0.o(.text+0x84): undefined reference to `exit'
/home/Administrator/install/lib/gcc-lib/m68k-elf/2.95.3-5/libgcc.a(__main.o)
: In
 function `__do_global_ctors':
/home/Administrator/build-gcc/gcc/../../gcc-2.95.3-5/gcc/libgcc2.c(.text+0x3
a):
undefined reference to `atexit'
collect2: ld returned 1 exit status

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



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