CXXLD gdb /usr/lib/gcc/hppa2.0-unknown-linux-gnu/7.3.0/../../../../hppa2.0-unknown-linux-gnu/bin/ld: /usr/lib/gcc/hppa2.0-unknown-linux-gnu/7.3.0/../../../libsource-high light.so: undefined reference to `boost::re_detail_106500::cpp_regex_traits_implementation<char>::transform(char const*, char const*) const' /usr/lib/gcc/hppa2.0-unknown-linux-gnu/7.3.0/../../../../hppa2.0-unknown-linux-gnu/bin/ld: /usr/lib/gcc/hppa2.0-unknown-linux-gnu/7.3.0/../../../libsource-high light.so: undefined reference to `boost::re_detail_106500::cpp_regex_traits_implementation<char>::transform_primary(char const*, char const*) const' collect2: error: ld returned 1 exit status make[2]: *** [Makefile:1893: gdb] Error 1
karsten /var/tmp/portage/sys-devel/gdb-8.3.50.20190312 # grep -r -- -lsource-highlight work/gdb-8.3.50.20190312/gdb/config.log:SRCHIGH_LIBS='-lsource-highlight -lboost_regex ' work/gdb-8.3.50.20190312/gdb/config.status:S["SRCHIGH_LIBS"]="-lsource-highlight -lboost_regex " work/gdb-8.3.50.20190312/gdb/Makefile:SRCHIGH_LIBS = -lsource-highlight -lboost_regex
No configure switch either: gdb/configure.ac: # ---------------------------- # # Check for source highlight. # # ---------------------------- # SRCHIGH_LIBS= SRCHIGH_CFLAGS= AC_MSG_CHECKING([for the source-highlight library]) if test "${pkg_config_prog_path}" = "missing"; then AC_MSG_RESULT([no - pkg-config not found]) else if ${pkg_config_prog_path} --exists source-highlight; then SRCHIGH_CFLAGS=`${pkg_config_prog_path} --cflags source-highlight` SRCHIGH_LIBS=`${pkg_config_prog_path} --libs source-highlight` AC_DEFINE([HAVE_SOURCE_HIGHLIGHT], 1, [Define to 1 if the source-highlight library is available]) AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) fi fi AC_SUBST(SRCHIGH_LIBS) AC_SUBST(SRCHIGH_CFLAGS)
Good catch! Yeah, the dependency needs a knob. > /usr/lib/gcc/hppa2.0-unknown-linux-gnu/7.3.0/../../../../hppa2.0-unknown-linux-gnu/bin/ld: /usr/lib/gcc/hppa2.0-unknown-linux-gnu/7.3.0/../../../libsource-highlight.so: undefined reference to `boost::re_detail_106500::cpp_regex_traits_implementation<char>::transform(char const*, char const*) const' I think this hints at another issue: libsource-highlight.so it underlinked against boost (or was not rebuilt after boost update?).
Proposed upstream as: https://sourceware.org/ml/gdb-patches/2019-03/msg00285.html
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f8a6fa80e0d463b369defc387ba6e78f29cd67c7 commit f8a6fa80e0d463b369defc387ba6e78f29cd67c7 Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2019-03-13 22:10:48 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2019-03-13 22:20:24 +0000 sys-devel/gdb: add source-highlight depend, bug #680238 Found and diagnosed by Jeroen Roovers. Patch proposed upstream as: https://sourceware.org/ml/gdb-patches/2019-03/msg00285.html Reported-by: Jeroen Roovers Closes: https://bugs.gentoo.org/680238 Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> .../gdb-8.3.50.20190312-source-highlight.patch | 136 +++++++++++++++++++++ ...190312.ebuild => gdb-8.3.50.20190312-r1.ebuild} | 13 +- sys-devel/gdb/gdb-9999.ebuild | 9 +- sys-devel/gdb/metadata.xml | 1 + 4 files changed, 155 insertions(+), 4 deletions(-)
(In reply to Sergei Trofimovich from comment #3) > Good catch! Yeah, the dependency needs a knob. > > > /usr/lib/gcc/hppa2.0-unknown-linux-gnu/7.3.0/../../../../hppa2.0-unknown-linux-gnu/bin/ld: /usr/lib/gcc/hppa2.0-unknown-linux-gnu/7.3.0/../../../libsource-highlight.so: undefined reference to `boost::re_detail_106500::cpp_regex_traits_implementation<char>::transform(char const*, char const*) const' > > I think this hints at another issue: libsource-highlight.so it underlinked > against boost (or was not rebuilt after boost update?). Well, that's how I happened to find this bug. I guess @preserved-rebuild failed at some point.