~mcf/cproc#83: 
Stage2 fails to compile

After the changes in 'port to c99' (hash aefb830ede6316f5fcf4c3c48b79a661c66c9f2e) cproc now fails to bootstrap itself on a syntax error in cc.h. I don't know the code well enough to pinpoint the issue from the diff, any hints?

make[1]: Entering directory '/workspace/cproc'
./cproc -std=c99 -Wall -Wpedantic -Wno-parentheses -Wno-switch -g -pipe -c -o stage2/driver.o driver.c
./cproc -std=c99 -Wall -Wpedantic -Wno-parentheses -Wno-switch -g -pipe -c -o stage2/util.o util.c
./cproc -s -o stage2/cproc stage2/driver.o stage2/util.o
./cproc -std=c99 -Wall -Wpedantic -Wno-parentheses -Wno-switch -g -pipe -c -o stage2/decl.o decl.c
cc.h:484:14: error: expected '(' or identifier
cproc: compile: process 359328 exited with status 1
cproc: preprocess: process signaled: Terminated
cproc: assemble: process signaled: Terminated
make[1]: *** [Makefile:48: stage2/decl.o] Error 1
make[1]: Leaving directory '/workspace/cproc'
make: *** [Makefile:75: stage2] Error 2
Status
REPORTED
Submitter
~jmars
Assigned to
No-one
Submitted
3 months ago
Updated
3 months ago
Labels
No labels applied.

~mcf 3 months ago

The offending commit is the introduction of C23 keywords. There is a function called constexpr(), which needs to be renamed since it conflicts with the C23 keyword. I need to pick a new name I like.

~jmars 3 months ago*

ahh ok, I'll just pick any old name locally for now to get it moving until you get around to it, thanks for the great project :)

Register here or Log in to comment, or comment via email.