[SOLVED] Re: devel/glib20 compile error

From: Marcelo Gondim <gondim_at_bsdinfo.com.br>
Date: Fri, 27 Sep 2013 17:00:55 -0300
Em 27/09/13 15:17, Marcelo Gondim escreveu:
> Hi all,
>
> Compiling devel/glib20 I got this error:
>
>
> gmake[6]: Leaving directory 
> `/usr/ports/devel/glib20/work/glib-2.36.3/glib/update-pcre'
> Making all in .
> gmake[6]: Entering directory 
> `/usr/ports/devel/glib20/work/glib-2.36.3/glib'
>   CC       libglib_2_0_la-gallocator.lo
>   CC       libglib_2_0_la-gcache.lo
>   CC       libglib_2_0_la-gcompletion.lo
>   CC       libglib_2_0_la-grel.lo
>   CC       libglib_2_0_la-gthread-deprecated.lo
>   CC       libglib_2_0_la-garray.lo
>   CC       libglib_2_0_la-gasyncqueue.lo
>   CC       libglib_2_0_la-gatomic.lo
> gatomic.c:392:10: warning: incompatible integer to pointer conversion 
> passing 'gssize' (aka 'long') to parameter of type 'gpointer' (aka 
> 'void *') [-Wint-conversion]
>   return g_atomic_pointer_add ((volatile gpointer *) atomic, val);
>          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ./gatomic.h:170:46: note: expanded from macro 'g_atomic_pointer_add'
>     (gssize) __sync_fetch_and_add ((atomic), 
> (val));                         \
>                                              ^~~~~
> gatomic.c:416:10: warning: incompatible integer to pointer conversion 
> passing 'gsize' (aka 'unsigned long') to parameter of type 'gpointer' 
> (aka 'void *') [-Wint-conversion]
>   return g_atomic_pointer_and ((volatile gpointer *) atomic, val);
>          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ./gatomic.h:177:45: note: expanded from macro 'g_atomic_pointer_and'
>     (gsize) __sync_fetch_and_and ((atomic), 
> (val));                          \
>                                             ^~~~~
> gatomic.c:440:10: warning: incompatible integer to pointer conversion 
> passing 'gsize' (aka 'unsigned long') to parameter of type 'gpointer' 
> (aka 'void *') [-Wint-conversion]
>   return g_atomic_pointer_or ((volatile gpointer *) atomic, val);
>          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ./gatomic.h:184:44: note: expanded from macro 'g_atomic_pointer_or'
>     (gsize) __sync_fetch_and_or ((atomic), 
> (val));                           \
>                                            ^~~~~
> gatomic.c:464:10: warning: incompatible integer to pointer conversion 
> passing 'gsize' (aka 'unsigned long') to parameter of type 'gpointer' 
> (aka 'void *') [-Wint-conversion]
>   return g_atomic_pointer_xor ((volatile gpointer *) atomic, val);
>          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ./gatomic.h:191:45: note: expanded from macro 'g_atomic_pointer_xor'
>     (gsize) __sync_fetch_and_xor ((atomic), 
> (val));                          \
>                                             ^~~~~
> 4 warnings generated.
>   CC       libglib_2_0_la-gbacktrace.lo
>   CC       libglib_2_0_la-gbase64.lo
>   CC       libglib_2_0_la-gbitlock.lo
>   CC       libglib_2_0_la-gbookmarkfile.lo
>   CC       libglib_2_0_la-gbytes.lo
>   CC       libglib_2_0_la-gcharset.lo
>   CC       libglib_2_0_la-gchecksum.lo
>   CC       libglib_2_0_la-gconvert.lo
>   CC       libglib_2_0_la-gdataset.lo
> gconvert.c:66:2: error: GNU libiconv not in use but included iconv.h 
> is from libiconv
> #error GNU libiconv not in use but included iconv.h is 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/local/include/iconv.h:83:48: note: passing argument to parameter 
> 'inbuf' here
> extern size_t iconv (iconv_t cd, const char* * inbuf, size_t 
> *inbytesleft, char* * outbuf, size_t *outbytesleft);
>                                                ^
>   CC       libglib_2_0_la-gdate.lo
> 1 warning and 1 error generated.
> gmake[6]: *** [libglib_2_0_la-gconvert.lo] Error 1
> gmake[6]: *** Waiting for unfinished jobs....
> gdataset.c:1191:3: warning: incompatible integer to pointer conversion 
> passing 'gsize' (aka 'unsigned long') to parameter of type 'GData *' 
> (aka 'struct _GData *')
>       [-Wint-conversion]
>   g_atomic_pointer_or (datalist, (gsize)flags);
>   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ./gatomic.h:184:44: note: expanded from macro 'g_atomic_pointer_or'
>     (gsize) __sync_fetch_and_or ((atomic), 
> (val));                           \
>                                            ^~~~~
> gdataset.c:1214:3: warning: incompatible integer to pointer conversion 
> passing 'gsize' (aka 'unsigned long') to parameter of type 'GData *' 
> (aka 'struct _GData *')
>       [-Wint-conversion]
>   g_atomic_pointer_and (datalist, ~(gsize)flags);
>   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ./gatomic.h:177:45: note: expanded from macro 'g_atomic_pointer_and'
>     (gsize) __sync_fetch_and_and ((atomic), 
> (val));                          \
>                                             ^~~~~
> gdate.c:432:43: warning: comparison of constant 8 with expression of 
> type 'GDateWeekday' is always true 
> [-Wtautological-constant-out-of-range-compare]
>   return ( (w > G_DATE_BAD_WEEKDAY) && (w < 8) );
>                                         ~ ^ ~
> 2 warnings generated.
> 1 warning generated.
> 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
>
> ===>>> make failed for devel/glib20
> ===>>> Aborting update
>
> ===>>> Killing background jobs
> Terminated
>
> My system:
>
> FreeBSD pppoebsd.teste.com.br 10.0-ALPHA3 FreeBSD 10.0-ALPHA3 #30 
> r255908: Fri Sep 27 09:44:33 BRT 2013 
> root_at_pppoebsd.teste.com.br:/usr/obj/usr/src/sys/TESTE10  amd64
>
I solved removing gcc and glib and compiling both again.  :)

Gondim
Received on Fri Sep 27 2013 - 18:01:00 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:42 UTC