http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47669
Summary: bootstrap failure due to undefined references Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto AssignedTo: unassig...@gcc.gnu.org ReportedBy: anhvofrc...@gmail.com Host: MinGW Target: MinGW Build: bootstrap Below is the trail end of error messages when boostrap failure occurs. The build was configured with option --enable-languages=ada,c. make[3]: Leaving directory `/c/Gcc/Build-4.6.x/libdecnumber' make[3]: Entering directory `/c/Gcc/Build-4.6.x/lto-plugin' /bin/sh ./libtool --tag=CC --tag=disable-static --mode=compile gcc -DHAVE_CON G_H -I. -I../../gcc-4.6-20110205/lto-plugin -I../../gcc-4.6-20110205/lto-plug /../include -DHAVE_CONFIG_H -Wall -Werror -g -fkeep-inline-functions -c -o lt plugin.lo ../../gcc-4.6-20110205/lto-plugin/lto-plugin.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../gcc-4.6-20110205/lto-plugin I../../gcc-4.6-20110205/lto-plugin/../include -DHAVE_CONFIG_H -Wall -Werror -g fkeep-inline-functions -c ../../gcc-4.6-20110205/lto-plugin/lto-plugin.c -DDL EXPORT -DPIC -o .libs/lto-plugin.o /bin/sh ./libtool --tag=CC --tag=disable-static --mode=link gcc -Wall -Werror g -fkeep-inline-functions -no-undefined -bindir "/usr/local/bin" -bindir /usr/ cal/libexec/gcc/i686-pc-mingw32/4.6.0 -Wl,--stack,12582912 -o liblto_plugin.l -rpath /usr/local/libexec/gcc/i686-pc-mingw32/4.6.0 lto-plugin.lo ../libiberty ic/libiberty.a *** Warning: Trying to link with static lib archive ../libiberty/pic/libiberty . *** I have the capability to make that library automatically link in when *** you link to this library. But I can only do this if you have a *** shared version of the library, which you do not appear to have *** because the file extensions .a of this argument makes me believe *** that it is just a static archive that I should not use here. libtool: link: gcc -shared .libs/lto-plugin.o -Wl,--stack -Wl,12582912 - .libs/liblto_plugin-0.dll -Wl,--enable-auto-image-base -Xlinker --out-implib - inker .libs/liblto_plugin.dll.a Creating library file: .libs/liblto_plugin.dll.a .libs/lto-plugin.o: In function `parse_table_entry': c:\Gcc\Build-4.6.x\lto-plugin/../../gcc-4.6-20110205/lto-plugin/lto-plugin.c:2 : undefined reference to `xstrdup' c:\Gcc\Build-4.6.x\lto-plugin/../../gcc-4.6-20110205/lto-plugin/lto-plugin.c:2 : undefined reference to `concat' c:\Gcc\Build-4.6.x\lto-plugin/../../gcc-4.6-20110205/lto-plugin/lto-plugin.c:2 : undefined reference to `xstrdup' .libs/lto-plugin.o: In function `translate': c:\Gcc\Build-4.6.x\lto-plugin/../../gcc-4.6-20110205/lto-plugin/lto-plugin.c:2 : undefined reference to `xrealloc' c:\Gcc\Build-4.6.x\lto-plugin/../../gcc-4.6-20110205/lto-plugin/lto-plugin.c:2 : undefined reference to `xrealloc' .libs/lto-plugin.o: In function `add_output_files': c:\Gcc\Build-4.6.x\lto-plugin/../../gcc-4.6-20110205/lto-plugin/lto-plugin.c:4 : undefined reference to `xmalloc' c:\Gcc\Build-4.6.x\lto-plugin/../../gcc-4.6-20110205/lto-plugin/lto-plugin.c:4 : undefined reference to `xrealloc' c:\Gcc\Build-4.6.x\lto-plugin/../../gcc-4.6-20110205/lto-plugin/lto-plugin.c:4 : undefined reference to `xrealloc' .libs/lto-plugin.o: In function `exec_lto_wrapper': c:\Gcc\Build-4.6.x\lto-plugin/../../gcc-4.6-20110205/lto-plugin/lto-plugin.c:5 : undefined reference to `make_temp_file' c:\Gcc\Build-4.6.x\lto-plugin/../../gcc-4.6-20110205/lto-plugin/lto-plugin.c:5 : undefined reference to `writeargv' c:\Gcc\Build-4.6.x\lto-plugin/../../gcc-4.6-20110205/lto-plugin/lto-plugin.c:5 : undefined reference to `concat' c:\Gcc\Build-4.6.x\lto-plugin/../../gcc-4.6-20110205/lto-plugin/lto-plugin.c:5 : undefined reference to `pex_init' c:\Gcc\Build-4.6.x\lto-plugin/../../gcc-4.6-20110205/lto-plugin/lto-plugin.c:5 : undefined reference to `pex_run' c:\Gcc\Build-4.6.x\lto-plugin/../../gcc-4.6-20110205/lto-plugin/lto-plugin.c:5 : undefined reference to `pex_read_output' c:\Gcc\Build-4.6.x\lto-plugin/../../gcc-4.6-20110205/lto-plugin/lto-plugin.c:5 : undefined reference to `pex_get_status' c:\Gcc\Build-4.6.x\lto-plugin/../../gcc-4.6-20110205/lto-plugin/lto-plugin.c:5 : undefined reference to `pex_free' .libs/lto-plugin.o: In function `all_symbols_read_handler': c:\Gcc\Build-4.6.x\lto-plugin/../../gcc-4.6-20110205/lto-plugin/lto-plugin.c:6 : undefined reference to `xcalloc' .libs/lto-plugin.o: In function `hash_sym': c:\Gcc\Build-4.6.x\lto-plugin/../../gcc-4.6-20110205/lto-plugin/lto-plugin.c:6 : undefined reference to `htab_hash_string' .libs/lto-plugin.o: In function `resolve_conflicts': c:\Gcc\Build-4.6.x\lto-plugin/../../gcc-4.6-20110205/lto-plugin/lto-plugin.c:7 : undefined reference to `htab_create' c:\Gcc\Build-4.6.x\lto-plugin/../../gcc-4.6-20110205/lto-plugin/lto-plugin.c:7 : undefined reference to `xmalloc' c:\Gcc\Build-4.6.x\lto-plugin/../../gcc-4.6-20110205/lto-plugin/lto-plugin.c:7 : undefined reference to `xmalloc' c:\Gcc\Build-4.6.x\lto-plugin/../../gcc-4.6-20110205/lto-plugin/lto-plugin.c:7 : undefined reference to `htab_find_slot' c:\Gcc\Build-4.6.x\lto-plugin/../../gcc-4.6-20110205/lto-plugin/lto-plugin.c:7 : undefined reference to `htab_delete' .libs/lto-plugin.o: In function `process_symtab': c:\Gcc\Build-4.6.x\lto-plugin/../../gcc-4.6-20110205/lto-plugin/lto-plugin.c:8 : undefined reference to `xmalloc' .libs/lto-plugin.o: In function `claim_file_handler': c:\Gcc\Build-4.6.x\lto-plugin/../../gcc-4.6-20110205/lto-plugin/lto-plugin.c:8 : undefined reference to `asprintf' c:\Gcc\Build-4.6.x\lto-plugin/../../gcc-4.6-20110205/lto-plugin/lto-plugin.c:8 : undefined reference to `asprintf' c:\Gcc\Build-4.6.x\lto-plugin/../../gcc-4.6-20110205/lto-plugin/lto-plugin.c:8 : undefined reference to `xstrdup' c:\Gcc\Build-4.6.x\lto-plugin/../../gcc-4.6-20110205/lto-plugin/lto-plugin.c:8 : undefined reference to `simple_object_start_read' c:\Gcc\Build-4.6.x\lto-plugin/../../gcc-4.6-20110205/lto-plugin/lto-plugin.c:8 : undefined reference to `simple_object_find_sections' c:\Gcc\Build-4.6.x\lto-plugin/../../gcc-4.6-20110205/lto-plugin/lto-plugin.c:8 : undefined reference to `xstrerror' c:\Gcc\Build-4.6.x\lto-plugin/../../gcc-4.6-20110205/lto-plugin/lto-plugin.c:9 : undefined reference to `xrealloc' c:\Gcc\Build-4.6.x\lto-plugin/../../gcc-4.6-20110205/lto-plugin/lto-plugin.c:9 : undefined reference to `simple_object_release_read' .libs/lto-plugin.o: In function `process_option': c:\Gcc\Build-4.6.x\lto-plugin/../../gcc-4.6-20110205/lto-plugin/lto-plugin.c:9 : undefined reference to `xrealloc' c:\Gcc\Build-4.6.x\lto-plugin/../../gcc-4.6-20110205/lto-plugin/lto-plugin.c:9 : undefined reference to `xstrdup' c:\Gcc\Build-4.6.x\lto-plugin/../../gcc-4.6-20110205/lto-plugin/lto-plugin.c:9 : undefined reference to `xstrdup' c:\Gcc\Build-4.6.x\lto-plugin/../../gcc-4.6-20110205/lto-plugin/lto-plugin.c:9 : undefined reference to `xrealloc' collect2: ld returned 1 exit status make[3]: *** [liblto_plugin.la] Error 1 make[3]: Leaving directory `/c/Gcc/Build-4.6.x/lto-plugin' make[2]: *** [all-stage1-lto-plugin] Error 2 make[2]: Leaving directory `/c/Gcc/Build-4.6.x' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory `/c/Gcc/Build-4.6.x' make: *** [all] Error 2