Building against LLVM 6.0

Per Nordlöw per.nordlow at gmail.com
Sun Apr 15 22:14:03 UTC 2018


On Sunday, 15 April 2018 at 21:53:38 UTC, Per Nordlöw wrote:
> On Sunday, 15 April 2018 at 21:47:28 UTC, Per Nordlöw wrote:
>> On Sunday, 15 April 2018 at 21:44:04 UTC, Per Nordlöw wrote:
>>> Which build (cmake) configuration flags control inclusion of 
>>> the asan and the LLVMgold.so plugin and the build and 
>>> installation?
>>
>> Or rather all plugins part of the standard distribution of ldc.
>
> I followed the instructions at
>
> https://wiki.dlang.org/Building_LDC_from_source#LDC

My printouts from cmake are

-- The C compiler identification is GNU 7.2.0
-- The CXX compiler identification is GNU 7.2.0
-- 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
-- Detecting C compile features
-- Detecting C compile features - 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
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found host D compiler /home/per/.local/ldc-snapshot/bin/ldmd2, 
with default flags ''
-- Host D compiler version: LDC - the LLVM D compiler 
(1.8.0git-7b3f7af)
-- Found LLVM: /usr/lib/llvm-6.0 (found suitable version "6.0.1", 
minimum required is "3.7")
-- LDC version identifier: 1.8.0git-7b3f7af
-- Building LDC with dynamic compilation support: True 
(LDC_DYNAMIC_COMPILE=True)
-- Looking for C++ include lld/Common/Driver.h
-- Looking for C++ include lld/Common/Driver.h - not found
-- 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
-- Building LDC with plugin support ON (LDC_ENABLE_PLUGINS=ON)
-- Host D compiler linker program: /usr/bin/cc
-- Host D compiler linker flags: 
-L/home/per/.local/ldc-snapshot/lib;-lphobos2-ldc;-ldruntime-ldc;-Wl,--gc-sections;-lrt;-ldl;-lpthread;-lm;-m64
-- Looking for _SC_ARG_MAX
-- Looking for _SC_ARG_MAX - found
-- 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 void*
-- Check size of void* - done
-- Using path for Intrinsics.td: /usr/lib/llvm-6.0/include
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/cc
-- Looking for unistd.h
-- Looking for unistd.h - found
-- GDB 8.0.1 detected
-- Configuring done
-- Generating done
-- Build files have been written to: /home/per/ware/ldc

Why don't I get the plugins when it says

-- Building LDC with plugin support ON (LDC_ENABLE_PLUGINS=ON)

?

The lib part of the installation contains

/home/per/.local/ldc-snapshot/lib/libdruntime-ldc-shared.so.78
/home/per/.local/ldc-snapshot/lib/libldc-jit.so.2.0.78
/home/per/.local/ldc-snapshot/lib/libldc-jit-rt.a
/home/per/.local/ldc-snapshot/lib/libdruntime-ldc-shared.so
/home/per/.local/ldc-snapshot/lib/libldc-jit.so.78
/home/per/.local/ldc-snapshot/lib/libdruntime-ldc-shared.so.2.0.78
/home/per/.local/ldc-snapshot/lib/libphobos2-ldc-shared.so.2.0.78
/home/per/.local/ldc-snapshot/lib/libdruntime-ldc-debug-shared.so.78
/home/per/.local/ldc-snapshot/lib/libphobos2-ldc-shared.so
/home/per/.local/ldc-snapshot/lib/libldc-jit.so
/home/per/.local/ldc-snapshot/lib/libdruntime-ldc-debug-shared.so.2.0.78
/home/per/.local/ldc-snapshot/lib/libphobos2-ldc-debug-shared.so.2.0.78
/home/per/.local/ldc-snapshot/lib/libphobos2-ldc.a
/home/per/.local/ldc-snapshot/lib/libphobos2-ldc-debug.a
/home/per/.local/ldc-snapshot/lib/libdruntime-ldc.a
/home/per/.local/ldc-snapshot/lib/libphobos2-ldc-debug-shared.so.78
/home/per/.local/ldc-snapshot/lib/libphobos2-ldc-shared.so.78
/home/per/.local/ldc-snapshot/lib/libdruntime-ldc-debug.a
/home/per/.local/ldc-snapshot/lib/libphobos2-ldc-debug-shared.so
/home/per/.local/ldc-snapshot/lib/libdruntime-ldc-debug-shared.so



More information about the digitalmars-d-ldc mailing list