-
|
The default compiler on my Ubuntu system is GCC13, but I have GCC15 in My project directory looks as such: cmake/
| -- toolchains/
| | -- gcc-15-toolchain.cmake
| -- triplets/
| | -- x64-linux-gcc-15.cmake
CMakeLists.txt
CMakePresets.json
main.cpp
vcpkg-configuration.json
vcpkg.jsonThis is the contents of set(CMAKE_C_COMPILER "/usr/local/bin/gcc-15.1")
set(CMAKE_CXX_COMPILER "/usr/local/bin/g++-15.1")
message("gcc-15 toolchain CMAKE_C_COMPILER = ${CMAKE_C_COMPILER}")
message("gcc-15 toolchain CMAKE_CXX_COMPILER = ${CMAKE_CXX_COMPILER}")This is the contents of set(VCPKG_TARGET_ARCHITECTURE x64)
set(VCPKG_CRT_LINKAGE dynamic)
set(VCPKG_LIBRARY_LINKAGE static)
set(VCPKG_CMAKE_SYSTEM_NAME Linux)
set(VCPKG_CHAINLOAD_TOOLCHAIN_FILE ${CMAKE_CURRENT_LIST_DIR}/../toolchains/gcc-15-toolchain.cmake)
message("gcc-15 triplet CMAKE_C_COMPILER = ${CMAKE_C_COMPILER}")
message("gcc-15 triplet CMAKE_CXX_COMPILER = ${CMAKE_CXX_COMPILER}")And finally the contents of my {
"version": 4,
"configurePresets": [
{
"name": "vcpkg",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
"VCPKG_OVERLAY_TRIPLETS": "${sourceDir}/cmake/triplets",
"VCPKG_TARGET_TRIPLET": "x64-linux-gcc-15",
"VCPKG_CHAINLOAD_TOOLCHAIN_FILE": "${sourceDir}/cmake/toolchains/gcc-15-toolchain.cmake",
"CMAKE_POSITION_INDEPENDENT_CODE": "ON",
"CMAKE_C_COMPILER": "gcc-15.1",
"CMAKE_CXX_COMPILER": "g++-15.1"
}
}
],
"buildPresets": [
{
"name": "vcpkg",
"displayName": "vcpkg",
"configurePreset": "vcpkg"
}
]
}The troubling package in questions is gcc-15 toolchain CMAKE_C_COMPILER = /usr/local/bin/gcc-15.1
gcc-15 toolchain CMAKE_CXX_COMPILER = /usr/local/bin/g++-15.1
... # skipping several lines of successful output
Installing 6/11 openblas:x64-linux@0.3.29...
Building openblas:x64-linux@0.3.29...
/home/tuero/.cache/vcpkg/registries/git-trees/3d3d198cfb372ccd328a36248c4c12fb7c6b3bb6: info: installing from git registry git+https://github.com/microsoft/vcpkg@3d3d198cfb372ccd328a36248c4c12fb7c6b3bb6
-- Using cached OpenMathLib-OpenBLAS-v0.3.29.tar.gz
-- Extracting source /home/tuero/vcpkg/downloads/OpenMathLib-OpenBLAS-v0.3.29.tar.gz
-- Applying patch disable-testing.diff
-- Applying patch getarch.diff
-- Applying patch system-check-msvc.diff
-- Applying patch win32-uwp.diff
-- Using source at /home/tuero/vcpkg/buildtrees/openblas/src/v0.3.29-abfa9cf6a4.clean
-- OpenBLAS native build
-- Configuring x64-linux
-- Building x64-linux-dbg
-- Building x64-linux-rel
-- Fixing pkgconfig file: /home/tuero/vcpkg/packages/openblas_x64-linux/lib/pkgconfig/openblas.pc
-- Fixing pkgconfig file: /home/tuero/vcpkg/packages/openblas_x64-linux/debug/lib/pkgconfig/openblas.pc
-- Installing: /home/tuero/vcpkg/packages/openblas_x64-linux/share/openblas/copyright
-- Adjusted RPATH of '/home/tuero/vcpkg/packages/openblas_x64-linux/manual-tools/openblas/Linux_x64/getarch' (From '' -> To '$ORIGIN:$ORIGIN/../../../lib')
-- Adjusted RPATH of '/home/tuero/vcpkg/packages/openblas_x64-linux/manual-tools/openblas/Linux_x64/getarch_2nd' (From '' -> To '$ORIGIN:$ORIGIN/../../../lib')
-- Performing post-build validation
Starting submission of openblas:x64-linux@0.3.29 to 1 binary cache(s) in the background
Elapsed time to handle openblas:x64-linux: 31 s
openblas:x64-linux package ABI: 94077d0655f652ed9982836f700fd7fc59e9989105db2344fac7dd60f6fa2652
Completed submission of libxml2[core,iconv,zlib]:x64-linux-gcc-15@2.15.0 to 1 binary cache(s) in 361 ms
Installing 7/11 openblas:x64-linux-gcc-15@0.3.29...
Building openblas:x64-linux-gcc-15@0.3.29...
/home/tuero/Documents/test/test_vcpkg/cmake/triplets/x64-linux-gcc-15.cmake: info: loaded overlay triplet from here
/home/tuero/.cache/vcpkg/registries/git-trees/3d3d198cfb372ccd328a36248c4c12fb7c6b3bb6: info: installing from git registry git+https://github.com/microsoft/vcpkg@3d3d198cfb372ccd328a36248c4c12fb7c6b3bb6
gcc-15 triplet CMAKE_C_COMPILER =
gcc-15 triplet CMAKE_CXX_COMPILER =
-- Using cached OpenMathLib-OpenBLAS-v0.3.29.tar.gz
-- Cleaning sources at /home/tuero/vcpkg/buildtrees/openblas/src/v0.3.29-abfa9cf6a4.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source /home/tuero/vcpkg/downloads/OpenMathLib-OpenBLAS-v0.3.29.tar.gz
-- Applying patch disable-testing.diff
-- Applying patch getarch.diff
-- Applying patch system-check-msvc.diff
-- Applying patch win32-uwp.diff
-- Using source at /home/tuero/vcpkg/buildtrees/openblas/src/v0.3.29-abfa9cf6a4.clean
-- OpenBLAS cross build, but may use openblas:x64-linux getarch
-- Configuring x64-linux-gcc-15
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
Command failed: /home/tuero/vcpkg/downloads/tools/ninja/1.13.1-linux/ninja -v
Working Directory: /home/tuero/vcpkg/buildtrees/openblas/x64-linux-gcc-15-rel/vcpkg-parallel-configure
Error code: 1
See logs for more information:
/home/tuero/vcpkg/buildtrees/openblas/config-x64-linux-gcc-15-dbg-CMakeCache.txt.log
/home/tuero/vcpkg/buildtrees/openblas/config-x64-linux-gcc-15-rel-CMakeCache.txt.log
/home/tuero/vcpkg/buildtrees/openblas/config-x64-linux-gcc-15-dbg-CMakeConfigureLog.yaml.log
/home/tuero/vcpkg/buildtrees/openblas/config-x64-linux-gcc-15-rel-CMakeConfigureLog.yaml.log
/home/tuero/vcpkg/buildtrees/openblas/config-x64-linux-gcc-15-out.log
Call Stack (most recent call first):
/home/tuero/Documents/test/test_vcpkg/build/vcpkg_installed/x64-linux/share/vcpkg-cmake/vcpkg_cmake_configure.cmake:269 (vcpkg_execute_required_process)
/home/tuero/.cache/vcpkg/registries/git-trees/3d3d198cfb372ccd328a36248c4c12fb7c6b3bb6/portfile.cmake:47 (vcpkg_cmake_configure)
scripts/ports.cmake:206 (include)
error: building openblas:x64-linux-gcc-15 failed with: BUILD_FAILEDIts building both a ...
gcc-15 toolchain CMAKE_C_COMPILER = /usr/local/bin/gcc-15.1
gcc-15 toolchain CMAKE_CXX_COMPILER = /usr/local/bin/g++-15.1
gcc-15 toolchain CMAKE_C_COMPILER = /usr/local/bin/gcc-15.1
gcc-15 toolchain CMAKE_CXX_COMPILER = /usr/local/bin/g++-15.1
-- The C compiler identification is GNU 15.1.0
-- The ASM compiler identification is GNU
-- Found assembler: /usr/local/bin/gcc-15.1
-- Detecting C compiler ABI info
gcc-15 toolchain CMAKE_C_COMPILER = /usr/local/bin/gcc-15.1
gcc-15 toolchain CMAKE_CXX_COMPILER = /usr/local/bin/g++-15.1
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/local/bin/gcc-15.1 - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- TARGET: <native> (OpenBLAS getarch/getarch_2nd)
CMake Warning at CMakeLists.txt:104 (message):
CMake support is experimental. It does not yet support all build options
and may not produce the same Makefiles that OpenBLAS ships with.
CMake Error at cmake/system_check.cmake:88 (if):
if given arguments:
"STREQUAL" "CORE2"
Unknown arguments specifiedAny help would be appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
|
Likely a bug in openblas port, but you can try to skip crosscompiling by setting host triplet = target triplet. |
Beta Was this translation helpful? Give feedback.
-
It means you are doing a vcpkg cross-build. |
Beta Was this translation helpful? Give feedback.
-
|
|
Beta Was this translation helpful? Give feedback.
CMAKE_SYSTEM_PROCESSOR. This breaks port openblas.CMAKE_SYSTEM_NAME. This causesCMAKE_CROSSCOMPILING(unless overridden, as in the vcpkg toolchain).To be fair, getting CMake toolchains right and complete can be painful.