https://sourceware.org/bugzilla/show_bug.cgi?id=18821
Bug ID: 18821 Summary: make check and -flto -fno-fat-lto-objects Product: binutils Version: 2.26 (HEAD) Status: NEW Severity: normal Priority: P2 Component: gold Assignee: ccoutant at gmail dot com Reporter: dilyan.palauzov at aegee dot org CC: ian at airs dot com Target Milestone: --- /git/binutils-gdb/configure --enable-plugins --enable-threads --enable-gold --with-system-zlib --with-mmap --enable-lto cat /usr/local/etc/config.site export CFLAGS="-pipe -O3 -flto -fno-fat-lto-objects" export CXXFLAGS="${CFLAGS}" export LDFLAGS="-Wl,-O1,-z,relro,-s -flto=4" I expect, that the tests succeed, regardless how gold is built. I have gcc 5.2 and the newest gold/master. "cd gold && make check -k" prints (all 'is up to date' and 'Nothing to be done for' lines deleted) make[2]: Entering directory '/home/d/binutils/gold/testsuite' make libgoldtest.a object_unittest binary_unittest leb128_unittest icf_virtual_function_folding_test large_symbol_alignment basic_test basic_pic_test eh_test basic_static_test basic_static_pic_test basic_pie_test constructor_test constructor_static_test two_file_test two_file_pic_test two_file_static_test two_file_shared_1_test two_file_shared_2_test two_file_shared_1_pic_2_test two_file_shared_2_pic_1_test two_file_same_shared_test two_file_separate_shared_12_test two_file_separate_shared_21_test two_file_relocatable_test two_file_pie_test pie_copyrelocs_test weak_unresolved_symbols_test two_file_strip_test two_file_same_shared_strip_test common_test_1 common_test_2 exception_test exception_shared_1_test exception_shared_2_test exception_same_shared_test exception_separate_shared_12_test exception_separate_shared_21_test exception_static_test weak_test weak_undef_test weak_undef_test_2 weak_alias_test weak_plt copy_test tls_test tls_pic_test tls_pie_test tls_pie_pic_test tls_shared_test tls_shared_ie_test tls_shared_gd_to_ie_test tls_shared_gnu2_gd_to_ie_test tls_shared_gnu2_test tls_static_test tls_static_pic_test many_sections_test many_sections_r_test initpri1 initpri2 initpri3a flagstest_o_specialfile flagstest_compress_debug_sections_none flagstest_compress_debug_sections flagstest_compress_debug_sections_and_build_id_tree flagstest_compress_debug_sections_gnu flagstest_compress_debug_sections_gabi flagstest_o_specialfile_and_compress_debug_sections flagstest_o_ttext_1 ver_test ver_test_2 ver_test_6 ver_test_8 ver_test_9 ver_test_11 ver_test_12 protected_1 protected_2 relro_test relro_now_test relro_strip_test relro_script_test script_test_1 script_test_2 justsyms justsyms_exec binary_test script_test_3 tls_phdrs_script_test tls_script_test script_test_11 script_test_12 script_test_12i dynamic_list_2 thin_archive_test_1 thin_archive_test_2 plugin_test_1 plugin_test_2 plugin_test_3 plugin_test_4 plugin_test_5 plugin_test_6 plugin_test_7 plugin_test_8 plugin_test_10 plugin_test_11 plugin_test_tls exclude_libs_test local_labels_test discard_locals_test large permission_test searched_file_test ifuncmain1 ifuncmain1pic ifuncmain1vis ifuncmain1vispic ifuncmain1staticpic ifuncmain1pie ifuncmain1vispie ifuncmain1staticpie ifuncmain2 ifuncmain2pic ifuncmain3 ifuncmain4 ifuncmain5 ifuncmain5pic ifuncmain5staticpic ifuncmain5pie ifuncmain6pie ifuncmain7 ifuncmain7pic ifuncmain7pie ifuncvar start_lib_test ehdr_start_test_1 ehdr_start_test_2 ehdr_start_test_3 ehdr_start_test_5 incremental_test_2 incremental_test_3 incremental_test_4 incremental_test_5 incremental_test_6 incremental_copy_test incremental_common_test_1 incremental_comdat_test_1 exception_x86_64_bnd_test \ incremental_test.sh gc_comdat_test.sh gc_tls_test.sh gc_orphan_section_test.sh pr14265.sh gc_dynamic_list_test.sh icf_test.sh icf_keep_unique_test.sh icf_safe_test.sh icf_safe_so_test.sh final_layout.sh text_section_grouping.sh section_sorting_name.sh icf_preemptible_functions_test.sh icf_string_merge_test.sh icf_sht_rel_addend_test.sh merge_string_literals.sh two_file_shared.sh weak_plt.sh tls_pie_test.sh x86_64_mov_to_lea.sh debug_msg.sh missing_key_func.sh undef_symbol.sh pr18689.sh ver_test_1.sh ver_test_2.sh ver_test_4.sh ver_test_5.sh ver_test_7.sh ver_test_10.sh relro_test.sh ver_matching_test.sh script_test_3.sh script_test_4.sh script_test_5.sh script_test_6.sh script_test_7.sh script_test_8.sh script_test_9.sh dynamic_list.sh plugin_test_1.sh plugin_test_2.sh plugin_test_3.sh plugin_test_4.sh plugin_test_6.sh plugin_test_7.sh plugin_test_10.sh plugin_test_11.sh plugin_test_tls.sh plugin_final_layout.sh exclude_libs_test.sh discard_locals_test.sh hidden_test.sh retain_symbols_file_test.sh no_version_test.sh strong_ref_weak_def.sh dyn_weak_ref.sh memory_test.sh gdb_index_test_1.sh gdb_index_test_2.sh gdb_index_test_2_gabi.sh gdb_index_test_3.sh gdb_index_test_4.sh ehdr_start_test_4.sh defsym_test.sh script_test_10.sh split_x86_64.sh dwp_test_1.sh dwp_test_2.sh incremental_test.stdout gc_comdat_test.stdout gc_tls_test.stdout gc_orphan_section_test.stdout pr14265.stdout gc_dynamic_list_test.stdout icf_test.map icf_keep_unique_test.stdout icf_safe_test_1.stdout icf_safe_test_2.stdout icf_safe_test.map icf_safe_so_test_1.stdout icf_safe_so_test_2.stdout icf_safe_so_test.map final_layout.stdout text_section_grouping.stdout text_section_no_grouping.stdout section_sorting_name.stdout icf_preemptible_functions_test.stdout icf_string_merge_test.stdout icf_sht_rel_addend_test.stdout merge_string_literals.stdout two_file_shared.dbg weak_plt_shared.so tls_pie_test.stdout x86_64_mov_to_lea1.stdout x86_64_mov_to_lea2.stdout x86_64_mov_to_lea3.stdout x86_64_mov_to_lea4.stdout x86_64_mov_to_lea5.stdout x86_64_mov_to_lea6.stdout x86_64_mov_to_lea7.stdout x86_64_mov_to_lea8.stdout x86_64_mov_to_lea9.stdout x86_64_mov_to_lea10.stdout x86_64_mov_to_lea11.stdout x86_64_mov_to_lea12.stdout x86_64_mov_to_lea13.stdout x86_64_mov_to_lea14.stdout debug_msg.err missing_key_func.err debug_msg_cdebug.err debug_msg_cdebug_gabi.err debug_msg_so.err debug_msg_ndebug.err undef_symbol.err flagstest_compress_debug_sections_none.stdout flagstest_compress_debug_sections.stdout flagstest_compress_debug_sections.cmp flagstest_compress_debug_sections.check flagstest_compress_debug_sections_gnu.stdout flagstest_compress_debug_sections_gnu.cmp flagstest_compress_debug_sections_gnu.check flagstest_compress_debug_sections_gabi.stdout flagstest_compress_debug_sections_gabi.cmp flagstest_compress_debug_sections_gabi.check pr18689.stdout flagstest_o_ttext_2 ver_test_1.syms ver_test_2.syms ver_test_4.syms ver_test_5.syms ver_test_7.syms ver_test_10.syms protected_3.err relro_test.stdout ver_matching_test.stdout script_test_3.stdout script_test_4.stdout script_test_5.stdout script_test_6.stdout script_test_7.stdout script_test_8.stdout script_test_9.stdout dynamic_list.stdout plugin_test_1.err plugin_test_2.err plugin_test_3.err plugin_test_4.err plugin_test_6.err plugin_test_7.err plugin_test_7.o.syms plugin_test_9.err plugin_test_10.sections plugin_test_11.err plugin_test_tls.err plugin_final_layout.stdout plugin_final_layout_readelf.stdout exclude_libs_test.syms discard_locals_test.syms discard_locals_relocatable_test1.syms discard_locals_relocatable_test2.syms hidden_test.err retain_symbols_file_test.stdout no_version_test.stdout strong_ref_weak_def.stdout dyn_weak_ref.stdout memory_test.stdout memory_test_2 gdb_index_test_1.stdout gdb_index_test_2.stdout gdb_index_test_2_gabi.stdout gdb_index_test_3.stdout gdb_index_test_4.stdout ehdr_start_test_4.syms defsym_test.syms script_test_10.stdout split_x86_64_1.stdout split_x86_64_2.stdout split_x86_64_3.stdout split_x86_64_4.stdout split_x86_64_r.stdout dwp_test_1.stdout dwp_test_2.stdout make[3]: Entering directory '/home/d/binutils/gold/testsuite' g++ -W -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fmerge-constants -pipe -O3 -flto -fno-fat-lto-objects -Bgcctestdir/ -Wl,-R,. -Wl,-O1,-z,relro,-s -flto=4 -o ver_test ver_test_main.o ver_test_1.so ver_test_2.so ver_test_4.so -ldl ver_test_2.so: error: undefined reference to 't1_2' /tmp/ccPbyUC8.ltrans0.ltrans.o:<artificial>:function main: error: undefined reference to 't2_2' collect2: error: ld returned 1 exit status Makefile:3843: recipe for target 'ver_test' failed make[3]: *** [ver_test] Error 1 g++ -W -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fmerge-constants -pipe -O3 -flto -fno-fat-lto-objects -Bgcctestdir/ -Wl,-R,. -Wl,-O1,-z,relro,-s -flto=4 -o ver_test_2 ver_test_main_2.o ver_test_4.so ver_test_2.so -ldl /tmp/ccSusUxg.ltrans0.ltrans.o:<artificial>:function main: error: undefined reference to 't1_2' collect2: error: ld returned 1 exit status Makefile:3852: recipe for target 'ver_test_2' failed make[3]: *** [ver_test_2] Error 1 g++ -W -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fmerge-constants -pipe -O3 -flto -fno-fat-lto-objects -Bgcctestdir/ -Wl,-R,. -Wl,-O1,-z,relro,-s -flto=4 -o ver_test_11 ver_test_main_2.o ver_test_11.a -ldl /tmp/ccoStdAn.ltrans0.ltrans.o:<artificial>:function main: error: undefined reference to 't1_2' collect2: error: ld returned 1 exit status Makefile:3846: recipe for target 'ver_test_11' failed make[3]: *** [ver_test_11] Error 1 g++ -W -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fmerge-constants -pipe -O3 -flto -fno-fat-lto-objects -Bgcctestdir/ -Wl,-R,. -Wl,-O1,-z,relro,-s -flto=4 -o ver_test_12 ver_test_main_2.o ver_test_12.o -ldl /tmp/ccSLVYUt.ltrans0.ltrans.o:<artificial>:function main: error: undefined reference to 't1_2' collect2: error: ld returned 1 exit status Makefile:3849: recipe for target 'ver_test_12' failed make[3]: *** [ver_test_12] Error 1 gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fmerge-constants -pipe -O3 -flto -fno-fat-lto-objects -Bgcctestdir/ -Wl,-R,justsyms_lib -Wl,-O1,-z,relro,-s -flto=4 -o justsyms_exec justsyms_exec.o -ldl justsyms_lib: plugin needed to handle lto object /tmp/ccwU2FkB.ltrans0.ltrans.o:<artificial>:function main: error: undefined reference to 'exported_func' /tmp/ccwU2FkB.ltrans0.ltrans.o:<artificial>:function main: error: undefined reference to 'exported_data' /tmp/ccwU2FkB.ltrans0.ltrans.o:<artificial>:function main: error: undefined reference to 'exported_data' collect2: error: ld returned 1 exit status Makefile:3507: recipe for target 'justsyms_exec' failed make[3]: *** [justsyms_exec] Error 1 `echo gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fmerge-constants -pipe -O3 -flto -fno-fat-lto-objects -Wl,-O1,-z,relro,-s -flto=4 -o script_test_11 | sed -e 's/-Wp,-D_FORTIFY_SOURCE=[0-9][0-9]*//'` -Bgcctestdir/ script_test_11_r.o /tmp/ccEEwCIy.ltrans0.ltrans.o:<artificial>:function main: error: undefined reference to '__foo_end' /tmp/ccEEwCIy.ltrans0.ltrans.o:<artificial>:function main: error: undefined reference to '__foo_start' collect2: error: ld returned 1 exit status Makefile:5832: recipe for target 'script_test_11' failed make[3]: *** [script_test_11] Error 1 g++ -W -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fmerge-constants -pipe -O3 -flto -fno-fat-lto-objects -Bgcctestdir/ -Lalt -Wl,-O1,-z,relro,-s -flto=4 -o thin_archive_test_1 thin_archive_main.o libthin1.a -lthin2 -ldl /tmp/ccKs5vKD.ltrans0.ltrans.o:<artificial>:function main: error: undefined reference to 't1()' collect2: error: ld returned 1 exit status Makefile:3705: recipe for target 'thin_archive_test_1' failed make[3]: *** [thin_archive_test_1] Error 1 g++ -W -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fmerge-constants -pipe -O3 -flto -fno-fat-lto-objects -Bgcctestdir/ -L. -Wl,-O1,-z,relro,-s -flto=4 -o thin_archive_test_2 thin_archive_main.o -lthinall -ldl /tmp/cc2CuqSM.ltrans0.ltrans.o:<artificial>:function main: error: undefined reference to 't1()' collect2: error: ld returned 1 exit status Makefile:3708: recipe for target 'thin_archive_test_2' failed make[3]: *** [thin_archive_test_2] Error 1 `echo g++ -W -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fmerge-constants -pipe -O3 -flto -fno-fat-lto-objects -Wl,-O1,-z,relro,-s -flto=4 -o plugin_test_1 | sed -e 's/-Wp,-D_FORTIFY_SOURCE=[0-9][0-9]*//'` -Bgcctestdir/ -Wl,--no-demangle,--plugin,"./plugin_test.so",--plugin-opt,"_Z4f13iv" two_file_test_main.o two_file_test_1.o.syms two_file_test_1b.o.syms two_file_test_2.o.syms empty.o.syms 2>plugin_test_1.err Makefile:5888: recipe for target 'plugin_test_1' failed make[3]: *** [plugin_test_1] Error 1 `echo g++ -W -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fmerge-constants -pipe -O3 -flto -fno-fat-lto-objects -Wl,-O1,-z,relro,-s -flto=4 -o plugin_test_2 | sed -e 's/-Wp,-D_FORTIFY_SOURCE=[0-9][0-9]*//'` -Bgcctestdir/ -Wl,--no-demangle,-R,.,--plugin,"./plugin_test.so" two_file_test_main.o two_file_test_1.o.syms two_file_test_1b.o.syms two_file_shared_2.so 2>plugin_test_2.err Makefile:5892: recipe for target 'plugin_test_2' failed make[3]: *** [plugin_test_2] Error 1 `echo g++ -W -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fmerge-constants -pipe -O3 -flto -fno-fat-lto-objects -Wl,-O1,-z,relro,-s -flto=4 -o plugin_test_3 | sed -e 's/-Wp,-D_FORTIFY_SOURCE=[0-9][0-9]*//'` -Bgcctestdir/ -Wl,--export-dynamic -Wl,--no-demangle,--plugin,"./plugin_test.so",--plugin-opt,"_Z4f13iv" two_file_test_main.o two_file_test_1.o.syms two_file_test_1b.o.syms two_file_test_2.o.syms empty.o.syms 2>plugin_test_3.err Makefile:5896: recipe for target 'plugin_test_3' failed make[3]: *** [plugin_test_3] Error 1 `echo g++ -W -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fmerge-constants -pipe -O3 -flto -fno-fat-lto-objects -Wl,-O1,-z,relro,-s -flto=4 -o plugin_test_4 | sed -e 's/-Wp,-D_FORTIFY_SOURCE=[0-9][0-9]*//'` -Bgcctestdir/ -Wl,--no-demangle,--plugin,"./plugin_test.so",--plugin-opt,"_Z4f13iv" two_file_test_main.o -Wl,--whole-archive,plugin_test_4.a,--no-whole-archive 2>plugin_test_4.err Makefile:5900: recipe for target 'plugin_test_4' failed make[3]: *** [plugin_test_4] Error 1 `echo g++ -W -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fmerge-constants -pipe -O3 -flto -fno-fat-lto-objects -Wl,-O1,-z,relro,-s -flto=4 -o plugin_test_5 | sed -e 's/-Wp,-D_FORTIFY_SOURCE=[0-9][0-9]*//'` -Bgcctestdir/ -Wl,--no-demangle,--plugin,"./plugin_test.so",--plugin-opt,"_Z4f13iv",--gc-sections two_file_test_main.o two_file_test_1.o.syms two_file_test_1b.o.syms two_file_test_2.o.syms unused.o.syms API version: 1 gold version: 111 option: _Z4f13iv /usr/lib/x86_64-linux-gnu/crt1.o: claim file hook called (offset = 0, size = 1864) /usr/lib/x86_64-linux-gnu/crti.o: claim file hook called (offset = 0, size = 1360) /usr/local/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/crtbegin.o: claim file hook called (offset = 0, size = 3256) two_file_test_1.o.syms: claim file hook called (offset = 0, size = 2493) two_file_test_1.o.syms: claiming file, adding 2 symbols two_file_test_1b.o.syms: claim file hook called (offset = 0, size = 1354) two_file_test_1b.o.syms: claiming file, adding 2 symbols two_file_test_2.o.syms: claim file hook called (offset = 0, size = 2013) two_file_test_2.o.syms: claiming file, adding 2 symbols unused.o.syms: claim file hook called (offset = 0, size = 1341) unused.o.syms: claiming file, adding 3 symbols /usr/local/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/crtend.o: claim file hook called (offset = 0, size = 2136) /usr/lib/x86_64-linux-gnu/crtn.o: claim file hook called (offset = 0, size = 1080) /usr/local/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../../lib64/libstdc++.so: claim file hook called (offset = 0, size = 2083568) /usr/lib/x86_64-linux-gnu/libm.so: claim file hook called (offset = 0, size = 1051056) /usr/local/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../../lib64/libgcc_s.so: claim file hook called (offset = 0, size = 564144) /usr/lib/x86_64-linux-gnu/libc.so: claim file hook called (offset = 0, size = 298) /lib/x86_64-linux-gnu/libc.so.6: claim file hook called (offset = 0, size = 1729984) /usr/lib/x86_64-linux-gnu/libc_nonshared.a: claim file hook called (offset = 518, size = 1728) /lib/x86_64-linux-gnu/ld-linux-x86-64.so.2: claim file hook called (offset = 0, size = 140928) /usr/local/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../../lib64/libgcc_s.so: claim file hook called (offset = 0, size = 564144) all symbols read hook called two_file_test_1.o.syms: __gnu_lto_v1: PREVAILING_DEF_IRONLY two_file_test_1.o.syms: __gnu_lto_slim: PREVAILING_DEF_IRONLY two_file_test_1b.o.syms: __gnu_lto_v1: RESOLVED_IR two_file_test_1b.o.syms: __gnu_lto_slim: RESOLVED_IR two_file_test_2.o.syms: __gnu_lto_v1: RESOLVED_IR two_file_test_2.o.syms: __gnu_lto_slim: RESOLVED_IR unused.o.syms: __gnu_lto_v1: RESOLVED_IR unused.o.syms: __gnu_lto_slim: RESOLVED_IR unused.o.syms: UNUSED: PREVAILING_DEF_IRONLY two_file_test_1.o: adding new input file two_file_test_1b.o: adding new input file two_file_test_2.o: adding new input file unused.o: adding new input file two_file_test_1.o: plugin needed to handle lto object two_file_test_1b.o: plugin needed to handle lto object two_file_test_2.o: plugin needed to handle lto object unused.o: plugin needed to handle lto object /tmp/ccRV3XEo.ltrans0.ltrans.o:<artificial>:function main: error: undefined reference to 'v4' /tmp/ccRV3XEo.ltrans0.ltrans.o:<artificial>:function main: error: undefined reference to 'v3' /tmp/ccRV3XEo.ltrans0.ltrans.o:<artificial>:function main: error: undefined reference to 'v5' /tmp/ccRV3XEo.ltrans0.ltrans.o:<artificial>:function main: error: undefined reference to 'v4' /tmp/ccRV3XEo.ltrans0.ltrans.o:<artificial>:function main: error: undefined reference to 'v5' /tmp/ccRV3XEo.ltrans0.ltrans.o:<artificial>:function main: error: undefined reference to 'v4' /tmp/ccRV3XEo.ltrans0.ltrans.o:<artificial>:function main: error: undefined reference to 'v5' /tmp/ccRV3XEo.ltrans0.ltrans.o:<artificial>:function main: error: undefined reference to '_Z2t1v' /tmp/ccRV3XEo.ltrans0.ltrans.o:<artificial>:function main: error: undefined reference to '_Z3t1av' /tmp/ccRV3XEo.ltrans0.ltrans.o:<artificial>:function main: error: undefined reference to '_Z2t2v' /tmp/ccRV3XEo.ltrans0.ltrans.o:<artificial>:function main: error: undefined reference to '_Z2t3v' /tmp/ccRV3XEo.ltrans0.ltrans.o:<artificial>:function main: error: undefined reference to '_Z2t4v' /tmp/ccRV3XEo.ltrans0.ltrans.o:<artificial>:function main: error: undefined reference to '_Z2t5v' /tmp/ccRV3XEo.ltrans0.ltrans.o:<artificial>:function main: error: undefined reference to '_Z2t6v' /tmp/ccRV3XEo.ltrans0.ltrans.o:<artificial>:function main: error: undefined reference to '_Z2t7v' /tmp/ccRV3XEo.ltrans0.ltrans.o:<artificial>:function main: error: undefined reference to '_Z2t8v' /tmp/ccRV3XEo.ltrans0.ltrans.o:<artificial>:function main: error: undefined reference to '_Z2t9v' /tmp/ccRV3XEo.ltrans0.ltrans.o:<artificial>:function main: error: undefined reference to '_Z3t10v' /tmp/ccRV3XEo.ltrans0.ltrans.o:<artificial>:function main: error: undefined reference to '_Z3t11v' /tmp/ccRV3XEo.ltrans0.ltrans.o:<artificial>:function main: error: undefined reference to '_Z3t12v' /tmp/ccRV3XEo.ltrans0.ltrans.o:<artificial>:function main: error: undefined reference to '_Z3t13v' /tmp/ccRV3XEo.ltrans0.ltrans.o:<artificial>:function main: error: undefined reference to '_Z3t16v' /tmp/ccRV3XEo.ltrans0.ltrans.o:<artificial>:function main: error: undefined reference to '_Z4t16av' /tmp/ccRV3XEo.ltrans0.ltrans.o:<artificial>:function main: error: undefined reference to '_Z3t17v' /tmp/ccRV3XEo.ltrans0.ltrans.o:<artificial>:function main: error: undefined reference to '_Z3t18v' cleanup hook called collect2: error: ld returned 1 exit status Makefile:5907: recipe for target 'plugin_test_5' failed make[3]: *** [plugin_test_5] Error 1 `echo g++ -W -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fmerge-constants -pipe -O3 -flto -fno-fat-lto-objects -Wl,-O1,-z,relro,-s -flto=4 -o plugin_test_6 | sed -e 's/-Wp,-D_FORTIFY_SOURCE=[0-9][0-9]*//'` -Bgcctestdir/ -Wl,--no-demangle,--plugin,"./plugin_test.so" plugin_common_test_1.o.syms plugin_common_test_2.o.syms 2>plugin_test_6.err Makefile:5909: recipe for target 'plugin_test_6' failed make[3]: *** [plugin_test_6] Error 1 `echo gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fmerge-constants -pipe -O3 -flto -fno-fat-lto-objects -Wl,-O1,-z,relro,-s -flto=4 -o plugin_test_7 | sed -e 's/-Wp,-D_FORTIFY_SOURCE=[0-9][0-9]*//'` -Bgcctestdir/ -Wl,--no-demangle,--plugin,"./plugin_test.so",--gc-sections,--print-gc-sections plugin_test_7_1.o.syms plugin_test_7_2.o 2>plugin_test_7.err Makefile:5913: recipe for target 'plugin_test_7' failed make[3]: *** [plugin_test_7] Error 1 `echo g++ -W -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fmerge-constants -pipe -O3 -flto -fno-fat-lto-objects -Wl,-O1,-z,relro,-s -flto=4 -o plugin_test_10 | sed -e 's/-Wp,-D_FORTIFY_SOURCE=[0-9][0-9]*//'` -Bgcctestdir/ -Wl,--no-demangle,--plugin,"./plugin_test.so" plugin_common_test_1.o.syms plugin_common_test_2.o API version: 1 gold version: 111 /usr/lib/x86_64-linux-gnu/crt1.o: claim file hook called (offset = 0, size = 1864) /usr/lib/x86_64-linux-gnu/crti.o: claim file hook called (offset = 0, size = 1360) /usr/local/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/crtbegin.o: claim file hook called (offset = 0, size = 3256) plugin_common_test_1.o.syms: claim file hook called (offset = 0, size = 1357) plugin_common_test_1.o.syms: claiming file, adding 2 symbols /usr/local/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/crtend.o: claim file hook called (offset = 0, size = 2136) /usr/lib/x86_64-linux-gnu/crtn.o: claim file hook called (offset = 0, size = 1080) /usr/local/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../../lib64/libstdc++.so: claim file hook called (offset = 0, size = 2083568) /usr/lib/x86_64-linux-gnu/libm.so: claim file hook called (offset = 0, size = 1051056) /usr/local/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../../lib64/libgcc_s.so: claim file hook called (offset = 0, size = 564144) /usr/lib/x86_64-linux-gnu/libc.so: claim file hook called (offset = 0, size = 298) /lib/x86_64-linux-gnu/libc.so.6: claim file hook called (offset = 0, size = 1729984) /usr/lib/x86_64-linux-gnu/libc_nonshared.a: claim file hook called (offset = 518, size = 1728) /lib/x86_64-linux-gnu/ld-linux-x86-64.so.2: claim file hook called (offset = 0, size = 140928) /usr/local/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../../lib64/libgcc_s.so: claim file hook called (offset = 0, size = 564144) all symbols read hook called plugin_common_test_1.o.syms: __gnu_lto_v1: PREVAILING_DEF_IRONLY plugin_common_test_1.o.syms: __gnu_lto_slim: PREVAILING_DEF_IRONLY plugin_common_test_1.o: adding new input file plugin_common_test_1.o: plugin needed to handle lto object /usr/lib/x86_64-linux-gnu/crt1.o(.text+0x20): error: undefined reference to 'main' cleanup hook called collect2: error: ld returned 1 exit status Makefile:5944: recipe for target 'plugin_test_10' failed make[3]: *** [plugin_test_10] Error 1 `echo g++ -W -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fmerge-constants -pipe -O3 -flto -fno-fat-lto-objects -Wl,-O1,-z,relro,-s -flto=4 -o plugin_test_11 | sed -e 's/-Wp,-D_FORTIFY_SOURCE=[0-9][0-9]*//'` -Bgcctestdir/ -Wl,--no-demangle,--plugin,"./plugin_test.so",--plugin-opt,"_Z4f13iv" two_file_test_main.o plugin_test_thin.a 2>plugin_test_11.err Makefile:5948: recipe for target 'plugin_test_11' failed make[3]: *** [plugin_test_11] Error 1 `echo g++ -W -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fmerge-constants -pipe -O3 -flto -fno-fat-lto-objects -Wl,-O1,-z,relro,-s -flto=4 -o plugin_test_tls | sed -e 's/-Wp,-D_FORTIFY_SOURCE=[0-9][0-9]*//'` -Bgcctestdir/ -Wl,--no-demangle,--plugin,"./plugin_test.so",--plugin-opt,"_Z4f13iv" two_file_test_tls.o two_file_test_1.o.syms two_file_test_1b.o.syms two_file_test_2_tls.o.syms 2>plugin_test_tls.err Makefile:5977: recipe for target 'plugin_test_tls' failed make[3]: *** [plugin_test_tls] Error 1 gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fmerge-constants -pipe -O3 -flto -fno-fat-lto-objects -Bgcctestdir/ -L. -Lalt -Wl,--exclude-libs,dummy:libexclude_libs_test_1 -Wl,--exclude-libs,libexclude_libs_test_3 -Wl,-O1,-z,relro,-s -flto=4 -o exclude_libs_test exclude_libs_test.o -lexclude_libs_test_1 -lexclude_libs_test_2 alt/libexclude_libs_test_3.a -ldl /tmp/ccJc6Z7S.ltrans0.ltrans.o:<artificial>:function main: error: undefined reference to 'lib1_default' /tmp/ccJc6Z7S.ltrans0.ltrans.o:<artificial>:function main: error: undefined reference to 'lib2_default' /tmp/ccJc6Z7S.ltrans0.ltrans.o:<artificial>:function main: error: undefined reference to 'lib3_default' collect2: error: ld returned 1 exit status Makefile:3135: recipe for target 'exclude_libs_test' failed make[3]: *** [exclude_libs_test] Error 1 g++ -W -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fmerge-constants -pipe -O3 -flto -fno-fat-lto-objects -Bgcctestdir/ -Lalt -Wl,-O1,-z,relro,-s -flto=4 -o searched_file_test searched_file_test.o -l:searched_file_test_lib.a -ldl /tmp/cc6NAr1W.ltrans0.ltrans.o:<artificial>:function main: error: undefined reference to 'zero_from_lib' collect2: error: ld returned 1 exit status Makefile:3696: recipe for target 'searched_file_test' failed make[3]: *** [searched_file_test] Error 1 gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fmerge-constants -pipe -O3 -flto -fno-fat-lto-objects -Bgcctestdir/ -Wl,-O1,-z,relro,-s -flto=4 -o ifuncmain7 ifuncmain7.o -ldl /tmp/ccFoYZR3.ltrans0.ltrans.o:<artificial>:function get_foo: error: undefined reference to 'foo.lto_priv.0' /tmp/ccFoYZR3.ltrans0.ltrans.o:<artificial>:function get_foo_p: error: undefined reference to 'foo.lto_priv.0' /tmp/ccFoYZR3.ltrans0.ltrans.o:<artificial>:function main: error: undefined reference to 'foo.lto_priv.0' /tmp/ccFoYZR3.ltrans0.ltrans.o:<artificial>:function main: error: undefined reference to 'foo.lto_priv.0' collect2: error: ld returned 1 exit status Makefile:3381: recipe for target 'ifuncmain7' failed make[3]: *** [ifuncmain7] Error 1 `echo gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fmerge-constants -pipe -O3 -flto -fno-fat-lto-objects -Wl,-O1,-z,relro,-s -flto=4 -o ifuncmain7pic | sed -e 's/-Wp,-D_FORTIFY_SOURCE=[0-9][0-9]*//'` -Bgcctestdir/ ifuncmain7pic.o /tmp/ccOxkmUc.ltrans0.ltrans.o:<artificial>:function get_foo: error: undefined reference to 'foo.lto_priv.0' /tmp/ccOxkmUc.ltrans0.ltrans.o:<artificial>:function get_foo_p: error: undefined reference to 'foo.lto_priv.0' /tmp/ccOxkmUc.ltrans0.ltrans.o:<artificial>:function main: error: undefined reference to 'foo.lto_priv.0' /tmp/ccOxkmUc.ltrans0.ltrans.o:<artificial>:function main: error: undefined reference to 'foo.lto_priv.0' collect2: error: ld returned 1 exit status Makefile:6164: recipe for target 'ifuncmain7pic' failed make[3]: *** [ifuncmain7pic] Error 1 `echo gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fmerge-constants -pipe -O3 -flto -fno-fat-lto-objects -Wl,-O1,-z,relro,-s -flto=4 -o ifuncmain7pie | sed -e 's/-Wp,-D_FORTIFY_SOURCE=[0-9][0-9]*//'` -Bgcctestdir/ -pie ifuncmain7pie.o /tmp/ccwIIkmg.ltrans0.ltrans.o:<artificial>:function get_foo: error: undefined reference to 'foo.lto_priv.0' /tmp/ccwIIkmg.ltrans0.ltrans.o:<artificial>:function get_foo_p: error: undefined reference to 'foo.lto_priv.0' /tmp/ccwIIkmg.ltrans0.ltrans.o:<artificial>:function main: error: undefined reference to 'foo.lto_priv.0' /tmp/ccwIIkmg.ltrans0.ltrans.o:<artificial>:function main: error: undefined reference to 'foo.lto_priv.0' collect2: error: ld returned 1 exit status Makefile:6166: recipe for target 'ifuncmain7pie' failed make[3]: *** [ifuncmain7pie] Error 1 `echo gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fmerge-constants -pipe -O3 -flto -fno-fat-lto-objects -Wl,-O1,-z,relro,-s -flto=4 -o start_lib_test | sed -e 's/-Wp,-D_FORTIFY_SOURCE=[0-9][0-9]*//'` -Bgcctestdir/ -o start_lib_test start_lib_test_main.o -L. -lstart_lib_test \ -Wl,--start-lib start_lib_test_2.o start_lib_test_3.o -Wl,--end-lib /tmp/cc2DdWmq.ltrans0.ltrans.o:<artificial>:function main: error: undefined reference to 't1' collect2: error: ld returned 1 exit status Makefile:6199: recipe for target 'start_lib_test' failed make[3]: *** [start_lib_test] Error 1 cp -f two_file_test_1_v1_ndebug.o two_file_test_tmp_2.o `echo g++ -W -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fmerge-constants -pipe -O3 -flto -fno-fat-lto-objects -Wl,-O1,-z,relro,-s -flto=4 -o incremental_test_2 | sed -e 's/-Wp,-D_FORTIFY_SOURCE=[0-9][0-9]*//'` -Wl,--incremental-full,--incremental-patch=100 -Wl,-z,norelro -Bgcctestdir/ two_file_test_tmp_2.o two_file_test_1b_ndebug.o two_file_test_2_ndebug.o two_file_test_main_ndebug.o gcctestdir/ld: fatal error: incremental linking is not compatible with --plugin collect2: error: ld returned 1 exit status Makefile:6275: recipe for target 'incremental_test_2' failed make[3]: *** [incremental_test_2] Error 1 cp -f two_file_test_1b_v1.o two_file_test_tmp_3.o `echo g++ -W -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fmerge-constants -pipe -O3 -flto -fno-fat-lto-objects -Wl,-O1,-z,relro,-s -flto=4 -o incremental_test_3 | sed -e 's/-Wp,-D_FORTIFY_SOURCE=[0-9][0-9]*//'` -Wl,--incremental-full,--incremental-patch=100 -Wl,-z,norelro -Bgcctestdir/ two_file_test_1.o two_file_test_tmp_3.o two_file_test_2.o two_file_test_main.o gcctestdir/ld: fatal error: incremental linking is not compatible with --plugin collect2: error: ld returned 1 exit status Makefile:6282: recipe for target 'incremental_test_3' failed make[3]: *** [incremental_test_3] Error 1 cp -f two_file_test_2_v1.o two_file_test_tmp_4.o `echo g++ -W -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fmerge-constants -pipe -O3 -flto -fno-fat-lto-objects -Wl,-O1,-z,relro,-s -flto=4 -o incremental_test_4 | sed -e 's/-Wp,-D_FORTIFY_SOURCE=[0-9][0-9]*//'` -Wl,--incremental-full,--incremental-patch=100 -Wl,-z,norelro -Bgcctestdir/ two_file_test_1.o two_file_test_1b.o two_file_test_tmp_4.o two_file_test_main.o gcctestdir/ld: fatal error: incremental linking is not compatible with --plugin collect2: error: ld returned 1 exit status Makefile:6289: recipe for target 'incremental_test_4' failed make[3]: *** [incremental_test_4] Error 1 cp -f two_file_test_1b_v1.o two_file_test_tmp_5.o ../../binutils/ar rc two_file_test_5.a two_file_test_1.o two_file_test_tmp_5.o two_file_test_2.o ../../binutils/ar: two_file_test_1.o: plugin needed to handle lto object ../../binutils/ar: two_file_test_tmp_5.o: plugin needed to handle lto object ../../binutils/ar: two_file_test_2.o: plugin needed to handle lto object `echo g++ -W -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fmerge-constants -pipe -O3 -flto -fno-fat-lto-objects -Wl,-O1,-z,relro,-s -flto=4 -o incremental_test_5 | sed -e 's/-Wp,-D_FORTIFY_SOURCE=[0-9][0-9]*//'` -Wl,--incremental-full,--incremental-patch=100 -Wl,-z,norelro -Bgcctestdir/ two_file_test_main.o two_file_test_5.a gcctestdir/ld: fatal error: incremental linking is not compatible with --plugin collect2: error: ld returned 1 exit status Makefile:6297: recipe for target 'incremental_test_5' failed make[3]: *** [incremental_test_5] Error 1 cp -f two_file_test_1b.o two_file_test_tmp_6.o ../../binutils/ar rc two_file_test_6.a two_file_test_1.o two_file_test_tmp_6.o two_file_test_2.o ../../binutils/ar: two_file_test_1.o: plugin needed to handle lto object ../../binutils/ar: two_file_test_tmp_6.o: plugin needed to handle lto object ../../binutils/ar: two_file_test_2.o: plugin needed to handle lto object `echo g++ -W -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fmerge-constants -pipe -O3 -flto -fno-fat-lto-objects -Wl,-O1,-z,relro,-s -flto=4 -o incremental_test_6 | sed -e 's/-Wp,-D_FORTIFY_SOURCE=[0-9][0-9]*//'` -Wl,--incremental-full,--incremental-patch=100 -Wl,-z,norelro -Bgcctestdir/ two_file_test_main.o two_file_test_6.a gcctestdir/ld: fatal error: incremental linking is not compatible with --plugin collect2: error: ld returned 1 exit status Makefile:6306: recipe for target 'incremental_test_6' failed make[3]: *** [incremental_test_6] Error 1 cp -f copy_test_v1.o copy_test_tmp.o `echo g++ -W -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fmerge-constants -pipe -O3 -flto -fno-fat-lto-objects -Wl,-O1,-z,relro,-s -flto=4 -o incremental_copy_test | sed -e 's/-Wp,-D_FORTIFY_SOURCE=[0-9][0-9]*//'` -Wl,--incremental-full,--incremental-patch=100 -Wl,-z,norelro -Bgcctestdir/ -Wl,-R,. -Wl,--no-as-needed copy_test_tmp.o copy_test_1.so copy_test_2.so gcctestdir/ld: fatal error: incremental linking is not compatible with --plugin collect2: error: ld returned 1 exit status Makefile:6314: recipe for target 'incremental_copy_test' failed make[3]: *** [incremental_copy_test] Error 1 cp -f common_test_1_v1.o common_test_1_tmp.o `echo g++ -W -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fmerge-constants -pipe -O3 -flto -fno-fat-lto-objects -Wl,-O1,-z,relro,-s -flto=4 -o incremental_common_test_1 | sed -e 's/-Wp,-D_FORTIFY_SOURCE=[0-9][0-9]*//'` -Wl,--incremental-full,--incremental-patch=100 -Wl,-z,norelro -Bgcctestdir/ common_test_1_tmp.o gcctestdir/ld: fatal error: incremental linking is not compatible with --plugin collect2: error: ld returned 1 exit status Makefile:6320: recipe for target 'incremental_common_test_1' failed make[3]: *** [incremental_common_test_1] Error 1 cp -f incr_comdat_test_2_v1.o incr_comdat_test_1_tmp.o `echo g++ -W -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fmerge-constants -pipe -O3 -flto -fno-fat-lto-objects -Wl,-O1,-z,relro,-s -flto=4 -o incremental_comdat_test_1 | sed -e 's/-Wp,-D_FORTIFY_SOURCE=[0-9][0-9]*//'` -Wl,--incremental-full,--incremental-patch=100 -Wl,-z,norelro -Bgcctestdir/ incr_comdat_test_1.o incr_comdat_test_1_tmp.o gcctestdir/ld: fatal error: incremental linking is not compatible with --plugin collect2: error: ld returned 1 exit status Makefile:6326: recipe for target 'incremental_comdat_test_1' failed make[3]: *** [incremental_comdat_test_1] Error 1 `echo gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fmerge-constants -pipe -O3 -flto -fno-fat-lto-objects -Wl,-O1,-z,relro,-s -flto=4 -o incremental_test | sed -e 's/-Wp,-D_FORTIFY_SOURCE=[0-9][0-9]*//'` -Bgcctestdir/ -Wl,--incremental-full -Wl,-z,norelro incremental_test_1.o incremental_test_2.o -Wl,-debug 2> incremental_test.cmdline Makefile:5051: recipe for target 'incremental_test' failed make[3]: *** [incremental_test] Error 1 make[3]: Target 'incremental_test.stdout' not remade because of errors. ../../binutils/readelf -SW flagstest_compress_debug_sections | egrep ".debug_.* C *" > flagstest_compress_debug_sections.check.tmp Makefile:5630: recipe for target 'flagstest_compress_debug_sections.check' failed make[3]: *** [flagstest_compress_debug_sections.check] Error 1 ../../binutils/readelf -SW flagstest_compress_debug_sections_gnu | grep ".zdebug_" > flagstest_compress_debug_sections_gnu.check.tmp Makefile:5650: recipe for target 'flagstest_compress_debug_sections_gnu.check' failed make[3]: *** [flagstest_compress_debug_sections_gnu.check] Error 1 ../../binutils/readelf -tW flagstest_compress_debug_sections_gabi | grep "COMPRESSED" > flagstest_compress_debug_sections_gabi.check.tmp Makefile:5670: recipe for target 'flagstest_compress_debug_sections_gabi.check' failed make[3]: *** [flagstest_compress_debug_sections_gabi.check] Error 1 make[3]: Target 'plugin_test_1.err' not remade because of errors. make[3]: Target 'plugin_test_2.err' not remade because of errors. make[3]: Target 'plugin_test_3.err' not remade because of errors. make[3]: Target 'plugin_test_4.err' not remade because of errors. make[3]: Target 'plugin_test_6.err' not remade because of errors. make[3]: Target 'plugin_test_7.err' not remade because of errors. make[3]: Target 'plugin_test_7.o.syms' not remade because of errors. cp two_file_test_1.o.syms two_file_test_1c.o.syms.tmp grep "_Z4t16av" two_file_test_1b.o.syms >> two_file_test_1c.o.syms.tmp Makefile:5938: recipe for target 'two_file_test_1c.o.syms' failed make[3]: *** [two_file_test_1c.o.syms] Error 1 make[3]: Target 'plugin_test_9.err' not remade because of errors. make[3]: Target 'plugin_test_10.sections' not remade because of errors. make[3]: Target 'plugin_test_11.err' not remade because of errors. make[3]: Target 'plugin_test_tls.err' not remade because of errors. make[3]: Target 'exclude_libs_test.syms' not remade because of errors. make[3]: Leaving directory '/home/d/binutils/gold/testsuite' Makefile:4884: recipe for target 'check-am' failed make[2]: *** [check-am] Error 2 make[2]: Leaving directory '/home/d/binutils/gold/testsuite' Makefile:4888: recipe for target 'check' failed make[1]: *** [check] Error 2 make[1]: Leaving directory '/home/d/binutils/gold/testsuite' make[1]: Entering directory '/home/d/binutils/gold' make ld1 ld2 ld1-r ld2-r ld4 ld3 make[2]: Entering directory '/home/d/binutils/gold' make[2]: Leaving directory '/home/d/binutils/gold' make check-TESTS make[2]: Entering directory '/home/d/binutils/gold' make[3]: Entering directory '/home/d/binutils/gold' PASS: bootstrap-test PASS: bootstrap-test-r PASS: bootstrap-test-treehash-chunksize ================== All 4 tests passed ================== make[3]: Leaving directory '/home/d/binutils/gold' make[2]: Leaving directory '/home/d/binutils/gold' make[1]: Leaving directory '/home/d/binutils/gold' Makefile:874: recipe for target 'check-recursive' failed make: *** [check-recursive] Error 1 make: Target 'check' not remade because of errors. -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils