Skip to contentSkip to conversation

compile error within a 32 bit KVM

DISCUSSION Toralf Förster 1 participant 2 messages Jan 22, 2016 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Hi

latest HEAD gives :

i686-pc-linux-gnu-gcc -O2 -march=i686 -pipe -g -ggdb -Wall -W -I. -Iinclude/ -Wimplicit -D_GNU_SOURCE -D__linux__ -Wdeclaration-after-statement -Wformat=2 -Winit-self -Wnested-externs -Wpacked -Wshadow -Wswitch-enum -Wundef -Wwrite-strings -Wno-format-nonliteral -Wstrict-prototypes -Wmissing-prototypes -Wlogical-op -Wstrict-aliasing=3 -Wno-maybe-uninitialized -o rand/random.o -c rand/random.c rand/random-page.c: In function ‘fabricate_struct’:
rand/random-page.c:67:5: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode

     for (int j = 0; j < 2; j++) {
     ^

rand/random-page.c:67:5: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code Makefile:108: recipe for target 'rand/random-page.o' failed
make: *** [rand/random-page.o] Error 1
make: *** Waiting for unfinished jobs....
* ERROR: dev-util/trinity-9::local failed (compile phase):
* emake failed
*
* If you need support, post the output of emerge --info '=dev-util/trinity-9::local',
* the complete build log and the output of emerge -pqv '=dev-util/trinity-9::local'.
* The complete build log is located at '/var/log/portage/dev-util:trinity-9:20160122-185702.log.gz'.
* For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-util/trinity-9/temp/build.log.gz'.
* The ebuild environment file is located at '/var/tmp/portage/dev-util/trinity-9/temp/environment'.
* Working directory: '/var/tmp/portage/dev-util/trinity-9/work/trinity-9'
* S: '/var/tmp/portage/dev-util/trinity-9/work/trinity-9'
*
* The following package has failed to build, install, or execute postinst:
*
* (dev-util/trinity-9:0/0::local, ebuild scheduled for merge), Log file:
* '/var/log/portage/dev-util:trinity-9:20160122-185702.log.gz'

Signature · 1 line
Toralf, pgp: C4EACDDE 0076E94E

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 4 lines · Dave Jones

Just committed -std=gnu11. Make clean, and try again with that.

Dave

emerges now fine here under stable 32 bit Gentoo

thx

Signature · 1 line
Toralf, pgp: C4EACDDE 0076E94E