Error compiling ldc

matovitch camille.brugel at laposte.net
Fri May 31 14:55:29 PDT 2013


On Friday, 31 May 2013 at 21:41:56 UTC, David Nadlinger wrote:
> On Friday, 31 May 2013 at 21:37:35 UTC, matovitch wrote:
>> I have libllvm3.1 installed.
>
> LLVM 3.1 should definitely work (it is tested by the Travis CI 
> build bots).
>
> With libllvm3.1, do you mean an LLVM package from your distro? 
> If so, the files in /usr/local are probably causing conflicts.
>
> Try manually specifying 
> -DLLVM_CONFIG=<path_to_your_distros_llvm-config> at the CMake 
> command line. If this is not the cause, please paste the full 
> build log somewhere.
>
>  — David

llvm-config path was : /usr/local/bin/llvm-config

and llvm-config --version give me 3.3svn (so I think I have 
recently compile llvm).

I get the same error...

[  0%] [  0%] Built target idgen
Built target impcnvgen
[  0%] Built target gen_gccbuiltins
[  0%] Built target ldmd2
[ 11%] Built target LDCShared
[ 11%] Building CXX object CMakeFiles/ldc2.dir/driver/main.cpp.o
/home/camille/Téléchargements/ldc/driver/main.cpp: In function 
'int main(int, char**)':
/home/camille/Téléchargements/ldc/driver/main.cpp:1001:33: error: 
no matching function for call to 
'llvm::Linker::Linker(llvm::Module*&)'
/home/camille/Téléchargements/ldc/driver/main.cpp:1001:33: note: 
candidates are:
/usr/local/include/llvm/Linker.h:69:5: note: 
llvm::Linker::Linker(llvm::StringRef, llvm::Module*, unsigned int)
/usr/local/include/llvm/Linker.h:69:5: note:   candidate expects 
3 arguments, 1 provided
/usr/local/include/llvm/Linker.h:60:5: note: 
llvm::Linker::Linker(llvm::StringRef, llvm::StringRef, 
llvm::LLVMContext&, unsigned int)
/usr/local/include/llvm/Linker.h:60:5: note:   candidate expects 
4 arguments, 1 provided
/usr/local/include/llvm/Linker.h:35:7: note: 
llvm::Linker::Linker(const llvm::Linker&)
/usr/local/include/llvm/Linker.h:35:7: note:   no known 
conversion for argument 1 from 'llvm::Module*' to 'const 
llvm::Linker&'
/home/camille/Téléchargements/ldc/driver/main.cpp:1010:24: error: 
'class llvm::Linker' has no member named 'linkInModule'
make[2]: *** [CMakeFiles/ldc2.dir/driver/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/ldc2.dir/all] Error 2
make: *** [all] Error 2


More information about the digitalmars-d-ldc mailing list