acheron | 20 May 20:21 2012

Race condition during comĀ­pilation?


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: that the problem can be
fixed by splitting the rule for $(CODEGEN_GENERATEDSOURCES) and $(CODEGEN_GENERATEDHEADERS) in two
like this:


.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.
Attachment (swfmill.patch): text/x-patch, 2811 bytes
swfmill mailing list
Anders Pettersson | 21 May 14:37 2012

Compiling a windows executable


I've been trying to compile the swfmill source under windows without luck and have resorted to installing an ubuntu virtual box to compile swfmill (which work well). I'm now trying to create a windows executable using mingw and I am close, but I get an error  /usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/bin/ld: cannot find -lexslt
collect2: ld returned 1 exit status

It compiles fine on gcc and I have the required libraries downloaded.

Can anyone please, please help me figure out how to create a windows executable?



swfmill mailing list