acheron | 20 May 20:21 2012
Picon

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.
Attachment (swfmill.patch): text/x-patch, 2811 bytes
_______________________________________________
swfmill mailing list
swfmill@...
http://osflash.org/mailman/listinfo/swfmill_osflash.org
Anders Pettersson | 21 May 14:37 2012
Picon

Compiling a windows executable

Hello,


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?

Regards

Anders

_______________________________________________
swfmill mailing list
swfmill@...
http://osflash.org/mailman/listinfo/swfmill_osflash.org

Gmane