Failed installation of LDC

LDC_Installer via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Thu Jun 9 16:08:44 PDT 2016


On Thursday, 9 June 2016 at 23:04:07 UTC, LDC_Installer wrote:
> Hi there, I've followed exactly the "how to install LDC" guide 
> on the dlang.org download page. LLVM 3.7.1 is installed with 
> target being x64. Then I've downloaded ldc and updated the 
> submodules. Next step was the call to "cmake -DLIB_SUFFIX=64 
> .." in the build directory, followed by "make". This is the 
> error message I get:
>
> /home/username/Downloads/ldc/driver/linker.cpp: At global scope:
> /home/username/Downloads/ldc/driver/linker.cpp:35:13: warning: 
> ‘bool endsWith(const string&, const string&)’ defined but not 
> used [-Wunused-function]
>  static bool endsWith(const std::string &str, const std::string 
> &end) {
>              ^
> make[2]: *** [CMakeFiles/LDCShared.dir/driver/linker.cpp.o] 
> Fehler 1
> make[1]: *** [CMakeFiles/LDCShared.dir/all] Fehler 2
> make: *** [all] Fehler 2
>
> Also, I've got DMD v2.071.0 installed.
> Any suggestions how to resolve this?

Here's what I get when running make:

/home/username/Downloads/ldc/driver/linker.cpp: In function ‘void 
{anonymous}::insertBitcodeIntoModule(const char*, llvm::Module&, 
llvm::LLVMContext&)’:
/home/username/Downloads/ldc/driver/linker.cpp:124:17: error: no 
matching function for call to 
‘llvm::Linker::Linker(llvm::Module&)’
    llvm::Linker(M).linkInModule(std::move(loadedModule));
                  ^
/home/username/Downloads/ldc/driver/linker.cpp:124:17: note: 
candidates are:
In file included from 
/home/username/Downloads/ldc/driver/linker.cpp:23:0:
/usr/local/include/llvm/Linker/Linker.h:64:3: note: 
llvm::Linker::Linker(llvm::Module*)
    Linker(Module *M);
    ^
/usr/local/include/llvm/Linker/Linker.h:64:3: note:   no known 
conversion for argument 1 from ‘llvm::Module’ to ‘llvm::Module*’
/usr/local/include/llvm/Linker/Linker.h:63:3: note: 
llvm::Linker::Linker(llvm::Module*, 
llvm::DiagnosticHandlerFunction)
    Linker(Module *M, DiagnosticHandlerFunction DiagnosticHandler);
    ^
/usr/local/include/llvm/Linker/Linker.h:63:3: note:   candidate 
expects 2 arguments, 1 provided
/usr/local/include/llvm/Linker/Linker.h:27:7: note: 
llvm::Linker::Linker(const llvm::Linker&)
  class Linker {
        ^
/usr/local/include/llvm/Linker/Linker.h:27:7: note:   no known 
conversion for argument 1 from ‘llvm::Module’ to ‘const 
llvm::Linker&’
/home/username/Downloads/ldc/driver/linker.cpp: In function ‘void 
deleteExecutable()’:
/home/username/Downloads/ldc/driver/linker.cpp:725:10: warning: 
unused variable ‘is_directory’ [-Wunused-variable]
      bool is_directory;
           ^
/home/username/Downloads/ldc/driver/linker.cpp: At global scope:
/home/username/Downloads/ldc/driver/linker.cpp:35:13: warning: 
‘bool endsWith(const string&, const string&)’ defined but not 
used [-Wunused-function]
  static bool endsWith(const std::string &str, const std::string 
&end) {
              ^
make[2]: *** [CMakeFiles/LDCShared.dir/driver/linker.cpp.o] 
Fehler 1
make[1]: *** [CMakeFiles/LDCShared.dir/all] Fehler 2
make: *** [all] Fehler 2



More information about the digitalmars-d-ldc mailing list