-
Notifications
You must be signed in to change notification settings - Fork 7.5k
[openblas] Build error for openblas:x64-linux on Intel Tiger Lake #22423
Copy link
Copy link
Closed
Labels
category:port-bugThe issue is with a library, which is something the port should already supportThe issue is with a library, which is something the port should already support
Description
Host Environment
- OS: Ubuntu 20.4
- Compiler: GNU 9.3.0
- CPU: Intel 11th gen (Tiger Lake)
To Reproduce
Steps to reproduce the behavior:
./vcpkg install openblas
Failure logs
The following packages will be built and installed:
openblas[core]:x64-linux -> 0.3.15#1
Detecting compiler hash for triplet x64-linux...
Restored 0 packages from /home/hm/.cache/vcpkg/archives in 3.081 us. Use --debug to see more details.
Starting package 1/1: openblas:x64-linux
Building package openblas[core]:x64-linux...
-- Using cached xianyi-OpenBLAS-904f9a267dddb30e9f187e57231ed160ab2f2704.tar.gz.
-- Cleaning sources at /home/hm/src/vcpkg/buildtrees/openblas/src/60ab2f2704-a96d325618.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source /home/hm/src/vcpkg/downloads/xianyi-OpenBLAS-904f9a267dddb30e9f187e57231ed160ab2f2704.tar.gz
-- Applying patch uwp.patch
-- Applying patch fix-space-path.patch
-- Applying patch fix-redefinition-function.patch
-- Applying patch fix-uwp-build.patch
-- Applying patch fix-marco-conflict.patch
-- Applying patch install-tools.patch
-- Using source at /home/hm/src/vcpkg/buildtrees/openblas/src/60ab2f2704-a96d325618.clean
-- Configuring x64-linux-dbg
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
Command failed: /usr/local/cmake-3.21.2-linux-x86_64/bin/cmake /home/hm/src/vcpkg/buildtrees/openblas/src/60ab2f2704-a96d325618.clean -DUSE_THREAD=OFF -DUSE_SIMPLE_THREADED_LEVEL3=OFF -DDYNAMIC_ARCH=OFF -DBUILD_WITHOUT_LAPACK=ON -DNOFORTRAN=ON -DBU=_ -DCMAKE_MAKE_PROGRAM=/home/hm/src/vcpkg/downloads/tools/ninja-1.10.2-linux/ninja -DCMAKE_SYSTEM_NAME=Linux -DBUILD_SHARED_LIBS=OFF -DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=/home/hm/src/vcpkg/scripts/toolchains/linux.cmake -DVCPKG_TARGET_TRIPLET=x64-linux -DVCPKG_SET_CHARSET_FLAG=ON -DVCPKG_PLATFORM_TOOLSET=external -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON -DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE -DCMAKE_VERBOSE_MAKEFILE=ON -DVCPKG_APPLOCAL_DEPS=OFF -DCMAKE_TOOLCHAIN_FILE=/home/hm/src/vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON "-DVCPKG_CXX_FLAGS= -DNEEDBUNDERSCORE" -DVCPKG_CXX_FLAGS_RELEASE= -DVCPKG_CXX_FLAGS_DEBUG= "-DVCPKG_C_FLAGS= -DNEEDBUNDERSCORE" -DVCPKG_C_FLAGS_RELEASE= -DVCPKG_C_FLAGS_DEBUG= -DVCPKG_CRT_LINKAGE=dynamic -DVCPKG_LINKER_FLAGS= -DVCPKG_LINKER_FLAGS_RELEASE= -DVCPKG_LINKER_FLAGS_DEBUG= -DVCPKG_TARGET_ARCHITECTURE=x64 -DCMAKE_INSTALL_LIBDIR:STRING=lib -DCMAKE_INSTALL_BINDIR:STRING=bin -D_VCPKG_ROOT_DIR=/home/hm/src/vcpkg -D_VCPKG_INSTALLED_DIR=/home/hm/src/vcpkg/installed -DVCPKG_MANIFEST_INSTALL=OFF -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/home/hm/src/vcpkg/packages/openblas_x64-linux/debug
Working Directory: /home/hm/src/vcpkg/buildtrees/openblas/x64-linux-dbg
Error code: 1
See logs for more information:
/home/hm/src/vcpkg/buildtrees/openblas/config-x64-linux-dbg-out.log
/home/hm/src/vcpkg/buildtrees/openblas/config-x64-linux-dbg-err.log
Call Stack (most recent call first):
installed/x64-linux/share/vcpkg-cmake/vcpkg_cmake_configure.cmake:426 (vcpkg_execute_required_process)
ports/openblas/portfile.cmake:60 (vcpkg_cmake_configure)
scripts/ports.cmake:142 (include)
From /home/hm/src/vcpkg/buildtrees/openblas/config-x64-linux-dbg-err.log:
CMake Deprecation Warning at CMakeLists.txt:5 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
CMake Warning at CMakeLists.txt:70 (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/prebuild.cmake:559 (MESSAGE):
Compiling getarch failed Change Dir:
/home/hm/src/vcpkg/buildtrees/openblas/x64-linux-dbg/getarch_build/CMakeFiles/CMakeTmp
Run Build
Command(s):/home/hm/src/vcpkg/downloads/tools/ninja-1.10.2-linux/ninja
cmTC_1a26d && [1/3] Building C object CMakeFiles/cmTC_1a26d.dir/getarch.c.o
FAILED: CMakeFiles/cmTC_1a26d.dir/getarch.c.o
/usr/bin/cc -fPIC -DNEEDBUNDERSCORE -march=native
-DGEMM_MULTITHREAD_THRESHOLD=4 -g -DNO_PARALLEL_MAKE=0
-I"/home/hm/src/vcpkg/buildtrees/openblas/x64-linux-dbg/getarch_build"
-I"/home/hm/src/vcpkg/buildtrees/openblas/src/60ab2f2704-a96d325618.clean"
-I"/home/hm/src/vcpkg/buildtrees/openblas/x64-linux-dbg" -o
CMakeFiles/cmTC_1a26d.dir/getarch.c.o -c
/home/hm/src/vcpkg/buildtrees/openblas/src/60ab2f2704-a96d325618.clean/getarch.c
cc1: error: bad value (‘tigerlake’) for ‘-march=’ switch
cc1: note: valid arguments to ‘-march=’ switch are: nocona core2
nehalem corei7 westmere sandybridge corei7-avx ivybridge core-avx-i haswell
core-avx2 broadwell skylake skylake-avx512 cannonlake icelake-client
icelake-server cascadelake bonnell atom silvermont slm goldmont
goldmont-plus tremont knl knm x86-64 eden-x2 nano nano-1000 nano-2000
nano-3000 nano-x2 eden-x4 nano-x4 k8 k8-sse3 opteron opteron-sse3 athlon64
athlon64-sse3 athlon-fx amdfam10 barcelona bdver1 bdver2 bdver3 bdver4
znver1 znver2 btver1 btver2 native
cc1: error: bad value (‘tigerlake’) for ‘-mtune=’ switch
cc1: note: valid arguments to ‘-mtune=’ switch are: nocona core2
nehalem corei7 westmere sandybridge corei7-avx ivybridge core-avx-i haswell
core-avx2 broadwell skylake skylake-avx512 cannonlake icelake-client
icelake-server cascadelake bonnell atom silvermont slm goldmont
goldmont-plus tremont knl knm intel x86-64 eden-x2 nano nano-1000 nano-2000
nano-3000 nano-x2 eden-x4 nano-x4 k8 k8-sse3 opteron opteron-sse3 athlon64
athlon64-sse3 athlon-fx amdfam10 barcelona bdver1 bdver2 bdver3 bdver4
znver1 znver2 btver1 btver2 generic native
[2/3] Building ASM object CMakeFiles/cmTC_1a26d.dir/cpuid.S.o
FAILED: CMakeFiles/cmTC_1a26d.dir/cpuid.S.o
/usr/bin/cc -march=native -DGEMM_MULTITHREAD_THRESHOLD=4 -g
-DNO_PARALLEL_MAKE=0
-I"/home/hm/src/vcpkg/buildtrees/openblas/x64-linux-dbg/getarch_build"
-I"/home/hm/src/vcpkg/buildtrees/openblas/src/60ab2f2704-a96d325618.clean"
-I"/home/hm/src/vcpkg/buildtrees/openblas/x64-linux-dbg" -o
CMakeFiles/cmTC_1a26d.dir/cpuid.S.o -c
/home/hm/src/vcpkg/buildtrees/openblas/src/60ab2f2704-a96d325618.clean/cpuid.S
cc1: error: bad value (‘tigerlake’) for ‘-march=’ switch
cc1: note: valid arguments to ‘-march=’ switch are: nocona core2
nehalem corei7 westmere sandybridge corei7-avx ivybridge core-avx-i haswell
core-avx2 broadwell skylake skylake-avx512 cannonlake icelake-client
icelake-server cascadelake bonnell atom silvermont slm goldmont
goldmont-plus tremont knl knm x86-64 eden-x2 nano nano-1000 nano-2000
nano-3000 nano-x2 eden-x4 nano-x4 k8 k8-sse3 opteron opteron-sse3 athlon64
athlon64-sse3 athlon-fx amdfam10 barcelona bdver1 bdver2 bdver3 bdver4
znver1 znver2 btver1 btver2 native
cc1: error: bad value (‘tigerlake’) for ‘-mtune=’ switch
cc1: note: valid arguments to ‘-mtune=’ switch are: nocona core2
nehalem corei7 westmere sandybridge corei7-avx ivybridge core-avx-i haswell
core-avx2 broadwell skylake skylake-avx512 cannonlake icelake-client
icelake-server cascadelake bonnell atom silvermont slm goldmont
goldmont-plus tremont knl knm intel x86-64 eden-x2 nano nano-1000 nano-2000
nano-3000 nano-x2 eden-x4 nano-x4 k8 k8-sse3 opteron opteron-sse3 athlon64
athlon64-sse3 athlon-fx amdfam10 barcelona bdver1 bdver2 bdver3 bdver4
znver1 znver2 btver1 btver2 generic native
ninja: build stopped: subcommand failed.
Call Stack (most recent call first):
cmake/system.cmake:151 (include)
CMakeLists.txt:73 (include)
Additional context
- The problem appears to be that the CPU type Tiger Lake (
tigerlake) is not supported yet - Change Log for Openblas shows that autodetection for Tiger Lake was fixed in Openblas V.0.3.16
- Current version referenced in vcpkg ports is still 0.15.3
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
category:port-bugThe issue is with a library, which is something the port should already supportThe issue is with a library, which is something the port should already support