Problem Building gdb

Luis Espinoza Jr. ljejr at hotmail.com
Sat Oct 5 23:38:36 UTC 2019


I'm having a problem building gdb using portmaster on freeBSD 11.3

It looks like lib-source-highlight.so can't find libboost_regex.so.
I'm not sure if the problem is with gdb or libsource-highlight.so, so I thought I would start at the top.
I have the boost-libs port installed; in fact it was recently updated and the problem remains. 
Actually, boost-libs is at version 1.71.0_1 and gdb requires 1.70.0. Shouldn't gdb accept a higher version
number? I have already tried deleting gdb and rebuilding the port.

I sent an email to the maintainer a few days ago but have not received a reply. I realize he is probably busy
but this gdb breakage is causing me a lot of problems, so I ask for help here.

The following is the output of uname -a, pkg info devel/gdb, and the end of the portmaster output.

uname -a =
FreeBSD xxxx 11.3-RELEASE-p3 FreeBSD 11.3-RELEASE-p3 #0: Mon Aug 19 21:08:43 UTC 2019
root at amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64

xxx at yyy:~ % pkg info devel/gdb
gdb-8.3_3
Name           : gdb
Version        : 8.3_3
Installed on   : Tue Jul 30 00:24:36 2019 EDT
Origin         : devel/gdb
Architecture   : FreeBSD:11:amd64
Prefix         : /usr/local
Categories     : devel
Licenses       : GPLv3
Maintainer     : pizzamig at FreeBSD.org
WWW            : http://www.gnu.org/software/gdb/
Comment        : GNU GDB of newer version than comes with the system
Options        :
        BUNDLED_READLINE: off
        BUNDLED_ZLIB   : off
        DEBUG          : on
        GDB_LINK       : on
        GUILE          : on
        KGDB           : on
        NLS            : on
        PORT_ICONV     : on
        PORT_READLINE  : on
        PYTHON         : on
        SOURCE_HIGHLIGHT: on
        SYSTEM_ICONV   : off
        SYSTEM_ZLIB    : on
        TUI            : on
Shared Libs required:
        libboost_regex.so.1.70.0
        libintl.so.8
        libexpat.so.1
        libreadline.so.8
        libiconv.so.2
        libgc-threaded.so.1
        libguile-2.2.so.1
        libsource-highlight.so.4
        libgmp.so.10
        libpython3.6m.so.1.0
        libmpfr.so.6
Annotations    :
        FreeBSD_version: 1102000
        cpe            : cpe:2.3:a:gnu:gdb:8.3:::::freebsd11:x64:3
        flavor         : py36
Flat size      : 51.2MiB
Description    :
GDB is a source-level debugger for Ada, C, C++, Objective-C, Pascal and
many other languages.  GDB can target (i.e., debug programs running on)
more than a dozen different processor architectures, and GDB itself can
run on most popular GNU/Linux, Unix and Microsoft Windows variants.

WWW: http://www.gnu.org/software/gdb/


Finally, the end of the portmaster output:

--snip--

  CXX    xtensa-config.o
  CXX    xtensa-linux-tdep.o
  CXX    xtensa-tdep.o
  CXX    init.o
  CXX    kgdb-main.o
  CXXLD  gdb
  CXXLD  kgdb
/usr/bin/ld: warning: libboost_regex.so.1.70.0, needed by /usr/local/lib/libsource-highlight.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libboost_regex.so.1.70.0, needed by /usr/local/lib/libsource-highlight.so, not found (try using -rpath or -rpath-link)
/usr/local/lib/libsource-highlight.so: undefined reference to `boost::re_detail_107000::raw_storage::resize(unsigned long)'
/usr/local/lib/libsource-highlight.so: undefined reference to `boost::re_detail_107000::lookup_default_collate_name(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)'
/usr/local/lib/libsource-highlight.so: undefined reference to `boost::re_detail_107000::verify_options(unsigned int, boost::regex_constants::_match_flags)'
/usr/local/lib/libsource-highlight.so: undefined reference to `boost::re_detail_107000::raw_storage::insert(unsigned long, unsigned long)'
/usr/local/lib/libsource-highlight.so: undefined reference to `boost::re_detail_107000::raise_runtime_error(std::runtime_error const&)'
/usr/local/lib/libsource-highlight.so: undefined reference to `boost::re_detail_107000::cpp_regex_traits_char_layer<char>::init()'
/usr/local/lib/libsource-highlight.so: undefined reference to `boost::re_detail_107000::get_default_error_string(boost::regex_constants::error_type)'
/usr/local/lib/libsource-highlight.so: undefined reference to `boost::re_detail_107000::get_mem_block()'
/usr/local/lib/libsource-highlight.so: undefined reference to `boost::re_detail_107000::put_mem_block(void*)'
/usr/local/lib/libsource-highlight.so: undefined reference to `boost::re_detail_107000::raw_storage::resize(unsigned long)'
c++: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[4]: *** [Makefile:1901: gdb] Error 1
gmake[4]: *** Waiting for unfinished jobs....
/usr/local/lib/libsource-highlight.so: undefined reference to `boost::re_detail_107000::lookup_default_collate_name(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)'
/usr/local/lib/libsource-highlight.so: undefined reference to `boost::re_detail_107000::verify_options(unsigned int, boost::regex_constants::_match_flags)'
/usr/local/lib/libsource-highlight.so: undefined reference to `boost::re_detail_107000::raw_storage::insert(unsigned long, unsigned long)'
/usr/local/lib/libsource-highlight.so: undefined reference to `boost::re_detail_107000::raise_runtime_error(std::runtime_error const&)'
/usr/local/lib/libsource-highlight.so: undefined reference to `boost::re_detail_107000::cpp_regex_traits_char_layer<char>::init()'
/usr/local/lib/libsource-highlight.so: undefined reference to `boost::re_detail_107000::get_default_error_string(boost::regex_constants::error_type)'
/usr/local/lib/libsource-highlight.so: undefined reference to `boost::re_detail_107000::get_mem_block()'
/usr/local/lib/libsource-highlight.so: undefined reference to `boost::re_detail_107000::put_mem_block(void*)'
c++: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[4]: *** [Makefile:1910: kgdb] Error 1
gmake[4]: Leaving directory '/usr/ports/devel/gdb/work-py36/gdb-8.3.1/gdb'
gmake[3]: *** [Makefile:7836: all-gdb] Error 2
gmake[3]: Leaving directory '/usr/ports/devel/gdb/work-py36/gdb-8.3.1'
gmake[2]: *** [Makefile:849: all] Error 2
gmake[2]: Leaving directory '/usr/ports/devel/gdb/work-py36/gdb-8.3.1'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/devel/gdb
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/gdb

===>>> make build failed for devel/gdb at py36
===>>> Aborting update


===>>> You can restart from the point of failure with this command line:
       portmaster <flags> devel/gdb at py36

This command has been saved to /tmp/portmasterfail.txt:

I tried passing MAKE_JOBS_UNSAFE=yes, as suggested in the portmaster output,
but that had no effect. Let me know if you need anymore information.

Cheers.


More information about the freebsd-ports mailing list