ports/187086: devel/glibc20 fails compiling with error including libiconv.h
Thomas Schweikle
tps at vr-web.de
Wed Feb 26 16:00:00 UTC 2014
>Number: 187086
>Category: ports
>Synopsis: devel/glibc20 fails compiling with error including libiconv.h
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Feb 26 16:00:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator: Thomas Schweikle
>Release: FreeBSD 11.0-CURRENT
>Organization:
>Environment:
FreeBSD fbsdc-64.bfs.de 11.0-CURRENT FreeBSD 11.0-CURRENT #11 r262482: Wed Feb 26 01:59:26 CET 2014 root at fbsdc-64.bfs.de:/usr/obj/usr/src/sys/FBSDC-64 amd64
>Description:
Port devel/glibc20 doesn't compile:
_ENABLE_DEBUG -DGLIB_COMPILATION -DPCRE_STATIC -I/usr/local/include -pthread -Wall -Wstrict-prototypes -Werror=implicit-function-declaration -Werror=init-self -Werror=format-security -Werror=missing-include-dirs -O2 -pipe -fno-strict-aliasing -MT libglib_2_0_la-gconvert.lo -MD -MP -MF .deps/libglib_2_0_la-gconvert.Tpo -c gconvert.c -fPIC -DPIC -o .libs/libglib_2_0_la-gconvert.o
gconvert.c:62:2: error: GNU libiconv in use but included iconv.h not from libiconv
#error GNU libiconv in use but included iconv.h not from libiconv
^
gconvert.c:310:21: warning: passing 'gchar **' (aka 'char **') to parameter of type 'const char **' discards qualifiers in nested
pointer types [-Wincompatible-pointer-types-discards-qualifiers]
return iconv (cd, inbuf, inbytes_left, outbuf, outbytes_left);
^~~~~
/usr/include/iconv.h:56:47: note: passing argument to parameter here
size_t iconv(iconv_t, const char ** __restrict,
^
1 warning and 1 error generated.
gmake[6]: *** [libglib_2_0_la-gconvert.lo] Error 1
gmake[6]: Leaving directory `/usr/ports/devel/glib20/work/glib-2.36.3/glib'
gmake[5]: *** [all-recursive] Error 1
gmake[5]: Leaving directory `/usr/ports/devel/glib20/work/glib-2.36.3/glib'
gmake[4]: *** [all] Error 2
gmake[4]: Leaving directory `/usr/ports/devel/glib20/work/glib-2.36.3/glib'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/usr/ports/devel/glib20/work/glib-2.36.3'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/usr/ports/devel/glib20/work/glib-2.36.3'
===> 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/glib20
*** Error code 1
Stop.
make: stopped in /usr/ports/devel/glib20
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade20140226-81373-1h11bpy env UPGRADE_TOOL=portupgrade UPGRADE_PORT=glib-2.36.3_1 UPGRADE_PORT_VER=2.36.3_1 make
** Fix the problem and try again.
---> Skipping 'emulators/open-vm-tools-nox11' (open-vm-tools-nox11-1280544_2,1) because a requisite package 'glib-2.36.3_1' (devel/glib20) failed (specify -k to force)
** Listing the failed packages (-:ignored / *:skipped / !:failed)
! devel/glib20 (glib-2.36.3_1) (new compiler error)
* emulators/open-vm-tools-nox11 (open-vm-tools-nox11-1280544_2,1)
Cleaning out /usr/ports/*/*/work...
Delete /usr/ports/devel/glib20/work
done.
Detecting unreferenced distfiles...
[Reading data from pkg(8) ... - 143 packages found - done]
no unreferenced distfiles found.
In tune emulators/open-vm-tools-nox11 fails. This seems related to changes for llvm and accompanying libraries. In this case libiconv.
>How-To-Repeat:
Compile devel/glibc20 on FreeBSD 10-STABLE or 11-CURRENT. On both systems compilation fails if done with the default compiler from the llvm-toolchain.
>Fix:
Unknown. If switching to gnu libiconv other parts of the system won't compile.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list