Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Mar 2020 23:09:10 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 244925] devel/gcc-arm-embedded: Fix missing libiconv dependency for gdb
Message-ID:  <bug-244925-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D244925

            Bug ID: 244925
           Summary: devel/gcc-arm-embedded: Fix missing libiconv
                    dependency for gdb
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: lev@FreeBSD.org
          Reporter: freebsd@skinc.ru
          Assignee: lev@FreeBSD.org
             Flags: maintainer-feedback?(lev@FreeBSD.org)

Created attachment 212539
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D212539&action=
=3Dedit
Add libiconv option to gdb configure args

CXXLD can't link to libiconv due to a missing configure script argument:
...
ld: error: undefined symbol: libiconv_close
>>> referenced by charset.c
>>>               charset.o:(iconv_wrapper::~iconv_wrapper())
c++: error: linker command failed with exit code 1 (use -v to see invocatio=
n)
gmake[4]: *** [Makefile:1889: gdb] Error 1
gmake[4]: Leaving directory
'/usr/obj/xports/devel/gcc-arm-embedded/work/build/gdb/gdb'
gmake[3]: *** [Makefile:8792: all-gdb] Error 2
gmake[3]: Leaving directory
'/usr/obj/xports/devel/gcc-arm-embedded/work/build/gdb'
gmake[2]: *** [Makefile:849: all] Error 2
gmake[2]: Leaving directory
'/usr/obj/xports/devel/gcc-arm-embedded/work/build/gdb'
*** Error code 2

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

Stop.
make: stopped in /xports/devel/gcc-arm-embedded


How to reproduce (without waiting for several hours):
1. Go to /usr/ports/devel/gcc-arm-embedded
2. `make configure`
3. Go to ${WRKDIR}
4. `make build-gdb`

After applying the patch configure script successfully detect libiconv:
...
checking how to link with libiconv... /usr/local/lib/libiconv.so -Wl,-rpath
-Wl,/usr/local/lib
...
and the port is being built without errors.

P.S.
In addition, the patch removes a duplicate of "with-lzma" option.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-244925-7788>