Open Nekto89 opened 9 months ago
cmake-conan adds paths to compiler to profile. And it seems that ICU recipe doesn't want to work with them for some reason. If I remove "tools.build:compiler_executables" - everything works fine.
[settings] arch=armv8 build_type=Release compiler=apple-clang compiler.cppstd=17 compiler.libcxx=libc++ compiler.version=14 os=Macos [conf] tools.build:compiler_executables={'c': '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang', 'cpp': '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++'}
conan install --requires=icu/71.1 --build=icu/71.1
On the left - working version without specifying tools.build:compiler_executables
Description
cmake-conan adds paths to compiler to profile. And it seems that ICU recipe doesn't want to work with them for some reason. If I remove "tools.build:compiler_executables" - everything works fine.
Package and Environment Details
Conan profile
[settings] arch=armv8 build_type=Release compiler=apple-clang compiler.cppstd=17 compiler.libcxx=libc++ compiler.version=14 os=Macos [conf] tools.build:compiler_executables={'c': '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang', 'cpp': '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++'}
Steps to reproduce
conan install --requires=icu/71.1 --build=icu/71.1
Logs
Click to expand log
``` ======== Input profiles ======== Profile host: [settings] arch=armv8 build_type=Release compiler=apple-clang compiler.cppstd=17 compiler.libcxx=libc++ compiler.version=14 os=Macos [conf] tools.build:compiler_executables={'c': '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang', 'cpp': '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++'} Profile build: [settings] arch=armv8 build_type=Release compiler=apple-clang compiler.cppstd=17 compiler.libcxx=libc++ compiler.version=14 os=Macos [conf] tools.build:compiler_executables={'c': '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang', 'cpp': '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++'} ======== Computing dependency graph ======== icu/71.1: Not found in local cache, looking in remotes... icu/71.1: Checking remote: conancenter icu/71.1: Downloaded recipe revision fa0837c81e75f43c054bc31d28b272bd Graph root cli Requirements icu/71.1#fa0837c81e75f43c054bc31d28b272bd - Downloaded (conancenter) ======== Computing necessary packages ======== icu/71.1: Forced build from source Requirements icu/71.1#fa0837c81e75f43c054bc31d28b272bd:1a6a1e4d73470a79e619194c99dfb00bdb04c50b - Build ======== Installing packages ======== icu/71.1: Sources downloaded from 'conancenter' icu/71.1: Calling source() in /Users/mklymov/.conan2/p/icu63cd8c1ee08d3/s/src icu/71.1: Downloading 25.7MB icu4c-71_1-src.tgz -------- Installing package icu/71.1 (1 of 1) -------- icu/71.1: Building from source icu/71.1: Package icu/71.1:1a6a1e4d73470a79e619194c99dfb00bdb04c50b icu/71.1: Copying sources to build folder icu/71.1: Building your package in /Users/mklymov/.conan2/p/b/icuc0d00042942b7/b icu/71.1: Calling generate() icu/71.1: Generators folder: /Users/mklymov/.conan2/p/b/icuc0d00042942b7/b/build-release/conan icu/71.1: Generating aggregated env files icu/71.1: Generated aggregated env files: ['conanbuild.sh', 'conanrun.sh'] icu/71.1: Calling build() icu/71.1: Apply patch (file): patches/0001-69.1-fix-mingw.patch icu/71.1: Apply patch (file): patches/0001-71.1-fix-undef-strict-ansi.patch icu/71.1: Apply patch (portability): Add config file for wasm-emscripten platform icu/71.1: Calling: > "/Users/mklymov/.conan2/p/b/icuc0d00042942b7/b/src/source/configure" --disable-shared --enable-static --prefix=/ '--bindir=${prefix}/bin' '--sbindir=${prefix}/bin' '--libdir=${prefix}/lib' '--includedir=${prefix}/include' '--oldincludedir=${prefix}/include' '--datarootdir=${prefix}/lib' --enable-release=yes --enable-debug=no --enable-dyload=yes --enable-extras=no --enable-icuio=yes --disable-layoutex --disable-layout --enable-tools=yes --enable-tests=no --disable-samples --with-library-bits=64 --with-data-packaging=archive icu/71.1: RUN: "/Users/mklymov/.conan2/p/b/icuc0d00042942b7/b/src/source/configure" --disable-shared --enable-static --prefix=/ '--bindir=${prefix}/bin' '--sbindir=${prefix}/bin' '--libdir=${prefix}/lib' '--includedir=${prefix}/include' '--oldincludedir=${prefix}/include' '--datarootdir=${prefix}/lib' --enable-release=yes --enable-debug=no --enable-dyload=yes --enable-extras=no --enable-icuio=yes --disable-layoutex --disable-layout --enable-tools=yes --enable-tests=no --disable-samples --with-library-bits=64 --with-data-packaging=archive checking for ICU version numbers... release 71.1, library 71.1, unicode version 14.0 checking build system type... arm-apple-darwin22.6.0 checking host system type... arm-apple-darwin22.6.0 checking whether to build debug libraries... no checking whether to build release libraries... yes checking whether the C compiler works... no configure: error: in `/Users/mklymov/.conan2/p/b/icuc0d00042942b7/b/build-release': configure: error: C compiler cannot create executables See `config.log' for more details icu/71.1: ERROR: Package '1a6a1e4d73470a79e619194c99dfb00bdb04c50b' build failed icu/71.1: WARN: Build folder /Users/mklymov/.conan2/p/b/icuc0d00042942b7/b/build-release ERROR: icu/71.1: Error in build() method, line 204 autotools.configure(build_script_folder=os.path.join(self.source_folder, "source")) ConanException: Error 77 while executing ------------------=============================config.log=========================--------------: This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by ICU configure 71.1, which was generated by GNU Autoconf 2.69. Invocation command line was $ /Users/mklymov/.conan2/p/b/icuc0d00042942b7/b/src/source/configure --disable-shared --enable-static --prefix=/ --bindir=${prefix}/bin --sbindir=${prefix}/bin --libdir=${prefix}/lib --includedir=${prefix}/include --oldincludedir=${prefix}/include --datarootdir=${prefix}/lib --enable-release=yes --enable-debug=no --enable-dyload=yes --enable-extras=no --enable-icuio=yes --disable-layoutex --disable-layout --enable-tools=yes --enable-tests=no --disable-samples --with-library-bits=64 --with-data-packaging=archive ## --------- ## ## Platform. ## ## --------- ## hostname = LEUD-C07J310MQ6NY uname -m = arm64 uname -r = 22.6.0 uname -s = Darwin uname -v = Darwin Kernel Version 22.6.0: Wed Jul 5 22:22:52 PDT 2023; root:xnu-8796.141.3~6/RELEASE_ARM64_T8103 /usr/bin/uname -p = arm /bin/uname -X = unknown /bin/arch = unknown /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = Mach kernel version: Darwin Kernel Version 22.6.0: Wed Jul 5 22:22:52 PDT 2023; root:xnu-8796.141.3~6/RELEASE_ARM64_T8103 Kernel configured for up to 8 processors. 8 processors are physically available. 8 processors are logically available. Processor type: arm64e (ARM64E) Processors active: 0 1 2 3 4 5 6 7 Primary memory available: 16.00 gigabytes Default processor set: 505 tasks, 1816 threads, 8 processors Load average: 2.34, Mach factor: 5.65 /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /usr/local/bin PATH: /System/Cryptexes/App/usr/bin PATH: /usr/bin PATH: /bin PATH: /usr/sbin PATH: /sbin PATH: /Users/algotestadmin/Library/Python/3.9/bin PATH: /Library/Apple/usr/bin PATH: /var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin PATH: /var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin PATH: /var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin PATH: /Users/mklymov/Library/Python/3.9/bin ## ----------- ## ## Core tests. ## ## ----------- ## configure:2706: checking for ICU version numbers configure:2739: result: release 71.1, library 71.1, unicode version 14.0 configure:2778: checking build system type configure:2792: result: arm-apple-darwin22.6.0 configure:2812: checking host system type configure:2825: result: arm-apple-darwin22.6.0 configure:2883: checking whether to build debug libraries configure:2895: result: no configure:2900: checking whether to build release libraries configure:2912: result: yes configure:3033: checking for C compiler version configure:3042: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang --version >&5 Apple clang version 14.0.0 (clang-1400.0.29.202) Target: arm64-apple-darwin22.6.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin configure:3053: $? = 0 configure:3042: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -v >&5 Apple clang version 14.0.0 (clang-1400.0.29.202) Target: arm64-apple-darwin22.6.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin configure:3053: $? = 0 configure:3042: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -V >&5 clang: error: argument to '-V' is missing (expected 1 value) clang: error: no input files configure:3053: $? = 1 configure:3042: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -qversion >&5 clang: error: unknown argument '-qversion'; did you mean '--version'? clang: error: no input files configure:3053: $? = 1 configure:3073: checking whether the C compiler works configure:3095: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -fPIC -O3 -FS -DNDEBUG -DU_STATIC_IMPLEMENTATION -D_DARWIN_C_SOURCE conftest.c >&5 ld: warning: directory not found for option '-FS' ld: library not found for -lSystem clang: error: linker command failed with exit code 1 (use -v to see invocation) configure:3099: $? = 1 configure:3137: result: no configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "ICU" | #define PACKAGE_TARNAME "International Components for Unicode" | #define PACKAGE_VERSION "71.1" | #define PACKAGE_STRING "ICU 71.1" | #define PACKAGE_BUGREPORT "http://icu-project.org/bugs" | #define PACKAGE_URL "http://icu-project.org" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:3142: error: in `/Users/mklymov/.conan2/p/b/icuc0d00042942b7/b/build-release': configure:3144: error: C compiler cannot create executables See `config.log' for more details ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_build=arm-apple-darwin22.6.0 ac_cv_env_CCC_set= ac_cv_env_CCC_value= ac_cv_env_CC_set=set ac_cv_env_CC_value=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang ac_cv_env_CFLAGS_set=set ac_cv_env_CFLAGS_value=' -fPIC -O3 -FS' ac_cv_env_CPPFLAGS_set=set ac_cv_env_CPPFLAGS_value=' -DNDEBUG -DU_STATIC_IMPLEMENTATION -D_DARWIN_C_SOURCE' ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_CXXFLAGS_set=set ac_cv_env_CXXFLAGS_value=' -stdlib=libc++ -std=c++17 -fPIC -O3 -FS' ac_cv_env_CXX_set=set ac_cv_env_CXX_value=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ ac_cv_env_ICULEHB_CFLAGS_set= ac_cv_env_ICULEHB_CFLAGS_value= ac_cv_env_ICULEHB_LIBS_set= ac_cv_env_ICULEHB_LIBS_value= ac_cv_env_LDFLAGS_set=set ac_cv_env_LDFLAGS_value= ac_cv_env_LIBS_set= ac_cv_env_LIBS_value= ac_cv_env_PKG_CONFIG_LIBDIR_set= ac_cv_env_PKG_CONFIG_LIBDIR_value= ac_cv_env_PKG_CONFIG_PATH_set=set ac_cv_env_PKG_CONFIG_PATH_value=/Users/mklymov/.conan2/p/b/icuc0d00042942b7/b/build-release/conan/../../build-release/conan: ac_cv_env_PKG_CONFIG_set= ac_cv_env_PKG_CONFIG_value= ac_cv_env_build_alias_set= ac_cv_env_build_alias_value= ac_cv_env_host_alias_set= ac_cv_env_host_alias_value= ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= ac_cv_host=arm-apple-darwin22.6.0 ## ----------------- ## ## Output variables. ## ## ----------------- ## AR='' ARFLAGS='' CC='/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang' CFLAGS=' -fPIC -O3 -FS' COMPILE_LINK_ENVVAR='' CPP='' CPPFLAGS=' -DNDEBUG -DU_STATIC_IMPLEMENTATION -D_DARWIN_C_SOURCE' CXX='/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++' CXXFLAGS=' -stdlib=libc++ -std=c++17 -fPIC -O3 -FS' DATA_PACKAGING_MODE='' DATA_TRUE='' DEFS='' DOXYGEN='' ECHO_C='\c' ECHO_N='' ECHO_T='' EGREP='' ENABLE_DEBUG='0' ENABLE_RELEASE='1' ENABLE_RPATH='' ENABLE_SHARED='' ENABLE_STATIC='' EXEEXT='' EXTRAS_TRUE='' FUZZER_TRUE='' GENCCODE_ASSEMBLY='' GREP='' HAVE_MMAP='' ICUDATA_CHAR='' ICUIO_TRUE='' ICULEHB_CFLAGS='' ICULEHB_LIBS='' ICULIBSUFFIX='' ICULIBSUFFIXCNAME='' ICU_ECHO_C='\c' ICU_ECHO_N='' ICU_ECHO_T='' INSTALL_DATA='' INSTALL_ICU_CONFIG='true' INSTALL_PROGRAM='' INSTALL_SCRIPT='' LAYOUTEX_TRUE='' LDFLAGS='' LIBCFLAGS='' LIBCXXFLAGS='' LIBOBJS='' LIBS='' LIB_M='' LIB_THREAD='' LIB_VERSION='71.1' LIB_VERSION_MAJOR='71' LTLIBOBJS='' OBJEXT='' PACKAGE='icu' PACKAGE_BUGREPORT='http://icu-project.org/bugs' PACKAGE_NAME='ICU' PACKAGE_STRING='ICU 71.1' PACKAGE_TARNAME='International Components for Unicode' PACKAGE_URL='http://icu-project.org' PACKAGE_VERSION='71.1' PATH_SEPARATOR=':' PKG_CONFIG='' PKG_CONFIG_LIBDIR='' PKG_CONFIG_PATH='/Users/mklymov/.conan2/p/b/icuc0d00042942b7/b/build-release/conan/../../build-release/conan:' PLUGINS_TRUE='' PYTHON='' RANLIB='' SAMPLES_TRUE='' SED='' SHELL='/bin/sh' TESTS_TRUE='' TOOLS_TRUE='' UCLN_NO_AUTO_CLEANUP='' UCONFIG_CFLAGS='' UCONFIG_CPPFLAGS='' UCONFIG_CXXFLAGS='' UNICODE_VERSION='14.0' U_DEFAULT_SHOW_DRAFT='' U_DISABLE_RENAMING='' U_ENABLE_DYLOAD='' U_ENABLE_TRACING='' U_HAVE_DATA='' U_HAVE_DIRENT_H='' U_HAVE_EXTRAS='' U_HAVE_FUZZER='' U_HAVE_ICUIO='' U_HAVE_INTTYPES_H='' U_HAVE_LAYOUTEX='' U_HAVE_LIB_SUFFIX='' U_HAVE_NL_LANGINFO_CODESET='' U_HAVE_PLACEMENT_NEW='' U_HAVE_PLUGINS='' U_HAVE_POPEN='' U_HAVE_SAMPLES='' U_HAVE_STRTOD_L='' U_HAVE_TESTS='' U_HAVE_TIMEZONE='' U_HAVE_TOOLS='' U_HAVE_TZNAME='' U_HAVE_TZSET='' U_HAVE_WCHAR_H='' U_HAVE_WCSCPY='' U_IS_BIG_ENDIAN='' U_MAKE='' U_NL_LANGINFO_CODESET='' U_OVERRIDE_CXX_ALLOCATION='' U_TIMEZONE='' U_TZNAME='' U_TZSET='' VERSION='71.1' ac_ct_CC='' ac_ct_CXX='' bindir='${prefix}/bin' build='arm-apple-darwin22.6.0' build_alias='' build_cpu='arm' build_os='darwin22.6.0' build_vendor='apple' cross_buildroot='' cross_compiling='no' datadir='${datarootdir}' datarootdir='${prefix}/lib' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' dvidir='${docdir}' exec_prefix='NONE' host='arm-apple-darwin22.6.0' host_alias='' host_cpu='arm' host_os='darwin22.6.0' host_vendor='apple' htmldir='${docdir}' includedir='${prefix}/include' infodir='${datarootdir}/info' libdir='${prefix}/lib' libexecdir='${exec_prefix}/libexec' localedir='${datarootdir}/locale' localstatedir='${prefix}/var' mandir='${datarootdir}/man' oldincludedir='${prefix}/include' pdfdir='${docdir}' pkgicudatadir='' platform='' platform_make_fragment='' platform_make_fragment_name='' prefix='/' program_transform_name='s,x,x,' psdir='${docdir}' runstatedir='${localstatedir}/run' sbindir='${prefix}/bin' sharedstatedir='${prefix}/com' sysconfdir='${prefix}/etc' target_alias='' thepkgicudatadir='' ## ----------- ## ## confdefs.h. ## ## ----------- ## /* confdefs.h */ #define PACKAGE_NAME "ICU" #define PACKAGE_TARNAME "International Components for Unicode" #define PACKAGE_VERSION "71.1" #define PACKAGE_STRING "ICU 71.1" #define PACKAGE_BUGREPORT "http://icu-project.org/bugs" #define PACKAGE_URL "http://icu-project.org" configure: exit 77 ```