skoppe / spasm

Write single page applications in D that compile to webassembly
MIT License
218 stars 17 forks source link

compile error #27

Closed Duckxz closed 4 months ago

Duckxz commented 5 years ago

Performing "debug" build using /usr/bin/ldc2 for x86_64. spasm 0.1.13+commit.34.g7fe557b: building configuration "library"... Warning: Assuming critical section size = 40 bytes /usr/bin/ldc2 failed with exit code 1.

s0kil commented 5 years ago

@Duckxz I have had the same issue, fixed by using bin/ldc2 binary from ldc

skoppe commented 5 years ago

I have never used a debug build. Don't know if it even works.

skoppe commented 5 years ago

I am upgrading to ldc 1.16.0 and am seeing the same issue. Investigating...

skoppe commented 5 years ago

The Warning: Assuming critical section size = 40 bytes even happens with the simple example at https://wiki.dlang.org/Generating_WebAssembly_with_LDC.

I am using the dlang2/ldc-ubuntu:1.16.0 docker image.

skoppe commented 5 years ago

Caused by https://github.com/ldc-developers/ldc/issues/3118

workaround is to put buildRequirements allowWarnings in your dub.sdl/json