← All tasks
cpparrayfire/arrayfire #3308Not a task: not reproduced

missing arrayfire.h on ./test/print_test build when only oneapi backend configured

envgap__arrayfire__arrayfire-3308

01 / FAILURE SIGNATURE

As reported upstream

/home/gpryor/arrayfire/test/print_info.cpp:10:10: fatal error: 'arrayfire.h' file not found
Not a benchmark task.
  • In a clean container the reported failure did not reproduce, or the known fix did not make the project run.

02 / ENVIRONMENT RECIPE

Base commit
65e67404e570ff64ce3969c06c3c459d9f9aff95
Manifest
CMakeLists.txt
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

arrayfire/arrayfire #3308 · read the original issue
Description

===========



Building with only OneAPI backend enabled results in missing `arrayfire.h` on building print test. 



```

mkdir -p build && cd build && CC=icx CXX=icpx cmake .. -DCMAKE_CXX_FLAGS='-w' -DCMAKE_C_FLAGS='-w' -DAF_BUILD_CPU=OFF -DAF_BUILD_CUDA=OFF -DAF_BUILD_ONEAPI=ON -DAF_BUILD_OPENCL=OFF -DAF_BUILD_EXAMPLES=OFF -DAF_BUILD_UNIFIED=OFF -DCMAKE_BUILD_TYPE=Debug -DCMAKE_PREFIX_PATH=/opt/intel/oneapi/compiler/latest/linux/IntelDPCPP -DCMAKE_EXPORT_COMPILE_COMMANDS=ON

make -j24

```



Error Log

---------

```

[  0%] Building CXX object CMakeFiles/bin2cpp.dir/src/backend/common/util.cpp.o

[  0%] Building C object extern/af_glad-build/CMakeFiles/af_glad_obj_lib.dir/src/glad.c.o

[  0%] Building CXX object test/CMakeFiles/print_info.dir/print_info.cpp.o

[  1%] Building CXX object CMakeFiles/bin2cpp.dir/CMakeModules/bin2cpp.cpp.o

[  1%] Building C object test/mmio/CMakeFiles/mmio.dir/mmio.c.o

/home/gpryor/arrayfire/test/print_info.cpp:10:10: fatal error: 'arrayfire.h' file not found

#include <arrayfire.h>

         ^~~~~~~~~~~~~

1 error generated.

make[2]: *** [test/CMakeFiles/print_info.dir/build.make:76: test/CMakeFiles/print_info.dir/print_info.cpp.o] Error 1

make[1]: *** [CMakeFiles/Makefile2:5025: test/CMakeFiles/print_info.dir/all] Error 2

make[1]: *** Waiting for unfinished jobs....

[  1%] Linking C static library libmmio.a

[  1%] Built target mmio

[  1%] Built target af_glad_obj_lib

[  1%] Linking CXX executable bin2cpp

[  1%] Built target bin2cpp

make: *** [Makefile:166: all] Error 2

```



Build Environment

-----------------

Compiler version: icx 2022.2.0.20220730

Operating system: Ubuntu 22.04

Build environment: intel standard setup script

CMake variables: 

```

AF_BUILD_CPU:BOOL=ON

AF_BUILD_CUDA:BOOL=OFF

AF_BUILD_DOCS:BOOL=OFF

AF_BUILD_EXAMPLES:BOOL=OFF

AF_BUILD_FORGE:BOOL=OFF

AF_BUILD_ONEAPI:BOOL=ON

AF_BUILD_OPENCL:BOOL=OFF

AF_BUILD_UNIFIED:BOOL=OFF

AF_COMPUTE_LIBRARY:STRING=Intel-MKL

AF_STACKTRACE_TYPE:STRING=Basic

AF_WITH_CUDNN:BOOL=OFF

AF_WITH_EXTERNAL_PACKAGES_ONLY:BOOL=OFF

AF_WITH_FMT_HEADER_ONLY:BOOL=OFF

AF_WITH_SPDLOG_HEADER_ONLY:BOOL=OFF

AF_WITH_STATIC_CUDA_NUMERIC_LIBS:BOOL=OFF

BUILD_TESTING:BOOL=ON

CLBlast_DIR:PATH=CLBlast_DIR-NOTFOUND

CMAKE_BUILD_TYPE:STRING=Debug

CMAKE_INSTALL_PREFIX:PATH=/usr/local

FETCHCONTENT_SOURCE_DIR_SPAN-LITE:PATH=

FETCHCONTENT_UPDATES_DISCONNECTED_SPAN-LITE:BOOL=OFF

GTest_DIR:PATH=/usr/lib/x86_64-linux-gnu/cmake/GTest

MKL_THREAD_LAYER:STRING=Intel OpenMP

MKL_mkl_avx2_LINK_LIBRARY:FILEPATH=MKL_mkl_avx2_LINK_LIBRARY-NOTFOUND

MKL_mkl_avx512_LINK_LIBRARY:FILEPATH=MKL_mkl_avx512_LINK_LIBRARY-NOTFOUND

MKL_mkl_avx_LINK_LIBRARY:FILEPATH=MKL_mkl_avx_LINK_LIBRARY-NOTFOUND

MKL_mkl_def_LINK_LIBRARY:FILEPATH=MKL_mkl_def_LINK_LIBRARY-NOTFOUND

MKL_mkl_mc3_LINK_LIBRARY:FILEPATH=MKL_mkl_mc3_LINK_LIBRARY-NOTFOUND

MKL_mkl_mc_LINK_LIBRARY:FILEPATH=MKL_mkl_mc_LINK_LIBRARY-NOTFOUND

SPAN_LITE_COLOURISE_TEST:BOOL=OFF

SPAN_LITE_EXPORT_PACKAGE:BOOL=OFF

SPAN_LITE_OPT_BUILD_EXAMPLES:BOOL=OFF

SPAN_LITE_OPT_BUILD_TESTS:BOOL=OFF

SPAN_LITE_OPT_SELECT_NONSTD:BOOL=OFF

SPAN_LITE_OPT_SELECT_STD:BOOL=OFF

SPDLOG_BUILD_ALL:BOOL=OFF

SPDLOG_BUILD_BENCH:BOOL=OFF

SPDLOG_BUILD_EXAMPLE:BOOL=OFF

SPDLOG_BUILD_EXAMPLE_HO:BOOL=OFF

SPDLOG_BUILD_SHARED:BOOL=OFF

SPDLOG_BUILD_TESTS:BOOL=OFF

SPDLOG_BUILD_TESTS_HO:BOOL=OFF

SPDLOG_BUILD_WARNINGS:BOOL=OFF

SPDLOG_CLOCK_COARSE:BOOL=OFF

SPDLOG_DISABLE_DEFAULT_LOGGER:BOOL=OFF

SPDLOG_ENABLE_PCH:BOOL=OFF

SPDLOG_FMT_EXTERNAL:BOOL=OFF

SPDLOG_FMT_EXTERNAL_HO:BOOL=OFF

SPDLOG_INSTALL:BOOL=OFF

SPDLOG_NO_ATOMIC_LEVELS:BOOL=OFF

SPDLOG_NO_EXCEPTIONS:BOOL=OFF

SPDLOG_NO_THREAD_ID:BOOL=OFF

SPDLOG_NO_TLS:BOOL=OFF

SPDLOG_PREVENT_CHILD_FD:BOOL=OFF

SPDLOG_SANITIZE_ADDRESS:BOOL=OFF

SPDLOG_TIDY:BOOL=OFF

SPDLOG_WCHAR_FILENAMES:BOOL=OFF

SPDLOG_WCHAR_SUPPORT:BOOL=OFF

cl2hpp_header_file_path:PATH=cl2hpp_header_file_path-NOTFOUND

cl2hpp_var:PATH=/home/gpryor/arrayfire/build/extern/ocl_cl2hpp-src/include

fmt_DIR:PATH=fmt_DIR-NOTFOUND

span-lite_DIR:PATH=span-lite_DIR-NOTFOUND

```
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]