20 May 2012 20:21
Race condition during comĀpilation?
Hello. Recently I tried to compile swfmill on a multicore machine and started to get random fatal errors during compilation. They look as if GCC tries to compile one of g*.cpp files before its creation finished. The errors are different in each run, sometimes the compilation succeeds. Disabling parallel compilation seems to have fixed this problem. It was suggested here: http://forums.gentoo.org/viewtopic-t-924018.html that the problem can be fixed by splitting the rule for $(CODEGEN_GENERATEDSOURCES) and $(CODEGEN_GENERATEDHEADERS) in two like this: $(CODEGEN_GENERATEDSOURCES) $(CODEGEN_GENERATEDHEADERS): .code.generated .code.generated: $(CODEGEN_SRC) xsltproc $(srcdir)/codegen/mk.xsl $(srcdir)/codegen/source.xml touch .code.generated The patch is attached. I also added .code.generated to nodist_swfmill_SOURCES and CLEANFILES. Maybe something like that should also be done with $(SIMPLE_DIALECT_GENERATEDSOURCES) rule.
_______________________________________________ swfmill mailing list swfmill@... http://osflash.org/mailman/listinfo/swfmill_osflash.org
RSS Feed