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).


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).