conan-io / conan-center-index

Recipes for the ConanCenter repository
https://conan.io/center
MIT License
965 stars 1.77k forks source link

[package] zstd/1.5.2: Fails to cross compile to armv8 #12129

Closed Sil3ntStorm closed 1 month ago

Sil3ntStorm commented 2 years ago

Package and Environment Details

Conan profile

Configuration (profile_host):
[settings]
arch=armv8
arch_build=x86_64
build_type=Release
compiler=clang
compiler.cppstd=17
compiler.libcxx=libc++
compiler.version=7.1
os=Linux
os_build=Linux
[options]
[build_requires]
[env]

Configuration (profile_build):
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=clang
compiler.libcxx=libstdc++
compiler.version=7.1
os=Linux
os_build=Linux
[options]
[build_requires]
[env]

Steps to reproduce

conan install -pr:b default -pr:h linux-armv8 --build=missing -r conancenter zstd/1.5.2@

Logs

Click to expand log ``` zstd/1.5.2: Retrieving from server 'conancenter' zstd/1.5.2: Trying with 'conancenter'... Downloading conanmanifest.txt completed [0.26k] Downloading conanfile.py completed [3.85k] Downloading conan_export.tgz completed [0.31k] Decompressing conan_export.tgz completed [0.00k] zstd/1.5.2: Downloaded recipe revision 0 Installing package: zstd/1.5.2 Requirements zstd/1.5.2 from 'conancenter' - Downloaded Packages zstd/1.5.2:2d9faa71257859aa29d32c0fea5c663673ab8ade - Build Cross-build from 'Linux:x86_64' to 'Linux:armv8' Installing (downloading, building) binaries... Downloading conan_sources.tgz completed [0.56k] Decompressing conan_sources.tgz completed [0.00k] zstd/1.5.2: Configuring sources in /root/.conan/data/zstd/1.5.2/_/_/source Downloading v1.5.2.tar.gz completed [1905.24k] zstd/1.5.2: Copying sources to build folder zstd/1.5.2: Building your package in /root/.conan/data/zstd/1.5.2/_/_/build/2d9faa71257859aa29d32c0fea5c663673ab8ade zstd/1.5.2: Generator cmake created conanbuildinfo.cmake zstd/1.5.2: Aggregating env generators zstd/1.5.2: Calling build() -- The C compiler identification is Clang 7.1.0 -- The CXX compiler identification is Clang 7.1.0 -- Check for working C compiler: /usr/bin/clang-7 -- Check for working C compiler: /usr/bin/clang-7 -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/clang++-7 -- Check for working CXX compiler: /usr/bin/clang++-7 -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Conan: called by CMake conan helper -- Conan: called inside local cache -- Conan: Adjusting output directories -- Conan: Using cmake global configuration -- Conan: Adjusting language standard -- Conan: Adjusting fPIC flag (ON) -- Conan: Checking correct version: 7.1 -- ZSTD VERSION: 1.5.2 -- Performing Test CXX_FLAG_STD_CPLUSPLUS11 -- Performing Test CXX_FLAG_STD_CPLUSPLUS11 - Success -- Performing Test C_FLAG_STD_C99 -- Performing Test C_FLAG_STD_C99 - Success -- Performing Test C_FLAG_WALL -- Performing Test C_FLAG_WALL - Success -- Performing Test CXX_FLAG_WALL -- Performing Test CXX_FLAG_WALL - Success -- Performing Test C_FLAG_WEXTRA -- Performing Test C_FLAG_WEXTRA - Success -- Performing Test CXX_FLAG_WEXTRA -- Performing Test CXX_FLAG_WEXTRA - Success -- Performing Test C_FLAG_WUNDEF -- Performing Test C_FLAG_WUNDEF - Success -- Performing Test CXX_FLAG_WUNDEF -- Performing Test CXX_FLAG_WUNDEF - Success -- Performing Test C_FLAG_WSHADOW -- Performing Test C_FLAG_WSHADOW - Success -- Performing Test CXX_FLAG_WSHADOW -- Performing Test CXX_FLAG_WSHADOW - Success -- Performing Test C_FLAG_WCAST_ALIGN -- Performing Test C_FLAG_WCAST_ALIGN - Success -- Performing Test CXX_FLAG_WCAST_ALIGN -- Performing Test CXX_FLAG_WCAST_ALIGN - Success -- Performing Test C_FLAG_WCAST_QUAL -- Performing Test C_FLAG_WCAST_QUAL - Success -- Performing Test CXX_FLAG_WCAST_QUAL -- Performing Test CXX_FLAG_WCAST_QUAL - Success -- Performing Test C_FLAG_WSTRICT_PROTOTYPES -- Performing Test C_FLAG_WSTRICT_PROTOTYPES - Success -- CMAKE_INSTALL_PREFIX: /root/.conan/data/zstd/1.5.2/_/_/package/2d9faa71257859aa29d32c0fea5c663673ab8ade -- CMAKE_INSTALL_LIBDIR: lib -- ZSTD_LEGACY_SUPPORT not defined! -- ZSTD_MULTITHREAD_SUPPORT is enabled -- Looking for pthread.h -- Looking for pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found -- Check if compiler accepts -pthread CMake Error: TRY_RUN() invoked in cross-compiling mode, please set the following cache variables appropriately: THREADS_PTHREAD_ARG (advanced) For details see /root/.conan/data/zstd/1.5.2/_/_/build/2d9faa71257859aa29d32c0fea5c663673ab8ade/build_subfolder/TryRunResults.cmake -- Check if compiler accepts -pthread - no -- Found Threads: TRUE -- The ASM compiler identification is Clang -- Found assembler: /usr/bin/clang-7 -- Configuring incomplete, errors occurred! See also "/root/.conan/data/zstd/1.5.2/_/_/build/2d9faa71257859aa29d32c0fea5c663673ab8ade/build_subfolder/CMakeFiles/CMakeOutput.log". See also "/root/.conan/data/zstd/1.5.2/_/_/build/2d9faa71257859aa29d32c0fea5c663673ab8ade/build_subfolder/CMakeFiles/CMakeError.log". zstd/1.5.2: zstd/1.5.2: ERROR: Package '2d9faa71257859aa29d32c0fea5c663673ab8ade' build failed zstd/1.5.2: WARN: Build folder /root/.conan/data/zstd/1.5.2/_/_/build/2d9faa71257859aa29d32c0fea5c663673ab8ade ERROR: zstd/1.5.2: Error in build() method, line 80 cmake = self._configure_cmake() while calling '_configure_cmake', line 67 self._cmake.configure(build_folder=self._build_subfolder) ConanException: Error 1 while executing cd '/root/.conan/data/zstd/1.5.2/_/_/build/2d9faa71257859aa29d32c0fea5c663673ab8ade/build_subfolder' && cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE="Release" -DCMAKE_SYSTEM_NAME="Linux" -DCONAN_IN_LOCAL_CACHE="ON" -DCONAN_COMPILER="clang" -DCONAN_COMPILER_VERSION="7.1" -DBUILD_SHARED_LIBS="OFF" -DCMAKE_INSTALL_PREFIX="/root/.conan/data/zstd/1.5.2/_/_/package/2d9faa71257859aa29d32c0fea5c663673ab8ade" -DCMAKE_INSTALL_BINDIR="bin" -DCMAKE_INSTALL_SBINDIR="bin" -DCMAKE_INSTALL_LIBEXECDIR="bin" -DCMAKE_INSTALL_LIBDIR="lib" -DCMAKE_INSTALL_INCLUDEDIR="include" -DCMAKE_INSTALL_OLDINCLUDEDIR="include" -DCMAKE_INSTALL_DATAROOTDIR="share" -DCONAN_CMAKE_POSITION_INDEPENDENT_CODE="ON" -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY="ON" -DCONAN_EXPORTED="1" -DZSTD_BUILD_PROGRAMS="False" -DZSTD_BUILD_STATIC="True" -DZSTD_BUILD_SHARED="False" -DZSTD_MULTITHREAD_SUPPORT="True" -Wno-dev '/root/.conan/data/zstd/1.5.2/_/_/build/2d9faa71257859aa29d32c0fea5c663673ab8ade' ``` ``` Determining if the pthread_create exist failed with the following output: Change Dir: /root/.conan/data/zstd/1.5.2/_/_/build/2d9faa71257859aa29d32c0fea5c663673ab8ade/build_subfolder/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/make" "cmTC_8b7f7/fast" /usr/bin/make -f CMakeFiles/cmTC_8b7f7.dir/build.make CMakeFiles/cmTC_8b7f7.dir/build make[1]: Entering directory '/root/.conan/data/zstd/1.5.2/_/_/build/2d9faa71257859aa29d32c0fea5c663673ab8ade/build_subfolder/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_8b7f7.dir/CheckSymbolExists.c.o /usr/bin/clang-7 -isystem /usr/aarch64-linux-gnu/include -fPIC -target aarch64-linux-gnu -std=c99 -Wall -Wextra -Wundef -Wshadow -Wcast-align -Wcast-qual -Wstrict-prototypes -fPIE -o CMakeFiles/cmTC_8b7f7.dir/CheckSymbolExists.c.o -c /root/.conan/data/zstd/1.5.2/_/_/build/2d9faa71257859aa29d32c0fea5c663673ab8ade/build_subfolder/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_8b7f7 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_8b7f7.dir/link.txt --verbose=1 /usr/bin/clang-7 -isystem /usr/aarch64-linux-gnu/include -fPIC -target aarch64-linux-gnu -std=c99 -Wall -Wextra -Wundef -Wshadow -Wcast-align -Wcast-qual -Wstrict-prototypes CMakeFiles/cmTC_8b7f7.dir/CheckSymbolExists.c.o -o cmTC_8b7f7 CMakeFiles/cmTC_8b7f7.dir/CheckSymbolExists.c.o: In function `main': CheckSymbolExists.c:(.text+0x4): undefined reference to `pthread_create' CheckSymbolExists.c:(.text+0x8): undefined reference to `pthread_create' clang: error: linker command failed with exit code 1 (use -v to see invocation) CMakeFiles/cmTC_8b7f7.dir/build.make:97: recipe for target 'cmTC_8b7f7' failed make[1]: *** [cmTC_8b7f7] Error 1 make[1]: Leaving directory '/root/.conan/data/zstd/1.5.2/_/_/build/2d9faa71257859aa29d32c0fea5c663673ab8ade/build_subfolder/CMakeFiles/CMakeTmp' Makefile:126: recipe for target 'cmTC_8b7f7/fast' failed make: *** [cmTC_8b7f7/fast] Error 2 File /root/.conan/data/zstd/1.5.2/_/_/build/2d9faa71257859aa29d32c0fea5c663673ab8ade/build_subfolder/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include int main(int argc, char** argv) { (void)argv; #ifndef pthread_create return ((int*)(&pthread_create))[argc]; #else (void)argc; return 0; #endif } Determining if compiler accepts -pthread returned PLEASE_FILL_OUT-FAILED_TO_RUN instead of 2. The compiler had the following output: Change Dir: /root/.conan/data/zstd/1.5.2/_/_/build/2d9faa71257859aa29d32c0fea5c663673ab8ade/build_subfolder/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/make" "cmTC_526a9/fast" /usr/bin/make -f CMakeFiles/cmTC_526a9.dir/build.make CMakeFiles/cmTC_526a9.dir/build make[1]: Entering directory '/root/.conan/data/zstd/1.5.2/_/_/build/2d9faa71257859aa29d32c0fea5c663673ab8ade/build_subfolder/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_526a9.dir/CheckForPthreads.c.o /usr/bin/clang-7 -isystem /usr/aarch64-linux-gnu/include -fPIC -target aarch64-linux-gnu -std=c99 -Wall -Wextra -Wundef -Wshadow -Wcast-align -Wcast-qual -Wstrict-prototypes -fPIE -o CMakeFiles/cmTC_526a9.dir/CheckForPthreads.c.o -c /usr/share/cmake-3.5/Modules/CheckForPthreads.c Linking C executable cmTC_526a9 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_526a9.dir/link.txt --verbose=1 /usr/bin/clang-7 -isystem /usr/aarch64-linux-gnu/include -fPIC -target aarch64-linux-gnu -std=c99 -Wall -Wextra -Wundef -Wshadow -Wcast-align -Wcast-qual -Wstrict-prototypes CMakeFiles/cmTC_526a9.dir/CheckForPthreads.c.o -o cmTC_526a9 -pthread make[1]: Leaving directory '/root/.conan/data/zstd/1.5.2/_/_/build/2d9faa71257859aa29d32c0fea5c663673ab8ade/build_subfolder/CMakeFiles/CMakeTmp' ```
uilianries commented 2 years ago

@Sil3ntStorm it works from me™. I used GCC9, but the main difference, I point my toolchain in [env]:

$ conan --version
Conan version 1.51.1
$ conan install -pr:b default -pr:h armv8 --build=missing -r conancenter zstd/1.5.2@
Configuration (profile_host):
[settings]
arch=armv8
arch_build=x86_64
build_type=Release
compiler=gcc
compiler.libcxx=libstdc++
compiler.version=9
os=Linux
os_build=Linux
[options]
[build_requires]
[env]
AR=/usr/bin/aarch64-linux-gnu-ar
AS=/usr/bin/aarch64-linux-gnu-as
CC=/usr/bin/aarch64-linux-gnu-gcc-9
CMAKE_CXX_COMPILER=/usr/bin/aarch64-linux-gnu-g++-9
CMAKE_C_COMPILER=/usr/bin/aarch64-linux-gnu-gcc-9
CXX=/usr/bin/aarch64-linux-gnu-g++-9
FC=/usr/bin/aarch64-linux-gnu-gfortran-9
LD=/usr/bin/aarch64-linux-gnu-ld
RANLIB=/usr/bin/aarch64-linux-gnu-ranlin
STRIP=/usr/bin/aarch64-linux-gnu-strip
Configuration (profile_build):
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=gcc
compiler.libcxx=libstdc++
compiler.version=9
os=Linux
os_build=Linux
[options]
[build_requires]
[env]

zstd/1.5.2: Retrieving from server 'conancenter' 
zstd/1.5.2: Trying with 'conancenter'...
Downloading conanmanifest.txt completed [0.26k]                                          
Downloading conanfile.py completed [3.85k]                                               
Downloading conan_export.tgz completed [0.31k]                                           
Decompressing conan_export.tgz completed [0.00k]                                         
zstd/1.5.2: Downloaded recipe revision 0
Installing package: zstd/1.5.2
Requirements
    zstd/1.5.2 from 'conancenter' - Downloaded
Packages
    zstd/1.5.2:971f42d1180f6b8c2c85cb5918a001178611a824 - Build

Cross-build from 'Linux:x86_64' to 'Linux:armv8'
Installing (downloading, building) binaries...
Downloading conan_sources.tgz completed [0.56k]                                          
Decompressing conan_sources.tgz completed [0.00k]                                        
zstd/1.5.2: Configuring sources in /home/conan/.conan/data/zstd/1.5.2/_/_/source
Downloading v1.5.2.tar.gz completed [1905.24k]                                           

zstd/1.5.2: Copying sources to build folder
zstd/1.5.2: Building your package in /home/conan/.conan/data/zstd/1.5.2/_/_/build/971f42d1180f6b8c2c85cb5918a001178611a824
zstd/1.5.2: Generator cmake created conanbuildinfo.cmake
zstd/1.5.2: Aggregating env generators
zstd/1.5.2: Calling build()
-- The C compiler identification is GNU 9.2.1
-- The CXX compiler identification is GNU 9.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/aarch64-linux-gnu-gcc-9 - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/aarch64-linux-gnu-g++-9 - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Conan: called by CMake conan helper
-- Conan: called inside local cache
-- Conan: Adjusting output directories
-- Conan: Using cmake global configuration
-- Conan: Adjusting language standard
-- Conan: Adjusting fPIC flag (ON)
-- Conan: Compiler GCC>=5, checking major version 9
-- Conan: Checking correct version: 9
-- ZSTD VERSION: 1.5.2
-- Performing Test CXX_FLAG_STD_CPLUSPLUS11
-- Performing Test CXX_FLAG_STD_CPLUSPLUS11 - Success
-- Performing Test C_FLAG_STD_C99
-- Performing Test C_FLAG_STD_C99 - Success
-- Performing Test C_FLAG_WALL
-- Performing Test C_FLAG_WALL - Success
-- Performing Test CXX_FLAG_WALL
-- Performing Test CXX_FLAG_WALL - Success
-- Performing Test C_FLAG_WEXTRA
-- Performing Test C_FLAG_WEXTRA - Success
-- Performing Test CXX_FLAG_WEXTRA
-- Performing Test CXX_FLAG_WEXTRA - Success
-- Performing Test C_FLAG_WUNDEF
-- Performing Test C_FLAG_WUNDEF - Success
-- Performing Test CXX_FLAG_WUNDEF
-- Performing Test CXX_FLAG_WUNDEF - Success
-- Performing Test C_FLAG_WSHADOW
-- Performing Test C_FLAG_WSHADOW - Success
-- Performing Test CXX_FLAG_WSHADOW
-- Performing Test CXX_FLAG_WSHADOW - Success
-- Performing Test C_FLAG_WCAST_ALIGN
-- Performing Test C_FLAG_WCAST_ALIGN - Success
-- Performing Test CXX_FLAG_WCAST_ALIGN
-- Performing Test CXX_FLAG_WCAST_ALIGN - Success
-- Performing Test C_FLAG_WCAST_QUAL
-- Performing Test C_FLAG_WCAST_QUAL - Success
-- Performing Test CXX_FLAG_WCAST_QUAL
-- Performing Test CXX_FLAG_WCAST_QUAL - Success
-- Performing Test C_FLAG_WSTRICT_PROTOTYPES
-- Performing Test C_FLAG_WSTRICT_PROTOTYPES - Success
-- CMAKE_INSTALL_PREFIX: /home/conan/.conan/data/zstd/1.5.2/_/_/package/971f42d1180f6b8c2c85cb5918a001178611a824
-- CMAKE_INSTALL_LIBDIR: lib
-- ZSTD_LEGACY_SUPPORT not defined!
-- ZSTD_MULTITHREAD_SUPPORT is enabled
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE  
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/aarch64-linux-gnu-gcc-9
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_EXPORT_NO_PACKAGE_REGISTRY

-- Build files have been written to: /home/conan/.conan/data/zstd/1.5.2/_/_/build/971f42d1180f6b8c2c85cb5918a001178611a824/build_subfolder
Scanning dependencies of target libzstd_static
[ 10%] Building C object source_subfolder/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/common/debug.c.o
[ 10%] Building C object source_subfolder/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/common/entropy_common.c.o
[ 10%] Building C object source_subfolder/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/common/error_private.c.o
[ 13%] Building C object source_subfolder/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/common/fse_decompress.c.o
[ 16%] Building C object source_subfolder/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/common/pool.c.o
[ 20%] Building C object source_subfolder/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/common/threading.c.o
[ 23%] Building C object source_subfolder/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/common/xxhash.c.o
[ 26%] Building C object source_subfolder/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/common/zstd_common.c.o
[ 30%] Building C object source_subfolder/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/fse_compress.c.o
[ 33%] Building C object source_subfolder/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/hist.c.o
[ 36%] Building C object source_subfolder/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/huf_compress.c.o
[ 40%] Building C object source_subfolder/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/zstd_compress.c.o
[ 43%] Building C object source_subfolder/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/zstd_compress_literals.c.o
[ 46%] Building C object source_subfolder/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/zstd_compress_sequences.c.o
[ 50%] Building C object source_subfolder/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/zstd_compress_superblock.c.o
[ 53%] Building C object source_subfolder/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/zstd_double_fast.c.o
[ 56%] Building C object source_subfolder/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/zstd_fast.c.o
[ 60%] Building C object source_subfolder/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/zstd_lazy.c.o
[ 63%] Building C object source_subfolder/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/zstd_ldm.c.o
[ 66%] Building C object source_subfolder/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/zstd_opt.c.o
[ 70%] Building C object source_subfolder/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/zstdmt_compress.c.o
[ 73%] Building C object source_subfolder/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/decompress/huf_decompress.c.o
[ 76%] Building C object source_subfolder/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/decompress/zstd_ddict.c.o
[ 80%] Building C object source_subfolder/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/decompress/zstd_decompress.c.o
[ 83%] Building C object source_subfolder/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/decompress/zstd_decompress_block.c.o
[ 86%] Building C object source_subfolder/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/dictBuilder/cover.c.o
[ 90%] Building C object source_subfolder/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/dictBuilder/divsufsort.c.o
[ 93%] Building C object source_subfolder/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/dictBuilder/fastcover.c.o
[ 96%] Building C object source_subfolder/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/dictBuilder/zdict.c.o
[100%] Linking C static library ../../../../lib/libzstd.a
[100%] Built target libzstd_static
zstd/1.5.2: Package '971f42d1180f6b8c2c85cb5918a001178611a824' built
zstd/1.5.2: Build folder /home/conan/.conan/data/zstd/1.5.2/_/_/build/971f42d1180f6b8c2c85cb5918a001178611a824
zstd/1.5.2: Generated conaninfo.txt
zstd/1.5.2: Generated conanbuildinfo.txt
zstd/1.5.2: Generating the package
zstd/1.5.2: Package folder /home/conan/.conan/data/zstd/1.5.2/_/_/package/971f42d1180f6b8c2c85cb5918a001178611a824
zstd/1.5.2: Calling package()
[100%] Built target libzstd_static
Install the project...
-- Install configuration: "Release"
-- Installing: /home/conan/.conan/data/zstd/1.5.2/_/_/package/971f42d1180f6b8c2c85cb5918a001178611a824/lib/cmake/zstd/zstdTargets.cmake
-- Installing: /home/conan/.conan/data/zstd/1.5.2/_/_/package/971f42d1180f6b8c2c85cb5918a001178611a824/lib/cmake/zstd/zstdTargets-release.cmake
-- Installing: /home/conan/.conan/data/zstd/1.5.2/_/_/package/971f42d1180f6b8c2c85cb5918a001178611a824/lib/cmake/zstd/zstdConfig.cmake
-- Installing: /home/conan/.conan/data/zstd/1.5.2/_/_/package/971f42d1180f6b8c2c85cb5918a001178611a824/lib/cmake/zstd/zstdConfigVersion.cmake
-- Installing: /home/conan/.conan/data/zstd/1.5.2/_/_/package/971f42d1180f6b8c2c85cb5918a001178611a824/lib/pkgconfig/libzstd.pc
-- Installing: /home/conan/.conan/data/zstd/1.5.2/_/_/package/971f42d1180f6b8c2c85cb5918a001178611a824/include/zstd.h
-- Installing: /home/conan/.conan/data/zstd/1.5.2/_/_/package/971f42d1180f6b8c2c85cb5918a001178611a824/include/zdict.h
-- Installing: /home/conan/.conan/data/zstd/1.5.2/_/_/package/971f42d1180f6b8c2c85cb5918a001178611a824/include/zstd_errors.h
-- Installing: /home/conan/.conan/data/zstd/1.5.2/_/_/package/971f42d1180f6b8c2c85cb5918a001178611a824/lib/libzstd.a
zstd/1.5.2 package(): Packaged 1 file: LICENSE
zstd/1.5.2 package(): Packaged 1 '.a' file: libzstd.a
zstd/1.5.2 package(): Packaged 3 '.h' files: zstd_errors.h, zdict.h, zstd.h
zstd/1.5.2: Package '971f42d1180f6b8c2c85cb5918a001178611a824' created
zstd/1.5.2: Created package revision d0b3243643c38bc9ee0c91f05dac3db2
Aggregating env generators
Sil3ntStorm commented 2 years ago

It works for me as well when using an updated compiler suite as well. So it might be that zstd requires some compiler version newer than clang 7.1, or it's to do with the rather old Ubuntu being used for compilation (and thus equally outdated C++ standard libraries). Unfortunately I don't have the time to check various combinations of systems to run on or a bunch of compiler versions. If it is ever determined what causes the issue, the recipe might want to have a check for that and raise an InvalidConfiguration in those cases.

uilianries commented 2 years ago

@Sil3ntStorm thanks for your feedback!