Problem Building ldc with llvm3-5 on Ubuntu 14.04

"Nordlöw" via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Sat Sep 27 10:34:14 PDT 2014


I've done

- git clone --recursive https://github.com/ldc-developers/ldc.git
- mkdir build
- cd build
- cmake ..

but it errors as

-- The C compiler identification is GNU 4.9.1
-- The CXX compiler identification is GNU 4.9.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
llvm-config: unknown component name: profiledata
CMake Error at cmake/Modules/FindLLVM.cmake:125 (string):
   string sub-command REGEX, mode MATCHALL needs at least 5 
arguments total to
   command.
Call Stack (most recent call first):
   cmake/Modules/FindLLVM.cmake:153 (llvm_set_libs)
   CMakeLists.txt:18 (find_package)


-- Found LLVM: /usr/lib/llvm-3.5 (found suitable version "3.5", 
minimum required is "3.1")
-- Found LibConfig++: /usr/include
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/cc
-- LDC version identifier: 613375
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Looking for setupterm in tinfo
-- Looking for setupterm in tinfo - found
-- Using path for Intrinsics.td: /usr/lib/llvm-3.5/include
-- Looking for _SC_ARG_MAX
-- Looking for _SC_ARG_MAX - found
-- Check size of void*
-- Check size of void* - done
-- Configuring incomplete, errors occurred!
See also "/home/per/ware/ldc/build/CMakeFiles/CMakeOutput.log".
See also "/home/per/ware/ldc/build/CMakeFiles/CMakeError.log".

What's wrong?


More information about the digitalmars-d-ldc mailing list