https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107351
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2022-10-21 Status|UNCONFIRMED |WAITING Ever confirmed|0 |1 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- # In non-release builds, use a date-related module version. ifneq ($(DEVPHASE_c),) # Some date's don't grok 'r', if so, simply use today's # date (don't bootstrap at midnight). MODULE_VERSION := $(shell date -r $(srcdir)/cp/module.cc '+%y%m%d-%H%M' \ 2>/dev/null || date '+%y%m%d-0000' 2>/dev/null || echo 0) CFLAGS-cp/module.o += -DMODULE_VERSION='($(subst -,,$(MODULE_VERSION))U)' endif I am trying to figure out how you would get 7001010000 if the above was being used. Can you attach the full build log around the building of module.cc ? it should have been -DMODULE_VERSION=2210211757U or something similar. Even in the source we have: #define IS_EXPERIMENTAL(V) ((V) >= (1U << 20)) #define MODULE_MAJOR(V) ((V) / 10000) #define MODULE_MINOR(V) ((V) % 10000) #define EXPERIMENT(A,B) (IS_EXPERIMENTAL (MODULE_VERSION) ? (A) : (B)) #ifndef MODULE_VERSION #include "bversion.h" #define MODULE_VERSION (BUILDING_GCC_MAJOR * 10000U + BUILDING_GCC_MINOR) #elif !IS_EXPERIMENTAL (MODULE_VERSION) #error "This is not the version I was looking for." #endif