conan-io / conan-center-index

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

[package] libexif/0.6.24: can't cross-compile #19761

Open AndreyMlashkin opened 1 year ago

AndreyMlashkin commented 1 year ago

Description

libexif/0.6.24: can't cross-compile

Package and Environment Details

Conan profile

default:

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

gcc 12

[settings] os=Linux os_build=Linux arch=x86_64 arch_build=x86_64 compiler=gcc compiler.version=12 compiler.libcxx=libstdc++11 build_type=Release [options] [build_requires] gcc/12.2.0 [env]

Steps to reproduce

conan install libexif/0.6.24@ --install-folder=build --build missing -pr:b=default -pr:h=gcc12 -g VirtualRunEnv -r conan-center -u

Logs

Click to expand log ``` $ conan install libexif/0.6.24@ --install-folder=build --build missing -pr:b=default -pr:h=gcc12 -g VirtualRunEnv -r conan-center -u Configuration (profile_host): [settings] arch=x86_64 arch_build=x86_64 build_type=Release compiler=gcc compiler.libcxx=libstdc++11 compiler.version=12 os=Linux os_build=Linux [options] libtrfset:no_gmat_deps=True qt:qttools=True qt:shared=True [build_requires] *: gcc/12.2.0 [env] Configuration (profile_build): [settings] arch=x86_64 arch_build=x86_64 build_type=Release compiler=gcc compiler.libcxx=libstdc++11 compiler.version=9 os=Linux os_build=Linux [options] libtrfset:no_gmat_deps=True qt:qttools=True qt:shared=True [build_requires] [env] libexif/0.6.24: WARN: Package binary is corrupted, removing: 2a19826344ff00be1c04403f2f8e7008ed3a7cc6 WARN: mpc/1.2.0: requirement gmp/6.3.0 overridden by gcc/12.2.0 to gmp/6.2.1 WARN: mpc/1.2.0: requirement mpfr/4.2.0 overridden by gcc/12.2.0 to mpfr/4.1.0 WARN: mpfr/4.1.0: requirement gmp/6.3.0 overridden by mpc/1.2.0 to gmp/6.2.1 zlib/1.2.13: WARN: Current package is newer than remote upstream one Installing package: libexif/0.6.24 Requirements libexif/0.6.24 from 'conan-center' - Cache Packages libexif/0.6.24:2a19826344ff00be1c04403f2f8e7008ed3a7cc6 - Build Build requirements gcc/12.2.0 from 'conan-center' - Cache gmp/6.2.1 from 'conan-center' - Cache isl/0.24 from 'conan-center' - Cache mpc/1.2.0 from 'conan-center' - Cache mpfr/4.1.0 from 'conan-center' - Cache zlib/1.2.13 from 'conan-center' - Cache Build requirements packages gcc/12.2.0:e22f47f196f50cff15626bfbdc57fadd84b7f986 - Cache gmp/6.2.1:c790bf3bba4353696932be38006b6896a204cd21 - Cache isl/0.24:eab275d3115f7eff8e58a9a27bf1074a6d0e4a8d - Cache mpc/1.2.0:1d9e525fb8aa848d5a6b6f2c058c5ff71f115f9a - Cache mpfr/4.1.0:2a345fab1896a5e7007785742bbfa07f780e3aa2 - Cache zlib/1.2.13:6af9cc7cb931c5ad942174fd7838eb655717c709 - Cache Installing (downloading, building) binaries... gmp/6.2.1: Already installed! zlib/1.2.13: Already installed! isl/0.24: Already installed! mpfr/4.1.0: Already installed! mpc/1.2.0: Already installed! gcc/12.2.0: Already installed! gcc/12.2.0: Creating CC env var with: /home/andrei/.conan/data/gcc/12.2.0/_/_/package/e22f47f196f50cff15626bfbdc57fadd84b7f986/bin/gcc-12.2.0 gcc/12.2.0: Creating CXX env var with: /home/andrei/.conan/data/gcc/12.2.0/_/_/package/e22f47f196f50cff15626bfbdc57fadd84b7f986/bin/g++-12.2.0 gcc/12.2.0: Creating FC env var with: /home/andrei/.conan/data/gcc/12.2.0/_/_/package/e22f47f196f50cff15626bfbdc57fadd84b7f986/bin/gfortran-12.2.0 gcc/12.2.0: Creating AR env var with: /home/andrei/.conan/data/gcc/12.2.0/_/_/package/e22f47f196f50cff15626bfbdc57fadd84b7f986/bin/gcc-ar-12.2.0 gcc/12.2.0: Creating NM env var with: /home/andrei/.conan/data/gcc/12.2.0/_/_/package/e22f47f196f50cff15626bfbdc57fadd84b7f986/bin/gcc-nm-12.2.0 gcc/12.2.0: Creating RANLIB env var with: /home/andrei/.conan/data/gcc/12.2.0/_/_/package/e22f47f196f50cff15626bfbdc57fadd84b7f986/bin/gcc-ranlib-12.2.0 libexif/0.6.24: Applying build-requirement: gcc/12.2.0 libexif/0.6.24: Applying build-requirement: mpc/1.2.0 libexif/0.6.24: Applying build-requirement: zlib/1.2.13 libexif/0.6.24: Applying build-requirement: isl/0.24 libexif/0.6.24: Applying build-requirement: mpfr/4.1.0 libexif/0.6.24: Applying build-requirement: gmp/6.2.1 libexif/0.6.24: WARN: Build folder is dirty, removing it: /home/andrei/.conan/data/libexif/0.6.24/_/_/build/2a19826344ff00be1c04403f2f8e7008ed3a7cc6 libexif/0.6.24: Copying sources to build folder libexif/0.6.24: Building your package in /home/andrei/.conan/data/libexif/0.6.24/_/_/build/2a19826344ff00be1c04403f2f8e7008ed3a7cc6 libexif/0.6.24: Generator txt created conanbuildinfo.txt libexif/0.6.24: Calling generate() libexif/0.6.24: Aggregating env generators libexif/0.6.24: Calling build() libexif/0.6.24: Calling: > "/home/andrei/.conan/data/libexif/0.6.24/_/_/build/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/src/configure" '--disable-shared' '--enable-static' '--prefix=/' '--bindir=${prefix}/bin' '--sbindir=${prefix}/bin' '--libdir=${prefix}/lib' '--includedir=${prefix}/include' '--oldincludedir=${prefix}/include' '--disable-docs' '--disable-nls' '--disable-rpath' checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether to enable maintainer-specific portions of Makefiles... no checking whether make supports nested variables... (cached) yes checking for POSIX sh $() command substitution... yes checking whether make supports the include directive... yes (GNU style) checking for gcc... /home/andrei/.conan/data/gcc/12.2.0/_/_/package/e22f47f196f50cff15626bfbdc57fadd84b7f986/bin/gcc-12.2.0 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... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether /home/andrei/.conan/data/gcc/12.2.0/_/_/package/e22f47f196f50cff15626bfbdc57fadd84b7f986/bin/gcc-12.2.0 accepts -g... no checking for /home/andrei/.conan/data/gcc/12.2.0/_/_/package/e22f47f196f50cff15626bfbdc57fadd84b7f986/bin/gcc-12.2.0 option to accept ISO C89... none needed checking whether /home/andrei/.conan/data/gcc/12.2.0/_/_/package/e22f47f196f50cff15626bfbdc57fadd84b7f986/bin/gcc-12.2.0 understands -c and -o together... yes checking dependency style of /home/andrei/.conan/data/gcc/12.2.0/_/_/package/e22f47f196f50cff15626bfbdc57fadd84b7f986/bin/gcc-12.2.0... gcc3 checking for inline... inline checking the archiver (/home/andrei/.conan/data/gcc/12.2.0/_/_/package/e22f47f196f50cff15626bfbdc57fadd84b7f986/bin/gcc-ar-12.2.0) interface... ar checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking how to print strings... printf checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for fgrep... /usr/bin/grep -F checking for ld used by /home/andrei/.conan/data/gcc/12.2.0/_/_/package/e22f47f196f50cff15626bfbdc57fadd84b7f986/bin/gcc-12.2.0... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /home/andrei/.conan/data/gcc/12.2.0/_/_/package/e22f47f196f50cff15626bfbdc57fadd84b7f986/bin/gcc-nm-12.2.0 checking the name lister (/home/andrei/.conan/data/gcc/12.2.0/_/_/package/e22f47f196f50cff15626bfbdc57fadd84b7f986/bin/gcc-nm-12.2.0) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... /home/andrei/.conan/data/gcc/12.2.0/_/_/package/e22f47f196f50cff15626bfbdc57fadd84b7f986/bin/gcc-ranlib-12.2.0 checking command to parse /home/andrei/.conan/data/gcc/12.2.0/_/_/package/e22f47f196f50cff15626bfbdc57fadd84b7f986/bin/gcc-nm-12.2.0 output from /home/andrei/.conan/data/gcc/12.2.0/_/_/package/e22f47f196f50cff15626bfbdc57fadd84b7f986/bin/gcc-12.2.0 object... ok checking for sysroot... no checking for a working dd... /usr/bin/dd checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 checking for mt... mt checking if mt is a manifest tool... no checking how to run the C preprocessor... /home/andrei/.conan/data/gcc/12.2.0/_/_/package/e22f47f196f50cff15626bfbdc57fadd84b7f986/bin/gcc-12.2.0 -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if /home/andrei/.conan/data/gcc/12.2.0/_/_/package/e22f47f196f50cff15626bfbdc57fadd84b7f986/bin/gcc-12.2.0 supports -fno-rtti -fno-exceptions... no checking for /home/andrei/.conan/data/gcc/12.2.0/_/_/package/e22f47f196f50cff15626bfbdc57fadd84b7f986/bin/gcc-12.2.0 option to produce PIC... -fPIC -DPIC checking if /home/andrei/.conan/data/gcc/12.2.0/_/_/package/e22f47f196f50cff15626bfbdc57fadd84b7f986/bin/gcc-12.2.0 PIC flag -fPIC -DPIC works... yes checking if /home/andrei/.conan/data/gcc/12.2.0/_/_/package/e22f47f196f50cff15626bfbdc57fadd84b7f986/bin/gcc-12.2.0 static flag -static works... yes checking if /home/andrei/.conan/data/gcc/12.2.0/_/_/package/e22f47f196f50cff15626bfbdc57fadd84b7f986/bin/gcc-12.2.0 supports -c -o file.o... yes checking if /home/andrei/.conan/data/gcc/12.2.0/_/_/package/e22f47f196f50cff15626bfbdc57fadd84b7f986/bin/gcc-12.2.0 supports -c -o file.o... (cached) yes checking whether the /home/andrei/.conan/data/gcc/12.2.0/_/_/package/e22f47f196f50cff15626bfbdc57fadd84b7f986/bin/gcc-12.2.0 linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... no checking whether to build static libraries... yes checking for diff... /usr/bin/diff checking whether diff supports -u... yes checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... no checking for uint8_t in stdint.h... yes checking for math functions in libm... yes checking for /home/andrei/.conan/data/gcc/12.2.0/_/_/package/e22f47f196f50cff15626bfbdc57fadd84b7f986/lib/gcc/x86_64-pc-linux-gnu/12.2.0/libfailmalloc.so.0... no checking for /home/andrei/.conan/data/gcc/12.2.0/_/_/package/e22f47f196f50cff15626bfbdc57fadd84b7f986/lib/gcc/libfailmalloc.so.0... no checking for /home/andrei/.conan/data/gcc/12.2.0/_/_/package/e22f47f196f50cff15626bfbdc57fadd84b7f986/lib/libfailmalloc.so.0... no checking for /lib/x86_64-linux-gnu/libfailmalloc.so.0... no checking for /lib/libfailmalloc.so.0... no checking for /usr/lib/x86_64-linux-gnu/libfailmalloc.so.0... no checking for /usr/lib/libfailmalloc.so.0... no checking for failmalloc... no checking whether to build any docs... no checking main docdir... ${prefix}/share/doc (FHS style) checking package docdir... ${prefix}/share/doc/libexif (default style) checking for dot... /usr/bin/dot checking for doxygen... /usr/bin/doxygen checking whether to create internal code docs... no checking whether NLS is requested... no checking for msgfmt... /usr/bin/msgfmt checking for gmsgfmt... /usr/bin/msgfmt checking for xgettext... /usr/bin/xgettext checking for msgmerge... /usr/bin/msgmerge checking for po/Makevars requiring hack... no checking for ld used by /home/andrei/.conan/data/gcc/12.2.0/_/_/package/e22f47f196f50cff15626bfbdc57fadd84b7f986/bin/gcc-12.2.0... /usr/bin/ld -m elf_x86_64 checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes checking for shared library run path origin... done checking for CFPreferencesCopyAppValue... no checking for CFLocaleCopyCurrent... no checking whether to use NLS... no checking for iconv... yes checking for working iconv... yes checking for iconv declaration... extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); checking for localtime_s... no checking for localtime_r... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating po/Makefile.in config.status: creating Makefile config.status: creating libexif.spec config.status: creating libexif/Makefile config.status: creating test/Makefile config.status: creating test/nls/Makefile config.status: creating m4m/Makefile config.status: creating doc/Makefile config.status: creating doc/Doxyfile config.status: creating doc/Doxyfile-internals config.status: creating libexif.pc config.status: creating libexif-uninstalled.pc config.status: creating binary-dist/Makefile config.status: creating contrib/Makefile config.status: creating contrib/examples/Makefile config.status: creating config.h config.status: executing depfiles commands config.status: executing libtool commands config.status: executing po-directories commands config.status: creating po/POTFILES config.status: creating po/Makefile Configuration (libexif 0.6.24): Build Source code location: /home/andrei/.conan/data/libexif/0.6.24/_/_/build/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/src Compiler: /home/andrei/.conan/data/gcc/12.2.0/_/_/package/e22f47f196f50cff15626bfbdc57fadd84b7f986/bin/gcc-12.2.0 Ship binaries in tarball: false Use translations: no You may run "make" and "make install" now. make all-recursive make[1]: Entering directory '/home/andrei/.conan/data/libexif/0.6.24/_/_/build/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/build-release' Making all in m4m make[2]: Entering directory '/home/andrei/.conan/data/libexif/0.6.24/_/_/build/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/build-release/m4m' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/home/andrei/.conan/data/libexif/0.6.24/_/_/build/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/build-release/m4m' Making all in po make[2]: Entering directory '/home/andrei/.conan/data/libexif/0.6.24/_/_/build/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/build-release/po' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/home/andrei/.conan/data/libexif/0.6.24/_/_/build/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/build-release/po' Making all in libexif make[2]: Entering directory '/home/andrei/.conan/data/libexif/0.6.24/_/_/build/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/build-release/libexif' CC exif-byte-order.lo CC exif-data.lo CC exif-content.lo CC exif-entry.lo CC exif-format.lo CC exif-ifd.lo CC exif-loader.lo CC exif-log.lo CC exif-mem.lo CC exif-mnote-data.lo CC exif-tag.lo CC exif-utils.lo CC exif-gps-ifd.lo CC apple/mnote-apple-entry.lo CC apple/exif-mnote-data-apple.lo CC apple/mnote-apple-tag.lo as: unrecognized option '--gdwarf-5' make[2]: *** [Makefile:761: exif-gps-ifd.lo] Error 1 make[2]: *** Waiting for unfinished jobs.... as: unrecognized option '--gdwarf-5' make[2]: *** [Makefile:761: exif-ifd.lo] Error 1 /home/andrei/.conan/data/libexif/0.6.24/_/_/build/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/src/libexif/exif-entry.c: In function 'exif_entry_get_value': /home/andrei/.conan/data/libexif/0.6.24/_/_/build/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/src/libexif/exif-entry.c:1235:9: warning: case value '0' not in enumerated type 'ExifTag' [-Wswitch] 1235 | case EXIF_TAG_GPS_VERSION_ID: | ^~~~ /home/andrei/.conan/data/libexif/0.6.24/_/_/build/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/src/libexif/exif-entry.c:1259:9: warning: case value '5' not in enumerated type 'ExifTag' [-Wswitch] 1259 | case EXIF_TAG_GPS_ALTITUDE_REF: | ^~~~ /home/andrei/.conan/data/libexif/0.6.24/_/_/build/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/src/libexif/exif-entry.c:1272:9: warning: case value '7' not in enumerated type 'ExifTag' [-Wswitch] 1272 | case EXIF_TAG_GPS_TIME_STAMP: | ^~~~ as: unrecognized option '--gdwarf-5' make[2]: *** [Makefile:761: exif-mem.lo] Error 1 as: unrecognized option '--gdwarf-5' as: unrecognized option '--gdwarf-5' as: unrecognized option '--gdwarf-5' make[2]: *** [Makefile:761: exif-format.lo] Error 1 make[2]: *** [Makefile:761: exif-byte-order.lo] Error 1 make[2]: *** [Makefile:761: apple/mnote-apple-tag.lo] Error 1 as: unrecognized option '--gdwarf-5' make[2]: *** [Makefile:761: exif-mnote-data.lo] Error 1 as: unrecognized option '--gdwarf-5' make[2]: *** [Makefile:761: exif-log.lo] Error 1 as: unrecognized option '--gdwarf-5' make[2]: *** [Makefile:761: apple/mnote-apple-entry.lo] Error 1 as: unrecognized option '--gdwarf-5' make[2]: *** [Makefile:761: exif-content.lo] Error 1 as: unrecognized option '--gdwarf-5' make[2]: *** [Makefile:761: exif-utils.lo] Error 1 as: unrecognized option '--gdwarf-5' make[2]: *** [Makefile:761: exif-loader.lo] Error 1 as: unrecognized option '--gdwarf-5' make[2]: *** [Makefile:761: apple/exif-mnote-data-apple.lo] Error 1 as: unrecognized option '--gdwarf-5' make[2]: *** [Makefile:761: exif-tag.lo] Error 1 as: unrecognized option '--gdwarf-5' make[2]: *** [Makefile:761: exif-data.lo] Error 1 as: unrecognized option '--gdwarf-5' make[2]: *** [Makefile:761: exif-entry.lo] Error 1 make[2]: Leaving directory '/home/andrei/.conan/data/libexif/0.6.24/_/_/build/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/build-release/libexif' make[1]: *** [Makefile:534: all-recursive] Error 1 make[1]: Leaving directory '/home/andrei/.conan/data/libexif/0.6.24/_/_/build/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/build-release' make: *** [Makefile:418: all] Error 2 libexif/0.6.24: libexif/0.6.24: ERROR: Package '2a19826344ff00be1c04403f2f8e7008ed3a7cc6' build failed libexif/0.6.24: WARN: Build folder /home/andrei/.conan/data/libexif/0.6.24/_/_/build/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/build-release ERROR: libexif/0.6.24: Error in build() method, line 85 autotools.make() ConanException: Error 2 while executing make -j16 ```
AndreyMlashkin commented 1 year ago

@theirix @sparik