Skip to contentSkip to conversation

compile error wrt VERSION

DISCUSSION Toralf Förster 2 participants 4 messages Jul 11, 2014

lore
Share & tools
lore
#0 lore raw

At a 32 bit stable Gentoo Linux I do get (using make -j4):

gical-op -Wstrict-aliasing=3 -o devices.o -c devices.c
In file included from debug.c:13:0:
include/version.h:3:9: error: macro names must be identifiers
debug.c: In function ‘__BUG’:
debug.c:44:23: error: ‘VERSION’ undeclared (first use in this function) debug.c:44:23: note: each undeclared identifier is reported only once for each function it appears in
make: *** [debug.o] Error 1
make: *** Waiting for unfinished jobs....

Signature · 1 line
Toralf
#1 lore raw
Quoted 10 lines · Toralf Förster

At a 32 bit stable Gentoo Linux I do get (using make -j4):

gical-op -Wstrict-aliasing=3 -o devices.o -c devices.c
In file included from debug.c:13:0:
include/version.h:3:9: error: macro names must be identifiers
debug.c: In function ‘__BUG’:
debug.c:44:23: error: ‘VERSION’ undeclared (first use in this function) debug.c:44:23: note: each undeclared identifier is reported only once for each function it appears in
make: *** [debug.o] Error 1
make: *** Waiting for unfinished jobs....

interesting. Can you paste the contents of include/version.h ?

Does this system have git installed ? (Trying to figure out which part of scripts/gen-versionh.sh is getting run)

Dave

#2 lore raw
Quoted 12 lines · Dave Jones
Quoted 10 lines · Toralf Förster

At a 32 bit stable Gentoo Linux I do get (using make -j4):

gical-op -Wstrict-aliasing=3 -o devices.o -c devices.c
In file included from debug.c:13:0:
include/version.h:3:9: error: macro names must be identifiers
debug.c: In function ‘__BUG’:
debug.c:44:23: error: ‘VERSION’ undeclared (first use in this function) debug.c:44:23: note: each undeclared identifier is reported only once for each function it appears in
make: *** [debug.o] Error 1
make: *** Waiting for unfinished jobs....

Quoted 4 lines

interesting. Can you paste the contents of include/version.h ?

Does this system have git installed ? (Trying to figure out which part of scripts/gen-versionh.sh is getting run)

ah, looks like I screwed up the "no git" case. I just pushed a fix.

Dave

#3 lore raw
Quoted 13 lines · Dave Jones
Quoted 12 lines · Dave Jones
Quoted 10 lines · Toralf Förster

At a 32 bit stable Gentoo Linux I do get (using make -j4):

gical-op -Wstrict-aliasing=3 -o devices.o -c devices.c
In file included from debug.c:13:0:
include/version.h:3:9: error: macro names must be identifiers
debug.c: In function ‘__BUG’:
debug.c:44:23: error: ‘VERSION’ undeclared (first use in this function) debug.c:44:23: note: each undeclared identifier is reported only once for each function it appears in
make: *** [debug.o] Error 1
make: *** Waiting for unfinished jobs....

Quoted 6 lines
Quoted 4 lines

interesting. Can you paste the contents of include/version.h ?

Does this system have git installed ? (Trying to figure out which part of scripts/gen-versionh.sh is getting run)

ah, looks like I screwed up the "no git" case. I just pushed a fix.

exactly - for the UML test scenario I do not have git.

The fix works - thx.

Quoted 4 lines

Dave

Signature · 1 line
Toralf