[Bug 244925] devel/gcc-arm-embedded: Fix missing libiconv dependency for gdb
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Mar 19 23:09:15 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244925
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 at FreeBSD.org
Reporter: freebsd at skinc.ru
Assignee: lev at FreeBSD.org
Flags: maintainer-feedback?(lev at FreeBSD.org)
Created attachment 212539
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=212539&action=edit
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 invocation)
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.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list