This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
SH-ELF target build failure; missing ___setup_argv_and_call_main
- To: gcc-bugs at gcc dot gnu dot org
- Subject: SH-ELF target build failure; missing ___setup_argv_and_call_main
- From: Toshi Morita <tm2 at best dot com>
- Date: Thu, 24 May 2001 11:57:49 -0700 (PDT)
- Cc: ___setup_argv_and_call_main at shell14 dot ba dot best dot com
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