[Bug 285571] devel/gcc-arm-embedded: fails to build when textproc/source-highlight is installed

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 21 Mar 2025 07:10:00 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285571

            Bug ID: 285571
           Summary: devel/gcc-arm-embedded: fails to build when
                    textproc/source-highlight is installed
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: ice@extreme.hu
                CC: lev@FreeBSD.org, tcberner@freebsd.org
                CC: lev@FreeBSD.org, tcberner@freebsd.org

Pretty much what it says on the tin - if source-highlight (pulled in by at
least devel/gdb) is installed, building gcc-arm-embedded keels over:

  CXXLD  gdb
/usr/local/bin/ld: source-cache.o: in function `source_cache::ensure(symtab*)':
source-cache.c:(.text+0x64d): undefined reference to
`srchilite::SourceHighlight::SourceHighlight(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)'
/usr/local/bin/ld: source-cache.c:(.text+0x75b): undefined reference to
`srchilite::SourceHighlight::highlight(std::istream&, std::ostream&,
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&, std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&)'
collect2: error: ld returned 1 exit status
gmake[5]: *** [Makefile:1866: gdb] Error 1
gmake[5]: Leaving directory
'/usr/ports/devel/gcc-arm-embedded/work/build/gdb/gdb'
gmake[4]: *** [Makefile:9731: all-gdb] Error 2
gmake[4]: Leaving directory '/usr/ports/devel/gcc-arm-embedded/work/build/gdb'
gmake[3]: *** [Makefile:853: all] Error 2
gmake[3]: Leaving directory '/usr/ports/devel/gcc-arm-embedded/work/build/gdb'
*** Error code 2

Stop.
make[2]: stopped in /usr/ports/devel/gcc-arm-embedded/work
*** Error code 1

Uninstalling source-highlight makes the build run to completion.

-- 
You are receiving this mail because:
You are the assignee for the bug.