[Buildroot] [autobuild.buildroot.net] Your build results for 2018-04-07

Thomas Petazzoni thomas.petazzoni at bootlin.com
Wed Apr 11 13:19:10 UTC 2018


Hello,

On Wed, 11 Apr 2018 09:39:24 -0300 (BRT), Carlos Santos wrote:

> I investigated it a little bit more and it seems to be restricted to
> the rather old GCC used in that build.
> 
> $ host/bin/powerpc-ctng_e500v2-linux-gnuspe-gcc --version
> powerpc-ctng_e500v2-linux-gnuspe-gcc (crosstool-NG hg+-c65fcf8a34b7) 4.7.3
> $ echo -e '#include <glib-object.h>\n' | host/bin/powerpc-ctng_e500v2-linux-gnuspe-gcc -x c -I staging/usr/include/glib-2.0 -I staging/usr/lib/glib-2.0/include -Wall -Werror -c - -o /tmp/foo.o
> In file included from staging/usr/include/glib-2.0/gobject/gbinding.h:29:0,
>                  from staging/usr/include/glib-2.0/glib-object.h:23,
>                  from <stdin>:1:
> staging/usr/include/glib-2.0/gobject/gobject.h: In function 'g_set_object':
> staging/usr/include/glib-2.0/gobject/gobject.h:725:5: error: value computed is not used [-Werror=unused-value]
> cc1: all warnings being treated as errors
> 
> Using newer GCC versions:
> 
> $ host/bin/powerpc-e500v2-linux-gnuspe-gcc --version
> powerpc-e500v2-linux-gnuspe-gcc (crosstool-NG 1.20.0) 4.8.2
> $ echo -e '#include <glib-object.h>\n' | host/bin/powerpc-e500v2-linux-gnuspe-gcc -x c -I staging/usr/include/glib-2.0 -I staging/usr/lib/glib-2.0/include -Wall -Werror -c - -o /tmp/foo.o
> [success]
> 
> $ host/bin/powerpc-buildroot-linux-uclibc-gcc --version
> powerpc-buildroot-linux-uclibc-gcc.br_real (Buildroot 2016.08-git-01162-g94c7298) 4.9.3
> echo -e '#include <glib-object.h>\n' | host/bin/powerpc-buildroot-linux-uclibc-gcc -x c -I staging/usr/include/glib-2.0 -I staging/usr/lib/glib-2.0/include -Wall -Werror -c - -o /tmp/foo.o
> [success]
> 
> $ host/bin/powerpc-e500v2-linux-gnuspe-gcc --version
> powerpc-e500v2-linux-gnuspe-gcc (crosstool-NG bf52f9a) 5.3.0
> $ echo -e '#include <glib-object.h>\n' | host/bin/powerpc-e500v2-linux-gnuspe-gcc -x c -I staging/usr/include/glib-2.0 -I staging/usr/lib/glib-2.0/include -Wall -Werror -c - -o /tmp/foo.o
> [success]
> 
> $ host/bin/powerpc-linux-gcc --version
> powerpc-linux-gcc.br_real (Buildroot 2017.08-git-01078-g95b1dae) 6.3.0
> echo -e '#include <glib-object.h>\n' | host/bin/powerpc-linux-gcc -x c -I staging/usr/include/glib-2.0 -I staging/usr/lib/glib-2.0/include -Wall -Werror -c - -o /tmp/foo.o
> [success]
> 
> So I think we should make libglib2 depend on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 if
> the target architecture is PowerPC. Do you agree?

Is this problem really PowerPC specific ? Did you try other gcc 4.7
toolchains for other architectures ?

Also, adding new dependencies on libglib2 is an absolute nightmare: you
have to propagate those new dependencies to gazillions of packages (all
reverse dependencies of libglib2) :-/

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com


More information about the buildroot mailing list