Article 4WK7E Building LDC D compiler on -current requires extra define

Building LDC D compiler on -current requires extra define

by
ttk
from LinuxQuestions.org on (#4WK7E)
I've been trying to build the LDC compiler for the D Programming Language on -current, from source, and found that the cmake stage requires an extra define: "-DLDC_WITH_LDD=OFF"

Without this, the subsequent build tries to link against both the system LLVM and the LDC LLVM, causing the build phase to fail with a "LLVM ERROR: inconsistency in registered CommandLine options" error.

I'm following the instructions from https://wiki.dlang.org/Building_LDC_from_source but the amended cmake command is:
Code:cmake -G Ninja ../ldc \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=$PWD/../install-ldc \
-DLDC_WITH_LLD=OFFJust an FYI, in case anyone else out there tries to build it (or writes a Slackbuild).latest?d=yIl2AUoC8zA latest?i=OHHmb-ty8-w:moiB2Wr_-AM:F7zBnMy latest?i=OHHmb-ty8-w:moiB2Wr_-AM:V_sGLiP latest?d=qj6IDK7rITs latest?i=OHHmb-ty8-w:moiB2Wr_-AM:gIN9vFwOHHmb-ty8-w
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments