Building ldc without root access, cannot find llvm
Andrew Brown via digitalmars-d-ldc
digitalmars-d-ldc at puremagic.com
Tue May 26 09:17:35 PDT 2015
I managed to get things working, I just need to add a -L-lcurl
flag when I compile. Thanks for helping, I was very stuck. If
those cmake flags seem sensible, I'm happy to update the wiki (I
found the description of LLVM_CONFIG a bit ambiguous as it was).
Best
Andrew
On Tuesday, 26 May 2015 at 14:18:03 UTC, Andrew Brown wrote:
> Thank you very much, that worked perfectly. I still had trouble
> with the libraries though, before I set the following flags the
> make command stopped at about 14%:
>
> -DLIBCONFIG_LIBRARY="/home/abrown/software/ldc/libs/lib/libconfig.a"
> -DLIBCONFIG_INCLUDE_DIR="/home/abrown/software/ldc/libs/include"
>
> When I compile my software however, I get warnings such as:
>
> /home/abrown/software/ldc/ldc/build/runtime/../lib/libphobos2-ldc.a(curl.o):
> In function `_D3std3net4curl4HTTP18_sharedStaticCtor1FZv':
> /home/abrown/software/ldc/ldc/runtime/phobos/std/net/curl.d:(.text._D3std3net4curl4HTTP18_sharedStaticCtor1FZv+0x10):
> undefined reference to `curl_version_info'
>
> Is tihs because it doesn't like the version of libcurl
> installed on my system? Could you point me towards a repository
> where I can download and install this and how I should adjust
> the flags to cmake (I'm on RHEL 6 if that's important)?
>
> Thank you very much for helping me, would it be handy for me to
> update the wiki to reflect what I've learnt?
>
> Andrew
>
> On Tuesday, 26 May 2015 at 12:52:59 UTC, David Nadlinger wrote:
>> Hi Andrew,
>>
>> On Tuesday, 26 May 2015 at 12:50:15 UTC, Andrew Brown wrote:
>>> But when it comes to running cmake, I don't think it's
>>> finding llvm:
>>>
>>> cmake -L -DLLVM_ROOT_DIR="/home/abrown/software/ldc/llvm/"
>>> -DLLVM_CONFIG="/home/abrown/software/ldc/llvm/bin"
>>> -DLIBCONFIG_LIBRARY="/home/abrown/software/ldc/lib"
>>> -DLIBCONFIG_INCLUDE_DIR="/home/abrown/software/ldc/lib" ..
>>
>> LLVM_CONFIG expects the actual path of the binary itself, i.e.
>> in this case …/bin/llvm-config. This is because some
>> distributions rename (e.g. postfix) their LLVM tool names.
>>
>> You should only need to specify one of the two variables,
>> though. If you just set LLVM_CONFIG to the full path, it
>> should automatically find the rest.
>>
>> — David
More information about the digitalmars-d-ldc
mailing list