Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 680238 - sys-devel/gdb-8.3.50.20190312 - automatic dependency on dev-util/source-highlight
Summary: sys-devel/gdb-8.3.50.20190312 - automatic dependency on dev-util/source-highl...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: https://sourceware.org/ml/gdb-patches...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-13 13:45 UTC by Jeroen Roovers (RETIRED)
Modified: 2019-03-14 09:57 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen Roovers (RETIRED) gentoo-dev 2019-03-13 13:45:53 UTC
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
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2019-03-13 13:46:08 UTC
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
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2019-03-13 13:48:59 UTC
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)
Comment 3 Sergei Trofimovich (RETIRED) gentoo-dev 2019-03-13 20:54:48 UTC
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?).
Comment 4 Sergei Trofimovich (RETIRED) gentoo-dev 2019-03-13 21:52:07 UTC
Proposed upstream as:
    https://sourceware.org/ml/gdb-patches/2019-03/msg00285.html
Comment 5 Larry the Git Cow gentoo-dev 2019-03-13 22:20:31 UTC
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(-)
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2019-03-14 09:57:12 UTC
(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.