Skip to content

[SYCL] Compilation Error when building the compiler for x86 target #646

Closed
@crtrott

Description

@crtrott

Following the instruction to build the compiler for x86 I am running into this compilation error:

/home/crtrott/Software/llvm-intel/sycl/source/detail/os_util.cpp: In static member function ‘static void* cl::sycl::detail::OSUtil::alignedAlloc(size_t, size_t)’:
/home/crtrott/Software/llvm-intel/sycl/source/detail/os_util.cpp:101:43: error: ‘aligned_alloc’ was not declared in this scope
   return aligned_alloc(Alignment, NumBytes);

Configure:

cmake -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD="X86" \
-DLLVM_EXTERNAL_PROJECTS="llvm-spirv;sycl" \
-DLLVM_ENABLE_PROJECTS="clang;llvm-spirv;sycl" \
-DLLVM_EXTERNAL_SYCL_SOURCE_DIR=/home/crtrott/Software/llvm-intel/sycl \
-DLLVM_EXTERNAL_LLVM_SPIRV_SOURCE_DIR=/home/crtrott/Software/llvm-intel/llvm-spirv \
-DCMAKE_INSTALL_PREFIX=/home/projects/x86-64/clang/intel/2019-09-17 \
/home/crtrott/Software/llvm-intel/llvm

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions