conan-io / conan-center-index

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

[conan.io/center] imagemagick/7.0.11-14: configure error: cannot run C compiled programs. #15168

Open tuduongquyet opened 1 year ago

tuduongquyet commented 1 year ago

Description

Using imagemagick/7.0.11-14 on macOS

Package and Environment Details

Conan profile

[settings] os=Macos os_build=Macos arch=x86_64 arch_build=x86_64 compiler=apple-clang compiler.version=14 compiler.libcxx=libc++ build_type=Release [options] [conf] [build_requires] [env]

Steps to reproduce

conan install . -s build_type=Debug --build=missing -pr:b=default -pr:h=default

Logs

Click to expand log ``` imagemagick/7.0.11-14: WARN: Build folder is dirty, removing it: /Users/apollo/.conan/data/imagemagick/7.0.11-14/_/_/build/20c5242022693aa02e5a7877e499ac1b79e1900a imagemagick/7.0.11-14: Copying sources to build folder imagemagick/7.0.11-14: Building your package in /Users/apollo/.conan/data/imagemagick/7.0.11-14/_/_/build/20c5242022693aa02e5a7877e499ac1b79e1900a imagemagick/7.0.11-14: Generator pkg_config created lcms2.pc imagemagick/7.0.11-14: Generator pkg_config created ilmbase_ilmbaseconfig.pc imagemagick/7.0.11-14: Generator pkg_config created ilmbase_iex.pc imagemagick/7.0.11-14: Generator pkg_config created ilmbase_ilmthread.pc imagemagick/7.0.11-14: Generator pkg_config created ilmbase_iexmath.pc imagemagick/7.0.11-14: Generator pkg_config created ilmbase_half.pc imagemagick/7.0.11-14: Generator pkg_config created ilmbase_imath.pc imagemagick/7.0.11-14: Generator pkg_config created IlmBase.pc imagemagick/7.0.11-14: Generator pkg_config created openexr_ilmimfconfig.pc imagemagick/7.0.11-14: Generator pkg_config created OpenEXR.pc imagemagick/7.0.11-14: Generator pkg_config created openexr_ilmimfutil.pc imagemagick/7.0.11-14: Generator pkg_config created openexr.pc imagemagick/7.0.11-14: Generator pkg_config created libheif.pc imagemagick/7.0.11-14: Generator pkg_config created libopenjp2.pc imagemagick/7.0.11-14: Generator pkg_config created libtiff-4.pc imagemagick/7.0.11-14: Generator pkg_config created libxml-2.0.pc imagemagick/7.0.11-14: Generator pkg_config created freetype2.pc imagemagick/7.0.11-14: Generator pkg_config created bzip2.pc imagemagick/7.0.11-14: Generator pkg_config created liblzma.pc imagemagick/7.0.11-14: Generator pkg_config created libde265.pc imagemagick/7.0.11-14: Generator pkg_config created jbig.pc imagemagick/7.0.11-14: Generator pkg_config created libjpeg.pc imagemagick/7.0.11-14: Generator pkg_config created libpng.pc imagemagick/7.0.11-14: Generator pkg_config created libdeflate.pc imagemagick/7.0.11-14: Generator pkg_config created libzstd.pc imagemagick/7.0.11-14: Generator pkg_config created libwebp.pc imagemagick/7.0.11-14: Generator pkg_config created libwebpmux.pc imagemagick/7.0.11-14: Generator pkg_config created libwebpdemux.pc imagemagick/7.0.11-14: Generator pkg_config created libwebpdecoder.pc imagemagick/7.0.11-14: Generator pkg_config created libwebp-all-do-not-use.pc imagemagick/7.0.11-14: Generator pkg_config created libiconv.pc imagemagick/7.0.11-14: Generator pkg_config created libbrotlicommon.pc imagemagick/7.0.11-14: Generator pkg_config created libbrotlienc.pc imagemagick/7.0.11-14: Generator pkg_config created libbrotlidec.pc imagemagick/7.0.11-14: Generator pkg_config created brotli.pc imagemagick/7.0.11-14: Generator pkg_config created zlib.pc imagemagick/7.0.11-14: Aggregating env generators imagemagick/7.0.11-14: Calling build() imagemagick/7.0.11-14: Calling: > ./configure '--disable-openmp' '--disable-docs' '--with-perl=no' '--with-x=no' '--with-fontconfig=no' '--enable-shared=yes' '--enable-static=no' '--enable-hdri=yes' '--with-quantum-depth=16' '--with-zlib=yes' '--with-bzlib=yes' '--with-lzma=yes' '--with-lcms=yes' '--with-openexr=yes' '--with-heic=yes' '--with-jbig=yes' '--with-jpeg=yes' '--with-openjp2=yes' '--with-pango=no' '--with-png=yes' '--with-tiff=yes' '--with-webp=no' '--with-xml=yes' '--with-freetype=yes' '--with-djvu=no' '--with-utilities=yes' '--prefix=/Users/apollo/.conan/data/imagemagick/7.0.11-14/_/_/package/20c5242022693aa02e5a7877e499ac1b79e1900a' '--bindir=${prefix}/bin' '--sbindir=${prefix}/bin' '--libexecdir=${prefix}/bin' '--libdir=${prefix}/lib' '--includedir=${prefix}/include' '--oldincludedir=${prefix}/include' '--datarootdir=${prefix}/share' checking build system type... x86_64-apple-darwin21.6.0 checking host system type... x86_64-apple-darwin21.6.0 checking target system type... x86_64-apple-darwin21.6.0 checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... config/install-sh -c -d checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether UID '501' is supported by ustar format... yes checking whether GID '20' is supported by ustar format... yes checking how to create a ustar tar archive... gnutar checking whether make supports nested variables... (cached) yes Configuring ImageMagick 7.0.11-14 checking whether build environment is sane... yes checking whether make supports the include directive... yes (GNU style) checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... configure: error: in `/Users/apollo/.conan/data/imagemagick/7.0.11-14/_/_/build/20c5242022693aa02e5a7877e499ac1b79e1900a/ImageMagick': configure: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details imagemagick/7.0.11-14: imagemagick/7.0.11-14: ERROR: Package '20c5242022693aa02e5a7877e499ac1b79e1900a' build failed imagemagick/7.0.11-14: WARN: Build folder /Users/apollo/.conan/data/imagemagick/7.0.11-14/_/_/build/20c5242022693aa02e5a7877e499ac1b79e1900a ERROR: imagemagick/7.0.11-14: Error in build() method, line 166 env_build = self._build_configure() while calling '_build_configure', line 366 self._autotools.configure(args=args) ConanException: Error 1 while executing ./configure '--disable-openmp' '--disable-docs' '--with-perl=no' '--with-x=no' '--with-fontconfig=no' '--enable-shared=yes' '--enable-static=no' '--enable-hdri=yes' '--with-quantum-depth=16' '--with-zlib=yes' '--with-bzlib=yes' '--with-lzma=yes' '--with-lcms=yes' '--with-openexr=yes' '--with-heic=yes' '--with-jbig=yes' '--with-jpeg=yes' '--with-openjp2=yes' '--with-pango=no' '--with-png=yes' '--with-tiff=yes' '--with-webp=no' '--with-xml=yes' '--with-freetype=yes' '--with-djvu=no' '--with-utilities=yes' '--prefix=/Users/apollo/.conan/data/imagemagick/7.0.11-14/_/_/package/20c5242022693aa02e5a7877e499ac1b79e1900a' '--bindir=${prefix}/bin' '--sbindir=${prefix}/bin' '--libexecdir=${prefix}/bin' '--libdir=${prefix}/lib' '--includedir=${prefix}/include' '--oldincludedir=${prefix}/include' '--datarootdir=${prefix}/share' ``` ``` This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by ImageMagick configure 7.0.11-14, which was generated by GNU Autoconf 2.69. Invocation command line was $ ./configure --disable-openmp --disable-docs --with-perl=no --with-x=no --with-fontconfig=no --enable-shared=yes --enable-static=no --enable-hdri=yes --with-quantum-depth=16 --with-zlib=yes --with-bzlib=yes --with-lzma=yes --with-lcms=yes --with-openexr=yes --with-heic=yes --with-jbig=yes --with-jpeg=yes --with-openjp2=yes --with-pango=no --with-png=yes --with-tiff=yes --with-webp=no --with-xml=yes --with-freetype=yes --with-djvu=no --with-utilities=yes --prefix=/Users/apollo/.conan/data/imagemagick/7.0.11-14/_/_/package/f924c48884e8cece4cb7aa3e6bf1d5be9f532027 --bindir=${prefix}/bin --sbindir=${prefix}/bin --libexecdir=${prefix}/bin --libdir=${prefix}/lib --includedir=${prefix}/include --oldincludedir=${prefix}/include --datarootdir=${prefix}/share ## --------- ## ## Platform. ## ## --------- ## hostname = Apollos-MacBook-Pro.local uname -m = x86_64 uname -r = 21.6.0 uname -s = Darwin uname -v = Darwin Kernel Version 21.6.0: Sat Jun 18 17:07:25 PDT 2022; root:xnu-8020.140.41~1/RELEASE_X86_64 /usr/bin/uname -p = i386 /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 21.6.0: Sat Jun 18 17:07:25 PDT 2022; root:xnu-8020.140.41~1/RELEASE_X86_64 Kernel configured for up to 8 processors. 4 processors are physically available. 8 processors are logically available. Processor type: x86_64h (Intel x86-64h Haswell) Processors active: 0 1 2 3 4 5 6 7 Primary memory available: 16.00 gigabytes Default processor set: 607 tasks, 2878 threads, 8 processors Load average: 4.42, Mach factor: 3.61 /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /Users/apollo/.conan/data/libxml2/2.9.10/_/_/package/22f71e7fe42ea8ab0ec6f16d26e0602c0259381f/bin PATH: /Users/apollo/.conan/data/freetype/2.12.1/_/_/package/39180bbc5f090d9c1528602007999d82c75ab5d0/bin PATH: /Users/apollo/.conan/data/bzip2/1.0.8/_/_/package/85f329eb36d3fe16573e526dd4bcedfa53d5c690/bin PATH: /Users/apollo/.conan/data/libde265/1.0.8/_/_/package/35a32bab8f3d6b3b957c21747775163d8f865652/bin PATH: /Users/apollo/.conan/data/jbig/20160605/_/_/package/22d1102f90b46fe32099c3c34eb86c3412fb435c/bin PATH: /Users/apollo/.conan/data/libiconv/1.17/_/_/package/f76e28f3bd5cf58774a823d0aa3d30f18fc5b24f/bin PATH: /Users/apollo/.pyenv/versions/3.10.6/bin PATH: /usr/local/Cellar/pyenv/2.3.9/libexec PATH: /usr/local/Cellar/pyenv/2.3.9/plugins/python-build/bin PATH: /Users/apollo/flutter/bin PATH: /Users/apollo/.rbenv/shims PATH: /Users/apollo/.pyenv/shims PATH: /usr/local/bin PATH: /usr/bin PATH: /bin PATH: /usr/sbin PATH: /sbin PATH: /Library/Apple/usr/bin PATH: /usr/local/anaconda3/bin ## ----------- ## ## Core tests. ## ## ----------- ## configure:3675: checking build system type configure:3689: result: x86_64-apple-darwin21.6.0 configure:3709: checking host system type configure:3722: result: x86_64-apple-darwin21.6.0 configure:3742: checking target system type configure:3755: result: x86_64-apple-darwin21.6.0 configure:3800: checking for a BSD-compatible install configure:3868: result: /usr/bin/install -c configure:3879: checking whether build environment is sane configure:3934: result: yes configure:4085: checking for a thread-safe mkdir -p configure:4124: result: config/install-sh -c -d configure:4131: checking for gawk configure:4161: result: no configure:4131: checking for mawk configure:4161: result: no configure:4131: checking for nawk configure:4161: result: no configure:4131: checking for awk configure:4147: found /usr/bin/awk configure:4158: result: awk configure:4169: checking whether make sets $(MAKE) configure:4191: result: yes configure:4220: checking whether make supports nested variables configure:4237: result: yes configure:4317: checking whether UID '501' is supported by ustar format configure:4320: result: yes configure:4327: checking whether GID '20' is supported by ustar format configure:4330: result: yes configure:4338: checking how to create a ustar tar archive configure:4349: tar --version bsdtar 3.5.1 - libarchive 3.5.1 zlib/1.2.11 liblzma/5.0.5 bz2lib/1.0.8 configure:4352: $? = 0 configure:4392: tardir=conftest.dir && eval tar --format=ustar -chf - "$tardir" >conftest.tar configure:4395: $? = 0 configure:4399: tar -xf - &5 Apple clang version 14.0.0 (clang-1400.0.29.202) Target: x86_64-apple-darwin21.6.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin configure:5191: $? = 0 configure:5180: gcc -v >&5 Apple clang version 14.0.0 (clang-1400.0.29.202) Target: x86_64-apple-darwin21.6.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin configure:5191: $? = 0 configure:5180: gcc -V >&5 clang: error: argument to '-V' is missing (expected 1 value) clang: error: no input files configure:5191: $? = 1 configure:5180: gcc -qversion >&5 clang: error: unknown argument '-qversion'; did you mean '--version'? clang: error: no input files configure:5191: $? = 1 configure:5211: checking whether the C compiler works configure:5233: gcc -m64 -g -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -arch x86_64 -I/Users/apollo/.conan/data/lcms/2.11/_/_/package/f76e28f3bd5cf58774a823d0aa3d30f18fc5b24f/include -I/Users/apollo/.conan/data/openexr/2.5.7/_/_/package/fcef9d9dc7c4bd537802f13cf0df110d67549506/include -I/Users/apollo/.conan/data/openexr/2.5.7/_/_/package/fcef9d9dc7c4bd537802f13cf0df110d67549506/include/OpenEXR -I/Users/apollo/.conan/data/libheif/1.12.0/_/_/package/5ec488dbd799700e65f522e9049a918007c8c9e1/include -I/Users/apollo/.conan/data/openjpeg/2.5.0/_/_/package/f76e28f3bd5cf58774a823d0aa3d30f18fc5b24f/include -I/Users/apollo/.conan/data/openjpeg/2.5.0/_/_/package/f76e28f3bd5cf58774a823d0aa3d30f18fc5b24f/include/openjpeg-2.5 -I/Users/apollo/.conan/data/libtiff/4.4.0/_/_/package/c9365e054dc3ebb9e918f5a39a18cb5c7d29bf04/include -I/Users/apollo/.conan/data/libxml2/2.9.10/_/_/package/22f71e7fe42ea8ab0ec6f16d26e0602c0259381f/include -I/Users/apollo/.conan/data/libxml2/2.9.10/_/_/package/22f71e7fe42ea8ab0ec6f16d26e0602c0259381f/include/libxml2 -I/Users/apollo/.conan/data/freetype/2.12.1/_/_/package/39180bbc5f090d9c1528602007999d82c75ab5d0/include -I/Users/apollo/.conan/data/freetype/2.12.1/_/_/package/39180bbc5f090d9c1528602007999d82c75ab5d0/include/freetype2 -I/Users/apollo/.conan/data/bzip2/1.0.8/_/_/package/85f329eb36d3fe16573e526dd4bcedfa53d5c690/include -I/Users/apollo/.conan/data/xz_utils/5.2.5/_/_/package/f76e28f3bd5cf58774a823d0aa3d30f18fc5b24f/include -I/Users/apollo/.conan/data/libde265/1.0.8/_/_/package/35a32bab8f3d6b3b957c21747775163d8f865652/include -I/Users/apollo/.conan/data/jbig/20160605/_/_/package/22d1102f90b46fe32099c3c34eb86c3412fb435c/include -I/Users/apollo/.conan/data/libjpeg/9d/_/_/package/f76e28f3bd5cf58774a823d0aa3d30f18fc5b24f/include -I/Users/apollo/.conan/data/libpng/1.6.37/_/_/package/3dafd45dc97da899acfaf60e20ef51ae47b4af99/include -I/Users/apollo/.conan/data/libdeflate/1.15/_/_/package/f76e28f3bd5cf58774a823d0aa3d30f18fc5b24f/include -I/Users/apollo/.conan/data/zstd/1.5.2/_/_/package/958d7da8f235e9e4b0233df64e4928e5619eed84/include -I/Users/apollo/.conan/data/libwebp/1.2.4/_/_/package/c51bc5242819d522cd47085debb4ed96ab183de4/include -I/Users/apollo/.conan/data/libiconv/1.17/_/_/package/f76e28f3bd5cf58774a823d0aa3d30f18fc5b24f/include -I/Users/apollo/.conan/data/brotli/1.0.9/_/_/package/19d62ebe3011554d7eaec358b18f6861caae7801/include -I/Users/apollo/.conan/data/brotli/1.0.9/_/_/package/19d62ebe3011554d7eaec358b18f6861caae7801/include/brotli -I/Users/apollo/.conan/data/zlib/1.2.13/_/_/package/f76e28f3bd5cf58774a823d0aa3d30f18fc5b24f/include -m64 -L/Users/apollo/.conan/data/lcms/2.11/_/_/package/f76e28f3bd5cf58774a823d0aa3d30f18fc5b24f/lib -L/Users/apollo/.conan/data/openexr/2.5.7/_/_/package/fcef9d9dc7c4bd537802f13cf0df110d67549506/lib -L/Users/apollo/.conan/data/libheif/1.12.0/_/_/package/5ec488dbd799700e65f522e9049a918007c8c9e1/lib -L/Users/apollo/.conan/data/openjpeg/2.5.0/_/_/package/f76e28f3bd5cf58774a823d0aa3d30f18fc5b24f/lib -L/Users/apollo/.conan/data/libtiff/4.4.0/_/_/package/c9365e054dc3ebb9e918f5a39a18cb5c7d29bf04/lib -L/Users/apollo/.conan/data/libxml2/2.9.10/_/_/package/22f71e7fe42ea8ab0ec6f16d26e0602c0259381f/lib -L/Users/apollo/.conan/data/freetype/2.12.1/_/_/package/39180bbc5f090d9c1528602007999d82c75ab5d0/lib -L/Users/apollo/.conan/data/bzip2/1.0.8/_/_/package/85f329eb36d3fe16573e526dd4bcedfa53d5c690/lib -L/Users/apollo/.conan/data/xz_utils/5.2.5/_/_/package/f76e28f3bd5cf58774a823d0aa3d30f18fc5b24f/lib -L/Users/apollo/.conan/data/libde265/1.0.8/_/_/package/35a32bab8f3d6b3b957c21747775163d8f865652/lib -L/Users/apollo/.conan/data/jbig/20160605/_/_/package/22d1102f90b46fe32099c3c34eb86c3412fb435c/lib -L/Users/apollo/.conan/data/libjpeg/9d/_/_/package/f76e28f3bd5cf58774a823d0aa3d30f18fc5b24f/lib -L/Users/apollo/.conan/data/libpng/1.6.37/_/_/package/3dafd45dc97da899acfaf60e20ef51ae47b4af99/lib -L/Users/apollo/.conan/data/libdeflate/1.15/_/_/package/f76e28f3bd5cf58774a823d0aa3d30f18fc5b24f/lib -L/Users/apollo/.conan/data/zstd/1.5.2/_/_/package/958d7da8f235e9e4b0233df64e4928e5619eed84/lib -L/Users/apollo/.conan/data/libwebp/1.2.4/_/_/package/c51bc5242819d522cd47085debb4ed96ab183de4/lib -L/Users/apollo/.conan/data/libiconv/1.17/_/_/package/f76e28f3bd5cf58774a823d0aa3d30f18fc5b24f/lib -L/Users/apollo/.conan/data/brotli/1.0.9/_/_/package/19d62ebe3011554d7eaec358b18f6861caae7801/lib -L/Users/apollo/.conan/data/zlib/1.2.13/_/_/package/f76e28f3bd5cf58774a823d0aa3d30f18fc5b24f/lib conftest.c -llcms2 -lIlmImfUtil_d -lIlmImf_d -lImath_d -lHalf_d -lIexMath_d -lIlmThread_d -lIex_d -lheif -lopenjp2 -ltiffxx -ltiff -lxml2 -lfreetyped -lbz2 -llzma -llibde265 -ljbig -ljpeg -lpng -ldeflate -lzstd -lwebpdecoder -lwebpdemux -lwebpmux -lwebp -liconv -lcharset -lbrotlidec -lbrotlienc -lbrotlicommon -lz >&5 configure:5237: $? = 0 configure:5285: result: yes configure:5288: checking for C compiler default output file name configure:5290: result: a.out configure:5296: checking for suffix of executables configure:5303: gcc -o conftest -m64 -g -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -arch x86_64 -I/Users/apollo/.conan/data/lcms/2.11/_/_/package/f76e28f3bd5cf58774a823d0aa3d30f18fc5b24f/include -I/Users/apollo/.conan/data/openexr/2.5.7/_/_/package/fcef9d9dc7c4bd537802f13cf0df110d67549506/include -I/Users/apollo/.conan/data/openexr/2.5.7/_/_/package/fcef9d9dc7c4bd537802f13cf0df110d67549506/include/OpenEXR -I/Users/apollo/.conan/data/libheif/1.12.0/_/_/package/5ec488dbd799700e65f522e9049a918007c8c9e1/include -I/Users/apollo/.conan/data/openjpeg/2.5.0/_/_/package/f76e28f3bd5cf58774a823d0aa3d30f18fc5b24f/include -I/Users/apollo/.conan/data/openjpeg/2.5.0/_/_/package/f76e28f3bd5cf58774a823d0aa3d30f18fc5b24f/include/openjpeg-2.5 -I/Users/apollo/.conan/data/libtiff/4.4.0/_/_/package/c9365e054dc3ebb9e918f5a39a18cb5c7d29bf04/include -I/Users/apollo/.conan/data/libxml2/2.9.10/_/_/package/22f71e7fe42ea8ab0ec6f16d26e0602c0259381f/include -I/Users/apollo/.conan/data/libxml2/2.9.10/_/_/package/22f71e7fe42ea8ab0ec6f16d26e0602c0259381f/include/libxml2 -I/Users/apollo/.conan/data/freetype/2.12.1/_/_/package/39180bbc5f090d9c1528602007999d82c75ab5d0/include -I/Users/apollo/.conan/data/freetype/2.12.1/_/_/package/39180bbc5f090d9c1528602007999d82c75ab5d0/include/freetype2 -I/Users/apollo/.conan/data/bzip2/1.0.8/_/_/package/85f329eb36d3fe16573e526dd4bcedfa53d5c690/include -I/Users/apollo/.conan/data/xz_utils/5.2.5/_/_/package/f76e28f3bd5cf58774a823d0aa3d30f18fc5b24f/include -I/Users/apollo/.conan/data/libde265/1.0.8/_/_/package/35a32bab8f3d6b3b957c21747775163d8f865652/include -I/Users/apollo/.conan/data/jbig/20160605/_/_/package/22d1102f90b46fe32099c3c34eb86c3412fb435c/include -I/Users/apollo/.conan/data/libjpeg/9d/_/_/package/f76e28f3bd5cf58774a823d0aa3d30f18fc5b24f/include -I/Users/apollo/.conan/data/libpng/1.6.37/_/_/package/3dafd45dc97da899acfaf60e20ef51ae47b4af99/include -I/Users/apollo/.conan/data/libdeflate/1.15/_/_/package/f76e28f3bd5cf58774a823d0aa3d30f18fc5b24f/include -I/Users/apollo/.conan/data/zstd/1.5.2/_/_/package/958d7da8f235e9e4b0233df64e4928e5619eed84/include -I/Users/apollo/.conan/data/libwebp/1.2.4/_/_/package/c51bc5242819d522cd47085debb4ed96ab183de4/include -I/Users/apollo/.conan/data/libiconv/1.17/_/_/package/f76e28f3bd5cf58774a823d0aa3d30f18fc5b24f/include -I/Users/apollo/.conan/data/brotli/1.0.9/_/_/package/19d62ebe3011554d7eaec358b18f6861caae7801/include -I/Users/apollo/.conan/data/brotli/1.0.9/_/_/package/19d62ebe3011554d7eaec358b18f6861caae7801/include/brotli -I/Users/apollo/.conan/data/zlib/1.2.13/_/_/package/f76e28f3bd5cf58774a823d0aa3d30f18fc5b24f/include -m64 -L/Users/apollo/.conan/data/lcms/2.11/_/_/package/f76e28f3bd5cf58774a823d0aa3d30f18fc5b24f/lib -L/Users/apollo/.conan/data/openexr/2.5.7/_/_/package/fcef9d9dc7c4bd537802f13cf0df110d67549506/lib -L/Users/apollo/.conan/data/libheif/1.12.0/_/_/package/5ec488dbd799700e65f522e9049a918007c8c9e1/lib -L/Users/apollo/.conan/data/openjpeg/2.5.0/_/_/package/f76e28f3bd5cf58774a823d0aa3d30f18fc5b24f/lib -L/Users/apollo/.conan/data/libtiff/4.4.0/_/_/package/c9365e054dc3ebb9e918f5a39a18cb5c7d29bf04/lib -L/Users/apollo/.conan/data/libxml2/2.9.10/_/_/package/22f71e7fe42ea8ab0ec6f16d26e0602c0259381f/lib -L/Users/apollo/.conan/data/freetype/2.12.1/_/_/package/39180bbc5f090d9c1528602007999d82c75ab5d0/lib -L/Users/apollo/.conan/data/bzip2/1.0.8/_/_/package/85f329eb36d3fe16573e526dd4bcedfa53d5c690/lib -L/Users/apollo/.conan/data/xz_utils/5.2.5/_/_/package/f76e28f3bd5cf58774a823d0aa3d30f18fc5b24f/lib -L/Users/apollo/.conan/data/libde265/1.0.8/_/_/package/35a32bab8f3d6b3b957c21747775163d8f865652/lib -L/Users/apollo/.conan/data/jbig/20160605/_/_/package/22d1102f90b46fe32099c3c34eb86c3412fb435c/lib -L/Users/apollo/.conan/data/libjpeg/9d/_/_/package/f76e28f3bd5cf58774a823d0aa3d30f18fc5b24f/lib -L/Users/apollo/.conan/data/libpng/1.6.37/_/_/package/3dafd45dc97da899acfaf60e20ef51ae47b4af99/lib -L/Users/apollo/.conan/data/libdeflate/1.15/_/_/package/f76e28f3bd5cf58774a823d0aa3d30f18fc5b24f/lib -L/Users/apollo/.conan/data/zstd/1.5.2/_/_/package/958d7da8f235e9e4b0233df64e4928e5619eed84/lib -L/Users/apollo/.conan/data/libwebp/1.2.4/_/_/package/c51bc5242819d522cd47085debb4ed96ab183de4/lib -L/Users/apollo/.conan/data/libiconv/1.17/_/_/package/f76e28f3bd5cf58774a823d0aa3d30f18fc5b24f/lib -L/Users/apollo/.conan/data/brotli/1.0.9/_/_/package/19d62ebe3011554d7eaec358b18f6861caae7801/lib -L/Users/apollo/.conan/data/zlib/1.2.13/_/_/package/f76e28f3bd5cf58774a823d0aa3d30f18fc5b24f/lib conftest.c -llcms2 -lIlmImfUtil_d -lIlmImf_d -lImath_d -lHalf_d -lIexMath_d -lIlmThread_d -lIex_d -lheif -lopenjp2 -ltiffxx -ltiff -lxml2 -lfreetyped -lbz2 -llzma -llibde265 -ljbig -ljpeg -lpng -ldeflate -lzstd -lwebpdecoder -lwebpdemux -lwebpmux -lwebp -liconv -lcharset -lbrotlidec -lbrotlienc -lbrotlicommon -lz >&5 configure:5307: $? = 0 configure:5329: result: configure:5351: checking whether we are cross compiling configure:5359: gcc -o conftest -m64 -g -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -arch x86_64 -I/Users/apollo/.conan/data/lcms/2.11/_/_/package/f76e28f3bd5cf58774a823d0aa3d30f18fc5b24f/include -I/Users/apollo/.conan/data/openexr/2.5.7/_/_/package/fcef9d9dc7c4bd537802f13cf0df110d67549506/include -I/Users/apollo/.conan/data/openexr/2.5.7/_/_/package/fcef9d9dc7c4bd537802f13cf0df110d67549506/include/OpenEXR -I/Users/apollo/.conan/data/libheif/1.12.0/_/_/package/5ec488dbd799700e65f522e9049a918007c8c9e1/include -I/Users/apollo/.conan/data/openjpeg/2.5.0/_/_/package/f76e28f3bd5cf58774a823d0aa3d30f18fc5b24f/include -I/Users/apollo/.conan/data/openjpeg/2.5.0/_/_/package/f76e28f3bd5cf58774a823d0aa3d30f18fc5b24f/include/openjpeg-2.5 -I/Users/apollo/.conan/data/libtiff/4.4.0/_/_/package/c9365e054dc3ebb9e918f5a39a18cb5c7d29bf04/include -I/Users/apollo/.conan/data/libxml2/2.9.10/_/_/package/22f71e7fe42ea8ab0ec6f16d26e0602c0259381f/include -I/Users/apollo/.conan/data/libxml2/2.9.10/_/_/package/22f71e7fe42ea8ab0ec6f16d26e0602c0259381f/include/libxml2 -I/Users/apollo/.conan/data/freetype/2.12.1/_/_/package/39180bbc5f090d9c1528602007999d82c75ab5d0/include -I/Users/apollo/.conan/data/freetype/2.12.1/_/_/package/39180bbc5f090d9c1528602007999d82c75ab5d0/include/freetype2 -I/Users/apollo/.conan/data/bzip2/1.0.8/_/_/package/85f329eb36d3fe16573e526dd4bcedfa53d5c690/include -I/Users/apollo/.conan/data/xz_utils/5.2.5/_/_/package/f76e28f3bd5cf58774a823d0aa3d30f18fc5b24f/include -I/Users/apollo/.conan/data/libde265/1.0.8/_/_/package/35a32bab8f3d6b3b957c21747775163d8f865652/include -I/Users/apollo/.conan/data/jbig/20160605/_/_/package/22d1102f90b46fe32099c3c34eb86c3412fb435c/include -I/Users/apollo/.conan/data/libjpeg/9d/_/_/package/f76e28f3bd5cf58774a823d0aa3d30f18fc5b24f/include -I/Users/apollo/.conan/data/libpng/1.6.37/_/_/package/3dafd45dc97da899acfaf60e20ef51ae47b4af99/include -I/Users/apollo/.conan/data/libdeflate/1.15/_/_/package/f76e28f3bd5cf58774a823d0aa3d30f18fc5b24f/include -I/Users/apollo/.conan/data/zstd/1.5.2/_/_/package/958d7da8f235e9e4b0233df64e4928e5619eed84/include -I/Users/apollo/.conan/data/libwebp/1.2.4/_/_/package/c51bc5242819d522cd47085debb4ed96ab183de4/include -I/Users/apollo/.conan/data/libiconv/1.17/_/_/package/f76e28f3bd5cf58774a823d0aa3d30f18fc5b24f/include -I/Users/apollo/.conan/data/brotli/1.0.9/_/_/package/19d62ebe3011554d7eaec358b18f6861caae7801/include -I/Users/apollo/.conan/data/brotli/1.0.9/_/_/package/19d62ebe3011554d7eaec358b18f6861caae7801/include/brotli -I/Users/apollo/.conan/data/zlib/1.2.13/_/_/package/f76e28f3bd5cf58774a823d0aa3d30f18fc5b24f/include -m64 -L/Users/apollo/.conan/data/lcms/2.11/_/_/package/f76e28f3bd5cf58774a823d0aa3d30f18fc5b24f/lib -L/Users/apollo/.conan/data/openexr/2.5.7/_/_/package/fcef9d9dc7c4bd537802f13cf0df110d67549506/lib -L/Users/apollo/.conan/data/libheif/1.12.0/_/_/package/5ec488dbd799700e65f522e9049a918007c8c9e1/lib -L/Users/apollo/.conan/data/openjpeg/2.5.0/_/_/package/f76e28f3bd5cf58774a823d0aa3d30f18fc5b24f/lib -L/Users/apollo/.conan/data/libtiff/4.4.0/_/_/package/c9365e054dc3ebb9e918f5a39a18cb5c7d29bf04/lib -L/Users/apollo/.conan/data/libxml2/2.9.10/_/_/package/22f71e7fe42ea8ab0ec6f16d26e0602c0259381f/lib -L/Users/apollo/.conan/data/freetype/2.12.1/_/_/package/39180bbc5f090d9c1528602007999d82c75ab5d0/lib -L/Users/apollo/.conan/data/bzip2/1.0.8/_/_/package/85f329eb36d3fe16573e526dd4bcedfa53d5c690/lib -L/Users/apollo/.conan/data/xz_utils/5.2.5/_/_/package/f76e28f3bd5cf58774a823d0aa3d30f18fc5b24f/lib -L/Users/apollo/.conan/data/libde265/1.0.8/_/_/package/35a32bab8f3d6b3b957c21747775163d8f865652/lib -L/Users/apollo/.conan/data/jbig/20160605/_/_/package/22d1102f90b46fe32099c3c34eb86c3412fb435c/lib -L/Users/apollo/.conan/data/libjpeg/9d/_/_/package/f76e28f3bd5cf58774a823d0aa3d30f18fc5b24f/lib -L/Users/apollo/.conan/data/libpng/1.6.37/_/_/package/3dafd45dc97da899acfaf60e20ef51ae47b4af99/lib -L/Users/apollo/.conan/data/libdeflate/1.15/_/_/package/f76e28f3bd5cf58774a823d0aa3d30f18fc5b24f/lib -L/Users/apollo/.conan/data/zstd/1.5.2/_/_/package/958d7da8f235e9e4b0233df64e4928e5619eed84/lib -L/Users/apollo/.conan/data/libwebp/1.2.4/_/_/package/c51bc5242819d522cd47085debb4ed96ab183de4/lib -L/Users/apollo/.conan/data/libiconv/1.17/_/_/package/f76e28f3bd5cf58774a823d0aa3d30f18fc5b24f/lib -L/Users/apollo/.conan/data/brotli/1.0.9/_/_/package/19d62ebe3011554d7eaec358b18f6861caae7801/lib -L/Users/apollo/.conan/data/zlib/1.2.13/_/_/package/f76e28f3bd5cf58774a823d0aa3d30f18fc5b24f/lib conftest.c -llcms2 -lIlmImfUtil_d -lIlmImf_d -lImath_d -lHalf_d -lIexMath_d -lIlmThread_d -lIex_d -lheif -lopenjp2 -ltiffxx -ltiff -lxml2 -lfreetyped -lbz2 -llzma -llibde265 -ljbig -ljpeg -lpng -ldeflate -lzstd -lwebpdecoder -lwebpdemux -lwebpmux -lwebp -liconv -lcharset -lbrotlidec -lbrotlienc -lbrotlicommon -lz >&5 configure:5363: $? = 0 configure:5370: ./conftest dyld[8906]: Library not loaded: '@rpath/libIlmImfUtil-2_5_d.25.dylib' Referenced from: '/Users/apollo/.conan/data/imagemagick/7.0.11-14/_/_/build/f924c48884e8cece4cb7aa3e6bf1d5be9f532027/ImageMagick/conftest' Reason: tried: '/usr/local/lib/libIlmImfUtil-2_5_d.25.dylib' (no such file), '/usr/lib/libIlmImfUtil-2_5_d.25.dylib' (no such file) ./configure: line 5372: 8906 Abort trap: 6 ./conftest$ac_cv_exeext configure:5374: $? = 134 configure:5381: error: in `/Users/apollo/.conan/data/imagemagick/7.0.11-14/_/_/build/f924c48884e8cece4cb7aa3e6bf1d5be9f532027/ImageMagick': configure:5383: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details configure: exit 1 ```
SpaceIm commented 1 year ago

Are you sure you run exactly this command conan install . -s build_type=Debug --build=missing -pr:b=default -pr:h=default? It seems that your dependencies are shared. Anyway it's a bug and it should be fixed by migrating this recipe to conan v2 build helpers.

tuduongquyet commented 1 year ago

Yes, It's the exact command.Full deps

poco/1.12.4
imagemagick/7.0.11-14
miniaudio/0.11.11
ffmpeg/4.4.3
openssl/1.1.1s
libiconv/1.17
libtiff/4.4.0
libwebp/1.2.4
vorbis/1.3.7
openjpeg/2.5.0
freetype/2.12.1
lzo/2.10
bzip2/1.0.8
zlib/1.2.13
SpaceIm commented 1 year ago

libIlmImfUtil-2_5_d.25.dylib (in configure log) comes from openexr 2.x when it is shared. openexr is static by default in conan-center. It is a dependency of imagemagick (what you show is not full deps but likely full direct deps). So I don't understand how openexr could be shared with command & profile you show in this issue.

tuduongquyet commented 1 year ago

Yes, You can reproduce this issue with

[generators] CMakeDeps CMakeToolchain

[options] *:shared=True poco:enable_activerecord = False poco:enable_activerecord_compiler = False poco:enable_apacheconnector = False poco:enable_cppparser = False poco:enable_crypto = True poco:enable_data = False poco:enable_data_mysql = False poco:enable_data_odbc = False poco:enable_data_postgresql = False poco:enable_data_sqlite = False poco:enable_encodings = False poco:enable_fork = False poco:enable_json = True poco:enable_jwt = True poco:enable_mongodb = False poco:enable_net = True poco:enable_netssl = True poco:enable_pagecompiler = False poco:enable_pagecompiler_file2page = False poco:enable_pdf = False poco:enable_pocodoc = False poco:enable_prometheus = False poco:enable_redis = False poco:enable_sevenzip = True poco:enable_util = True poco:enable_xml = True poco:enable_zip = True imagemagick:with_pango = False

tuduongquyet commented 1 year ago

It works with *:shared=False ✌🏻