Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable To Run cmake after installing packages #1068

Open
JinLi711 opened this issue Dec 12, 2022 · 1 comment
Open

Unable To Run cmake after installing packages #1068

JinLi711 opened this issue Dec 12, 2022 · 1 comment
Assignees
Labels
bug Something isn't working build

Comments

@JinLi711
Copy link

Bug Description

[A clear, concise description of the bug]

After installing all the packages with vcpkg, I'm running:

cmake .. \
    -DCMAKE_BUILD_TYPE=Release \
    -DFL_BUILD_ARRAYFIRE=ON \
    -DCMAKE_TOOLCHAIN_FILE=/flashlight/vcpkg/scripts/buildsystems/vcpkg.cmake

And here's my error output:

-- The CXX compiler identification is GNU 9.4.0
-- The C compiler identification is GNU 9.4.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Performing Test COMPILER_SUPPORTS_RDYNAMIC
-- Performing Test COMPILER_SUPPORTS_RDYNAMIC - Success
-- -rdynamic supported.
-- Looking for CL_VERSION_2_2
-- Looking for CL_VERSION_2_2 - not found
-- Looking for CL_VERSION_2_1
-- Looking for CL_VERSION_2_1 - not found
-- Looking for CL_VERSION_2_0
-- Looking for CL_VERSION_2_0 - not found
-- Looking for CL_VERSION_1_2
-- Looking for CL_VERSION_1_2 - not found
-- Looking for CL_VERSION_1_1
-- Looking for CL_VERSION_1_1 - not found
-- Looking for CL_VERSION_1_0
-- Looking for CL_VERSION_1_0 - not found
-- Could NOT find OpenCL (missing: OpenCL_LIBRARY OpenCL_INCLUDE_DIR)
-- Found GTest: /flashlight/vcpkg/installed/x64-linux/share/gtest/GTestConfig.cmake (found suitable version "1.12.1", minimum required is "1.10.0")
-- gtest found: (include: , lib: GTest::gtest;GTest::gtest_main
-- Found gtest and gmock on system.
-- Found Threads: TRUE
-- Will build flashlight core and extensions.
-- Could NOT find cereal (missing: cereal_INCLUDE_DIRS)
-- Found cereal (include: )
-- cereal NOT found. Will download from source
-- Will build flashlight contrib assets.
-- ArrayFire found (include: /flashlight/vcpkg/installed/x64-linux/include, library: ArrayFire::afcpu)
-- oneDNN found
-- MKL_THREADING = OMP
-- 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
-- Checking for [mkl_intel_lp64 - mkl_gnu_thread - mkl_core - gomp - pthread - m - dl]
--   Library mkl_intel_lp64: /opt/intel/mkl/lib/intel64/libmkl_intel_lp64.so
--   Library mkl_gnu_thread: /opt/intel/mkl/lib/intel64/libmkl_gnu_thread.so
--   Library mkl_core: /opt/intel/mkl/lib/intel64/libmkl_core.so
--   Library gomp: -fopenmp
--   Library pthread: /usr/lib/x86_64-linux-gnu/libpthread.so
--   Library m: /usr/lib/x86_64-linux-gnu/libm.so
--   Library dl: /usr/lib/x86_64-linux-gnu/libdl.so
-- Looking for cblas_sgemm
-- Looking for cblas_sgemm - found
-- MKL library found
-- Looking for C++ include filesystem
-- Looking for C++ include filesystem - found
-- Performing Test CXX_FILESYSTEM_NO_LINK_NEEDED
-- Performing Test CXX_FILESYSTEM_NO_LINK_NEEDED - Success
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- CUDNN libname: libcudnn.so;libcudnn.dylib;cudnn64
-- Could NOT find CUDNN (missing: CUDNN_LIBRARY) (Required is at least version "7.1")
-- Found MPI_C: /flashlight/vcpkg/installed/x64-linux/lib/libmpi.so (found version "3.1")
-- Found MPI_CXX: /flashlight/vcpkg/installed/x64-linux/lib/libmpi.so (found version "3.1")
-- Found MPI: TRUE (found version "3.1")
-- MPI_VERSION found:  3.1
-- MPI_CXX found
-- MPI_CXX compile flags: -pthread
-- MPI_CXX include path: /flashlight/vcpkg/installed/x64-linux/include
-- MPI_CXX LINK flags path: -Wl,-rpath -Wl,/flashlight/vcpkg/installed/x64-linux/lib -Wl,--enable-new-dtags -pthread
-- MPI_CXX libraries: /flashlight/vcpkg/installed/x64-linux/lib/libmpi.so
-- MPI_C found
-- MPI_C compile flags: -pthread
-- MPI_C include path: /flashlight/vcpkg/installed/x64-linux/include
-- MPI_C LINK flags path: -Wl,-rpath -Wl,/flashlight/vcpkg/installed/x64-linux/lib -Wl,--enable-new-dtags -pthread
-- MPI_C libraries: /flashlight/vcpkg/installed/x64-linux/lib/libmpi.so
-- using distributed stub
-- Configuring done
CMake Error in CMakeLists.txt:
  Target "flashlight" INTERFACE_INCLUDE_DIRECTORIES property contains path:

    "/flashlight/vcpkg/installed/x64-linux/include"

  which is prefixed in the source directory.


CMake Error in CMakeLists.txt:
  Target "flashlight" INTERFACE_INCLUDE_DIRECTORIES property contains path:

    "/flashlight/vcpkg/installed/x64-linux/include"

  which is prefixed in the source directory.


-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    FL_BUILD_ARRAYFIRE


CMake Generate step failed.  Build files cannot be regenerated correctly.

What's the best way to resolve this issue?

Platform and Hardware

[Please list your operating system, [GPU] hardware, compiler, and other details if relevant]

I'm running this on a custom docker image on my M1 apple laptop. The docker image is based off:

FROM mcr.microsoft.com/devcontainers/cpp:0-ubuntu-20.04

I'm trying to build this for flashlight[CPU].

I'm running the code on this commit.

Additional Context

[Add any additional information here]

I ran both:

./vcpkg/vcpkg install flashlight-cpu

and:

./vcpkg install \
    intel-mkl fftw3 kenlm                              \ # for flashlight libraries
    arrayfire[cpu] gloo[mpi] openmpi onednn cereal stb \ # for the flashlight neural net library
    gflags glog                                        \ # for the flashlight runtime pkg (any flashlight apps using it)
    libsndfile                                         \ # for the flashlight speech pkg
    gtest                                                # optional, for tests

to install the packages.

I'll be happy to provide any more details if needed!

@JinLi711 JinLi711 added the bug Something isn't working label Dec 12, 2022
@jacobkahn
Copy link
Member

@JinLi711 — tracking as part of vcpkg overhaul which is a work in progress.

@jacobkahn jacobkahn self-assigned this May 26, 2023
@jacobkahn jacobkahn added this to the vcpkg overhaul milestone May 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working build
Projects
None yet
Development

No branches or pull requests

2 participants