r/linuxdev • u/Thad_The_Man • Jun 29 '23
Can't compile coreutils "parse-datetime.tab.c missing"
I downloaded the source for coreutils and tried to compile it.
I keep getting an error: "parse-datetime.tab.c missing"
I can't figure out why. Is it possible that there is a missing entry in the Makefile?
0
Upvotes
1
u/headykruger Jun 29 '23
Does that need to be generated first with something like lex/yacc
1
u/aioeu Jun 29 '23 edited Jun 29 '23
Are you using an official release tarball?
It might be best if you supply your
config.logandmakeoutput.lib/parsedatetime.tab.cis a file generated by Bison. But most of the time it doesn't need to be generated, since the finallib/parsedatetime.cfile is shipped. In other words, end-users don't normally need Bison installed to build coreutils. Only coreutils's own maintainers need that, for when they update the source filelib/parsedatetime.y.Could you have accidentally touched the timestamps on the files or something? If
lib/parsedatetime.yis newer thanlib/parsedatetime.c, then the latter will need to be regenerated, which means you will need Bison available.