pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/54298: devel/glib2 fails to build



>Number:         54298
>Category:       pkg
>Synopsis:       devel/glib2 fails to build
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 17 01:50:00 +0000 2019
>Originator:     John Klos
>Release:        NetBSD 8.0_BETA
>Organization:
	
>Environment:
	
	
System: NetBSD hlin.zia.io 8.0_BETA NetBSD 8.0_BETA (HLIN) #0: Fri Jul 27 17:29:37 UTC 2018 john%helena.zia.io@localhost:/usr/netbsd-8_BETA/obj-evbarm/sys/arch/evbarm/compile/HLIN evbarm
Architecture: earmv7hf
Machine: evbarm
>Description:
	
Compiling devel/glib2 on earmv7hf (NetBSD 8 from a year ago and from now) fails with:

[76/578] Compiling C object 'glib/4430778@@glib-2.0@sha/gmem.c.o'.
../glib/gmem.c:51:3: warning: initialization from incompatible pointer type 
[-Wincompatible-pointer-types]
   malloc,
   ^
../glib/gmem.c:51:3: note: (near initialization for 'glib_mem_vtable.malloc')
../glib/gmem.c:52:3: warning: initialization from incompatible pointer type 
[-Wincompatible-pointer-types]
   realloc,
   ^
../glib/gmem.c:52:3: note: (near initialization for 'glib_mem_vtable.realloc')
../glib/gmem.c:54:3: warning: initialization from incompatible pointer type 
[-Wincompatible-pointer-types]
   calloc,
   ^
../glib/gmem.c:54:3: note: (near initialization for 'glib_mem_vtable.calloc')
../glib/gmem.c:55:3: warning: initialization from incompatible pointer type 
[-Wincompatible-pointer-types]
   malloc,
   ^
../glib/gmem.c:55:3: note: (near initialization for 'glib_mem_vtable.try_malloc')
../glib/gmem.c:56:3: warning: initialization from incompatible pointer type 
[-Wincompatible-pointer-types]
   realloc,
   ^
../glib/gmem.c:56:3: note: (near initialization for 'glib_mem_vtable.try_reallo')
[98/578] Compiling C object 'glib/4430778@@glib-2.0@sha/gslice.c.o'.
FAILED: glib/4430778@@glib-2.0@sha/gslice.c.o 
gcc -Iglib/4430778@@glib-2.0@sha -Iglib -I../glib -I. -I../ -I/usr/local/include 
-I/usr/include -I/usr/local/include/python3.7 -fdiagnostics-color=always -pipe 
-D_FILE_OFFSET_BITS=64 -std=gnu89 -D_GNU_SOURCE -fno-strict-aliasing -Wall 
-Wstrict-prototypes -Wunused -Wno-bad-function-cast -Wno-pedantic 
-Werror=declaration-after-statement -Werror=format=2 -Werror=implicit-function-declaration 
-Werror=init-self -Werror=missing-include-dirs -Werror=missing-prototypes 
-Werror=pointer-arith -O2 -D_FORTIFY_SOURCE=2 -fPIC -pthread '-DG_LOG_DOMAIN="GLib"' 
-DGLIB_COMPILATION -fvisibility=hidden -MD -MQ 'glib/4430778@@glib-2.0@sha/gslice.c.o' -MF 
'glib/4430778@@glib-2.0@sha/gslice.c.o.d' -o 'glib/4430778@@glib-2.0@sha/gslice.c.o' -c 
../glib/gslice.c
../glib/gslice.c: In function 'smc_notify_free':
../glib/gslice.c:1527:26: error: format '%u' expects argument of type 'unsigned int', but 
argument 4 has type 'size_t {aka long unsigned int}' [-Werror=format=]
       g_fprintf (stderr, "GSlice: MemChecker: attempt to release non-allocated block: %p 
size=%" G_GSIZE_FORMAT "\n", pointer, size);
                          ^
../glib/gslice.c:1532:26: error: format '%u' expects argument of type 'unsigned int', but 
argument 4 has type 'SmcVType {aka long unsigned int}' [-Werror=format=]
       g_fprintf (stderr, "GSlice: MemChecker: attempt to release block with invalid size: 
%p size=%" G_GSIZE_FORMAT " invalid-size=%" G_GSIZE_FORMAT "\n", pointer, real_size, size);
                          ^
../glib/gslice.c:1532:26: error: format '%u' expects argument of type 'unsigned int', but 
argument 5 has type 'size_t {aka long unsigned int}' [-Werror=format=]
../glib/gslice.c:1537:26: error: format '%u' expects argument of type 'unsigned int', but 
argument 4 has type 'size_t {aka long unsigned int}' [-Werror=format=]
       g_fprintf (stderr, "GSlice: MemChecker: attempt to release non-allocated block: %p 
size=%" G_GSIZE_FORMAT "\n", pointer, size);
                          ^
cc1: some warnings being treated as errors
[103/578] Compiling C object 'glib/4430778@@glib-2.0@sha/gstrfuncs.c.o'.
ninja: build stopped: subcommand failed.
*** Error code 1

Stop.


earm NetBSD 8 fails with:

[50/578] Compiling C object 'glib/4430778@@glib-2.0@sha/gatomic.c.o'.
FAILED: glib/4430778@@glib-2.0@sha/gatomic.c.o 
gcc -Iglib/4430778@@glib-2.0@sha -Iglib -I../glib -I. -I../ -I/usr/local/include 
-I/usr/include -I/usr/local/include/python3.7 -fdiagnostics-color=always -pipe 
-D_FILE_OFFSET_BITS=64 -std=gnu89 -D_GNU_SOURCE -fno-strict-aliasing -Wall 
-Wstrict-prototypes -Wunused -Wno-bad-function-cast -Wno-pedantic 
-Werror=declaration-after-statement -Werror=format=2 -Werror=implicit-function-declaration 
-Werror=init-self -Werror=missing-include-dirs -Werror=missing-prototypes 
-Werror=pointer-arith -O2 -D_FORTIFY_SOURCE=2 -fPIC -pthread '-DG_LOG_DOMAIN="GLib"' 
-DGLIB_COMPILATION -fvisibility=hidden -MD -MQ 'glib/4430778@@glib-2.0@sha/gatomic.c.o' -MF 
'glib/4430778@@glib-2.0@sha/gatomic.c.o.d' -o 'glib/4430778@@glib-2.0@sha/gatomic.c.o' -c 
../glib/gatomic.c
../glib/gatomic.c:675:2: error: #error G_ATOMIC_LOCK_FREE defined, but incapable of 
lock-free atomics.
 #error G_ATOMIC_LOCK_FREE defined, but incapable of lock-free atomics.
  ^
[51/578] Compiling C object 'tests/59830eb@@onceinit@exe/onceinit.c.o'.
ninja: build stopped: subcommand failed.
*** Error code 1

Stop.
make[1]: stopped in /usr/pkgsrc/devel/glib2
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/devel/glib2


>How-To-Repeat:
	
>Fix:
	

>Unformatted:
 	
 	


Home | Main Index | Thread Index | Old Index