Problem Building ldc with llvm3-5 on Ubuntu 14.04

David Nadlinger via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Thu Oct 2 12:14:58 PDT 2014


On 2 Oct 2014, at 21:01, "Nordlöw" via digitalmars-d-ldc wrote:
> On Thursday, 2 October 2014 at 00:05:50 UTC, Eugene wrote:
>> I had the same problem.
>> 1. in your case cmake picked up llvm version 3.5

It tries versioned names (e.g. with the -3.5 suffix) in descending 
order, so that seems to work like intended.

>> 2. cmake complains that it llvm-config-3.5 can't find profiledata 
>> component. I don't know why it is missing. I simply commented out the 
>> lines mentioning profiledata in cmake/Modules/FindLLVM.cmake

Where is your LLVM installation from? Distro packagages or how exactly 
did you build it?

>> For me compilation still fails because llvm include file paths don't 
>> match the ones used in ldc source code.

Could you elaborate a bit? The correct include paths should be picked up 
from the llvm-config output and added as command line arguments. If this 
doesn't work, there is either a bug in our CMake scripts or your LLVM 
installation is broken (we've had issues with broken distro packages 
before). The "paths" in the source code (really just llvm/) should be 
fine.

> Should I try removing some LLVM version?

In theory this should not be necessary, although it might certainly help 
to track down the problem.

Thanks,
David


More information about the digitalmars-d-ldc mailing list