https://sourceware.org/bugzilla/show_bug.cgi?id=20336
Bug ID: 20336 Summary: Incremental linking fails with internal error in relocate when building MySQL Product: binutils Version: 2.26 Status: UNCONFIRMED Severity: normal Priority: P2 Component: gold Assignee: ccoutant at gmail dot com Reporter: steinar+sourceware at gunderson dot no CC: ian at airs dot com Target Milestone: --- Hi, As the summary says, I can't link MySQL incrementally when building. Steps to reproduce: 1. Download mysql-5.7.13.tar.gz (e.g. from https://dev.mysql.com/downloads/file/?id=463488) and unpack it. 2. Build it with gold and incremental linking enabled: cmake . -DDOWNLOAD_BOOST=1 -DWITH_BOOST=$WITH_BOOST -DCMAKE_BUILD_TYPE=Debug -DCMAKE_SHARED_LINKER_FLAGS="-fuse-ld=gold -fno-use-linker-plugin -Wl,--incremental" -DCMAKE_EXE_LINKER_FLAGS="-fuse-ld=gold -fno-use-linker-plugin -Wl,--incremental" make -j8 3. Make a trivial change and attempt to relink: touch sql/opt_range.cc make [ 57%] Linking CXX executable pfs_connect_attr-t /usr/bin/ld.gold: internal error in relocate, at ../../gold/x86_64.cc:3584 collect2: error: ld returned 1 exit status storage/perfschema/unittest/CMakeFiles/pfs_connect_attr-t.dir/build.make:196: recipe for target 'storage/perfschema/unittest/pfs_connect_attr-t' failed make[2]: *** [storage/perfschema/unittest/pfs_connect_attr-t] Error 1 CMakeFiles/Makefile2:2110: recipe for target 'storage/perfschema/unittest/CMakeFiles/pfs_connect_attr-t.dir/all' failed make[1]: *** [storage/perfschema/unittest/CMakeFiles/pfs_connect_attr-t.dir/all] Error 2 Makefile:149: recipe for target 'all' failed make: *** [all] Error 2 For reference: atum17:/tmp/mysql-5.7.13> ld.gold --version GNU gold (GNU Binutils for Debian 2.26.1) 1.11 The system in general is Debian stretch, amd64. -- 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