Thread overview
LDC 1.40.0-beta1
Aug 10
kinke
Aug 11
IchorDev
Aug 20
kinke
Aug 22
Dakota
Aug 22
Dakota
Aug 22
kinke
Aug 22
Dakota
August 10

Glad to announce the first beta for LDC 1.40. Major changes:

  • Based on D ~2.110.0 (today's upstream stable).
  • LLVM for prebuilt packages bumped to v18.1.8 (incl. macOS arm64).
  • Android: NDK for prebuilt package bumped from r26d to r27.

Full release log and downloads: https://github.com/ldc-developers/ldc/releases/tag/v1.40.0-beta1

Please help test, and thanks to all contributors & sponsors!

August 11

On Saturday, 10 August 2024 at 20:46:52 UTC, kinke wrote:

>

Glad to announce the first beta for LDC 1.40. Major changes:

  • Based on D ~2.110.0 (today's upstream stable).
  • LLVM for prebuilt packages bumped to v18.1.8 (incl. macOS arm64).
  • Android: NDK for prebuilt package bumped from r26d to r27.

Full release log and downloads: https://github.com/ldc-developers/ldc/releases/tag/v1.40.0-beta1

Please help test, and thanks to all contributors & sponsors!

I blink and LDC gets updated to the latest version! Probably won’t have to test this one myself though, unfortunately.

August 20

The 2nd beta has just been released, including the latest upstream stable fixes and a LDC-specific regression fix (introduced in v1.31, for under-alignment edge cases): https://github.com/ldc-developers/ldc/releases/tag/v1.40.0-beta2

August 22

On Tuesday, 20 August 2024 at 23:21:34 UTC, kinke wrote:

>

The 2nd beta has just been released, including the latest upstream stable fixes and a LDC-specific regression fix (introduced in v1.31, for under-alignment edge cases): https://github.com/ldc-developers/ldc/releases/tag/v1.40.0-beta2

Thanks for the great work.

Today I try wasm with ldc2, can not pass the linker to it:

ldc2 -linker=/user/local/wasi/bin/wasm-ld -mtriple=wasm32-unknown-wasi test.d -v


ldc2 -mtriple=wasm32-unknown-wasi test.d -v

I try with -linker, -gcc and without them. all results in same case:

semantic  test
semantic2 test
semantic3 test
GC stats  1M used, 11M free, 12M total
code      test
lld test.o -o test.wasm -z stack-size=1048576 --stack-first --export-dynamic --gc-sections
lld: error: entry symbol not defined (pass --no-entry to suppress): _start
Error: linking with LLD failed

I dont event have ld.lld in my path, and I also try rename wasm-ld . all turn out use lld here. and I can not modify the args -z stack-size=1048576 --stack-first --export-dynamic --gc-sections

Is this hardcoded in ldc2 ?

I find https://github.com/ldc-developers/ldc/pull/2951, I guess it will search wasm-ld from ENV path. but after I rename wasm-ld the results is same.

any suggestion how can I pass my own linker here?

August 22

On Thursday, 22 August 2024 at 10:50:44 UTC, Dakota wrote:

>

On Tuesday, 20 August 2024 at 23:21:34 UTC, kinke wrote:

any suggestion how can I pass my own linker here?

add --link-internally=false seems fix the problem.

Then I get this: https://github.com/ldc-developers/ldc/issues/4696 , any way to workaround ?

August 22

On Thursday, 22 August 2024 at 10:50:44 UTC, Dakota wrote:

>

Is this hardcoded in ldc2 ?

No, but there's a wasm section in etc/ldc2.conf, defaulting to -link-internally and some linker flags, to make it work out of the box for most users.

Please don't abuse an announcement thread for questions which are unrelated to the new release.

August 22

On Thursday, 22 August 2024 at 13:03:25 UTC, kinke wrote:

>

On Thursday, 22 August 2024 at 10:50:44 UTC, Dakota wrote:

>

Is this hardcoded in ldc2 ?

No, but there's a wasm section in etc/ldc2.conf, defaulting to -link-internally and some linker flags, to make it work out of the box for most users.

Please don't abuse an announcement thread for questions which are unrelated to the new release.

Thanks for tips.

will not post problem here anymore.