Created attachment 489574 [details] full build log [01m[Kprocmap.c:139:12:[m[K [01;35m[Kwarning: [m[Kunused variable ‘[01m[Knext[m[K’ [-Wunused-variable] char *p, *next; [01;32m[K ^[m[K libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../.. -I../../sysdeps/linux -I../../include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -Winline -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -O2 -march=corei7-avx -pipe -c netload.c -fPIC -DPIC -o .libs/netload.o [01m[Ksysinfo.c:[m[K In function ‘[01m[Kinit_sysinfo[m[K’: [01m[Ksysinfo.c:54:2:[m[K [01;31m[Kerror: [m[K‘[01m[Kfor[m[K’ loop initial declarations are only allowed in C99 or C11 mode for (char** this_proc = &processors[0]; *this_proc && **this_proc; this_proc++) { [01;32m[K ^[m[K [01m[Ksysinfo.c:54:2:[m[K [01;36m[Knote: [m[Kuse option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code make[3]: *** [Makefile:527: sysinfo.lo] Error 1 make[3]: *** Waiting for unfinished jobs.... libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../.. -I../../sysdeps/linux -I../../include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -Winline -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -O2 -march=corei7-avx -pipe -c ppp.c -fPIC -DPIC -o .libs/ppp.o [01m[Knetload.c:[m[K In function ‘[01m[Klinux_2_0_stats[m[K’: [01m[Knetload.c:275:5:[m[K [01;35m[Kwarning: [m[Kignoring return value of ‘[01m[Kfgets[m[K’, declared with attribute warn_unused_result [-Wunused-result] fgets (buffer, BUFSIZ-1, f); [01;32m[K ^[m[K [01m[Knetload.c:[m[K In function ‘[01m[Klinux_2_4_stats[m[K’: [01m[Knetload.c:356:5:[m[K [01;35m[Kwarning: [m[Kignoring return value of ‘[01m[Kfgets[m[K’, declared with attribute warn_unused_result [-Wunused-result] fgets (buffer, BUFSIZ-1, f); [01;32m[K ^[m[K [01m[Knetload.c:357:5:[m[K [01;35m[Kwarning: [m[Kignoring return value of ‘[01m[Kfgets[m[K’, declared with attribute warn_unused_result [-Wunused-result] fgets (buffer, BUFSIZ-1, f); [01;32m[K ^[m[K make[3]: Leaving directory '/var/tmp/portage/gnome-base/libgtop-2.36.0/work/libgtop-2.36.0/sysdeps/linux' make[2]: *** [Makefile:428: all-recursive] Error 1 make[2]: Leaving directory '/var/tmp/portage/gnome-base/libgtop-2.36.0/work/libgtop-2.36.0/sysdeps' make[1]: *** [Makefile:569: all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/gnome-base/libgtop-2.36.0/work/libgtop-2.36.0' make: *** [Makefile:453: all] Error 2
Created attachment 489576 [details] emerge --info output
This is most likely due to using GCC 4.9. I don't know what's the current policy on supporting older stable GCC so I'll wait to team members' opinion.
Personally I would force people to run current stable gcc at least :/ (even other distributions are starting to work with gcc7 at this time)
commit 3cc464a39d524238117c76c99c9803b973c201df Date: Fri Sep 1 08:18:50 2017 +0200 gnome-base/libgtop: fix build with gcc-4, bug ##628256 Package-Manager: Portage-2.3.8, Repoman-2.3.3 Applied c99 as this is what gcc-5 switched to.