spasm icon indicating copy to clipboard operation
spasm copied to clipboard

compile error

Open Duckxz opened this issue 6 years ago • 5 comments

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.

Duckxz avatar Jul 04 '19 15:07 Duckxz

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

s0kil avatar Jul 08 '19 00:07 s0kil

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

skoppe avatar Jul 19 '19 16:07 skoppe

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

skoppe avatar Jul 19 '19 18:07 skoppe

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 avatar Jul 19 '19 19:07 skoppe

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

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

skoppe avatar Jul 26 '19 14:07 skoppe