pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: glib2 failure on NetBSD 9
On 1/27/23 08:41, Jason Bacon wrote:
On 1/27/23 07:15, Jason Bacon wrote:
On 1/27/23 06:45, Joerg Sonnenberger wrote:
Am Fri, Jan 27, 2023 at 09:44:28AM +0000 schrieb Patrick Welche:
On Wed, Jan 25, 2023 at 02:05:31PM -0600, Jason Bacon wrote:
Getting this build error in glib2. This is being run from pkg_chk
-su, so
in theory all installed dependencies should be up-to-date.
[815/1255] Generating gio/tests/plugin-resources.c with a custom
command
FAILED: gio/tests/plugin-resources.c
/home/bacon/Pkgsrc/pkgsrc/devel/glib2/work/glib-2.74.4/output/gio/glib-compile-resources
--compiler=gcc --target=gio/tests/plugin-resources.c
--sourcedir=/home/bacon/Pkgsrc/pkgsrc/devel/glib2/work/glib-2.74.4/gio/tests
--internal --generate-source --c-name _g_plugin
../gio/tests/test4.gresource.xml
GLib: Cannot convert message: Conversion from character set “UTF-8”
to “646”
is not supported
Conversion from character set “646” to “UTF-8” is not supported
I'm at a loss where the "646" is coming from. AFAICT the test tries to
encode a file containing the word "test1" + 0xa LF, which "file"
guesses
as ASCII, into UTF-8.
Guessing "646" has something to do with your build environment?
ISO 646 is ASCII.
Joerg
Here's my locale, which hasn't changed in years:
NetBSD netbsd9.acadix bacon ~ 1004: (pkgsrc): printenv|grep UTF
LC_ALL=C.UTF-8
LANG=C.UTF-8
Changing it to en_US.UTF-8 or en_GB.UTF-8 has no effect.
I removed everything except the core packages:
cwrappers-20220403 pkgsrc compiler wrappers
bootstrap-mk-files-20180901 *.mk files for the bootstrap bmake utility
bmake-20200524nb1 Portable (autoconf) version of NetBSD 'make' utility
pkg_install-20211115 Package management and administration tools for pkgsrc
openssl-1.1.1s Secure Socket Layer and cryptographic library
mozilla-rootcerts-openssl-2.10 Wedge for installing and managing
mozilla-rootcerts
Then ran cvs up.
Still getting the same error.
Here's my mk.conf:
# Example /home/bacon/Pkgsrc/pkg/etc/mk.conf file produced by
bootstrap-pkgsrc
# Tue Oct 19 19:27:40 CDT 2021
.ifdef BSD_PKG_MK # begin pkgsrc settings
ABI= 64
UNPRIVILEGED= yes
PKG_DBDIR= /home/bacon/Pkgsrc/pkg/pkgdb
LOCALBASE= /home/bacon/Pkgsrc/pkg
SYSCONFBASE= /home/bacon/Pkgsrc/pkg/etc
VARBASE= /home/bacon/Pkgsrc/pkg/var
PKG_TOOLS_BIN= /home/bacon/Pkgsrc/pkg/sbin
PKGINFODIR= info
PKGMANDIR= man
# WARNING: Changing PREFER_* after bootstrap will require rebuilding all
# packages with a dependency that switched between native/pkgsrc.
PREFER_PKGSRC= yes
.endif # end pkgsrc settings
.ifdef BSD_PKG_MK # Begin auto-pkgsrc-setup customizations
# For pkg_chk, etc.
PKGSRCDIR= /home/bacon/Pkgsrc/pkgsrc
PKGSRC_USE_RELRO= yes
PKGSRC_FORTRAN= gfortran
PKG_DEVELOPER= yes
FETCH_USING= ftp
SKIP_LICENSE_CHECK= yes
PKG_OPTIONS.libfetch= inet6 openssl
MAKE_JOBS= 2
X11_TYPE= modular
.endif # End auto-pkgsrc-setup customizations
Fresh pkgsrc install on NetBSD 9.3, built with MAKE_JOBS_SAFE=no, and
same error.
The problem only occurs on NetBSD. The build works fine on Darwin and
Alma Linux.
Here's a little more context:
[19/1255] Compiling C object glib/libglib-2.0.so.0.7400.4.p/gconvert.c.o
../glib/gconvert.c: In function 'g_iconv':
../glib/gconvert.c:282:21: warning: passing argument 2 of 'libiconv'
from incompatible pointer type [-Wincompatible-pointer-types]
return iconv (cd, inbuf, inbytes_left, outbuf, outbytes_left);
^~~~~
In file included from ../glib/gconvert.c:27:0:
/home/bacon/Pkgsrc/pkgsrc/devel/glib2/work/.buildlink/include/iconv.h:80:15:
note: expected 'const char **' but argument is of type 'gchar ** {aka
char **}'
#define iconv libiconv
^
/home/bacon/Pkgsrc/pkgsrc/devel/glib2/work/.buildlink/include/iconv.h:82:15:
note: in expansion of macro 'iconv'
extern size_t iconv (iconv_t cd, const char* * inbuf, size_t
*inbytesleft, char* * outbuf, size_t *outbytesleft);
^~~~~
[540/1255] Compiling C object
gio/kqueue/libkqueue.a.p/gkqueuefilemonitor.c.o
../gio/kqueue/gkqueuefilemonitor.c: In function
'g_kqueue_file_monitor_callback':
../gio/kqueue/gkqueuefilemonitor.c:336:51: warning: comparison between
pointer and integer
if (ev.filter != EVFILT_VNODE || ev.udata == NULL)
^~
../gio/kqueue/gkqueuefilemonitor.c:339:13: warning: assignment makes
pointer from integer without a cast [-Wint-conversion]
sub = ev.udata;
^
[755/1255] Compiling C object
gio/libgio-2.0.so.0.7400.4.p/glocalfileinfo.c.o
../gio/glocalfileinfo.c: In function 'get_content_type':
../gio/glocalfileinfo.c:1388:12: warning: unused variable 'errsv'
[-Wunused-variable]
int fd, errsv;
^~~~~
[818/1255] Generating gio/tests/plugin-resources.c with a custom command
FAILED: gio/tests/plugin-resources.c
/home/bacon/Pkgsrc/pkgsrc/devel/glib2/work/glib-2.74.4/output/gio/glib-compile-resources
--compiler=gcc --target=gio/tests/plugin-resources.c
--sourcedir=/home/bacon/Pkgsrc/pkgsrc/devel/glib2/work/glib-2.74.4/gio/tests
--internal --generate-source --c-name _g_plugin
../gio/tests/test4.gresource.xml
GLib: Cannot convert message: Conversion from character set “UTF-8” to
“646” is not supported
Conversion from character set “646” to “UTF-8” is not supported
ninja: build stopped: subcommand failed.
*** Error code 1
Stop.
bmake[1]: stopped in /home/bacon/Pkgsrc/pkgsrc/devel/glib2
*** Error code 1
Home |
Main Index |
Thread Index |
Old Index