Replies: 5 comments
-
加 -vD 看下 |
Beta Was this translation helpful? Give feedback.
-
$ xrepo install -vD openmp
xmake f -c --require=n -vD
checking for platform ... linux
checking for architecture ... x86_64
checking for gcc ... /App/conda/envs/conda_xmake/bin/gcc
checkinfo: cannot runv(zig version), Not access because it is busy
checking for zig ... no
checkinfo: cannot runv(zig version), Not access because it is busy
checking for zig ... no
configure
{
kind = static
ccache = true
clean = true
host = linux
ndk_stdcxx = true
mode = release
plat = linux
arch = x86_64
buildir = build
}
xmake require -v -D -j 74 --extra={system=false} openmp
checking for unzip ... /usr/bin/unzip
checking for git ... /usr/bin/git
checking for gzip ... /usr/bin/gzip
checking for tar ... /usr/bin/tar
/usr/bin/git rev-parse HEAD
checking for /App/conda/envs/conda_xmake/bin/x86_64-conda-linux-gnu-cc ... ok
checking for the c compiler (cc) ... x86_64-conda-linux-gnu-cc
checking for /App/conda/envs/conda_xmake/bin/x86_64-conda-linux-gnu-c++ ... ok
checking for the c++ compiler (cxx) ... x86_64-conda-linux-gnu-c++
finding openmp from xmake ..
checking for xmake::openmp ... no
note: install or modify (m) these packages (pass -y to skip confirm)?
in xmake-repo:
-> openmp latest
please input: y (y/n/m)
y
finding openmp from xmake ..
checking for xmake::openmp ... openmp latest
{
version = "latest"
}
patching /home/admin/.xmake/packages/o/openmp/latest/891e844922df4b89aed1a2fb5a1aca67/lib/pkgconfig/openmp.pc ..
checking for /App/conda/envs/conda_xmake/bin/x86_64-conda-linux-gnu-cc ... ok
checking for flags (-fPIC) ... no
> x86_64-conda-linux-gnu-cc "-fPIC" "-m64"
checkinfo: @programdir/core/sandbox/modules/os.lua:269: x86_64-conda-linux-gnu-cc: fatal error: no input files
compilation terminated.
stack traceback:
[C]: in function 'error'
[@programdir/core/base/os.lua:913]:
[@programdir/core/sandbox/modules/os.lua:269]: in function 'runv'
[@programdir/modules/lib/detect/has_flags.lua:131]:
> /App/conda/envs/conda_xmake/bin/x86_64-conda-linux-gnu-cc -c -m64 -o /tmp/.xmake1097/230514/_CC1884927AB748308A9E434C57F9E360.o /tmp/.xmake1097/230514/_09B734D208E54729AB88902CD1C7A925.c
checking for flags (-fdiagnostics-color=always) ... no
> x86_64-conda-linux-gnu-cc "-fdiagnostics-color=always" "-m64"
checkinfo: @programdir/core/sandbox/modules/os.lua:269: x86_64-conda-linux-gnu-cc: fatal error: no input files
compilation terminated.
stack traceback:
[C]: in function 'error'
[@programdir/core/base/os.lua:913]:
[@programdir/core/sandbox/modules/os.lua:269]: in function 'runv'
[@programdir/modules/lib/detect/has_flags.lua:131]:
checking for flags (-fcolor-diagnostics) ... no
> x86_64-conda-linux-gnu-cc "-fcolor-diagnostics" "-m64"
checkinfo: @programdir/core/sandbox/modules/os.lua:269: x86_64-conda-linux-gnu-cc: error: unrecognized command-line option '-fcolor-diagnostics'
x86_64-conda-linux-gnu-cc: fatal error: no input files
compilation terminated.
stack traceback:
[C]: in function 'error'
[@programdir/core/base/os.lua:913]:
[@programdir/core/sandbox/modules/os.lua:269]: in function 'runv'
[@programdir/modules/lib/detect/has_flags.lua:131]:
> checking for c snippet(test)
checkinfo: ...amdir/core/sandbox/modules/import/core/tool/compiler.lua:84: @programdir/modules/core/tools/gcc.lua:721: /tmp/.xmake1097/230514/_09B734D208E54729AB88902CD1C7A925.c:7:14: error: #error missing openmp flags
7 | # error missing openmp flags
| ^~~~~
stack traceback:
[C]: in function 'error'
[@programdir/core/base/os.lua:913]:
[@programdir/modules/core/tools/gcc.lua:721]: in function 'catch'
[@programdir/core/sandbox/modules/try.lua:123]: in function 'try'
[@programdir/modules/core/tools/gcc.lua:662]:
[C]: in function 'xpcall'
[@programdir/core/base/utils.lua:280]:
[@programdir/core/tool/compiler.lua:274]: in function 'compile'
[...amdir/core/sandbox/modules/import/core/tool/compiler.lua:82]: in function 'compile'
[@programdir/modules/lib/detect/check_cxsnippets.lua:246]:
[C]: in function 'xpcall'
[@programdir/core/base/utils.lua:280]: in function 'trycall'
[@programdir/core/sandbox/modules/try.lua:117]: in function 'try'
[@programdir/modules/lib/detect/check_cxsnippets.lua:240]:
[...make/repositories/xmake-repo/packages/o/openmp/xmake.lua:76]: in function 'script'
[...dir/modules/private/action/require/impl/utils/filter.lua:125]: in function 'call'
[...dir/modules/private/action/require/impl/actions/test.lua:41]:
[.../modules/private/action/require/impl/actions/install.lua:366]:
[C]: in function 'xpcall'
[@programdir/core/base/utils.lua:280]: in function 'trycall'
[@programdir/core/sandbox/modules/try.lua:117]: in function 'try'
[.../modules/private/action/require/impl/actions/install.lua:287]:
[...modules/private/action/require/impl/install_packages.lua:479]: in function 'jobfunc'
[@programdir/modules/private/async/runjobs.lua:232]:
[C]: in function 'xpcall'
[@programdir/core/base/utils.lua:280]: in function 'trycall'
[@programdir/core/sandbox/modules/try.lua:117]: in function 'try'
[@programdir/modules/private/async/runjobs.lua:218]: in function 'cotask'
[@programdir/core/base/scheduler.lua:404]:
error: ...make/repositories/xmake-repo/packages/o/openmp/xmake.lua:76: ...amdir/core/sandbox/modules/import/core/tool/compiler.lua:84: @programdir/modules/core/tools/gcc.lua:721: /tmp/.xmake1097/230514/_09B734D208E54729AB88902CD1C7A925.c:7:14: error: #error missing openmp flags
7 | # error missing openmp flags
| ^~~~~
stack traceback:
[C]: in function 'error'
[@programdir/core/base/os.lua:913]:
[@programdir/modules/core/tools/gcc.lua:721]: in function 'catch'
[@programdir/core/sandbox/modules/try.lua:123]: in function 'try'
[@programdir/modules/core/tools/gcc.lua:662]:
[C]: in function 'xpcall'
[@programdir/core/base/utils.lua:280]:
[@programdir/core/tool/compiler.lua:274]: in function 'compile'
[...amdir/core/sandbox/modules/import/core/tool/compiler.lua:82]: in function 'compile'
[@programdir/modules/lib/detect/check_cxsnippets.lua:246]:
[C]: in function 'xpcall'
[@programdir/core/base/utils.lua:280]: in function 'trycall'
[@programdir/core/sandbox/modules/try.lua:117]: in function 'try'
[@programdir/modules/lib/detect/check_cxsnippets.lua:240]:
[...make/repositories/xmake-repo/packages/o/openmp/xmake.lua:76]: in function 'script'
[...dir/modules/private/action/require/impl/utils/filter.lua:125]: in function 'call'
[...dir/modules/private/action/require/impl/actions/test.lua:41]:
[.../modules/private/action/require/impl/actions/install.lua:366]:
[C]: in function 'xpcall'
[@programdir/core/base/utils.lua:280]: in function 'trycall'
[@programdir/core/sandbox/modules/try.lua:117]: in function 'try'
[.../modules/private/action/require/impl/actions/install.lua:287]:
[...modules/private/action/require/impl/install_packages.lua:479]: in function 'jobfunc'
[@programdir/modules/private/async/runjobs.lua:232]:
[C]: in function 'xpcall'
[@programdir/core/base/utils.lua:280]: in function 'trycall'
[@programdir/core/sandbox/modules/try.lua:117]: in function 'try'
[@programdir/modules/private/async/runjobs.lua:218]: in function 'cotask'
[@programdir/core/base/scheduler.lua:404]:
=> install openmp latest .. failed
error: @programdir/modules/private/async/runjobs.lua:256: .../modules/private/action/require/impl/actions/install.lua:428: install failed!
stack traceback:
[C]: in function 'error'
[@programdir/core/base/os.lua:913]:
[.../modules/private/action/require/impl/actions/install.lua:428]: in function 'catch'
[@programdir/core/sandbox/modules/try.lua:123]: in function 'try'
[.../modules/private/action/require/impl/actions/install.lua:287]:
[...modules/private/action/require/impl/install_packages.lua:479]: in function 'jobfunc'
[@programdir/modules/private/async/runjobs.lua:232]:
stack traceback:
[C]: in function 'error'
@programdir/core/base/os.lua:913: in function 'os.raiselevel'
(...tail calls...)
@programdir/modules/private/async/runjobs.lua:256: in field 'catch'
@programdir/core/sandbox/modules/try.lua:123: in global 'try'
@programdir/modules/private/async/runjobs.lua:218: in upvalue 'cotask'
@programdir/core/base/scheduler.lua:404: in function <@programdir/core/base/scheduler.lua:397>
error: ./home/admin/.local/share/xmake/core/main.lua:302: ./home/admin/.local/share/xmake/core/sandbox/modules/os.lua:374: execv(xmake require -v -D -j 74 --extra={system=false} openmp) failed(255)
stack traceback:
[C]: in function 'error'
[./home/admin/.local/share/xmake/core/base/os.lua:913]:
[./home/admin/.local/share/xmake/core/sandbox/modules/os.lua:374]:
[...cal/share/xmake/modules/private/xrepo/action/install.lua:274]: in function '_install_packages'
[...cal/share/xmake/modules/private/xrepo/action/install.lua:281]:
[.../admin/.local/share/xmake/modules/private/xrepo/main.lua:196]:
[./home/admin/.local/share/xmake/plugins/lua/main.lua:123]:
[C]: in function 'xpcall'
[./home/admin/.local/share/xmake/core/base/utils.lua:280]:
[./home/admin/.local/share/xmake/core/base/task.lua:501]: in function 'run'
[./home/admin/.local/share/xmake/core/main.lua:300]: in function 'cotask'
[./home/admin/.local/share/xmake/core/base/scheduler.lua:404]:
stack traceback:
[C]: in function 'error'
./home/admin/.local/share/xmake/core/base/os.lua:913: in function 'os.raiselevel'
(...tail calls...)
./home/admin/.local/share/xmake/core/main.lua:302: in upvalue 'cotask'
./home/admin/.local/share/xmake/core/base/scheduler.lua:404: in function <./home/admin/.local/share/xmake/core/base/scheduler.lua:397> |
Beta Was this translation helpful? Give feedback.
-
x86_64-conda-linux-gnu-cc 看下 https://github.com/orgs/xmake-io/discussions/3438 |
Beta Was this translation helpful? Give feedback.
-
感谢!按照您的提示, disabling CUDA because NOT USE_CUDA is set
-- USE_CUDNN is set to 0. Compiling without cuDNN support
disabling ROCM because NOT USE_ROCM is set
-- MIOpen not found. Compiling without MIOpen support
-- Will build oneDNN Graph
-- MKLDNN_CPU_RUNTIME = OMP
-- cmake version: 3.25.0
CMake Deprecation Warning at third_party/ideep/mkl-dnn/CMakeLists.txt:36 (cmake_policy):
The OLD behavior for policy CMP0025 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
-- DNNL_TARGET_ARCH: X64
-- DNNL_LIBRARY_NAME: dnnl
-- MKL_THREADING = OMP
-- MKL_THREADING = OMP
-- MKL_THREADING = OMP
-- MKL_THREADING = OMP
-- MKL_THREADING = OMP
-- MKL_THREADING = OMP
CMake Warning (dev) at /App/conda/lib/python3.10/site-packages/cmake/data/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to `find_package_handle_standard_args` (OpenMP_C)
does not match the name of the calling package (OpenMP). This can lead to
problems in calling code that expects `find_package` result variables
(e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
cmake/Modules/FindOpenMP.cmake:576 (find_package_handle_standard_args)
third_party/ideep/mkl-dnn/third_party/oneDNN/cmake/OpenMP.cmake:69 (find_package)
third_party/ideep/mkl-dnn/third_party/oneDNN/CMakeLists.txt:117 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES)
CMake Warning (dev) at /App/conda/lib/python3.10/site-packages/cmake/data/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to `find_package_handle_standard_args` (OpenMP_CXX)
does not match the name of the calling package (OpenMP). This can lead to
problems in calling code that expects `find_package` result variables
(e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
cmake/Modules/FindOpenMP.cmake:576 (find_package_handle_standard_args)
third_party/ideep/mkl-dnn/third_party/oneDNN/cmake/OpenMP.cmake:69 (find_package)
third_party/ideep/mkl-dnn/third_party/oneDNN/CMakeLists.txt:117 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES)
-- Could NOT find OpenMP (missing: OpenMP_C_FOUND OpenMP_CXX_FOUND)
CMake Error at third_party/ideep/mkl-dnn/third_party/oneDNN/cmake/OpenMP.cmake:118 (message):
OpenMP library could not be found. Proceeding might lead to highly
sub-optimal performance.
Call Stack (most recent call first):
third_party/ideep/mkl-dnn/third_party/oneDNN/CMakeLists.txt:117 (include)
-- Configuring incomplete, errors occurred!
See also "/home/admin/.xmake/cache/packages/2305/l/libtorch/v1.12.1/source/libtorch/build_923d702d/CMakeFiles/CMakeOutput.log".
See also "/home/admin/.xmake/cache/packages/2305/l/libtorch/v1.12.1/source/libtorch/build_923d702d/CMakeFiles/CMakeError.log".
error: execv(/App/conda/bin/cmake -DUSE_MPI=OFF -DCMAKE_INSTALL_LIBDIR=lib -DBUILD_TEST=OFF -DATEN_NO_TEST=ON -DBUILD_PYTHON=OFF -DUSE_NUMPY=OFF -DBLAS=OpenBLAS -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DUSE_CUDA=OFF -DUSE_OPENMP=ON -DUSE_DISTRIBUTED=OFF -DUSE_SYSTEM_PYBIND11=OFF -DBUILD_CUSTOM_PROTOBUF=ON -DCMAKE_INSTALL_PREFIX=/home/admin/.xmake/packages/l/libtorch/v1.12.1/923d702d024a4f7aaea7a963e632db26 -G "Unix Makefiles" -DCMAKE_POSITION_INDEPENDENT_CODE=ON "-DCMAKE_CXX_LINK_EXECUTABLE=<CMAKE_LINKER> <FLAGS> <CMAKE_CXX_LINK_FLAGS> <LINK_FLAGS> <OBJECTS> -o <TARGET> <LINK_LIBRARIES>" -DCMAKE_CXX_COMPILER=/App/conda/envs/conda_xmake/bin/clang++ -DCMAKE_C_COMPILER=/App/conda/envs/conda_xmake/bin/clang -DCMAKE_CXX_FLAGS=-m64 -DCMAKE_AR=/usr/bin/ar -DCMAKE_SHARED_LINKER_FLAGS=-m64 -DCMAKE_ASM_FLAGS=-m64 -DCMAKE_STATIC_LINKER_FLAGS= -DCMAKE_EXE_LINKER_FLAGS=-m64 -DCMAKE_C_FLAGS=-m64 -DCMAKE_LINKER=/App/conda/envs/conda_xmake/bin/clang++ -DCMAKE_ASM_COMPILER=/App/conda/envs/conda_xmake/bin/clang /home/admin/.xmake/cache/packages/2305/l/libtorch/v1.12.1/source/libtorch) failed(1)
=> install libtorch v1.12.1 .. failed
error: install failed!
error: execv(xmake require -v -j 74 --extra={system=false} libtorch) failed(255) |
Beta Was this translation helpful? Give feedback.
-
conda 环境下没试过,可能会有各种问题,你可以自己调下那个包,和相关cmake 问题。。或者在非 conda 环境下测试。 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
All reactions