Problems with tcb-offsets.h

Martin Schwidefsky schwidefsky@de.ibm.com
Wed Jan 15 18:32:00 GMT 2003


Hi,
cvs head of today doesn't compile on s390-32 and probably other
architectures as well because tcb-offsets.h doesn't get generated from
tcb-offsets.sym. The reason seems to be one of the latest changes
in Makerules:

@@ -662,8 +666,13 @@
 endif
 +depfiles := $(addprefix $(objpfx),\
 			 $(filter-out $(addsuffix .d,$(omit-deps)),\
-				      $(+depfiles))) \
-	     $(addprefix $(common-objpfx),$(gen-as-const-headers:.sym=.h.d))
+				      $(+depfiles)))
+
+# Avoid the .h.d files for any .sym files whose .h files don't exist yet.
+# They will be generated when they're needed, and trying too early won't work.
++gen-as-const := $(gen-as-const-headers:%.sym=$(common-objpfx)%.h)
++depfiles += $(addsuffix .d,$(filter $(wildcard $(+gen-as-const)),\
+						$(+gen-as-const)))
 
 ifdef +depfiles
 ifneq ($(no_deps),t)

Without this it compiles fine. Any ideas ?

blue skies,
  Martin.



More information about the Libc-alpha mailing list