http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47230
Summary: gcc fails to bootstrap on alpha in stage2 with "relocation truncated to fit: GPREL16 against ..." Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap AssignedTo: unassig...@gcc.gnu.org ReportedBy: ubiz...@gmail.com GCC fails to bootstrap on alphaev68-unknown-linux-gnu in stage2 with: /home/uros/gcc-build/./prev-gcc/xgcc -B/home/uros/gcc-build/./prev-gcc/ -B/usr/local/alphaev68-unknown-linux-gnu/bin/ -B/usr/local/alphaev68-unknown-linux-gnu/bin/ -B/usr/local/alphaev68-unknown-linux-gnu/lib/ -isystem /usr/local/alphaev68-unknown-linux-gnu/include -isystem /usr/local/alphaev68-unknown-linux-gnu/sys-include -g -O2 -gtoggle -DIN_GCC -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -Wold-style-definition -Wc++-compat -fno-common -DHAVE_CONFIG_H -static-libstdc++ -static-libgcc -o lto1 \ lto/lto-lang.o lto/lto.o lto/lto-object.o attribs.o main.o tree-browser.o libbackend.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a -lcloog -lppl_c -lppl -lgmpxx -lmpc -lmpfr -lgmp -rdynamic -ldl -L../zlib -lz ../libcpp/libcpp.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a libbackend.a(cfgbuild.o): In function `find_many_sub_basic_blocks': (.text+0x450): relocation truncated to fit: GPREL16 against symbol `default_target_rtl' defined in .bss section in libbackend.a(emit-rtl.o) libbackend.a(cfgbuild.o): In function `find_many_sub_basic_blocks': (.text+0xdc4): relocation truncated to fit: GPREL16 against symbol `default_target_rtl' defined in .bss section in libbackend.a(emit-rtl.o) libbackend.a(cfgcleanup.o): In function `mark_effect': (.text+0x3e4): relocation truncated to fit: GPREL16 against symbol `default_target_rtl' defined in .bss section in libbackend.a(emit-rtl.o) libbackend.a(cfgcleanup.o): In function `try_crossjump_to_edge.isra.24': (.text+0x1f98): relocation truncated to fit: GPREL16 against symbol `default_target_rtl' defined in .bss section in libbackend.a(emit-rtl.o) libbackend.a(cfgcleanup.o): In function `cleanup_cfg': (.text+0x4870): relocation truncated to fit: GPREL16 against symbol `default_target_rtl' defined in .bss section in libbackend.a(emit-rtl.o) libbackend.a(cfgcleanup.o): In function `cleanup_cfg': (.text+0x4f94): relocation truncated to fit: GPREL16 against symbol `default_target_rtl' defined in .bss section in libbackend.a(emit-rtl.o) libbackend.a(combine.o): In function `can_combine_p.isra.17': (.text+0xae28): relocation truncated to fit: GPREL16 against symbol `default_target_rtl' defined in .bss section in libbackend.a(emit-rtl.o) libbackend.a(combine.o): In function `combine_simplify_rtx': (.text+0x10204): relocation truncated to fit: GPREL16 against symbol `default_target_rtl' defined in .bss section in libbackend.a(emit-rtl.o) libbackend.a(combine.o): In function `combine_simplify_rtx': (.text+0x12640): relocation truncated to fit: GPREL16 against symbol `default_target_rtl' defined in .bss section in libbackend.a(emit-rtl.o) libbackend.a(combine.o): In function `simplify_if_then_else': (.text+0x138f8): relocation truncated to fit: GPREL16 against symbol `default_target_rtl' defined in .bss section in libbackend.a(emit-rtl.o) libbackend.a(combine.o): In function `simplify_if_then_else': (.text+0x13d08): additional relocation overflows omitted from the output collect2: ld returned 1 exit status gmake[3]: *** [lto1] Error 1 gmake[3]: Leaving directory `/space/uros/gcc-build/gcc' gmake[2]: *** [all-stage2-gcc] Error 2 gmake[2]: Leaving directory `/space/uros/gcc-build' gmake[1]: *** [stage2-bubble] Error 2 gmake[1]: Leaving directory `/space/uros/gcc-build' gmake: *** [all] Error 2 It looks that "default_target_rtl" symbol can not be reached with GP relative relocation anymore.