Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[libffi/3.2.1] / [libffi/3.3]Make a patch for 3.2.1 and 3.3 to pull the latest config.guess/config.sub to support aarch64 (M1 macs) #5085

Merged
merged 4 commits into from
May 13, 2021

Conversation

jmarrec
Copy link
Contributor

@jmarrec jmarrec commented Mar 29, 2021

closes: #4059

Specify library name and version: libffi/3.2.1, libffi/3.3

@SSE4 identified the changes upstream by finding libffi/libffi#576 . Retrieved config.guess and config.sub versions from libffi/libffi@95ef857

  • I've read the guidelines for contributing.
  • I've followed the PEP8 style guides for Python code in the recipes.
  • I've used the latest Conan client version.
  • I've tried at least one configuration locally with the
    conan-center hook activated.

@conan-center-bot

This comment has been minimized.

@jmarrec
Copy link
Contributor Author

jmarrec commented Mar 29, 2021

Oh boy, the recipe size is too big... I'm pulling changes to one big file and creating not one but two patches, each 120KB in size. I don't see any way of going around that... @SSE4 any thoughts please?

Well I guess I see one way: do not patch the 3.2.1... only the 3.3. I'm going to try this in 6bf631a

@SSE4
Copy link
Contributor

SSE4 commented Mar 29, 2021

maybe limit 256K is too small and not reasonable, so we should adjust it...

@jmarrec
Copy link
Contributor Author

jmarrec commented Mar 29, 2021

Test on an M1 mac mini

Configuration:
[settings]
arch=armv8
arch_build=armv8
build_type=Release
compiler=apple-clang
compiler.libcxx=libc++
compiler.version=12.0
os=Macos
os_build=Macos
[options]
[build_requires]
[env]

Before

checking build system type... arm-apple-darwin20.3.0
checking host system type... arm-apple-darwin20.3.0
checking target system type... arm-apple-darwin20.3.0
Build log, building libffi/3.3 from master

(py39)irvinemac@all (master=)$ conan create . libffi/3.3@ -b missing
[HOOK - conan-center.py] pre_export(): [DEPRECATED GLOBAL CPPSTD (KB-H001)] OK
[HOOK - conan-center.py] pre_export(): [REFERENCE LOWERCASE (KB-H002)] OK
[HOOK - conan-center.py] pre_export(): [RECIPE METADATA (KB-H003)] OK
[HOOK - conan-center.py] pre_export(): [HEADER_ONLY, NO COPY SOURCE (KB-H005)] OK
[HOOK - conan-center.py] pre_export(): [FPIC OPTION (KB-H006)] OK
[HOOK - conan-center.py] pre_export(): [VERSION RANGES (KB-H008)] OK
[HOOK - conan-center.py] pre_export(): [RECIPE FOLDER SIZE (KB-H009)] Total recipe size: 24.984375 KB
[HOOK - conan-center.py] pre_export(): [RECIPE FOLDER SIZE (KB-H009)] OK
[HOOK - conan-center.py] pre_export(): [EXPORT LICENSE (KB-H023)] exports: None
[HOOK - conan-center.py] pre_export(): [EXPORT LICENSE (KB-H023)] exports: patches/**
[HOOK - conan-center.py] pre_export(): [EXPORT LICENSE (KB-H023)] OK
[HOOK - conan-center.py] pre_export(): [TEST PACKAGE FOLDER (KB-H024)] OK
[HOOK - conan-center.py] pre_export(): [META LINES (KB-H025)] OK
[HOOK - conan-center.py] pre_export(): [CONAN CENTER INDEX URL (KB-H027)] OK
[HOOK - conan-center.py] pre_export(): [CMAKE MINIMUM VERSION (KB-H028)] OK
[HOOK - conan-center.py] pre_export(): [TEST PACKAGE - RUN ENVIRONMENT (KB-H029)] OK
[HOOK - conan-center.py] pre_export(): [SYSTEM REQUIREMENTS (KB-H032)] OK
[HOOK - conan-center.py] pre_export(): [CONANDATA.YML FORMAT (KB-H030)] OK
[HOOK - conan-center.py] pre_export(): [TEST PACKAGE - NO IMPORTS() (KB-H034)] OK
[HOOK - conan-center.py] pre_export(): [NO AUTHOR (KB-H037)] OK
[HOOK - conan-center.py] pre_export(): [NO TARGET NAME (KB-H040)] OK
[HOOK - conan-center.py] pre_export(): [NO FINAL ENDLINE (KB-H041)] OK
[HOOK - conan-center.py] pre_export(): [NO REQUIRES.ADD() (KB-H044)] OK
[HOOK - conan-center.py] pre_export(): [DELETE OPTIONS (KB-H045)] OK
[HOOK - conan-center.py] pre_export(): [NO ASCII CHARACTERS (KB-H047)] OK
[HOOK - conan-center.py] pre_export(): [CMAKE VERBOSE MAKEFILE (KB-H046)] OK
[HOOK - conan-center.py] pre_export(): [CMAKE VERSION REQUIRED (KB-H048)] OK
[HOOK - conan-center.py] pre_export(): [CMAKE WINDOWS EXPORT ALL SYMBOLS (KB-H049)] OK
[HOOK - conan-center.py] pre_export(): [DEFAULT OPTIONS AS DICTIONARY (KB-H051)] OK
[HOOK - conan-center.py] pre_export(): [CONFIG.YML HAS NEW VERSION (KB-H052)] OK
[HOOK - conan-center.py] pre_export(): [PRIVATE IMPORTS (KB-H053)] OK
[HOOK - conan-center.py] pre_export(): [SINGLE REQUIRES (KB-H055)] OK
Exporting package recipe
libffi/3.3 exports: File 'conandata.yml' found. Exporting it...
libffi/3.3 exports: Copied 1 '.yml' file: conandata.yml
libffi/3.3 exports_sources: Copied 10 '.patch' files
[HOOK - conan-center.py] post_export(): [CONANDATA.YML REDUCE (KB-H031)] Saving conandata.yml: {'sources': {'3.3': {'url': 'https://github.com/libffi/libffi/releases/download/v3.3/libffi-3.3.tar.gz', 'sha256': '72fba7922703ddfa7a028d513ac15a85c8d54c8d67f55fa5a4802885dc652056'}}, 'patches': {'3.3': [{'base_path': 'source_subfolder', 'patch_file': 'patches/0002-3.3-fix-libtool-path.patch'}, {'base_path': 'source_subfolder', 'patch_file': 'patches/0004-3.3-fix-complex-type-msvc.patch'}, {'base_path': 'source_subfolder', 'patch_file': 'patches/0005-3.3-do-not-install-libraries-to-arch-dependent-directories.patch'}, {'base_path': 'source_subfolder', 'patch_file': 'patches/0006-3.3-library-no-version-suffix.patch'}]}}
[HOOK - conan-center.py] post_export(): [CONANDATA.YML REDUCE (KB-H031)] New conandata.yml contents: patches:
'3.3':

  • base_path: source_subfolder
    patch_file: patches/0002-3.3-fix-libtool-path.patch
  • base_path: source_subfolder
    patch_file: patches/0004-3.3-fix-complex-type-msvc.patch
  • base_path: source_subfolder
    patch_file: patches/0005-3.3-do-not-install-libraries-to-arch-dependent-directories.patch
  • base_path: source_subfolder
    patch_file: patches/0006-3.3-library-no-version-suffix.patch
    sources:
    '3.3':
    sha256: 72fba7922703ddfa7a028d513ac15a85c8d54c8d67f55fa5a4802885dc652056
    url: https://github.com/libffi/libffi/releases/download/v3.3/libffi-3.3.tar.gz

[HOOK - conan-center.py] post_export(): [CONANDATA.YML REDUCE (KB-H031)] OK
[HOOK - conan-center.py] post_export(): [DEFAULT SHARED OPTION VALUE (KB-H050)] OK
libffi/3.3: A new conanfile.py version was exported
libffi/3.3: Folder: /Users/irvinemac/.conan/data/libffi/3.3///export
libffi/3.3: Using the exported files summary hash as the recipe revision: 4d2ed83011dfea1cd17ca311ef50e346
libffi/3.3: Package recipe modified in export, forcing source folder removal
libffi/3.3: Use the --keep-source, -k option to skip it
libffi/3.3: Removing the local binary packages from different recipe revisions
libffi/3.3: Exported revision: 4d2ed83011dfea1cd17ca311ef50e346
Configuration:
[settings]
arch=armv8
arch_build=armv8
build_type=Release
compiler=apple-clang
compiler.libcxx=libc++
compiler.version=12.0
os=Macos
os_build=Macos
[options]
[build_requires]
[env]

libffi/3.3: WARN: The package libffi/3.3:8fafab5ebfba468fd21a497cfee65cafe294bd9e doesn't belong to the installed recipe revision, removing folder
libffi/3.3 (test package): Installing package
Requirements
libffi/3.3 from local cache - Cache
Packages
libffi/3.3:8fafab5ebfba468fd21a497cfee65cafe294bd9e - Build

Installing (downloading, building) binaries...
[HOOK - conan-center.py] pre_source(): [IMMUTABLE SOURCES (KB-H010)] OK
libffi/3.3: Configuring sources in /Users/irvinemac/.conan/data/libffi/3.3///source
Downloading libffi-3.3.tar.gz completed [1274.87k]

[HOOK - conan-center.py] post_source(): [LIBCXX MANAGEMENT (KB-H011)] OK
[HOOK - conan-center.py] post_source(): [CPPSTD MANAGEMENT (KB-H022)] OK
libffi/3.3: Copying sources to build folder
libffi/3.3: Building your package in /Users/irvinemac/.conan/data/libffi/3.3///build/8fafab5ebfba468fd21a497cfee65cafe294bd9e
libffi/3.3: Generator txt created conanbuildinfo.txt
[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
libffi/3.3: Calling build()
libffi/3.3: Calling:

source_subfolder/configure '--enable-debug=no' '--enable-shared=no' '--enable-static=yes' '--prefix=/Users/irvinemac/.conan/data/libffi/3.3///package/8fafab5ebfba468fd21a497cfee65cafe294bd9e' '--bindir=${prefix}/bin' '--sbindir=${prefix}/bin' '--libexecdir=${prefix}/bin' '--libdir=${prefix}/lib' '--includedir=${prefix}/include' '--oldincludedir=${prefix}/include' '--datarootdir=${prefix}/share'

----Running------

source_subfolder/configure '--enable-debug=no' '--enable-shared=no' '--enable-static=yes' '--prefix=/Users/irvinemac/.conan/data/libffi/3.3///package/8fafab5ebfba468fd21a497cfee65cafe294bd9e' '--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... arm-apple-darwin20.3.0
checking host system type... arm-apple-darwin20.3.0
checking target system type... arm-apple-darwin20.3.0
checking for gsed... /opt/homebrew/bin/gsed
checking for a BSD-compatible install... /opt/homebrew/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /opt/homebrew/bin/gmkdir -p
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 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... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking dependency style of gcc... gcc3
checking how to print strings... printf
checking for a sed that does not truncate output... /opt/homebrew/bin/gsed
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 gcc... /Library/Developer/CommandLineTools/usr/bin/ld
checking if the linker (/Library/Developer/CommandLineTools/usr/bin/ld) is GNU ld... no
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 whether ln -s works... yes
checking the maximum length of command line arguments... 786432
checking how to convert arm-apple-darwin20.3.0 file names to arm-apple-darwin20.3.0 format... func_convert_file_noop
checking how to convert arm-apple-darwin20.3.0 file names to toolchain format... func_convert_file_noop
checking for /Library/Developer/CommandLineTools/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 ar... ar
checking for archiver @file support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking for -force_load linker flag... yes
checking how to run the C preprocessor... gcc -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 gcc supports -fno-rtti -fno-exceptions... yes
checking for gcc option to produce PIC... -fno-common -DPIC
checking if gcc PIC flag -fno-common -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin20.3.0 dyld
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 how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /Library/Developer/CommandLineTools/usr/bin/ld
checking if the linker (/Library/Developer/CommandLineTools/usr/bin/ld) is GNU ld... no
checking whether the g++ linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fno-common -DPIC
checking if g++ PIC flag -fno-common -DPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin20.3.0 dyld
checking how to hardcode library paths into programs... immediate
checking size of size_t... 8
checking for C compiler vendor... clang
checking CFLAGS for maximum warnings... -Wall
checking whether to enable maintainer-specific portions of Makefiles... no
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking for mmap... yes
checking for mkostemp... yes
checking for sys/mman.h... (cached) yes
checking for mmap... (cached) yes
checking whether read-only mmap of a plain file works... yes
checking whether mmap from /dev/zero works... no
checking for MAP_ANON(YMOUS)... yes
checking whether mmap with MAP_ANON(YMOUS) works... yes
checking for ANSI C header files... (cached) yes
checking for memcpy... yes
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking size of double... 8
checking size of long double... 8
checking whether byte ordering is bigendian... no
checking assembler .cfi pseudo-op support... no
checking for _ prefix in compiled symbols... yes
checking whether .eh_frame section should be read-only... no
checking for attribute((visibility("hidden")))... yes
clang: error: unsupported option '-print-multi-os-directory'
clang: error: no input files
checking for ld used by gcc... (cached) /Library/Developer/CommandLineTools/usr/bin/ld
checking if the linker (/Library/Developer/CommandLineTools/usr/bin/ld) is GNU ld... (cached) no
configure: versioning on shared library symbols is no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating include/Makefile
config.status: creating include/ffi.h
config.status: creating Makefile
config.status: creating testsuite/Makefile
config.status: creating man/Makefile
config.status: creating doc/Makefile
config.status: creating libffi.pc
config.status: creating fficonfig.h
config.status: executing buildir commands
config.status: skipping top_srcdir/Makefile - not created
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing include commands
config.status: executing src commands

----Running------

make -j8


/Library/Developer/CommandLineTools/usr/bin/make all-recursive
Making all in include
make[2]: Nothing to be done for all'. Making all in testsuite make[2]: Nothing to be done for all'.
Making all in man
make[2]: Nothing to be done for all'. Making all in doc make[2]: Nothing to be done for all'.
depbase=echo src/arm/ffi.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||';
/bin/sh ./libtool.sh --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -Isource_subfolder -I. -Isource_subfolder/include -Iinclude -Isource_subfolder/src -DNDEBUG -DFFI_BUILDING -O3 -fPIC -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -arch arm64 -Wall -fexceptions -MT src/arm/ffi.lo -MD -MP -MF $depbase.Tpo -c -o src/arm/ffi.lo source_subfolder/src/arm/ffi.c &&
mv -f $depbase.Tpo $depbase.Plo
depbase=echo src/arm/sysv.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||';
/bin/sh ./libtool.sh --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -Isource_subfolder -I. -Isource_subfolder/include -Iinclude -Isource_subfolder/src -DNDEBUG -DFFI_BUILDING -I. -Isource_subfolder/include -Iinclude -Isource_subfolder/src -O3 -fPIC -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -arch arm64 -MT src/arm/sysv.lo -MD -MP -MF $depbase.Tpo -c -o src/arm/sysv.lo source_subfolder/src/arm/sysv.S &&
mv -f $depbase.Tpo $depbase.Plo
depbase=echo src/prep_cif.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||';
/bin/sh ./libtool.sh --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -Isource_subfolder -I. -Isource_subfolder/include -Iinclude -Isource_subfolder/src -DNDEBUG -DFFI_BUILDING -O3 -fPIC -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -arch arm64 -Wall -fexceptions -MT src/prep_cif.lo -MD -MP -MF $depbase.Tpo -c -o src/prep_cif.lo source_subfolder/src/prep_cif.c &&
mv -f $depbase.Tpo $depbase.Plo
depbase=echo src/types.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||';
/bin/sh ./libtool.sh --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -Isource_subfolder -I. -Isource_subfolder/include -Iinclude -Isource_subfolder/src -DNDEBUG -DFFI_BUILDING -O3 -fPIC -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -arch arm64 -Wall -fexceptions -MT src/types.lo -MD -MP -MF $depbase.Tpo -c -o src/types.lo source_subfolder/src/types.c &&
mv -f $depbase.Tpo $depbase.Plo
depbase=echo src/raw_api.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||';
/bin/sh ./libtool.sh --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -Isource_subfolder -I. -Isource_subfolder/include -Iinclude -Isource_subfolder/src -DNDEBUG -DFFI_BUILDING -O3 -fPIC -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -arch arm64 -Wall -fexceptions -MT src/raw_api.lo -MD -MP -MF $depbase.Tpo -c -o src/raw_api.lo source_subfolder/src/raw_api.c &&
mv -f $depbase.Tpo $depbase.Plo
depbase=echo src/java_raw_api.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||';
/bin/sh ./libtool.sh --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -Isource_subfolder -I. -Isource_subfolder/include -Iinclude -Isource_subfolder/src -DNDEBUG -DFFI_BUILDING -O3 -fPIC -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -arch arm64 -Wall -fexceptions -MT src/java_raw_api.lo -MD -MP -MF $depbase.Tpo -c -o src/java_raw_api.lo source_subfolder/src/java_raw_api.c &&
mv -f $depbase.Tpo $depbase.Plo
depbase=echo src/closures.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||';
/bin/sh ./libtool.sh --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -Isource_subfolder -I. -Isource_subfolder/include -Iinclude -Isource_subfolder/src -DNDEBUG -DFFI_BUILDING -O3 -fPIC -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -arch arm64 -Wall -fexceptions -MT src/closures.lo -MD -MP -MF $depbase.Tpo -c -o src/closures.lo source_subfolder/src/closures.c &&
mv -f $depbase.Tpo $depbase.Plo
libtool.sh: compile: gcc -DHAVE_CONFIG_H -I. -Isource_subfolder -I. -Isource_subfolder/include -Iinclude -Isource_subfolder/src -DNDEBUG -DFFI_BUILDING -O3 -fPIC -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -arch arm64 -Wall -fexceptions -MT src/types.lo -MD -MP -MF src/.deps/types.Tpo -c source_subfolder/src/types.c -o src/types.o
libtool.sh: compile: gcc -DHAVE_CONFIG_H -I. -Isource_subfolder -I. -Isource_subfolder/include -Iinclude -Isource_subfolder/src -DNDEBUG -DFFI_BUILDING -I. -Isource_subfolder/include -Iinclude -Isource_subfolder/src -O3 -fPIC -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -arch arm64 -MT src/arm/sysv.lo -MD -MP -MF src/arm/.deps/sysv.Tpo -c source_subfolder/src/arm/sysv.S -o src/arm/sysv.o
libtool.sh: compile: gcc -DHAVE_CONFIG_H -I. -Isource_subfolder -I. -Isource_subfolder/include -Iinclude -Isource_subfolder/src -DNDEBUG -DFFI_BUILDING -O3 -fPIC -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -arch arm64 -Wall -fexceptions -MT src/prep_cif.lo -MD -MP -MF src/.deps/prep_cif.Tpo -c source_subfolder/src/prep_cif.c -o src/prep_cif.o
libtool.sh: compile: gcc -DHAVE_CONFIG_H -I. -Isource_subfolder -I. -Isource_subfolder/include -Iinclude -Isource_subfolder/src -DNDEBUG -DFFI_BUILDING -O3 -fPIC -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -arch arm64 -Wall -fexceptions -MT src/arm/ffi.lo -MD -MP -MF src/arm/.deps/ffi.Tpo -c source_subfolder/src/arm/ffi.c -o src/arm/ffi.o
libtool.sh: compile: gcc -DHAVE_CONFIG_H -I. -Isource_subfolder -I. -Isource_subfolder/include -Iinclude -Isource_subfolder/src -DNDEBUG -DFFI_BUILDING -O3 -fPIC -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -arch arm64 -Wall -fexceptions -MT src/raw_api.lo -MD -MP -MF src/.deps/raw_api.Tpo -c source_subfolder/src/raw_api.c -o src/raw_api.o
libtool.sh: compile: gcc -DHAVE_CONFIG_H -I. -Isource_subfolder -I. -Isource_subfolder/include -Iinclude -Isource_subfolder/src -DNDEBUG -DFFI_BUILDING -O3 -fPIC -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -arch arm64 -Wall -fexceptions -MT src/java_raw_api.lo -MD -MP -MF src/.deps/java_raw_api.Tpo -c source_subfolder/src/java_raw_api.c -o src/java_raw_api.o
libtool.sh: compile: gcc -DHAVE_CONFIG_H -I. -Isource_subfolder -I. -Isource_subfolder/include -Iinclude -Isource_subfolder/src -DNDEBUG -DFFI_BUILDING -O3 -fPIC -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -arch arm64 -Wall -fexceptions -MT src/closures.lo -MD -MP -MF src/.deps/closures.Tpo -c source_subfolder/src/closures.c -o src/closures.o
source_subfolder/src/java_raw_api.c:328:46: warning: 'ffi_java_raw_size' is deprecated [-Wdeprecated-declarations]
ffi_java_raw raw = (ffi_java_raw)alloca (ffi_java_raw_size (cif));
^
include/ffi.h:299:56: note: 'ffi_java_raw_size' has been explicitly marked deprecated here
size_t ffi_java_raw_size (ffi_cif *cif) attribute((deprecated));
^
source_subfolder/src/java_raw_api.c:331:3: warning: 'ffi_java_ptrarray_to_raw' is deprecated [-Wdeprecated-declarations]
ffi_java_ptrarray_to_raw (cif, avalue, raw);
^
include/ffi.h:295:93: note: 'ffi_java_ptrarray_to_raw' has been explicitly marked deprecated here
void ffi_java_ptrarray_to_raw (ffi_cif *cif, void **args, ffi_java_raw *raw) attribute((deprecated));
^
2 warnings generated.
/bin/sh ./libtool.sh --tag=CC --mode=link gcc -O3 -fPIC -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -arch arm64 -Wall -fexceptions -o libffi_convenience.la src/prep_cif.lo src/types.lo src/raw_api.lo src/java_raw_api.lo src/closures.lo src/arm/ffi.lo src/arm/sysv.lo
/bin/sh ./libtool.sh --tag=CC --mode=link gcc -O3 -fPIC -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -arch arm64 -Wall -fexceptions -no-undefined -avoid-version -o libffi.la -rpath /Users/irvinemac/.conan/data/libffi/3.3///package/8fafab5ebfba468fd21a497cfee65cafe294bd9e/lib src/prep_cif.lo src/types.lo src/raw_api.lo src/java_raw_api.lo src/closures.lo src/arm/ffi.lo src/arm/sysv.lo
libtool.sh: link: ar cru .libs/libffi_convenience.a src/prep_cif.o src/types.o src/raw_api.o src/java_raw_api.o src/closures.o src/arm/ffi.o src/arm/sysv.o
libtool.sh: link: ar cru .libs/libffi.a src/prep_cif.o src/types.o src/raw_api.o src/java_raw_api.o src/closures.o src/arm/ffi.o src/arm/sysv.o
libtool.sh: link: ranlib .libs/libffi_convenience.a
libtool.sh: link: ranlib .libs/libffi.a
libtool.sh: link: ( cd ".libs" && rm -f "libffi_convenience.la" && ln -s "../libffi_convenience.la" "libffi_convenience.la" )
libtool.sh: link: ( cd ".libs" && rm -f "libffi.la" && ln -s "../libffi.la" "libffi.la" )
libffi/3.3: Package '8fafab5ebfba468fd21a497cfee65cafe294bd9e' built
libffi/3.3: Build folder /Users/irvinemac/.conan/data/libffi/3.3///build/8fafab5ebfba468fd21a497cfee65cafe294bd9e
libffi/3.3: Generated conaninfo.txt
libffi/3.3: Generated conanbuildinfo.txt
libffi/3.3: Generating the package
libffi/3.3: Package folder /Users/irvinemac/.conan/data/libffi/3.3///package/8fafab5ebfba468fd21a497cfee65cafe294bd9e
libffi/3.3: Calling package()

----Running------

make install -j8


Making install in include
make[2]: Nothing to be done for install-exec-am'. /opt/homebrew/bin/gmkdir -p '/Users/irvinemac/.conan/data/libffi/3.3/_/_/package/8fafab5ebfba468fd21a497cfee65cafe294bd9e/include' /opt/homebrew/bin/ginstall -c -m 644 ffi.h ffitarget.h '/Users/irvinemac/.conan/data/libffi/3.3/_/_/package/8fafab5ebfba468fd21a497cfee65cafe294bd9e/include' Making install in testsuite make[2]: Nothing to be done for install-exec-am'.
make[2]: Nothing to be done for install-data-am'. Making install in man make[2]: Nothing to be done for install-exec-am'.
/opt/homebrew/bin/gmkdir -p '/Users/irvinemac/.conan/data/libffi/3.3///package/8fafab5ebfba468fd21a497cfee65cafe294bd9e/share/man/man3'
/opt/homebrew/bin/ginstall -c -m 644 ../source_subfolder/man/ffi.3 ../source_subfolder/man/ffi_call.3 ../source_subfolder/man/ffi_prep_cif.3 ../source_subfolder/man/ffi_prep_cif_var.3 '/Users/irvinemac/.conan/data/libffi/3.3///package/8fafab5ebfba468fd21a497cfee65cafe294bd9e/share/man/man3'
Making install in doc
make[2]: Nothing to be done for `install-exec-am'.
/opt/homebrew/bin/gmkdir -p '/Users/irvinemac/.conan/data/libffi/3.3///package/8fafab5ebfba468fd21a497cfee65cafe294bd9e/share/info'
/opt/homebrew/bin/ginstall -c -m 644 ../source_subfolder/doc/libffi.info '/Users/irvinemac/.conan/data/libffi/3.3///package/8fafab5ebfba468fd21a497cfee65cafe294bd9e/share/info'
install-info --info-dir='/Users/irvinemac/.conan/data/libffi/3.3///package/8fafab5ebfba468fd21a497cfee65cafe294bd9e/share/info' '/Users/irvinemac/.conan/data/libffi/3.3///package/8fafab5ebfba468fd21a497cfee65cafe294bd9e/share/info/libffi.info'
/opt/homebrew/bin/gmkdir -p '/Users/irvinemac/.conan/data/libffi/3.3///package/8fafab5ebfba468fd21a497cfee65cafe294bd9e/lib'
/opt/homebrew/bin/gmkdir -p '/Users/irvinemac/.conan/data/libffi/3.3///package/8fafab5ebfba468fd21a497cfee65cafe294bd9e/lib/pkgconfig'
/bin/sh ./libtool.sh --mode=install /opt/homebrew/bin/ginstall -c libffi.la '/Users/irvinemac/.conan/data/libffi/3.3///package/8fafab5ebfba468fd21a497cfee65cafe294bd9e/lib'
/opt/homebrew/bin/ginstall -c -m 644 libffi.pc '/Users/irvinemac/.conan/data/libffi/3.3///package/8fafab5ebfba468fd21a497cfee65cafe294bd9e/lib/pkgconfig'
libtool.sh: install: /opt/homebrew/bin/ginstall -c .libs/libffi.lai /Users/irvinemac/.conan/data/libffi/3.3///package/8fafab5ebfba468fd21a497cfee65cafe294bd9e/lib/libffi.la
libtool.sh: install: /opt/homebrew/bin/ginstall -c .libs/libffi.a /Users/irvinemac/.conan/data/libffi/3.3///package/8fafab5ebfba468fd21a497cfee65cafe294bd9e/lib/libffi.a
libtool.sh: install: chmod 644 /Users/irvinemac/.conan/data/libffi/3.3///package/8fafab5ebfba468fd21a497cfee65cafe294bd9e/lib/libffi.a
libtool.sh: install: ranlib /Users/irvinemac/.conan/data/libffi/3.3///package/8fafab5ebfba468fd21a497cfee65cafe294bd9e/lib/libffi.a
[HOOK - conan-center.py] post_package(): [PACKAGE LICENSE (KB-H012)] OK
[HOOK - conan-center.py] post_package(): [DEFAULT PACKAGE LAYOUT (KB-H013)] OK
[HOOK - conan-center.py] post_package(): [MATCHING CONFIGURATION (KB-H014)] OK
[HOOK - conan-center.py] post_package(): [SHARED ARTIFACTS (KB-H015)] OK
[HOOK - conan-center.py] post_package(): [PC-FILES (KB-H020)] OK
[HOOK - conan-center.py] post_package(): [CMAKE-MODULES-CONFIG-FILES (KB-H016)] OK
[HOOK - conan-center.py] post_package(): [PDB FILES NOT ALLOWED (KB-H017)] OK
[HOOK - conan-center.py] post_package(): [LIBTOOL FILES PRESENCE (KB-H018)] OK
[HOOK - conan-center.py] post_package(): [MS RUNTIME FILES (KB-H021)] OK
libffi/3.3 package(): Packaged 1 file: LICENSE
libffi/3.3 package(): Packaged 2 '.h' files: ffitarget.h, ffi.h
libffi/3.3 package(): Packaged 1 '.a' file: libffi.a
libffi/3.3: Package '8fafab5ebfba468fd21a497cfee65cafe294bd9e' created
libffi/3.3: Created package revision 17f475031d3a7377291124d5692f9baf
[HOOK - conan-center.py] post_package_info(): [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] OK
[HOOK - conan-center.py] post_package_info(): [LIBRARY DOES NOT EXIST (KB-H054)] OK
libffi/3.3 (test package): Generator txt created conanbuildinfo.txt
libffi/3.3 (test package): Generator cmake created conanbuildinfo.cmake
libffi/3.3 (test package): Generated conaninfo.txt
libffi/3.3 (test package): Generated graphinfo
Using lockfile: '/Users/irvinemac/git/conan/conan-center-index/recipes/libffi/all/test_package/build/06788ff71b0efa6d28472f37ac096c14ff4f7493/conan.lock'
Using cached profile from lockfile
[HOOK - conan-center.py] pre_build(): [FPIC MANAGEMENT (KB-H007)] 'fPIC' option not found
[HOOK - conan-center.py] pre_build(): [FPIC MANAGEMENT (KB-H007)] OK
libffi/3.3 (test package): Calling build()

----Running------

cd '/Users/irvinemac/git/conan/conan-center-index/recipes/libffi/all/test_package/build/06788ff71b0efa6d28472f37ac096c14ff4f7493' && cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE="Release" -DCMAKE_OSX_ARCHITECTURES="arm64" -DCONAN_IN_LOCAL_CACHE="OFF" -DCONAN_COMPILER="apple-clang" -DCONAN_COMPILER_VERSION="12.0" -DCONAN_LIBCXX="libc++" -DCMAKE_INSTALL_PREFIX="/Users/irvinemac/git/conan/conan-center-index/recipes/libffi/all/test_package/build/06788ff71b0efa6d28472f37ac096c14ff4f7493/package" -DCMAKE_INSTALL_BINDIR="bin" -DCMAKE_INSTALL_SBINDIR="bin" -DCMAKE_INSTALL_LIBEXECDIR="bin" -DCMAKE_INSTALL_LIBDIR="lib" -DCMAKE_INSTALL_INCLUDEDIR="include" -DCMAKE_INSTALL_OLDINCLUDEDIR="include" -DCMAKE_INSTALL_DATAROOTDIR="share" -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY="ON" -DCONAN_EXPORTED="1" -Wno-dev '/Users/irvinemac/git/conan/conan-center-index/recipes/libffi/all/test_package'


-- The C compiler identification is AppleClang 12.0.0.12000032
-- The CXX compiler identification is AppleClang 12.0.0.12000032
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Conan: called by CMake conan helper
-- Conan: Adjusting output directories
-- Conan: Using cmake global configuration
-- Conan: Adjusting default RPATHs Conan policies
-- Conan: Adjusting language standard
-- Conan: C++ stdlib: libc++
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:

CMAKE_EXPORT_NO_PACKAGE_REGISTRY
CMAKE_INSTALL_BINDIR
CMAKE_INSTALL_DATAROOTDIR
CMAKE_INSTALL_INCLUDEDIR
CMAKE_INSTALL_LIBDIR
CMAKE_INSTALL_LIBEXECDIR
CMAKE_INSTALL_OLDINCLUDEDIR
CMAKE_INSTALL_SBINDIR

-- Build files have been written to: /Users/irvinemac/git/conan/conan-center-index/recipes/libffi/all/test_package/build/06788ff71b0efa6d28472f37ac096c14ff4f7493

----Running------

cmake --build '/Users/irvinemac/git/conan/conan-center-index/recipes/libffi/all/test_package/build/06788ff71b0efa6d28472f37ac096c14ff4f7493' '--' '-j8'


[ 50%] Building C object CMakeFiles/test_package.dir/test_package.c.o
[100%] Linking C executable bin/test_package
Undefined symbols for architecture arm64:
"_ffi_call", referenced from:
_main in test_package.c.o
"_ffi_prep_cif_machdep", referenced from:
_ffi_prep_cif_core in libffi.a(prep_cif.o)
"_ffi_prep_cif_machdep_var", referenced from:
_ffi_prep_cif_core in libffi.a(prep_cif.o)
"_ffi_prep_closure_loc", referenced from:
_ffi_prep_closure in libffi.a(prep_cif.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [bin/test_package] Error 1
make[1]: *** [CMakeFiles/test_package.dir/all] Error 2
make: *** [all] Error 2
ERROR: libffi/3.3 (test package): Error in build() method, line 12
cmake.build()
ConanException: Error 2 while executing cmake --build '/Users/irvinemac/git/conan/conan-center-index/recipes/libffi/all/test_package/build/06788ff71b0efa6d28472f37ac096c14ff4f7493' '--' '-j8'


After

checking build system type... aarch64-apple-darwin20.3.0
checking host system type... aarch64-apple-darwin20.3.0
checking target system type... aarch64-apple-darwin20.3.0
Build log, building libffi/3.3 from this branch

(py39)irvinemac@all (master=)$ conan create . libffi/3.3@ -b missing

[HOOK - conan-center.py] pre_export(): [DEPRECATED GLOBAL CPPSTD (KB-H001)] OK
[HOOK - conan-center.py] pre_export(): [REFERENCE LOWERCASE (KB-H002)] OK
[HOOK - conan-center.py] pre_export(): [RECIPE METADATA (KB-H003)] OK
[HOOK - conan-center.py] pre_export(): [HEADER_ONLY, NO COPY SOURCE (KB-H005)] OK
[HOOK - conan-center.py] pre_export(): [FPIC OPTION (KB-H006)] OK
[HOOK - conan-center.py] pre_export(): [VERSION RANGES (KB-H008)] OK
[HOOK - conan-center.py] pre_export(): [RECIPE FOLDER SIZE (KB-H009)] Total recipe size: 142.0517578125 KB
[HOOK - conan-center.py] pre_export(): [RECIPE FOLDER SIZE (KB-H009)] OK
[HOOK - conan-center.py] pre_export(): [EXPORT LICENSE (KB-H023)] exports: None
[HOOK - conan-center.py] pre_export(): [EXPORT LICENSE (KB-H023)] exports: patches/**
[HOOK - conan-center.py] pre_export(): [EXPORT LICENSE (KB-H023)] OK
[HOOK - conan-center.py] pre_export(): [TEST PACKAGE FOLDER (KB-H024)] OK
[HOOK - conan-center.py] pre_export(): [META LINES (KB-H025)] OK
[HOOK - conan-center.py] pre_export(): [CONAN CENTER INDEX URL (KB-H027)] OK
[HOOK - conan-center.py] pre_export(): [CMAKE MINIMUM VERSION (KB-H028)] OK
[HOOK - conan-center.py] pre_export(): [TEST PACKAGE - RUN ENVIRONMENT (KB-H029)] OK
[HOOK - conan-center.py] pre_export(): [SYSTEM REQUIREMENTS (KB-H032)] OK
[HOOK - conan-center.py] pre_export(): [CONANDATA.YML FORMAT (KB-H030)] OK
[HOOK - conan-center.py] pre_export(): [TEST PACKAGE - NO IMPORTS() (KB-H034)] OK
[HOOK - conan-center.py] pre_export(): [NO AUTHOR (KB-H037)] OK
[HOOK - conan-center.py] pre_export(): [NO TARGET NAME (KB-H040)] OK
[HOOK - conan-center.py] pre_export(): [NO FINAL ENDLINE (KB-H041)] OK
[HOOK - conan-center.py] pre_export(): [NO REQUIRES.ADD() (KB-H044)] OK
[HOOK - conan-center.py] pre_export(): [DELETE OPTIONS (KB-H045)] OK
[HOOK - conan-center.py] pre_export(): [NO ASCII CHARACTERS (KB-H047)] OK
[HOOK - conan-center.py] pre_export(): [CMAKE VERBOSE MAKEFILE (KB-H046)] OK
[HOOK - conan-center.py] pre_export(): [CMAKE VERSION REQUIRED (KB-H048)] OK
[HOOK - conan-center.py] pre_export(): [CMAKE WINDOWS EXPORT ALL SYMBOLS (KB-H049)] OK
[HOOK - conan-center.py] pre_export(): [DEFAULT OPTIONS AS DICTIONARY (KB-H051)] OK
[HOOK - conan-center.py] pre_export(): [CONFIG.YML HAS NEW VERSION (KB-H052)] OK
[HOOK - conan-center.py] pre_export(): [PRIVATE IMPORTS (KB-H053)] OK
[HOOK - conan-center.py] pre_export(): [SINGLE REQUIRES (KB-H055)] OK
Exporting package recipe
libffi/3.3 exports: File 'conandata.yml' found. Exporting it...
libffi/3.3 exports: Copied 1 '.yml' file: conandata.yml
libffi/3.3 exports_sources: Copied 11 '.patch' files
[HOOK - conan-center.py] post_export(): [CONANDATA.YML REDUCE (KB-H031)] Saving conandata.yml: {'sources': {'3.3': {'url': 'https://github.com/libffi/libffi/releases/download/v3.3/libffi-3.3.tar.gz', 'sha256': '72fba7922703ddfa7a028d513ac15a85c8d54c8d67f55fa5a4802885dc652056'}}, 'patches': {'3.3': [{'base_path': 'source_subfolder', 'patch_file': 'patches/0002-3.3-fix-libtool-path.patch'}, {'base_path': 'source_subfolder', 'patch_file': 'patches/0004-3.3-fix-complex-type-msvc.patch'}, {'base_path': 'source_subfolder', 'patch_file': 'patches/0005-3.3-do-not-install-libraries-to-arch-dependent-directories.patch'}, {'base_path': 'source_subfolder', 'patch_file': 'patches/0006-3.3-library-no-version-suffix.patch'}, {'base_path': 'source_subfolder', 'patch_file': 'patches/0007-3.3-autotools-config-aarch64.patch'}]}}
[HOOK - conan-center.py] post_export(): [CONANDATA.YML REDUCE (KB-H031)] New conandata.yml contents: patches:
'3.3':

  • base_path: source_subfolder
    patch_file: patches/0002-3.3-fix-libtool-path.patch
  • base_path: source_subfolder
    patch_file: patches/0004-3.3-fix-complex-type-msvc.patch
  • base_path: source_subfolder
    patch_file: patches/0005-3.3-do-not-install-libraries-to-arch-dependent-directories.patch
  • base_path: source_subfolder
    patch_file: patches/0006-3.3-library-no-version-suffix.patch
  • base_path: source_subfolder
    patch_file: patches/0007-3.3-autotools-config-aarch64.patch
    sources:
    '3.3':
    sha256: 72fba7922703ddfa7a028d513ac15a85c8d54c8d67f55fa5a4802885dc652056
    url: https://github.com/libffi/libffi/releases/download/v3.3/libffi-3.3.tar.gz

[HOOK - conan-center.py] post_export(): [CONANDATA.YML REDUCE (KB-H031)] OK
[HOOK - conan-center.py] post_export(): [DEFAULT SHARED OPTION VALUE (KB-H050)] OK
libffi/3.3: A new conanfile.py version was exported
libffi/3.3: Folder: /Users/irvinemac/.conan/data/libffi/3.3///export
libffi/3.3: Using the exported files summary hash as the recipe revision: 124ae667a694e62b735bdb6aa78e03cc
libffi/3.3: Exported revision: 124ae667a694e62b735bdb6aa78e03cc
Configuration:
[settings]
arch=armv8
arch_build=armv8
build_type=Release
compiler=apple-clang
compiler.libcxx=libc++
compiler.version=12.0
os=Macos
os_build=Macos
[options]
[build_requires]
[env]

libffi/3.3 (test package): Installing package
Requirements
libffi/3.3 from local cache - Cache
Packages
libffi/3.3:8fafab5ebfba468fd21a497cfee65cafe294bd9e - Build

Installing (downloading, building) binaries...
[HOOK - conan-center.py] pre_source(): [IMMUTABLE SOURCES (KB-H010)] OK
libffi/3.3: Configuring sources in /Users/irvinemac/.conan/data/libffi/3.3///source
Downloading libffi-3.3.tar.gz completed [1274.87k]

[HOOK - conan-center.py] post_source(): [LIBCXX MANAGEMENT (KB-H011)] OK
[HOOK - conan-center.py] post_source(): [CPPSTD MANAGEMENT (KB-H022)] OK
libffi/3.3: Copying sources to build folder
libffi/3.3: Building your package in /Users/irvinemac/.conan/data/libffi/3.3///build/8fafab5ebfba468fd21a497cfee65cafe294bd9e
libffi/3.3: Generator txt created conanbuildinfo.txt
[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
libffi/3.3: Calling build()
libffi/3.3: Calling:

source_subfolder/configure '--enable-debug=no' '--enable-shared=no' '--enable-static=yes' '--prefix=/Users/irvinemac/.conan/data/libffi/3.3///package/8fafab5ebfba468fd21a497cfee65cafe294bd9e' '--bindir=${prefix}/bin' '--sbindir=${prefix}/bin' '--libexecdir=${prefix}/bin' '--libdir=${prefix}/lib' '--includedir=${prefix}/include' '--oldincludedir=${prefix}/include' '--datarootdir=${prefix}/share'

----Running------

source_subfolder/configure '--enable-debug=no' '--enable-shared=no' '--enable-static=yes' '--prefix=/Users/irvinemac/.conan/data/libffi/3.3///package/8fafab5ebfba468fd21a497cfee65cafe294bd9e' '--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... aarch64-apple-darwin20.3.0
checking host system type... aarch64-apple-darwin20.3.0
checking target system type... aarch64-apple-darwin20.3.0
checking for gsed... /opt/homebrew/bin/gsed
checking for a BSD-compatible install... /opt/homebrew/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /opt/homebrew/bin/gmkdir -p
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 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... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking dependency style of gcc... gcc3
checking how to print strings... printf
checking for a sed that does not truncate output... /opt/homebrew/bin/gsed
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 gcc... /Library/Developer/CommandLineTools/usr/bin/ld
checking if the linker (/Library/Developer/CommandLineTools/usr/bin/ld) is GNU ld... no
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 whether ln -s works... yes
checking the maximum length of command line arguments... 786432
checking how to convert aarch64-apple-darwin20.3.0 file names to aarch64-apple-darwin20.3.0 format... func_convert_file_noop
checking how to convert aarch64-apple-darwin20.3.0 file names to toolchain format... func_convert_file_noop
checking for /Library/Developer/CommandLineTools/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 ar... ar
checking for archiver @file support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking for -force_load linker flag... yes
checking how to run the C preprocessor... gcc -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 gcc supports -fno-rtti -fno-exceptions... yes
checking for gcc option to produce PIC... -fno-common -DPIC
checking if gcc PIC flag -fno-common -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin20.3.0 dyld
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 how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /Library/Developer/CommandLineTools/usr/bin/ld
checking if the linker (/Library/Developer/CommandLineTools/usr/bin/ld) is GNU ld... no
checking whether the g++ linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fno-common -DPIC
checking if g++ PIC flag -fno-common -DPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin20.3.0 dyld
checking how to hardcode library paths into programs... immediate
checking size of size_t... 8
checking for C compiler vendor... clang
checking CFLAGS for maximum warnings... -Wall
checking whether to enable maintainer-specific portions of Makefiles... no
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking for mmap... yes
checking for mkostemp... yes
checking for sys/mman.h... (cached) yes
checking for mmap... (cached) yes
checking whether read-only mmap of a plain file works... yes
checking whether mmap from /dev/zero works... no
checking for MAP_ANON(YMOUS)... yes
checking whether mmap with MAP_ANON(YMOUS) works... yes
checking for ANSI C header files... (cached) yes
checking for memcpy... yes
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking size of double... 8
checking size of long double... 8
checking whether byte ordering is bigendian... no
checking assembler .cfi pseudo-op support... no
checking for _ prefix in compiled symbols... yes
checking whether .eh_frame section should be read-only... no
checking for attribute((visibility("hidden")))... yes
clang: error: unsupported option '-print-multi-os-directory'
clang: error: no input files
checking for ld used by gcc... (cached) /Library/Developer/CommandLineTools/usr/bin/ld
checking if the linker (/Library/Developer/CommandLineTools/usr/bin/ld) is GNU ld... (cached) no
configure: versioning on shared library symbols is no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating include/Makefile
config.status: creating include/ffi.h
config.status: creating Makefile
config.status: creating testsuite/Makefile
config.status: creating man/Makefile
config.status: creating doc/Makefile
config.status: creating libffi.pc
config.status: creating fficonfig.h
config.status: executing buildir commands
config.status: skipping top_srcdir/Makefile - not created
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing include commands
config.status: executing src commands

----Running------

make -j8


/Library/Developer/CommandLineTools/usr/bin/make all-recursive
Making all in include
make[2]: Nothing to be done for all'. Making all in testsuite make[2]: Nothing to be done for all'.
Making all in man
make[2]: Nothing to be done for all'. Making all in doc make[2]: Nothing to be done for all'.
depbase=echo src/aarch64/ffi.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||';
/bin/sh ./libtool.sh --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -Isource_subfolder -I. -Isource_subfolder/include -Iinclude -Isource_subfolder/src -DNDEBUG -DFFI_BUILDING -O3 -fPIC -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -arch arm64 -Wall -fexceptions -MT src/aarch64/ffi.lo -MD -MP -MF $depbase.Tpo -c -o src/aarch64/ffi.lo source_subfolder/src/aarch64/ffi.c &&
mv -f $depbase.Tpo $depbase.Plo
depbase=echo src/aarch64/sysv.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||';
/bin/sh ./libtool.sh --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -Isource_subfolder -I. -Isource_subfolder/include -Iinclude -Isource_subfolder/src -DNDEBUG -DFFI_BUILDING -I. -Isource_subfolder/include -Iinclude -Isource_subfolder/src -O3 -fPIC -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -arch arm64 -MT src/aarch64/sysv.lo -MD -MP -MF $depbase.Tpo -c -o src/aarch64/sysv.lo source_subfolder/src/aarch64/sysv.S &&
mv -f $depbase.Tpo $depbase.Plo
depbase=echo src/prep_cif.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||';
/bin/sh ./libtool.sh --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -Isource_subfolder -I. -Isource_subfolder/include -Iinclude -Isource_subfolder/src -DNDEBUG -DFFI_BUILDING -O3 -fPIC -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -arch arm64 -Wall -fexceptions -MT src/prep_cif.lo -MD -MP -MF $depbase.Tpo -c -o src/prep_cif.lo source_subfolder/src/prep_cif.c &&
mv -f $depbase.Tpo $depbase.Plo
depbase=echo src/types.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||';
/bin/sh ./libtool.sh --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -Isource_subfolder -I. -Isource_subfolder/include -Iinclude -Isource_subfolder/src -DNDEBUG -DFFI_BUILDING -O3 -fPIC -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -arch arm64 -Wall -fexceptions -MT src/types.lo -MD -MP -MF $depbase.Tpo -c -o src/types.lo source_subfolder/src/types.c &&
mv -f $depbase.Tpo $depbase.Plo
depbase=echo src/raw_api.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||';
/bin/sh ./libtool.sh --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -Isource_subfolder -I. -Isource_subfolder/include -Iinclude -Isource_subfolder/src -DNDEBUG -DFFI_BUILDING -O3 -fPIC -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -arch arm64 -Wall -fexceptions -MT src/raw_api.lo -MD -MP -MF $depbase.Tpo -c -o src/raw_api.lo source_subfolder/src/raw_api.c &&
mv -f $depbase.Tpo $depbase.Plo
depbase=echo src/java_raw_api.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||';
/bin/sh ./libtool.sh --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -Isource_subfolder -I. -Isource_subfolder/include -Iinclude -Isource_subfolder/src -DNDEBUG -DFFI_BUILDING -O3 -fPIC -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -arch arm64 -Wall -fexceptions -MT src/java_raw_api.lo -MD -MP -MF $depbase.Tpo -c -o src/java_raw_api.lo source_subfolder/src/java_raw_api.c &&
mv -f $depbase.Tpo $depbase.Plo
depbase=echo src/closures.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||';
/bin/sh ./libtool.sh --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -Isource_subfolder -I. -Isource_subfolder/include -Iinclude -Isource_subfolder/src -DNDEBUG -DFFI_BUILDING -O3 -fPIC -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -arch arm64 -Wall -fexceptions -MT src/closures.lo -MD -MP -MF $depbase.Tpo -c -o src/closures.lo source_subfolder/src/closures.c &&
mv -f $depbase.Tpo $depbase.Plo
libtool.sh: compile: gcc -DHAVE_CONFIG_H -I. -Isource_subfolder -I. -Isource_subfolder/include -Iinclude -Isource_subfolder/src -DNDEBUG -DFFI_BUILDING -O3 -fPIC -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -arch arm64 -Wall -fexceptions -MT src/types.lo -MD -MP -MF src/.deps/types.Tpo -c source_subfolder/src/types.c -o src/types.o
libtool.sh: compile: gcc -DHAVE_CONFIG_H -I. -Isource_subfolder -I. -Isource_subfolder/include -Iinclude -Isource_subfolder/src -DNDEBUG -DFFI_BUILDING -O3 -fPIC -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -arch arm64 -Wall -fexceptions -MT src/prep_cif.lo -MD -MP -MF src/.deps/prep_cif.Tpo -c source_subfolder/src/prep_cif.c -o src/prep_cif.o
libtool.sh: compile: gcc -DHAVE_CONFIG_H -I. -Isource_subfolder -I. -Isource_subfolder/include -Iinclude -Isource_subfolder/src -DNDEBUG -DFFI_BUILDING -O3 -fPIC -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -arch arm64 -Wall -fexceptions -MT src/java_raw_api.lo -MD -MP -MF src/.deps/java_raw_api.Tpo -c source_subfolder/src/java_raw_api.c -o src/java_raw_api.o
libtool.sh: compile: gcc -DHAVE_CONFIG_H -I. -Isource_subfolder -I. -Isource_subfolder/include -Iinclude -Isource_subfolder/src -DNDEBUG -DFFI_BUILDING -O3 -fPIC -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -arch arm64 -Wall -fexceptions -MT src/raw_api.lo -MD -MP -MF src/.deps/raw_api.Tpo -c source_subfolder/src/raw_api.c -o src/raw_api.o
libtool.sh: compile: gcc -DHAVE_CONFIG_H -I. -Isource_subfolder -I. -Isource_subfolder/include -Iinclude -Isource_subfolder/src -DNDEBUG -DFFI_BUILDING -I. -Isource_subfolder/include -Iinclude -Isource_subfolder/src -O3 -fPIC -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -arch arm64 -MT src/aarch64/sysv.lo -MD -MP -MF src/aarch64/.deps/sysv.Tpo -c source_subfolder/src/aarch64/sysv.S -o src/aarch64/sysv.o
libtool.sh: compile: gcc -DHAVE_CONFIG_H -I. -Isource_subfolder -I. -Isource_subfolder/include -Iinclude -Isource_subfolder/src -DNDEBUG -DFFI_BUILDING -O3 -fPIC -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -arch arm64 -Wall -fexceptions -MT src/aarch64/ffi.lo -MD -MP -MF src/aarch64/.deps/ffi.Tpo -c source_subfolder/src/aarch64/ffi.c -o src/aarch64/ffi.o
libtool.sh: compile: gcc -DHAVE_CONFIG_H -I. -Isource_subfolder -I. -Isource_subfolder/include -Iinclude -Isource_subfolder/src -DNDEBUG -DFFI_BUILDING -O3 -fPIC -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -arch arm64 -Wall -fexceptions -MT src/closures.lo -MD -MP -MF src/.deps/closures.Tpo -c source_subfolder/src/closures.c -o src/closures.o
source_subfolder/src/java_raw_api.c:328:46: warning: 'ffi_java_raw_size' is deprecated [-Wdeprecated-declarations]
ffi_java_raw raw = (ffi_java_raw)alloca (ffi_java_raw_size (cif));
^
include/ffi.h:299:56: note: 'ffi_java_raw_size' has been explicitly marked deprecated here
size_t ffi_java_raw_size (ffi_cif *cif) attribute((deprecated));
^
source_subfolder/src/java_raw_api.c:331:3: warning: 'ffi_java_ptrarray_to_raw' is deprecated [-Wdeprecated-declarations]
ffi_java_ptrarray_to_raw (cif, avalue, raw);
^
include/ffi.h:295:93: note: 'ffi_java_ptrarray_to_raw' has been explicitly marked deprecated here
void ffi_java_ptrarray_to_raw (ffi_cif *cif, void **args, ffi_java_raw *raw) attribute((deprecated));
^
2 warnings generated.
/bin/sh ./libtool.sh --tag=CC --mode=link gcc -O3 -fPIC -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -arch arm64 -Wall -fexceptions -o libffi_convenience.la src/prep_cif.lo src/types.lo src/raw_api.lo src/java_raw_api.lo src/closures.lo src/aarch64/ffi.lo src/aarch64/sysv.lo
/bin/sh ./libtool.sh --tag=CC --mode=link gcc -O3 -fPIC -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -arch arm64 -Wall -fexceptions -no-undefined -avoid-version -o libffi.la -rpath /Users/irvinemac/.conan/data/libffi/3.3///package/8fafab5ebfba468fd21a497cfee65cafe294bd9e/lib src/prep_cif.lo src/types.lo src/raw_api.lo src/java_raw_api.lo src/closures.lo src/aarch64/ffi.lo src/aarch64/sysv.lo
libtool.sh: link: ar cru .libs/libffi_convenience.a src/prep_cif.o src/types.o src/raw_api.o src/java_raw_api.o src/closures.o src/aarch64/ffi.o src/aarch64/sysv.o
libtool.sh: link: ar cru .libs/libffi.a src/prep_cif.o src/types.o src/raw_api.o src/java_raw_api.o src/closures.o src/aarch64/ffi.o src/aarch64/sysv.o
libtool.sh: link: ranlib .libs/libffi_convenience.a
libtool.sh: link: ranlib .libs/libffi.a
libtool.sh: link: ( cd ".libs" && rm -f "libffi_convenience.la" && ln -s "../libffi_convenience.la" "libffi_convenience.la" )
libtool.sh: link: ( cd ".libs" && rm -f "libffi.la" && ln -s "../libffi.la" "libffi.la" )
libffi/3.3: Package '8fafab5ebfba468fd21a497cfee65cafe294bd9e' built
libffi/3.3: Build folder /Users/irvinemac/.conan/data/libffi/3.3///build/8fafab5ebfba468fd21a497cfee65cafe294bd9e
libffi/3.3: Generated conaninfo.txt
libffi/3.3: Generated conanbuildinfo.txt
libffi/3.3: Generating the package
libffi/3.3: Package folder /Users/irvinemac/.conan/data/libffi/3.3///package/8fafab5ebfba468fd21a497cfee65cafe294bd9e
libffi/3.3: Calling package()

----Running------

make install -j8


Making install in include
make[2]: Nothing to be done for install-exec-am'. /opt/homebrew/bin/gmkdir -p '/Users/irvinemac/.conan/data/libffi/3.3/_/_/package/8fafab5ebfba468fd21a497cfee65cafe294bd9e/include' /opt/homebrew/bin/ginstall -c -m 644 ffi.h ffitarget.h '/Users/irvinemac/.conan/data/libffi/3.3/_/_/package/8fafab5ebfba468fd21a497cfee65cafe294bd9e/include' Making install in testsuite make[2]: Nothing to be done for install-exec-am'.
make[2]: Nothing to be done for install-data-am'. Making install in man make[2]: Nothing to be done for install-exec-am'.
/opt/homebrew/bin/gmkdir -p '/Users/irvinemac/.conan/data/libffi/3.3///package/8fafab5ebfba468fd21a497cfee65cafe294bd9e/share/man/man3'
/opt/homebrew/bin/ginstall -c -m 644 ../source_subfolder/man/ffi.3 ../source_subfolder/man/ffi_call.3 ../source_subfolder/man/ffi_prep_cif.3 ../source_subfolder/man/ffi_prep_cif_var.3 '/Users/irvinemac/.conan/data/libffi/3.3///package/8fafab5ebfba468fd21a497cfee65cafe294bd9e/share/man/man3'
Making install in doc
make[2]: Nothing to be done for `install-exec-am'.
/opt/homebrew/bin/gmkdir -p '/Users/irvinemac/.conan/data/libffi/3.3///package/8fafab5ebfba468fd21a497cfee65cafe294bd9e/share/info'
/opt/homebrew/bin/ginstall -c -m 644 ../source_subfolder/doc/libffi.info '/Users/irvinemac/.conan/data/libffi/3.3///package/8fafab5ebfba468fd21a497cfee65cafe294bd9e/share/info'
install-info --info-dir='/Users/irvinemac/.conan/data/libffi/3.3///package/8fafab5ebfba468fd21a497cfee65cafe294bd9e/share/info' '/Users/irvinemac/.conan/data/libffi/3.3///package/8fafab5ebfba468fd21a497cfee65cafe294bd9e/share/info/libffi.info'
/opt/homebrew/bin/gmkdir -p '/Users/irvinemac/.conan/data/libffi/3.3///package/8fafab5ebfba468fd21a497cfee65cafe294bd9e/lib'
/opt/homebrew/bin/gmkdir -p '/Users/irvinemac/.conan/data/libffi/3.3///package/8fafab5ebfba468fd21a497cfee65cafe294bd9e/lib/pkgconfig'
/bin/sh ./libtool.sh --mode=install /opt/homebrew/bin/ginstall -c libffi.la '/Users/irvinemac/.conan/data/libffi/3.3///package/8fafab5ebfba468fd21a497cfee65cafe294bd9e/lib'
/opt/homebrew/bin/ginstall -c -m 644 libffi.pc '/Users/irvinemac/.conan/data/libffi/3.3///package/8fafab5ebfba468fd21a497cfee65cafe294bd9e/lib/pkgconfig'
libtool.sh: install: /opt/homebrew/bin/ginstall -c .libs/libffi.lai /Users/irvinemac/.conan/data/libffi/3.3///package/8fafab5ebfba468fd21a497cfee65cafe294bd9e/lib/libffi.la
libtool.sh: install: /opt/homebrew/bin/ginstall -c .libs/libffi.a /Users/irvinemac/.conan/data/libffi/3.3///package/8fafab5ebfba468fd21a497cfee65cafe294bd9e/lib/libffi.a
libtool.sh: install: chmod 644 /Users/irvinemac/.conan/data/libffi/3.3///package/8fafab5ebfba468fd21a497cfee65cafe294bd9e/lib/libffi.a
libtool.sh: install: ranlib /Users/irvinemac/.conan/data/libffi/3.3///package/8fafab5ebfba468fd21a497cfee65cafe294bd9e/lib/libffi.a
[HOOK - conan-center.py] post_package(): [PACKAGE LICENSE (KB-H012)] OK
[HOOK - conan-center.py] post_package(): [DEFAULT PACKAGE LAYOUT (KB-H013)] OK
[HOOK - conan-center.py] post_package(): [MATCHING CONFIGURATION (KB-H014)] OK
[HOOK - conan-center.py] post_package(): [SHARED ARTIFACTS (KB-H015)] OK
[HOOK - conan-center.py] post_package(): [PC-FILES (KB-H020)] OK
[HOOK - conan-center.py] post_package(): [CMAKE-MODULES-CONFIG-FILES (KB-H016)] OK
[HOOK - conan-center.py] post_package(): [PDB FILES NOT ALLOWED (KB-H017)] OK
[HOOK - conan-center.py] post_package(): [LIBTOOL FILES PRESENCE (KB-H018)] OK
[HOOK - conan-center.py] post_package(): [MS RUNTIME FILES (KB-H021)] OK
libffi/3.3 package(): Packaged 1 file: LICENSE
libffi/3.3 package(): Packaged 2 '.h' files: ffitarget.h, ffi.h
libffi/3.3 package(): Packaged 1 '.a' file: libffi.a
libffi/3.3: Package '8fafab5ebfba468fd21a497cfee65cafe294bd9e' created
libffi/3.3: Created package revision fc2d8bc536d3778ef690d141123efe1e
[HOOK - conan-center.py] post_package_info(): [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] OK
[HOOK - conan-center.py] post_package_info(): [LIBRARY DOES NOT EXIST (KB-H054)] OK
libffi/3.3 (test package): Generator cmake created conanbuildinfo.cmake
libffi/3.3 (test package): Generator txt created conanbuildinfo.txt
libffi/3.3 (test package): Generated conaninfo.txt
libffi/3.3 (test package): Generated graphinfo
Using lockfile: '/Users/irvinemac/git/conan/conan-center-index/recipes/libffi/all/test_package/build/06788ff71b0efa6d28472f37ac096c14ff4f7493/conan.lock'
Using cached profile from lockfile
[HOOK - conan-center.py] pre_build(): [FPIC MANAGEMENT (KB-H007)] 'fPIC' option not found
[HOOK - conan-center.py] pre_build(): [FPIC MANAGEMENT (KB-H007)] OK
libffi/3.3 (test package): Calling build()

----Running------

cd '/Users/irvinemac/git/conan/conan-center-index/recipes/libffi/all/test_package/build/06788ff71b0efa6d28472f37ac096c14ff4f7493' && cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE="Release" -DCMAKE_OSX_ARCHITECTURES="arm64" -DCONAN_IN_LOCAL_CACHE="OFF" -DCONAN_COMPILER="apple-clang" -DCONAN_COMPILER_VERSION="12.0" -DCONAN_LIBCXX="libc++" -DCMAKE_INSTALL_PREFIX="/Users/irvinemac/git/conan/conan-center-index/recipes/libffi/all/test_package/build/06788ff71b0efa6d28472f37ac096c14ff4f7493/package" -DCMAKE_INSTALL_BINDIR="bin" -DCMAKE_INSTALL_SBINDIR="bin" -DCMAKE_INSTALL_LIBEXECDIR="bin" -DCMAKE_INSTALL_LIBDIR="lib" -DCMAKE_INSTALL_INCLUDEDIR="include" -DCMAKE_INSTALL_OLDINCLUDEDIR="include" -DCMAKE_INSTALL_DATAROOTDIR="share" -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY="ON" -DCONAN_EXPORTED="1" -Wno-dev '/Users/irvinemac/git/conan/conan-center-index/recipes/libffi/all/test_package'


-- The C compiler identification is AppleClang 12.0.0.12000032
-- The CXX compiler identification is AppleClang 12.0.0.12000032
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Conan: called by CMake conan helper
-- Conan: Adjusting output directories
-- Conan: Using cmake global configuration
-- Conan: Adjusting default RPATHs Conan policies
-- Conan: Adjusting language standard
-- Conan: C++ stdlib: libc++
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:

CMAKE_EXPORT_NO_PACKAGE_REGISTRY
CMAKE_INSTALL_BINDIR
CMAKE_INSTALL_DATAROOTDIR
CMAKE_INSTALL_INCLUDEDIR
CMAKE_INSTALL_LIBDIR
CMAKE_INSTALL_LIBEXECDIR
CMAKE_INSTALL_OLDINCLUDEDIR
CMAKE_INSTALL_SBINDIR

-- Build files have been written to: /Users/irvinemac/git/conan/conan-center-index/recipes/libffi/all/test_package/build/06788ff71b0efa6d28472f37ac096c14ff4f7493

----Running------

cmake --build '/Users/irvinemac/git/conan/conan-center-index/recipes/libffi/all/test_package/build/06788ff71b0efa6d28472f37ac096c14ff4f7493' '--' '-j8'


[ 50%] Building C object CMakeFiles/test_package.dir/test_package.c.o
[100%] Linking C executable bin/test_package
[100%] Built target test_package
libffi/3.3 (test package): Running test()

----Running------

DYLD_LIBRARY_PATH="/Users/irvinemac/.conan/data/libffi/3.3///package/8fafab5ebfba468fd21a497cfee65cafe294bd9e/lib" DYLD_FRAMEWORK_PATH="" bin/test_package


print_int(13)
ffi_call returns 39 (should be 39)

@conan-center-bot

This comment has been minimized.

@SpaceIm
Copy link
Contributor

SpaceIm commented Mar 29, 2021

Could you cleanup this patch? Almost 5000 lines 🤯 How can we review?

Is it not possible to patch configure.ac instead and call autoconf?

@jmarrec
Copy link
Contributor Author

jmarrec commented Mar 29, 2021

I pulled the latest of these two files from current libffi master is all. As you can see, this PR is also huge: libffi/libffi#576

curl -L -O https://github.com/libffi/libffi/releases/download/v3.3/libffi-3.3.tar.gz
tar xfz https://github.com/libffi/libffi/releases/download/v3.3/libffi-3.3.tar.gz
cd libffi-3.3
git init
git add *
git commit -m "Init"
curl -L -O  https://raw.githubusercontent.com/libffi/libffi/v3.3/config.guess
curl -L -O  https://raw.githubusercontent.com/libffi/libffi/v3.3/config.sub
git diff > 0007-3.3-autotools-config-aarch64.patch

@ericLemanissier
Copy link
Contributor

Is it an error that you mention zlib in the PR title and description ?

@jmarrec jmarrec changed the title [zlib/3.2.1] / [zlib/3.3]Make a patch for 3.2.1 and 3.3 to pull the latest config.guess/config.sub to support aarch64 (M1 macs) [libffi/3.2.1] / [libffi/3.3]Make a patch for 3.2.1 and 3.3 to pull the latest config.guess/config.sub to support aarch64 (M1 macs) Mar 29, 2021
@jmarrec
Copy link
Contributor Author

jmarrec commented Mar 29, 2021

@ericLemanissier Sorry, I must have been distracted. I retitled with libffi

@SSE4 SSE4 requested a review from uilianries March 29, 2021 16:52
@conan-center-bot

This comment has been minimized.

@SpaceIm
Copy link
Contributor

SpaceIm commented Mar 29, 2021

Is it not possible to patch configure.ac instead and call autoconf?

@prince-chrismc
Copy link
Contributor

What about a virtual release? is that possible?

@madebr
Copy link
Contributor

madebr commented Mar 30, 2021

conan-center-index has gnu-config that provides config.guess/configu.sub.
Would that one work?

@SSE4
Copy link
Contributor

SSE4 commented Mar 30, 2021

conan-center-index has gnu-config that provides config.guess/configu.sub.
Would that one work?

it should work, as long as gnu-config provided by CCI has the commit needed

@SSE4
Copy link
Contributor

SSE4 commented Mar 30, 2021

What about a virtual release? is that possible?

if you mean do an unofficial .cci release for post 3.3 commit, it's possible

@SSE4
Copy link
Contributor

SSE4 commented Mar 30, 2021

Is it not possible to patch configure.ac instead and call autoconf?

configure.ac doesn't matter, changes are in config.sub/config.guess files

@prince-chrismc
Copy link
Contributor

if you mean do an unofficial .cci release for post 3.3 commit, it's possible

Yeah, there's 82 commits since the last release mostly CI changes... might be worth doing a cci.20210325 or other way around to provide this new feature...

Personally, the patch is just way too big and I am not familiar enough to review but hopefully the other ideas pan out

@madebr
Copy link
Contributor

madebr commented Apr 6, 2021

@jmarrec
Can you try with gnu-config?
You need to apply the following changes to libffi:

  1. add gnu-config/cci.20201022 to the build requirements
  2. in build(), copy config.guess+config.sub from gnu-config's bin folder to the source_subfolder folder of libffi.
    See
    bin_path = os.path.join(self.package_folder, "bin")
    self.output.info("Appending PATH environment variable: {}".format(bin_path))
    self.env_info.PATH.append(bin_path)
    self.user_info.CONFIG_GUESS = os.path.join(bin_path, "config.guess")
    self.user_info.CONFIG_SUB = os.path.join(bin_path, "config.sub")
    for their location.

If the gnu-config version is too old, please bump gnu-config to the latest: https://git.savannah.gnu.org/cgit/config.git

@stale
Copy link

stale bot commented May 6, 2021

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label May 6, 2021
@conan-center-bot conan-center-bot requested a review from SSE4 May 10, 2021 12:00
@stale stale bot removed the stale label May 10, 2021
@jmarrec jmarrec force-pushed the zlib_autotools_m1 branch from 6bf631a to 37f4878 Compare May 12, 2021 11:45
@jmarrec
Copy link
Contributor Author

jmarrec commented May 12, 2021

@madebr Sorry, I've been swamped and It fell down in my list of recent notifications. I'm trying it out now

@SSE4 SSE4 reopened this May 12, 2021
@conan-center-bot

This comment has been minimized.

@madebr
Copy link
Contributor

madebr commented May 12, 2021

Ok I tested that getting gnuconfig actually works on mac M1, thanks @madebr. The tripplet is properly found:

checking build system type... aarch64-apple-darwin20.3.0
checking host system type... aarch64-apple-darwin20.3.0
checking target system type... aarch64-apple-darwin20.3.0

Build log

Super to hear this!
Your changes look good!
If only c3i agrees.. 🤣

@madebr
Copy link
Contributor

madebr commented May 12, 2021

Googling forAssertionError: PREV for in this repo gives me a few hits:
https://github.com/conan-io/conan-center-index/search?q=AssertionError%3A+PREV+for&type=issues

@jgsogo @danimtb
Do you know what's going on?

@jgsogo
Copy link
Contributor

jgsogo commented May 13, 2021

Googling forAssertionError: PREV for in this repo gives me a few hits:
https://github.com/conan-io/conan-center-index/search?q=AssertionError%3A+PREV+for&type=issues

@jgsogo @danimtb
Do you know what's going on?

It was something we were trying to reproduce in CCI (it happened before) to confirm our hypothesis: conan-io/conan#8519 (comment)

@jgsogo
Copy link
Contributor

jgsogo commented May 13, 2021

Ok I tested that getting gnuconfig actually works on mac M1, thanks @madebr. The tripplet is properly found:

checking build system type... aarch64-apple-darwin20.3.0
checking host system type... aarch64-apple-darwin20.3.0
checking target system type... aarch64-apple-darwin20.3.0

Build log

Super to hear this!
Your changes look good!
If only c3i agrees.. 🤣

ping @SSE4 , he will be glad to hear everything related to M1.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@SSE4
Copy link
Contributor

SSE4 commented May 13, 2021

ping @SSE4 , he will be glad to hear everything related to M1.

yes, I am already aware about this fix :)

@conan-center-bot
Copy link
Collaborator

All green in build 12 (3f3ea2f2d2253eb4a2654f699a61b69982d4f5de):

  • libffi/3.2.1@:
    All packages built successfully! (All logs)

  • libffi/3.3@:
    All packages built successfully! (All logs)

@SSE4 SSE4 requested a review from uilianries May 13, 2021 10:58
@conan-center-bot conan-center-bot merged commit 68c338e into conan-io:master May 13, 2021
@jmarrec jmarrec deleted the zlib_autotools_m1 branch May 17, 2021 07:27
@PengZheng
Copy link
Contributor

@memsharded @jmarrec @danimtb This commit breaks cross-compilation, user_info_build should be used instead of deps_user_info according to Documentation

@jgsogo
Copy link
Contributor

jgsogo commented May 25, 2021

This commit breaks cross-compilation, user_info_build should be used instead of deps_user_info according to Documentation

@PengZheng , yes, that approach would be more aligned with current Conan releases regarding two-profile approach. You can open the PR yourself. Thanks for noticing.

@PengZheng PengZheng mentioned this pull request May 30, 2021
4 tasks
@PengZheng
Copy link
Contributor

@jgsogo #5696 opened as you suggested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

autotools builds not working on apple silicon native