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

Failing to locate standard headers with GCC when building mxnet #429

Open
varungandhi-src opened this issue Sep 25, 2023 · 0 comments
Open
Labels

Comments

@varungandhi-src
Copy link
Contributor

https://github.com/apache/mxnet (SHA: b84609d3fc73d20929c114eab95faaa56e6c5ede)

In file included from /home/varun/mxnet/3rdparty/tvm/nnvm/src/c_api/c_api_error.cc:24:
/home/varun/mxnet/include/dmlc/thread_local.h:9:10: fatal error: 'mutex' file not found
#include <mutex>
         ^~~~~~~
1 error generated.

Compilation database:

[
  {
    "directory": "/home/varun/mxnet/build",
    "command": "/usr/bin/c++ -DDMLC_LOG_STACK_TRACE_SIZE=0 -DDMLC_MODERN_THREAD_LOCAL=0 -DDMLC_STRICT_CXX11 -DDMLC_USE_CXX11 -DDMLC_USE_CXX14 -DMSHADOW_IN_CXX11 -DMSHADOW_USE_CBLAS=1 -DMSHADOW_USE_MKL=0 -DMXNET_BRANCH=\\\"master\\\" -DMXNET_COMMIT_HASH=\\\"b84609d3fc73d20929c114eab95faaa56e6c5ede\\\" -DMXNET_USE_BLAS_OPEN=1 -DMXNET_USE_CUDA=1 -DMXNET_USE_INTGEMM=1 -DMXNET_USE_LAPACK=1 -DMXNET_USE_LIBJPEG_TURBO=0 -DMXNET_USE_NVML=1 -DMXNET_USE_NVTX=1 -DMXNET_USE_ONEDNN=1 -DMXNET_USE_OPENCV=1 -DMXNET_USE_OPENMP=1 -DMXNET_USE_OPERATOR_TUNING=1 -DMXNET_USE_SIGNAL_HANDLER=1 -DNDEBUG=1 -I/home/varun/mxnet/3rdparty/onednn/include -I/home/varun/mxnet/build/3rdparty/onednn/include -I/home/varun/mxnet/include -I/home/varun/mxnet/src -I/home/varun/mxnet/3rdparty/tvm/nnvm/include -I/home/varun/mxnet/3rdparty/tvm/include -I/home/varun/mxnet/3rdparty/dmlc-core/include -I/home/varun/mxnet/3rdparty/dlpack/include -I/usr/local/cuda/include -isystem /usr/include/opencv4  -fdiagnostics-color=always  -Wall -Wno-sign-compare -O3 -fopenmp -std=gnu++17 -fPIC -o CMakeFiles/nnvm.dir/3rdparty/tvm/nnvm/src/c_api/c_api_error.cc.o -c /home/varun/mxnet/3rdparty/tvm/nnvm/src/c_api/c_api_error.cc",
    "file": "/home/varun/mxnet/3rdparty/tvm/nnvm/src/c_api/c_api_error.cc",
    "output": "CMakeFiles/nnvm.dir/3rdparty/tvm/nnvm/src/c_api/c_api_error.cc.o"
  }
]

Compiler:

❯ /usr/bin/c++ --version
c++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Search dirs output

install: /usr/lib/gcc/x86_64-linux-gnu/11/
programs: =/usr/lib/gcc/x86_64-linux-gnu/11/:/usr/lib/gcc/x86_64-linux-gnu/11/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/11/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/11/../../../../x86_64-linux-gnu/bin/x86_64-linux-gnu/11/:/usr/lib/gcc/x86_64-linux-gnu/11/../../../../x86_64-linux-gnu/bin/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/11/../../../../x86_64-linux-gnu/bin/
libraries: =/usr/lib/gcc/x86_64-linux-gnu/11/:/usr/lib/gcc/x86_64-linux-gnu/11/../../../../x86_64-linux-gnu/lib/x86_64-linux-gnu/11/:/usr/lib/gcc/x86_64-linux-gnu/11/../../../../x86_64-linux-gnu/lib/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/11/../../../../x86_64-linux-gnu/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/11/:/usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/11/../../../../lib/:/lib/x86_64-linux-gnu/11/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/11/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/11/../../../../x86_64-linux-gnu/lib/:/usr/lib/gcc/x86_64-linux-gnu/11/../../../:/lib/:/usr/lib/

The mutex header is located under /usr/include/c++/11/mutex.

Potentially related to or the same as #424

@varungandhi-src varungandhi-src added the bug Something isn't working label Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant