June 03

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

  • Based on D 2.109.0.
  • LLVM for prebuilt packages bumped to v18.1.6.
  • Support for LLVM 11-14 was dropped. The CLI options -passmanager and -opaque-pointers were removed.

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

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

June 04

On Monday, 3 June 2024 at 19:42:42 UTC, kinke wrote:

>

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

  • Based on D 2.109.0.
  • LLVM for prebuilt packages bumped to v18.1.6.
  • Support for LLVM 11-14 was dropped. The CLI options -passmanager and -opaque-pointers were removed.

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

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

1.38.0 work fine with -mtriple=x86_64-w64-mingw32 -march=x86-64 from linux.

v1.39.0-beta1 throw this error:

  call void @__assert_fail(ptr @.str, ptr @.str.8, i32 8860, ptr @.str.24) #2, !dbg !515
Incorrect number of arguments passed to called function!
  call void @__assert_fail(ptr @.str.23, ptr @.str.8, i32 8858, ptr @.str.24) #2, !dbg !512
LLVM ERROR: Broken module found, compilation aborted!
 #0 0x000055b9b789c697 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/usr/local/ldc2/bin/ldc2+0x6dcb697)
 #1 0x000055b9b789a48c llvm::sys::RunSignalHandlers() (/usr/local/ldc2/bin/ldc2+0x6dc948c)
 #2 0x000055b9b789cd3f SignalHandler(int) Signals.cpp:0:0
 #3 0x00007f2a09446050 (/lib/x86_64-linux-gnu/libc.so.6+0x3c050)
 #4 0x00007f2a09494e2c __pthread_kill_implementation ./nptl/pthread_kill.c:44:76
 #5 0x00007f2a09445fb2 raise ./signal/../sysdeps/posix/raise.c:27:6
 #6 0x00007f2a09430472 abort ./stdlib/abort.c:81:7
 #7 0x000055b9b7805372 llvm::report_fatal_error(llvm::Twine const&, bool) (/usr/local/ldc2/bin/ldc2+0x6d34372)
 #8 0x000055b9b78051a6 (/usr/local/ldc2/bin/ldc2+0x6d341a6)
 #9 0x000055b9b76945ac (/usr/local/ldc2/bin/ldc2+0x6bc35ac)
#10 0x000055b9b7b7841d llvm::detail::PassModel<llvm::Module, llvm::VerifierPass, llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) ld-temp.o:0:0
#11 0x000055b9b766b214 llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/usr/local/ldc2/bin/ldc2+0x6b9a214)
#12 0x000055b9b7b72696 runOptimizationPasses(llvm::Module*) (/usr/local/ldc2/bin/ldc2+0x70a1696)
#13 0x000055b9b7c0200e writeModule(llvm::Module*, char const*) (/usr/local/ldc2/bin/ldc2+0x713100e)
#14 0x000055b9b7c010da ldc::CodeGenerator::writeAndFreeLLModule(char const*) (/usr/local/ldc2/bin/ldc2+0x71300da)
#15 0x000055b9b7c01b47 ldc::CodeGenerator::emit(Module*) (/usr/local/ldc2/bin/ldc2+0x7130b47)
#16 0x000055b9b4640238 codegenModules(Array<Module*>&) (/usr/local/ldc2/bin/ldc2+0x3b6f238)
#17 0x000055b9b45deae1 mars_tryMain(Param&, Array<char const*>&) (/usr/local/ldc2/bin/ldc2+0x3b0dae1)
#18 0x000055b9b4643de0 cppmain() (/usr/local/ldc2/bin/ldc2+0x3b72de0)
#19 0x000055b9b7dbc63d _D2rt6dmain212_d_run_main2UAAamPUQgZiZ6runAllMFZv (/usr/local/ldc2/bin/ldc2+0x72eb63d)
#20 0x000055b9b7dbc418 _d_run_main2 (/usr/local/ldc2/bin/ldc2+0x72eb418)
#21 0x000055b9b7dbc22d _d_run_main (/usr/local/ldc2/bin/ldc2+0x72eb22d)
#22 0x000055b9b7bfe6e8 main (/usr/local/ldc2/bin/ldc2+0x712d6e8)
#23 0x00007f2a0943124a __libc_start_call_main ./csu/../sysdeps/nptl/libc_start_call_main.h:74:3
#24 0x00007f2a09431305 call_init ./csu/../csu/libc-start.c:128:20
#25 0x00007f2a09431305 __libc_start_main ./csu/../csu/libc-start.c:347:5
#26 0x000055b9b4647d5e _start (/usr/local/ldc2/bin/ldc2+0x3b76d5e)
Error: Error executing /usr/local/ldc2/bin/ldc2: Aborted