Skip to content

Installation issue: [email protected] fails to build with +icd option #17049

@Sinan81

Description

@Sinan81

Steps to reproduce the issue

$ spack install [email protected]+icd
...
     422    [  6%] Building CXX object lib/llvmopencl/CMakeFiles/llvmpasses.dir/AutomaticLocals.cc.o
     423    cd /mnt/local/cache/sbulut/spack-stage/spack-stage-pocl-1.4-wazdhmsjveyxwziwictlaykklv7tnx54/spack-build/lib/llvmopencl && /mnt/local/spack/lib/spack/env/gcc/g++  -DCL_TARGET_OP
            ENCL_VERSION=220 -DCL_USE_DEPRECATED_OPENCL_1_0_APIS -DCL_USE_DEPRECATED_OPENCL_1_1_APIS -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -DCL_USE_DEPRECATED_OPENCL_2_0_APIS -DCL_USE_DEPRECA
            TED_OPENCL_2_1_APIS -I/cache/sbulut/spack-stage/spack-stage-pocl-1.4-wazdhmsjveyxwziwictlaykklv7tnx54/spack-src/include -I/mnt/local/cache/sbulut/spack-stage/spack-stage-pocl-1.
            4-wazdhmsjveyxwziwictlaykklv7tnx54/spack-build -I/cache/sbulut/spack-stage/spack-stage-pocl-1.4-wazdhmsjveyxwziwictlaykklv7tnx54/spack-src/lib/llvmopencl/../CL -I/cache/sbulut/s
            pack-stage/spack-stage-pocl-1.4-wazdhmsjveyxwziwictlaykklv7tnx54/spack-src/lib/llvmopencl/../CL/devices  -I/mnt/local/spack/opt/spack/linux-centos7-skylake/gcc-8.3.0/llvm-9.0.1-
            pihcuq2rglg3pp4scasu6z7q4hvioeuj/include -std=c++11    -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -O2 -g -DNDEBUG -fPIC   -Werror=implic
            it-function-declaration -Werror=incompatible-pointer-types -o CMakeFiles/llvmpasses.dir/AutomaticLocals.cc.o -c /cache/sbulut/spack-stage/spack-stage-pocl-1.4-wazdhmsjveyxwziwic
            tlaykklv7tnx54/spack-src/lib/llvmopencl/AutomaticLocals.cc
     424    CMakeFiles/poclcc.dir/__/lib/poclu/misc.c.o: In function `poclu_load_program_multidev':
  >> 425    /cache/sbulut/spack-stage/spack-stage-pocl-1.4-wazdhmsjveyxwziwictlaykklv7tnx54/spack-src/lib/poclu/misc.c:399: undefined reference to `clCreateProgramWithIL'
  >> 426    collect2: error: ld returned 1 exit status
  >> 427    make[2]: *** [bin/poclcc] Error 1
     428    make[2]: Leaving directory `/mnt/local/cache/sbulut/spack-stage/spack-stage-pocl-1.4-wazdhmsjveyxwziwictlaykklv7tnx54/spack-build'
  >> 429    make[1]: *** [bin/CMakeFiles/poclcc.dir/all] Error 2
     430    make[1]: *** Waiting for unfinished jobs....

Information on your system

$ spack debug report

  • Spack: 0.14.2-1326-ad50a02
  • Python: 3.6.8
  • Platform: linux-centos7-skylake

Additional information

spack-build-out.txt

General information

  • I have run spack debug report and reported the version of Spack/Python/Platform
  • I have run spack maintainers <name-of-the-package> and @mentioned any maintainers
  • I have uploaded the build log and/or environment files
  • I have searched the issues of this repo and believe this is not a duplicate

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions