conan-io / conan-center-index

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

[package] apr/1.7.0 simple compilation with gcc 12 on Fedora #13371

Open mipac opened 2 years ago

mipac commented 2 years ago

Description

Can't build apr with gcc, but it works with intel classic (icc) and intel clang (icx)

Package and Environment Details

Conan profile

[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] [build_requires] [env]

Steps to reproduce

conan install apr/1.7.0@ -r conancenter --build -pr:b=default -pr:h=default

Logs

[michel@mi ~]$ conan install apr/1.7.0@ -r conancenter --build --profile gcc
Configuration: [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] [build_requires] [env]

apr/1.7.0: Forced build from source Installing package: apr/1.7.0 Requirements apr/1.7.0 from 'conancenter' - Cache Packages apr/1.7.0:eaa856969ba0353b065bd8b581a46759616a78d6 - Build

Installing (downloading, building) binaries... apr/1.7.0: WARN: Build folder is dirty, removing it: /home/michel/.conan/data/apr/1.7.0///build/eaa856969ba0353b065bd8b581a46759616a78d6 apr/1.7.0: Copying sources to build folder apr/1.7.0: Building your package in /home/michel/.conan/data/apr/1.7.0///build/eaa856969ba0353b065bd8b581a46759616a78d6 apr/1.7.0: Generator cmake created conanbuildinfo.cmake apr/1.7.0: Aggregating env generators [HOOK - conan-center.py] pre_build(): [FPIC MANAGEMENT (KB-H007)] OK. 'fPIC' option found and apparently well managed [HOOK - conan-center.py] pre_build(): [FPIC MANAGEMENT (KB-H007)] OK apr/1.7.0: Calling build() apr/1.7.0: Calling:

sourcesubfolder/configure '--with-installbuilddir=${prefix}/bin/build-1' '--enable-shared=no' '--enable-static=yes' '--prefix=/home/michel/.conan/data/apr/1.7.0//_/package/eaa856969ba0353b065bd8b581a46759616a78d6' '--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-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking target system type... x86_64-pc-linux-gnu Configuring APR library Platform: x86_64-pc-linux-gnu checking for working mkdir -p... yes APR Version: 1.7.0 checking for chosen layout... apr checking for gcc... icx 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 icx accepts -g... yes checking for icx option to accept ISO C89... none needed checking for a sed that does not truncate output... /usr/bin/sed Applying APR hints file rules for x86_64-pc-linux-gnu adding "-DLINUX" to CPPFLAGS adding "-D_REENTRANT" to CPPFLAGS adding "-D_GNU_SOURCE" to CPPFLAGS (Default will be unix) checking whether make sets $(MAKE)... yes checking how to run the C preprocessor... icx -E checking for gawk... gawk checking whether ln -s works... yes checking for ranlib... ranlib checking for a BSD-compatible install... /usr/bin/install -c checking for rm... rm checking for as... as checking for cpp... cpp checking for ar... ar checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -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 minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define EXTENSIONS... yes checking for library containing strerror... none required checking whether system uses EBCDIC... no performing libtool configuration... checking how to print strings... printf checking for a sed that does not truncate output... (cached) /usr/bin/sed checking for fgrep... /usr/bin/grep -F checking for ld used by icx... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking the maximum length of command line arguments... 1572864 checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop checking how to convert x86_64-pc-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... dlltool checking how to associate runtime and link libraries... printf %s\n checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... (cached) ranlib checking command to parse /usr/bin/nm -B output from icx 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... no checking if : is a manifest tool... no checking for dlfcn.h... yes checking for objdir... .libs checking if icx supports -fno-rtti -fno-exceptions... yes checking for icx option to produce PIC... -fPIC -DPIC checking if icx PIC flag -fPIC -DPIC works... yes checking if icx static flag -static works... no checking if icx supports -c -o file.o... rm: cannot remove 'conftest*': No such file or directory yes checking if icx supports -c -o file.o... (cached) yes checking whether the icx 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

Check for compiler flags... checking whether the compiler provides atomic builtins... yes checking whether to enable -D_LARGEFILE64_SOURCE... no configure: Configured for Linux 5.19

Checking for libraries... checking for library containing gethostbyname... none required checking for library containing gethostname... none required checking for library containing socket... none required checking for library containing crypt... -lcrypt checking for main in -ltruerand... no checking for library containing modf... none required

Checking for Threads... checking pthread.h usability... yes checking pthread.h presence... yes checking for pthread.h... yes checking for CFLAGS needed for pthreads... none checking for LIBS needed for pthreads... -lpthread adding "-lpthread" to LIBS checking for pthread.h... (cached) yes checking whether pthread_getspecific takes two arguments... no checking whether pthread_attr_getdetachstate takes one argument... no checking for recursive mutex support... yes checking for pthread_key_delete... yes checking for pthread_rwlock_init... yes checking for pthread_attr_setguardsize... yes checking for pthread_yield... no checking for pthread_rwlock_t... yes checking sched.h usability... yes checking sched.h presence... yes checking for sched.h... yes checking for sched_yield... yes APR will use threads checking for gethostbyname in -lc_r... no checking for gethostbyaddr in -lc_r... no checking for getservbyname in -lc_r... no checking for gethostbyname_r... yes checking for gethostbyaddr_r... yes checking for getservbyname_r... yes checking for sigsuspend... yes checking for sigwait... yes checking for poll... yes checking for kqueue... no checking for port_create... no checking for epoll support... yes checking for epoll_create1 support... yes checking for dup3 support... yes checking for accept4 support... yes checking for SOCK_CLOEXEC support... yes checking for fdatasync... yes checking for epoll_create1 support... (cached) yes checking for asio -> message queue support... no checking for dup3 support... (cached) yes checking for accept4 support... (cached) yes checking for SOCK_CLOEXEC support... (cached) yes checking for getpwnam_r... yes checking for getpwuid_r... yes checking for getgrnam_r... yes checking for getgrgid_r... yes

Checking for Shared Memory Support... checking for library containing shm_open... none required checking for sys/types.h... (cached) yes checking sys/mman.h usability... yes checking sys/mman.h presence... yes checking for sys/mman.h... yes checking sys/ipc.h usability... yes checking sys/ipc.h presence... yes checking for sys/ipc.h... yes checking sys/mutex.h usability... no checking sys/mutex.h presence... no checking for sys/mutex.h... no checking sys/shm.h usability... yes checking sys/shm.h presence... yes checking for sys/shm.h... yes checking sys/file.h usability... yes checking sys/file.h presence... yes checking for sys/file.h... yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking kernel/OS.h usability... no checking kernel/OS.h presence... no checking for kernel/OS.h... no checking os2.h usability... no checking os2.h presence... no checking for os2.h... no checking windows.h usability... no checking windows.h presence... no checking for windows.h... no checking for net/if.h... yes checking for mmap... yes checking for munmap... yes checking for shm_open... yes checking for shm_unlink... yes checking for shmget... yes checking for shmat... yes checking for shmdt... yes checking for shmctl... yes checking for create_area... no checking for mprotect... yes checking for MAP_ANON in sys/mman.h... yes checking for /dev/zero... yes checking for mmap that can map /dev/zero... yes decision on anonymous shared memory allocation method... 4.4BSD-style mmap() via MAP_ANON decision on namebased memory allocation method... SysV IPC shmget() checking for size_t... yes checking for working alloca.h... yes checking for alloca... yes checking for calloc... yes checking for setsid... yes checking for isinf... yes checking for isnan... yes checking for getenv... yes checking for putenv... yes checking for setenv... yes checking for unsetenv... yes checking for writev... yes checking for getifaddrs... yes checking for utime... yes checking for utimes... yes checking for setrlimit... yes checking for getrlimit... yes checking for sendfilev in -lsendfile... no checking for sendfile... yes checking for send_file... no checking for sendfilev... no checking for sigaction... yes checking whether sys_siglist is declared... no checking for fork... yes checking for inet_addr... no checking for inet_network... no checking for _getch... no checking for strerror_r... yes checking for type of return code from strerror_r... pointer checking for mmap... (cached) yes checking for memmove... yes checking for getpass... yes checking for getpassphrase... no checking for gmtime_r... yes checking for localtime_r... yes checking for mkstemp... yes checking whether sigwait takes one argument... no checking for ANSI C header files... (cached) yes checking ByteOrder.h usability... no checking ByteOrder.h presence... no checking for ByteOrder.h... no checking conio.h usability... no checking conio.h presence... no checking for conio.h... no checking crypt.h usability... yes checking crypt.h presence... yes checking for crypt.h... yes checking ctype.h usability... yes checking ctype.h presence... yes checking for ctype.h... yes checking dir.h usability... no checking dir.h presence... no checking for dir.h... no checking dirent.h usability... yes checking dirent.h presence... yes checking for dirent.h... yes checking dl.h usability... no checking dl.h presence... no checking for dl.h... no checking for dlfcn.h... (cached) yes checking errno.h usability... yes checking errno.h presence... yes checking for errno.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking grp.h usability... yes checking grp.h presence... yes checking for grp.h... yes checking for inttypes.h... (cached) yes checking io.h usability... no checking io.h presence... no checking for io.h... no checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking mach-o/dyld.h usability... no checking mach-o/dyld.h presence... no checking for mach-o/dyld.h... no checking malloc.h usability... yes checking malloc.h presence... yes checking for malloc.h... yes checking for memory.h... (cached) yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking osreldate.h usability... no checking osreldate.h presence... no checking for osreldate.h... no checking poll.h usability... yes checking poll.h presence... yes checking for poll.h... yes checking process.h usability... no checking process.h presence... no checking for process.h... no checking pwd.h usability... yes checking pwd.h presence... yes checking for pwd.h... yes checking semaphore.h usability... yes checking semaphore.h presence... yes checking for semaphore.h... yes checking signal.h usability... yes checking signal.h presence... yes checking for signal.h... yes checking stdarg.h usability... yes checking stdarg.h presence... yes checking for stdarg.h... yes checking stddef.h usability... yes checking stddef.h presence... yes checking for stddef.h... yes checking stdio.h usability... yes checking stdio.h presence... yes checking for stdio.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for strings.h... (cached) yes checking sysapi.h usability... no checking sysapi.h presence... no checking for sysapi.h... no checking sysgtime.h usability... no checking sysgtime.h presence... no checking for sysgtime.h... no checking termios.h usability... yes checking termios.h presence... yes checking for termios.h... yes checking time.h usability... yes checking time.h presence... yes checking for time.h... yes checking tpfeq.h usability... no checking tpfeq.h presence... no checking for tpfeq.h... no checking tpfio.h usability... no checking tpfio.h presence... no checking for tpfio.h... no checking for unistd.h... (cached) yes checking unix.h usability... no checking unix.h presence... no checking for unix.h... no checking for windows.h... (cached) no checking winsock2.h usability... no checking winsock2.h presence... no checking for winsock2.h... no checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking for kernel/OS.h... (cached) no checking net/errno.h usability... no checking net/errno.h presence... no checking for net/errno.h... no checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking netinet/sctp.h usability... no checking netinet/sctp.h presence... no checking for netinet/sctp.h... no checking netinet/sctp_uio.h usability... no checking netinet/sctp_uio.h presence... no checking for netinet/sctp_uio.h... no checking for sys/file.h... (cached) yes checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes checking for sys/mman.h... (cached) yes checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking sys/poll.h usability... yes checking sys/poll.h presence... yes checking for sys/poll.h... yes checking sys/resource.h usability... yes checking sys/resource.h presence... yes checking for sys/resource.h... yes checking sys/select.h usability... yes checking sys/select.h presence... yes checking for sys/select.h... yes checking sys/sem.h usability... yes checking sys/sem.h presence... yes checking for sys/sem.h... yes checking sys/sendfile.h usability... yes checking sys/sendfile.h presence... yes checking for sys/sendfile.h... yes checking sys/signal.h usability... yes checking sys/signal.h presence... yes checking for sys/signal.h... yes checking for sys/socket.h... (cached) yes checking sys/sockio.h usability... no checking sys/sockio.h presence... no checking for sys/sockio.h... no checking for sys/stat.h... (cached) yes checking sys/sysctl.h usability... no checking sys/sysctl.h presence... no checking for sys/sysctl.h... no checking sys/syslimits.h usability... no checking sys/syslimits.h presence... no checking for sys/syslimits.h... no checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking for sys/types.h... (cached) yes checking sys/uio.h usability... yes checking sys/uio.h presence... yes checking for sys/uio.h... yes checking sys/un.h usability... yes checking sys/un.h presence... yes checking for sys/un.h... yes checking sys/wait.h usability... yes checking sys/wait.h presence... yes checking for sys/wait.h... yes checking for netinet/tcp.h... yes checking for h_errno in netdb.h... yes checking for off_t... yes checking for pid_t... yes checking for size_t... (cached) yes checking for uid_t in sys/types.h... yes checking for ssize_t... yes checking for inline... inline checking for an ANSI C-conforming const... yes checking whether setpgrp takes no argument... yes checking for socklen_t... yes checking size of void*... 8 checking size of char... 1 checking size of short... 2 checking size of int... 4 checking size of long... 8 checking size of long long... 8 checking whether int64_t and int use fmt %d... no checking whether int64_t and long use fmt %ld... no checking whether int64_t and long long use fmt %lld... no configure: error: could not determine the string function for int64t apr/1.7.0: apr/1.7.0: ERROR: Package 'eaa856969ba0353b065bd8b581a46759616a78d6' build failed apr/1.7.0: WARN: Build folder /home/michel/.conan/data/apr/1.7.0//_/build/eaa856969ba0353b065bd8b581a46759616a78d6 ERROR: apr/1.7.0: Error in build() method, line 116 autotools = self._configure_autotools() while calling '_configure_autotools', line 97 self._autotools.configure(args=conf_args, configure_dir=self._source_subfolder) ConanException: Error 1 while executing sourcesubfolder/configure '--with-installbuilddir=${prefix}/bin/build-1' '--enable-shared=no' '--enable-static=yes' '--prefix=/home/michel/.conan/data/apr/1.7.0//_/package/eaa856969ba0353b065bd8b581a46759616a78d6' '--bindir=${prefix}/bin' '--sbindir=${prefix}/bin' '--libexecdir=${prefix}/bin' '--libdir=${prefix}/lib' '--includedir=${prefix}/include' '--oldincludedir=${prefix}/include' '--datarootdir=${prefix}/share'

uilianries commented 2 years ago

Thank you for reporting. GCC12 is still not supported on CCI, so it can not be validated. Any PR fixing it will be welcome.