This is the mail archive of the gcc-bugs@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]

SH-ELF target build failure; missing ___setup_argv_and_call_main


version: CVS head
   host: i686-linux (RH 7.0)
 target: sh-elf

I keep hacking around this problem, and forgetting to report it, but it
really should be fixed:

gcc --host=i686-linux --target=sh-elf fails to build because the function
__setup_argv_and_call_main is missing.

This is an excerpt from libiberty/sh-elf/config.log:

configure:1288: checking whether errno must be declared
configure:1300: /home/tm/gcc-build-sh-elf/gcc/xgcc -B/home/tm/gcc-build-sh-elf/gcc/ -B/usr/local/sh-elf/bin/ -B/usr/local/sh-elf/lib/ -isystem /usr/local/sh-elf/include -c -g -O2  conftest.c 1>&5
configure:1919: checking whether the C compiler (/home/tm/gcc-build-sh-elf/gcc/xgcc -B/home/tm/gcc-build-sh-elf/gcc/ -B/usr/local/sh-elf/bin/ -B/usr/local/sh-elf/lib/ -isystem /usr/local/sh-elf/include -g -O2 ) works
configure:1935: /home/tm/gcc-build-sh-elf/gcc/xgcc -B/home/tm/gcc-build-sh-elf/gcc/ -B/usr/local/sh-elf/bin/ -B/usr/local/sh-elf/lib/ -isystem /usr/local/sh-elf/include -o conftest -g -O2   conftest.c  1>&5
/home/tm/gcc-build-sh-elf/gcc/crt1.o: In function `main_k':
/home/tm/gcc-build-sh-elf/gcc/crt1.o(.text+0x38): undefined reference to `__setup_argv_and_call_main'
collect2: ld returned 1 exit status

Toshi


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