conan-io / conan-center-index

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

[package] bzip2/1.0.8: fails to build with "RelWithDebInfo" #14919

Open facontidavide opened 1 year ago

facontidavide commented 1 year ago

Description

I find this issue when trying to import boost/1.80.0 using build type RelWithDebInfo.

Package and Environment Details

Conan profile

[settings] arch=x86_64 arch_build=x86_64 build_type=RelWithDebInfo compiler=gcc compiler.libcxx=libstdc++11 compiler.version=9 os=Linux os_build=Linux [options] [build_requires] [env]

Steps to reproduce

conan install -r conancenter -s build_type=RelWithDebInfo --build=missing bzip2/1.0.8@

Logs

Click to expand log ``` Installing (downloading, building) binaries... b2/4.9.2: Already installed! bzip2/1.0.8: Copying sources to build folder bzip2/1.0.8: Building your package in /home/dfaconti/.conan/data/bzip2/1.0.8/_/_/build/ff2ff6bb41ed84283a6634bada252c37f13eb93c bzip2/1.0.8: Generator txt created conanbuildinfo.txt bzip2/1.0.8: Calling generate() bzip2/1.0.8: Preset 'relwithdebinfo' added to CMakePresets.json. Invoke it manually using 'cmake --preset relwithdebinfo' bzip2/1.0.8: If your CMake version is not compatible with CMakePresets (<3.19) call cmake like: 'cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=/home/dfaconti/.conan/data/bzip2/1.0.8/_/_/build/ff2ff6bb41ed84283a6634bada252c37f13eb93c/build/generators/conan_toolchain.cmake -DCMAKE_POLICY_DEFAULT_CMP0091=NEW -DCMAKE_BUILD_TYPE=RelWithDebInfo' bzip2/1.0.8: Aggregating env generators bzip2/1.0.8: Calling build() bzip2/1.0.8: apply_conandata_patches(): No patches defined in conandata bzip2/1.0.8: CMake command: cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE="/home/dfaconti/.conan/data/bzip2/1.0.8/_/_/build/ff2ff6bb41ed84283a6634bada252c37f13eb93c/build/generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="/home/dfaconti/.conan/data/bzip2/1.0.8/_/_/package/ff2ff6bb41ed84283a6634bada252c37f13eb93c" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -DCMAKE_BUILD_TYPE="RelWithDebInfo" "/home/dfaconti/.conan/data/bzip2/1.0.8/_/_/build/ff2ff6bb41ed84283a6634bada252c37f13eb93c/src/.." -- Using Conan toolchain: /home/dfaconti/.conan/data/bzip2/1.0.8/_/_/build/ff2ff6bb41ed84283a6634bada252c37f13eb93c/build/generators/conan_toolchain.cmake -- Conan toolchain: Setting CMAKE_POSITION_INDEPENDENT_CODE=ON (options.fPIC) -- Conan toolchain: Setting BUILD_SHARED_LIBS = OFF -- The C compiler identification is GNU 9.4.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Configuring done CMake Error at CMakeLists.txt:38 (add_executable): Cannot find source file: //bzip2.c Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .h .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc CMake Error at CMakeLists.txt:8 (add_library): Cannot find source file: //blocksort.c Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .h .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc CMake Error at CMakeLists.txt:38 (add_executable): No SOURCES given to target: bzip2 CMake Error at CMakeLists.txt:8 (add_library): No SOURCES given to target: bz2 CMake Generate step failed. Build files cannot be regenerated correctly. bzip2/1.0.8: bzip2/1.0.8: WARN: Package binary is corrupted, removing: ff2ff6bb41ed84283a6634bada252c37f13eb93c bzip2/1.0.8: WARN: Build folder is dirty, removing it: /home/dfaconti/.conan/data/bzip2/1.0.8/_/_/build/ff2ff6bb41ed84283a6634bada252c37f13eb93c bzip2/1.0.8: WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is discouraged and might cause failures and unexpected behavior bzip2/1.0.8: ERROR: Package 'ff2ff6bb41ed84283a6634bada252c37f13eb93c' build failed bzip2/1.0.8: WARN: Build folder /home/dfaconti/.conan/data/bzip2/1.0.8/_/_/build/ff2ff6bb41ed84283a6634bada252c37f13eb93c/build/RelWithDebInfo ERROR: bzip2/1.0.8: Error in build() method, line 69 cmake.configure(build_script_folder=os.path.join(self.source_folder, os.pardir)) ConanException: Error 1 while executing cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE="/home/dfaconti/.conan/data/bzip2/1.0.8/_/_/build/ff2ff6bb41ed84283a6634bada252c37f13eb93c/build/generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="/home/dfaconti/.conan/data/bzip2/1.0.8/_/_/package/ff2ff6bb41ed84283a6634bada252c37f13eb93c" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -DCMAKE_BUILD_TYPE="RelWithDebInfo" "/home/dfaconti/.conan/data/bzip2/1.0.8/_/_/build/ff2ff6bb41ed84283a6634bada252c37f13eb93c/src/.." CMake Error at conan.cmake:686 (message): Conan install failed='1' Call Stack (most recent call first): CMakeLists.txt:18 (conan_cmake_install) ```
SpaceIm commented 1 year ago

your local cache is corrupted, remove bzip2 recipe and try again.

facontidavide commented 1 year ago

Thanks for the prompt response. As suggested:

[dfaconti-Legion] ~$ conan remove bzip2/*
Are you sure you want to delete from 'bzip2/1.0.8' (yes/no): yes

Output:

[dfaconti-Legion] ~$ conan install -r conancenter -s build_type=RelWithDebInfo --build=missing bzip2/1.0.8@
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=RelWithDebInfo
compiler=gcc
compiler.libcxx=libstdc++11
compiler.version=9
os=Linux
os_build=Linux
[options]
[build_requires]
[env]

bzip2/1.0.8: Retrieving from server 'conancenter' 
bzip2/1.0.8: Trying with 'conancenter'...
Downloading conanmanifest.txt completed [0.17k]                                          
Downloading conanfile.py completed [4.26k]                                               
Downloading conan_export.tgz completed [0.24k]                                           
Decompressing conan_export.tgz completed [0.00k]                                         
bzip2/1.0.8: Downloaded recipe revision 0
Installing package: bzip2/1.0.8
Requirements
    bzip2/1.0.8 from 'conancenter' - Downloaded
Packages
    bzip2/1.0.8:ff2ff6bb41ed84283a6634bada252c37f13eb93c - Build

Installing (downloading, building) binaries...
Downloading conan_sources.tgz completed [0.59k]                                          
Decompressing conan_sources.tgz completed [0.00k]                                        
bzip2/1.0.8: Configuring sources in /home/dfaconti/.conan/data/bzip2/1.0.8/_/_/source/src
bzip2/1.0.8: ERROR: Error downloading file https://sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz: 'HTTPSConnectionPool(host='sourceware.org', port=443): Max retries exceeded with url: /pub/bzip2/bzip2-1.0.8.tar.gz (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate (_ssl.c:1131)')))'
bzip2/1.0.8: Waiting 5 seconds to retry...
ERROR: bzip2/1.0.8: Error in source() method, line 58
    get(self, **self.conan_data["sources"][self.version],
    ConanException: Error downloading file https://sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz: 'HTTPSConnectionPool(host='sourceware.org', port=443): Max retries exceeded with url: /pub/bzip2/bzip2-1.0.8.tar.gz (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate (_ssl.c:1131)')))'
SpaceIm commented 1 year ago

Well it seems that you have certificate issues on your machine.