Opened 2 years ago

Closed 2 years ago

#65310 closed defect (fixed)

libdeflate @1.11: error: use of undeclared identifier 'NGROUPS_MAX'

Reported by: TrantorLix Owned by: dankamongmen (nick black)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: herbygillot (Herby Gillot), ryandesign (Ryan Carsten Schmidt), TrantorLix
Port: libdeflate

Description (last modified by TrantorLix)

Tried today on M1 macbook pro. I installed macports today and xcode too, so latest version. All dependencies for aesprite installed fine until I got to libdeflate. I tried "sudo port install libdeflate" alone and got following error:

% sudo port install libdeflate
--->  Fetching archive for libdeflate
--->  Attempting to fetch libdeflate-1.11_0.darwin_21.arm64.tbz2 from https://packages.macports.org/libdeflate
--->  Attempting to fetch libdeflate-1.11_0.darwin_21.arm64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/libdeflate
--->  Attempting to fetch libdeflate-1.11_0.darwin_21.arm64.tbz2 from https://mse.uk.packages.macports.org/libdeflate
--->  Building libdeflate
Error: Failed to build libdeflate: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there
is a bug.
Error: Processing of port libdeflate failed 

Checking the main.log in case that is useful sees the following:

:error:build Failed to build libdeflate: command execution failed
:debug:build Error code: CHILDSTATUS 22523 2
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec -callback portprogress::target_progress_callback build"
:debug:build     (procedure "portbuild::build_main" line 8)
:debug:build     invoked from within
:debug:build "$procedure $targetname"
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/main.log for details. 

Change History (12)

comment:1 Changed 2 years ago by TrantorLix

Description: modified (diff)

comment:2 in reply to:  description Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: herbygillot ryandesign added
Keywords: aesprite libdeflate error dependency removed
Owner: set to nickblack@…
Priority: HighNormal
Status: newassigned

Replying to TrantorLix:

Checking the main.log in case that is useful sees the following:

The relevant error will be before the lines you pasted, so please attach the complete main.log file.

comment:3 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: libdeflate fails (while installing aseprite dependencies)libdeflate @1.11: error: use of undeclared identifier 'NGROUPS_MAX'

Since you are on an Apple Silicon Mac, I suspect you are seeing the same problem we see on our Apple Silicon build machine:

In file included from lib/arm/cpu_features.c:130:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/sysctl.h:83:
/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/ucred.h:104:20: error: use of undeclared identifier 'NGROUPS_MAX'
        gid_t   cr_groups[NGROUPS];     /* advisory group list */
                          ^
/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/param.h:100:25: note: expanded from macro 'NGROUPS'
#define NGROUPS         NGROUPS_MAX     /* max number groups */
                        ^

comment:4 Changed 2 years ago by TrantorLix

Summary: libdeflate @1.11: error: use of undeclared identifier 'NGROUPS_MAX'libdeflate fails (while installing aseprite dependencies)

Sorry, it's pretty long so didn't know what was needed.

 cat main.log          
version:1
:debug:clean Starting logging for libdeflate @1.11_0
:debug:sysinfo macOS 12.4 (darwin/21.5.0) arch arm
:debug:sysinfo MacPorts 2.7.2
:debug:sysinfo Xcode 13.4.1
:debug:sysinfo SDK 12
:debug:sysinfo MACOSX_DEPLOYMENT_TARGET: 12.0
:debug:clean Attempting ln -sf /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/archivers/libdeflate/work
:debug:clean dropping privileges: euid changed to 502, egid changed to 501.
:debug:main Executing org.macports.main (libdeflate)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:archivefetch archivefetch phase started at Wed Jun  8 15:50:34 -03 2022
:msg:archivefetch --->  Fetching archive for libdeflate
:debug:archivefetch Executing org.macports.archivefetch (libdeflate)
:debug:archivefetch euid/egid changed to: 0/0
:debug:archivefetch chowned /opt/local/var/macports/incoming to macports
:debug:archivefetch euid/egid changed to: 502/501
:info:archivefetch --->  libdeflate-1.11_0.darwin_21.arm64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified
:msg:archivefetch --->  Attempting to fetch libdeflate-1.11_0.darwin_21.arm64.tbz2 from https://packages.macports.org/libdeflate
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404
:msg:archivefetch --->  Attempting to fetch libdeflate-1.11_0.darwin_21.arm64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/libdeflate
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404
:msg:archivefetch --->  Attempting to fetch libdeflate-1.11_0.darwin_21.arm64.tbz2 from https://mse.uk.packages.macports.org/libdeflate
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:fetch fetch phase started at Wed Jun  8 15:50:36 -03 2022
:notice:fetch --->  Fetching distfiles for libdeflate
:debug:fetch elevating privileges for fetch: euid changed to 0, egid changed to 0.
:debug:fetch dropping privileges: euid changed to 502, egid changed to 501.
:debug:fetch Executing org.macports.fetch (libdeflate)
:info:fetch --->  libdeflate-1.11.tar.gz does not exist in /opt/local/var/macports/distfiles/libdeflate
:notice:fetch --->  Attempting to fetch libdeflate-1.11.tar.gz from https://distfiles.macports.org/libdeflate
:debug:fetch Privilege de-escalation not attempted as not running as root.
:debug:checksum checksum phase started at Wed Jun  8 15:50:42 -03 2022
:notice:checksum --->  Verifying checksums for libdeflate
:debug:checksum Executing org.macports.checksum (libdeflate)
:info:checksum --->  Checksumming libdeflate-1.11.tar.gz
:debug:checksum Calculated (rmd160) is 3ae8d37ad00edb959ee44de7c6d23ec667022b87
:debug:checksum Correct (rmd160) checksum for libdeflate-1.11.tar.gz
:debug:checksum Calculated (sha256) is c72f691293f41c6aee66d44ca2dcd24092161b312a1c4c3d591d5d25f26b1faf
:debug:checksum Correct (sha256) checksum for libdeflate-1.11.tar.gz
:debug:checksum Calculated (size) is 162862
:debug:checksum Correct (size) checksum for libdeflate-1.11.tar.gz
:debug:checksum Privilege de-escalation not attempted as not running as root.
:debug:extract extract phase started at Wed Jun  8 15:50:42 -03 2022
:notice:extract --->  Extracting libdeflate
:debug:extract Executing org.macports.extract (libdeflate)
:info:extract --->  Extracting libdeflate-1.11.tar.gz
:debug:extract setting option extract.args to '/opt/local/var/macports/distfiles/libdeflate/libdeflate-1.11.tar.gz'
:debug:extract Environment: 
:debug:extract CC_PRINT_OPTIONS='YES'
:debug:extract CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/.CC_PRINT_OPTIONS'
:debug:extract CPATH='/opt/local/include'
:debug:extract DEVELOPER_DIR='/Library/Developer/CommandLineTools'
:debug:extract LIBRARY_PATH='/opt/local/lib'
:debug:extract MACOSX_DEPLOYMENT_TARGET='12.0'
:debug:extract SDKROOT='/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk'
:info:extract Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/libdeflate/libdeflate-1.11.tar.gz' | /usr/bin/tar -xf - 
:debug:extract system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/libdeflate/libdeflate-1.11.tar.gz' | /usr/bin/tar -xf - 
:debug:extract euid/egid changed to: 0/0
:debug:extract chowned /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work to macports
:debug:extract euid/egid changed to: 502/501
:debug:extract Executing proc-post-org.macports.extract-extract-0
:info:extract xinstall: mkdir /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap
:info:extract xinstall: mkdir /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/cc
:info:extract xinstall: mkdir /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/cc/usr
:info:extract xinstall: mkdir /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/cc/usr/bin
:debug:extract compiler_wrapper: Creating /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/cc/usr/bin/clang
:debug:extract compiler_wrapper:  -> Will embed legacysupport flags in cc wrapper script
:info:extract xinstall: mkdir /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/objc
:info:extract xinstall: mkdir /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/objc/usr
:info:extract xinstall: mkdir /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/objc/usr/bin
:debug:extract compiler_wrapper: Creating /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/objc/usr/bin/clang
:debug:extract compiler_wrapper:  -> Will embed legacysupport flags in objc wrapper script
:info:extract xinstall: mkdir /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/cxx
:info:extract xinstall: mkdir /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/cxx/usr
:info:extract xinstall: mkdir /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/cxx/usr/bin
:debug:extract compiler_wrapper: Creating /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/cxx/usr/bin/clang++
:debug:extract compiler_wrapper:  -> Will embed legacysupport flags in cxx wrapper script
:info:extract xinstall: mkdir /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/objcxx
:info:extract xinstall: mkdir /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/objcxx/usr
:info:extract xinstall: mkdir /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/objcxx/usr/bin
:debug:extract compiler_wrapper: Creating /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/objcxx/usr/bin/clang++
:debug:extract compiler_wrapper:  -> Will embed legacysupport flags in objcxx wrapper script
:debug:extract Executing proc-post-org.macports.extract-extract-1
:debug:extract Privilege de-escalation not attempted as not running as root.
:debug:patch patch phase started at Wed Jun  8 15:50:42 -03 2022
:debug:patch Executing org.macports.patch (libdeflate)
:debug:patch Privilege de-escalation not attempted as not running as root.
:debug:configure configure phase started at Wed Jun  8 15:50:42 -03 2022
:notice:configure --->  Configuring libdeflate
:debug:configure Preferred compilers: clang macports-clang-14 macports-clang-13 macports-clang-12 macports-clang-11
:debug:configure Using compiler 'Xcode Clang'
:debug:configure Executing org.macports.configure (libdeflate)
:debug:configure Executing portconfigure::configure_finish
:debug:configure Privilege de-escalation not attempted as not running as root.
:debug:build build phase started at Wed Jun  8 15:50:42 -03 2022
:notice:build --->  Building libdeflate
:debug:build Executing proc-pre-org.macports.build-build-0
:debug:build Executing org.macports.build (libdeflate)
:debug:build Environment: 
:debug:build CC='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/cc/usr/bin/clang'
:debug:build CC_PRINT_OPTIONS='YES'
:debug:build CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/.CC_PRINT_OPTIONS'
:debug:build CFLAGS='-Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -arch arm64'
:debug:build CPATH='/opt/local/include'
:debug:build CPPFLAGS='-I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk'
:debug:build CXX='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/cxx/usr/bin/clang++'
:debug:build CXXFLAGS='-Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -arch arm64 -stdlib=libc++'
:debug:build DEVELOPER_DIR='/Library/Developer/CommandLineTools'
:debug:build F90FLAGS='-Os -m64'
:debug:build FCFLAGS='-Os -m64'
:debug:build FFLAGS='-Os -m64'
:debug:build INSTALL='/usr/bin/install -c'
:debug:build LDFLAGS='-L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -arch arm64'
:debug:build LIBRARY_PATH='/opt/local/lib'
:debug:build MACOSX_DEPLOYMENT_TARGET='12.0'
:debug:build OBJC='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/objc/usr/bin/clang'
:debug:build OBJCFLAGS='-Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -arch arm64'
:debug:build OBJCXX='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/objcxx/usr/bin/clang++'
:debug:build OBJCXXFLAGS='-Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -arch arm64 -stdlib=libc++'
:debug:build PREFIX='/opt/local'
:debug:build SDKROOT='/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk'
:info:build Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/libdeflate-1.11" && /usr/bin/make -j8 -w all CC="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/cc/usr/bin/clang" CXX="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/cxx/usr/bin/clang++" OBJC="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/objc/usr/bin/clang" OBJCXX="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/objcxx/usr/bin/clang++" INSTALL="/usr/bin/install -c" 
:debug:build system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/libdeflate-1.11" && /usr/bin/make -j8 -w all CC="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/cc/usr/bin/clang" CXX="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/cxx/usr/bin/clang++" OBJC="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/objc/usr/bin/clang" OBJCXX="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/objcxx/usr/bin/clang++" INSTALL="/usr/bin/install -c" 
:info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/libdeflate-1.11'
:info:build   CC       lib/x86/cpu_features.o
:info:build   CC       lib/deflate_decompress.o
:info:build   CC       lib/adler32.o
:info:build   CC       lib/deflate_compress.o
:info:build   CC       lib/zlib_compress.o
:info:build   CC       lib/utils.o
:info:build   CC       lib/arm/cpu_features.o
:info:build   CC       lib/zlib_decompress.o
:info:build   CC       lib/crc32.o
:info:build In file included from lib/arm/cpu_features.c:130:
:info:build In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/sysctl.h:83:
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/ucred.h:104:20: error: use of undeclared identifier 'NGROUPS_MAX'
:info:build         gid_t   cr_groups[NGROUPS];     /* advisory group list */
:info:build                           ^
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/param.h:100:25: note: expanded from macro 'NGROUPS'
:info:build #define NGROUPS         NGROUPS_MAX     /* max number groups */
:info:build                         ^
:info:build In file included from lib/arm/cpu_features.c:130:
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/sysctl.h:463:20: error: use of undeclared identifier 'NGROUPS_MAX'
:info:build         gid_t   cr_groups[NGROUPS];     /* groups */
:info:build                           ^
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/param.h:100:25: note: expanded from macro 'NGROUPS'
:info:build #define NGROUPS         NGROUPS_MAX     /* max number groups */
:info:build                         ^
:info:build 2 errors generated.
:info:build make: *** [lib/arm/cpu_features.o] Error 1
:info:build make: *** Waiting for unfinished jobs....
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/libdeflate-1.11'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/libdeflate-1.11" && /usr/bin/make -j8 -w all CC="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/cc/usr/bin/clang" CXX="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/cxx/usr/bin/clang++" OBJC="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/objc/usr/bin/clang" OBJCXX="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/objcxx/usr/bin/clang++" INSTALL="/usr/bin/install -c" 
:info:build Exit code: 2
:error:build Failed to build libdeflate: command execution failed
:debug:build Error code: CHILDSTATUS 22196 2
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec -callback portprogress::target_progress_callback build"
:debug:build     (procedure "portbuild::build_main" line 8)
:debug:build     invoked from within
:debug:build "$procedure $targetname"
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/main.log for details.
version:1
:debug:main Starting logging for libdeflate @1.11_0
:debug:sysinfo macOS 12.4 (darwin/21.5.0) arch arm
:debug:sysinfo MacPorts 2.7.2
:debug:sysinfo Xcode 13.4.1
:debug:sysinfo SDK 12
:debug:sysinfo MACOSX_DEPLOYMENT_TARGET: 12.0
:debug:main dropping privileges: euid changed to 502, egid changed to 501.
:debug:main Executing org.macports.main (libdeflate)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:archivefetch archivefetch phase started at Wed Jun  8 15:51:59 -03 2022
:msg:archivefetch --->  Fetching archive for libdeflate
:debug:archivefetch Executing org.macports.archivefetch (libdeflate)
:debug:archivefetch euid/egid changed to: 0/0
:debug:archivefetch chowned /opt/local/var/macports/incoming to macports
:debug:archivefetch euid/egid changed to: 502/501
:info:archivefetch --->  libdeflate-1.11_0.darwin_21.arm64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified
:msg:archivefetch --->  Attempting to fetch libdeflate-1.11_0.darwin_21.arm64.tbz2 from https://packages.macports.org/libdeflate
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404
:msg:archivefetch --->  Attempting to fetch libdeflate-1.11_0.darwin_21.arm64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/libdeflate
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404
:msg:archivefetch --->  Attempting to fetch libdeflate-1.11_0.darwin_21.arm64.tbz2 from https://mse.uk.packages.macports.org/libdeflate
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:archivefetch Skipping completed org.macports.fetch (libdeflate)
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:archivefetch Skipping completed org.macports.checksum (libdeflate)
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:archivefetch Skipping completed org.macports.extract (libdeflate)
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:archivefetch Skipping completed org.macports.patch (libdeflate)
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:archivefetch Skipping completed org.macports.configure (libdeflate)
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:build build phase started at Wed Jun  8 15:52:01 -03 2022
:notice:build --->  Building libdeflate
:debug:build Executing proc-pre-org.macports.build-build-0
:debug:build Executing org.macports.build (libdeflate)
:debug:build Environment: 
:debug:build CC='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/cc/usr/bin/clang'
:debug:build CC_PRINT_OPTIONS='YES'
:debug:build CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/.CC_PRINT_OPTIONS'
:debug:build CFLAGS='-Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -arch arm64'
:debug:build CPATH='/opt/local/include'
:debug:build CPPFLAGS='-I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk'
:debug:build CXX='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/cxx/usr/bin/clang++'
:debug:build CXXFLAGS='-Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -arch arm64 -stdlib=libc++'
:debug:build DEVELOPER_DIR='/Library/Developer/CommandLineTools'
:debug:build F90FLAGS='-Os -m64'
:debug:build FCFLAGS='-Os -m64'
:debug:build FFLAGS='-Os -m64'
:debug:build INSTALL='/usr/bin/install -c'
:debug:build LDFLAGS='-L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -arch arm64'
:debug:build LIBRARY_PATH='/opt/local/lib'
:debug:build MACOSX_DEPLOYMENT_TARGET='12.0'
:debug:build OBJC='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/objc/usr/bin/clang'
:debug:build OBJCFLAGS='-Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -arch arm64'
:debug:build OBJCXX='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/objcxx/usr/bin/clang++'
:debug:build OBJCXXFLAGS='-Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -arch arm64 -stdlib=libc++'
:debug:build PREFIX='/opt/local'
:debug:build SDKROOT='/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk'
:info:build Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/libdeflate-1.11" && /usr/bin/make -j8 -w all CC="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/cc/usr/bin/clang" CXX="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/cxx/usr/bin/clang++" OBJC="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/objc/usr/bin/clang" OBJCXX="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/objcxx/usr/bin/clang++" INSTALL="/usr/bin/install -c" 
:debug:build system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/libdeflate-1.11" && /usr/bin/make -j8 -w all CC="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/cc/usr/bin/clang" CXX="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/cxx/usr/bin/clang++" OBJC="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/objc/usr/bin/clang" OBJCXX="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/objcxx/usr/bin/clang++" INSTALL="/usr/bin/install -c" 
:info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/libdeflate-1.11'
:info:build   CC       lib/arm/cpu_features.o
:info:build   CC       lib/gzip_compress.o
:info:build   CC       lib/deflate_decompress.shlib.o
:info:build   CC       lib/gzip_decompress.o
:info:build   CC       lib/arm/cpu_features.shlib.o
:info:build   CC       lib/deflate_compress.shlib.o
:info:build   CC       lib/utils.shlib.o
:info:build   CC       lib/x86/cpu_features.shlib.o
:info:build In file included from lib/arm/cpu_features.c:130:
:info:build In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/sysctl.h:83:
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/ucred.h:104:20: error: use of undeclared identifier 'NGROUPS_MAX'
:info:build         gid_t   cr_groups[NGROUPS];     /* advisory group list */
:info:build                           ^
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/param.h:100:25: note: expanded from macro 'NGROUPS'
:info:build #define NGROUPS         NGROUPS_MAX     /* max number groups */
:info:build                         ^
:info:build In file included from lib/arm/cpu_features.c:130:
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/sysctl.h:463:20: error: use of undeclared identifier 'NGROUPS_MAX'
:info:build         gid_t   cr_groups[NGROUPS];     /* groups */
:info:build                           ^
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/param.h:100:25: note: expanded from macro 'NGROUPS'
:info:build #define NGROUPS         NGROUPS_MAX     /* max number groups */
:info:build                         ^
:info:build In file included from lib/arm/cpu_features.c:130:
:info:build In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/sysctl.h:83:
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/ucred.h:104:20: error: use of undeclared identifier 'NGROUPS_MAX'
:info:build         gid_t   cr_groups[NGROUPS];     /* advisory group list */
:info:build                           ^
:info:build 2 errors generated.
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/param.h:100:25: note: expanded from macro 'NGROUPS'
:info:build #define NGROUPS         NGROUPS_MAX     /* max number groups */
:info:build                         ^
:info:build make: *** [lib/arm/cpu_features.shlib.o] Error 1
:info:build make: *** Waiting for unfinished jobs....
:info:build In file included from lib/arm/cpu_features.c:130:
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/sysctl.h:463:20: error: use of undeclared identifier 'NGROUPS_MAX'
:info:build         gid_t   cr_groups[NGROUPS];     /* groups */
:info:build                           ^
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/param.h:100:25: note: expanded from macro 'NGROUPS'
:info:build #define NGROUPS         NGROUPS_MAX     /* max number groups */
:info:build                         ^
:info:build 2 errors generated.
:info:build make: *** [lib/arm/cpu_features.o] Error 1
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/libdeflate-1.11'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/libdeflate-1.11" && /usr/bin/make -j8 -w all CC="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/cc/usr/bin/clang" CXX="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/cxx/usr/bin/clang++" OBJC="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/objc/usr/bin/clang" OBJCXX="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/objcxx/usr/bin/clang++" INSTALL="/usr/bin/install -c" 
:info:build Exit code: 2
:error:build Failed to build libdeflate: command execution failed
:debug:build Error code: CHILDSTATUS 22265 2
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec -callback portprogress::target_progress_callback build"
:debug:build     (procedure "portbuild::build_main" line 8)
:debug:build     invoked from within
:debug:build "$procedure $targetname"
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/main.log for details.
version:1
:debug:main Starting logging for libdeflate @1.11_0
:debug:sysinfo macOS 12.4 (darwin/21.5.0) arch arm
:debug:sysinfo MacPorts 2.7.2
:debug:sysinfo Xcode 13.4.1
:debug:sysinfo SDK 12
:debug:sysinfo MACOSX_DEPLOYMENT_TARGET: 12.0
:debug:main dropping privileges: euid changed to 502, egid changed to 501.
:debug:main Executing org.macports.main (libdeflate)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:archivefetch archivefetch phase started at Wed Jun  8 15:55:46 -03 2022
:msg:archivefetch --->  Fetching archive for libdeflate
:debug:archivefetch Executing org.macports.archivefetch (libdeflate)
:debug:archivefetch euid/egid changed to: 0/0
:debug:archivefetch chowned /opt/local/var/macports/incoming to macports
:debug:archivefetch euid/egid changed to: 502/501
:info:archivefetch --->  libdeflate-1.11_0.darwin_21.arm64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified
:msg:archivefetch --->  Attempting to fetch libdeflate-1.11_0.darwin_21.arm64.tbz2 from https://packages.macports.org/libdeflate
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404
:msg:archivefetch --->  Attempting to fetch libdeflate-1.11_0.darwin_21.arm64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/libdeflate
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404
:msg:archivefetch --->  Attempting to fetch libdeflate-1.11_0.darwin_21.arm64.tbz2 from https://mse.uk.packages.macports.org/libdeflate
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:archivefetch Skipping completed org.macports.fetch (libdeflate)
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:archivefetch Skipping completed org.macports.checksum (libdeflate)
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:archivefetch Skipping completed org.macports.extract (libdeflate)
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:archivefetch Skipping completed org.macports.patch (libdeflate)
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:archivefetch Skipping completed org.macports.configure (libdeflate)
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:build build phase started at Wed Jun  8 15:55:48 -03 2022
:notice:build --->  Building libdeflate
:debug:build Executing proc-pre-org.macports.build-build-0
:debug:build Executing org.macports.build (libdeflate)
:debug:build Environment: 
:debug:build CC='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/cc/usr/bin/clang'
:debug:build CC_PRINT_OPTIONS='YES'
:debug:build CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/.CC_PRINT_OPTIONS'
:debug:build CFLAGS='-Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -arch arm64'
:debug:build CPATH='/opt/local/include'
:debug:build CPPFLAGS='-I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk'
:debug:build CXX='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/cxx/usr/bin/clang++'
:debug:build CXXFLAGS='-Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -arch arm64 -stdlib=libc++'
:debug:build DEVELOPER_DIR='/Library/Developer/CommandLineTools'
:debug:build F90FLAGS='-Os -m64'
:debug:build FCFLAGS='-Os -m64'
:debug:build FFLAGS='-Os -m64'
:debug:build INSTALL='/usr/bin/install -c'
:debug:build LDFLAGS='-L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -arch arm64'
:debug:build LIBRARY_PATH='/opt/local/lib'
:debug:build MACOSX_DEPLOYMENT_TARGET='12.0'
:debug:build OBJC='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/objc/usr/bin/clang'
:debug:build OBJCFLAGS='-Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -arch arm64'
:debug:build OBJCXX='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/objcxx/usr/bin/clang++'
:debug:build OBJCXXFLAGS='-Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -arch arm64 -stdlib=libc++'
:debug:build PREFIX='/opt/local'
:debug:build SDKROOT='/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk'
:info:build Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/libdeflate-1.11" && /usr/bin/make -j8 -w all CC="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/cc/usr/bin/clang" CXX="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/cxx/usr/bin/clang++" OBJC="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/objc/usr/bin/clang" OBJCXX="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/objcxx/usr/bin/clang++" INSTALL="/usr/bin/install -c" 
:debug:build system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/libdeflate-1.11" && /usr/bin/make -j8 -w all CC="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/cc/usr/bin/clang" CXX="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/cxx/usr/bin/clang++" OBJC="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/objc/usr/bin/clang" OBJCXX="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/objcxx/usr/bin/clang++" INSTALL="/usr/bin/install -c" 
:info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/libdeflate-1.11'
:info:build   CC       lib/arm/cpu_features.o
:info:build   CC       lib/arm/cpu_features.shlib.o
:info:build   CC       lib/adler32.shlib.o
:info:build   CC       lib/crc32.shlib.o
:info:build   CC       lib/gzip_decompress.shlib.o
:info:build   CC       lib/zlib_decompress.shlib.o
:info:build   CC       lib/gzip_compress.shlib.o
:info:build   CC       lib/zlib_compress.shlib.o
:info:build In file included from lib/arm/cpu_features.c:130:
:info:build In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/sysctl.h:83:
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/ucred.h:104:20: error: use of undeclared identifier 'NGROUPS_MAX'
:info:build         gid_t   cr_groups[NGROUPS];     /* advisory group list */
:info:build                           ^
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/param.h:100:25: note: expanded from macro 'NGROUPS'
:info:build In file included from lib/arm/cpu_features.c:130:
:info:build In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/sysctl.h:83#define NGROUPS         NGROUPS_MAX     /* max number groups */:
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/ucred.h                        ^:
:info:build 104:20: error: use of undeclared identifier 'NGROUPS_MAX'
:info:build         gid_t   cr_groups[NGROUPS];     /* advisory group list */
:info:build                           ^
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/param.h:100:25: note: expanded from macro 'NGROUPS'
:info:build #define NGROUPS         NGROUPS_MAX     /* max number groups */
:info:build                         ^
:info:build In file included from lib/arm/cpu_features.c:130:
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/sysctl.h:463:20: error: use of undeclared identifier 'NGROUPS_MAX'
:info:build         gid_t   cr_groups[NGROUPS];     /* groups */
:info:build                           ^
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/param.h:100:25: note: expanded from macro 'NGROUPS'
:info:build #define NGROUPS         NGROUPS_MAX     /* max number groups */
:info:build                         ^
:info:build In file included from lib/arm/cpu_features.c:130:
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/sysctl.h:463:20: error: use of undeclared identifier 'NGROUPS_MAX'
:info:build         gid_t   cr_groups[NGROUPS];     /* groups */
:info:build                           ^
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/param.h:100:25: note: expanded from macro 'NGROUPS'
:info:build #define NGROUPS         NGROUPS_MAX     /* max number groups */
:info:build                         ^
:info:build 2 errors generated.
:info:build 2 errors generated.
:info:build make: *** [lib/arm/cpu_features.o] Error 1
:info:build make: *** Waiting for unfinished jobs....
:info:build make: *** [lib/arm/cpu_features.shlib.o] Error 1
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/libdeflate-1.11'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/libdeflate-1.11" && /usr/bin/make -j8 -w all CC="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/cc/usr/bin/clang" CXX="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/cxx/usr/bin/clang++" OBJC="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/objc/usr/bin/clang" OBJCXX="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/objcxx/usr/bin/clang++" INSTALL="/usr/bin/install -c" 
:info:build Exit code: 2
:error:build Failed to build libdeflate: command execution failed
:debug:build Error code: CHILDSTATUS 22342 2
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec -callback portprogress::target_progress_callback build"
:debug:build     (procedure "portbuild::build_main" line 8)
:debug:build     invoked from within
:debug:build "$procedure $targetname"
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/main.log for details.
version:1
:debug:main Starting logging for libdeflate @1.11_0
:debug:sysinfo macOS 12.4 (darwin/21.5.0) arch arm
:debug:sysinfo MacPorts 2.7.2
:debug:sysinfo Xcode 13.4.1
:debug:sysinfo SDK 12
:debug:sysinfo MACOSX_DEPLOYMENT_TARGET: 12.0
:debug:main libdeflate has no conflicts
:debug:main Executing org.macports.main (libdeflate)
:debug:main dropping privileges: euid changed to 502, egid changed to 501.
:debug:archivefetch archivefetch phase started at Wed Jun  8 15:56:29 -03 2022
:msg:archivefetch --->  Fetching archive for libdeflate
:debug:archivefetch Executing org.macports.archivefetch (libdeflate)
:debug:archivefetch euid/egid changed to: 0/0
:debug:archivefetch chowned /opt/local/var/macports/incoming to macports
:debug:archivefetch euid/egid changed to: 502/501
:info:archivefetch --->  libdeflate-1.11_0.darwin_21.arm64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified
:msg:archivefetch --->  Attempting to fetch libdeflate-1.11_0.darwin_21.arm64.tbz2 from https://packages.macports.org/libdeflate
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404
:msg:archivefetch --->  Attempting to fetch libdeflate-1.11_0.darwin_21.arm64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/libdeflate
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404
:msg:archivefetch --->  Attempting to fetch libdeflate-1.11_0.darwin_21.arm64.tbz2 from https://mse.uk.packages.macports.org/libdeflate
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:archivefetch Skipping completed org.macports.fetch (libdeflate)
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:archivefetch Skipping completed org.macports.checksum (libdeflate)
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:archivefetch Skipping completed org.macports.extract (libdeflate)
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:archivefetch Skipping completed org.macports.patch (libdeflate)
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:archivefetch Skipping completed org.macports.configure (libdeflate)
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:build build phase started at Wed Jun  8 15:56:31 -03 2022
:notice:build --->  Building libdeflate
:debug:build Executing proc-pre-org.macports.build-build-0
:debug:build Executing org.macports.build (libdeflate)
:debug:build Environment: 
:debug:build CC='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/cc/usr/bin/clang'
:debug:build CC_PRINT_OPTIONS='YES'
:debug:build CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/.CC_PRINT_OPTIONS'
:debug:build CFLAGS='-Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -arch arm64'
:debug:build CPATH='/opt/local/include'
:debug:build CPPFLAGS='-I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk'
:debug:build CXX='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/cxx/usr/bin/clang++'
:debug:build CXXFLAGS='-Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -arch arm64 -stdlib=libc++'
:debug:build DEVELOPER_DIR='/Library/Developer/CommandLineTools'
:debug:build F90FLAGS='-Os -m64'
:debug:build FCFLAGS='-Os -m64'
:debug:build FFLAGS='-Os -m64'
:debug:build INSTALL='/usr/bin/install -c'
:debug:build LDFLAGS='-L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -arch arm64'
:debug:build LIBRARY_PATH='/opt/local/lib'
:debug:build MACOSX_DEPLOYMENT_TARGET='12.0'
:debug:build OBJC='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/objc/usr/bin/clang'
:debug:build OBJCFLAGS='-Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -arch arm64'
:debug:build OBJCXX='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/objcxx/usr/bin/clang++'
:debug:build OBJCXXFLAGS='-Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -arch arm64 -stdlib=libc++'
:debug:build PREFIX='/opt/local'
:debug:build SDKROOT='/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk'
:info:build Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/libdeflate-1.11" && /usr/bin/make -j8 -w all CC="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/cc/usr/bin/clang" CXX="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/cxx/usr/bin/clang++" OBJC="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/objc/usr/bin/clang" OBJCXX="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/objcxx/usr/bin/clang++" INSTALL="/usr/bin/install -c" 
:debug:build system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/libdeflate-1.11" && /usr/bin/make -j8 -w all CC="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/cc/usr/bin/clang" CXX="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/cxx/usr/bin/clang++" OBJC="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/objc/usr/bin/clang" OBJCXX="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/objcxx/usr/bin/clang++" INSTALL="/usr/bin/install -c" 
:info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/libdeflate-1.11'
:info:build   GEN      programs/config.h
:info:build   CC       lib/arm/cpu_features.shlib.o
:info:build   CC       lib/arm/cpu_features.o
:info:build In file included from lib/arm/cpu_features.c:130:
:info:build In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/sysctl.h:83:
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/ucred.h:104:20: error: use of undeclared identifier 'NGROUPS_MAX'
:info:build         gid_t   cr_groups[NGROUPS];     /* advisory group list */
:info:build                           ^
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/param.h:100:25: note: expanded from macro 'NGROUPS'
:info:build #define NGROUPS         NGROUPS_MAX     /* max number groups */
:info:build                         ^
:info:build In file included from lib/arm/cpu_features.c:130:
:info:build In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/sysctl.h:83:
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/ucred.h:104:20: error: use of undeclared identifier 'NGROUPS_MAX'
:info:build         gid_t   cr_groups[NGROUPS];     /* advisory group list */
:info:build                           ^
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/param.h:100:25: note: expanded from macro 'NGROUPS'
:info:build #define NGROUPS         NGROUPS_MAX     /* max number groups */
:info:build                         ^
:info:build In file included from lib/arm/cpu_features.c:130:
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/sysctl.h:463:20: error: use of undeclared identifier 'NGROUPS_MAX'
:info:build         gid_t   cr_groups[NGROUPS];     /* groups */
:info:build                           ^
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/param.h:100:25: note: expanded from macro 'NGROUPS'
:info:build #define NGROUPS         NGROUPS_MAX     /* max number groups */
:info:build                         ^
:info:build In file included from lib/arm/cpu_features.c:130:
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/sysctl.h:463:20: error: use of undeclared identifier 'NGROUPS_MAX'
:info:build         gid_t   cr_groups[NGROUPS];     /* groups */
:info:build                           ^
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/param.h:100:25: note: expanded from macro 'NGROUPS'
:info:build #define NGROUPS         NGROUPS_MAX     /* max number groups */
:info:build                         ^
:info:build 2 errors generated.
:info:build 2 errors generated.
:info:build make: *** [lib/arm/cpu_features.shlib.o] Error 1
:info:build make: *** Waiting for unfinished jobs....
:info:build make: *** [lib/arm/cpu_features.o] Error 1
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/libdeflate-1.11'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/libdeflate-1.11" && /usr/bin/make -j8 -w all CC="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/cc/usr/bin/clang" CXX="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/cxx/usr/bin/clang++" OBJC="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/objc/usr/bin/clang" OBJCXX="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/objcxx/usr/bin/clang++" INSTALL="/usr/bin/install -c" 
:info:build Exit code: 2
:error:build Failed to build libdeflate: command execution failed
:debug:build Error code: CHILDSTATUS 22400 2
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec -callback portprogress::target_progress_callback build"
:debug:build     (procedure "portbuild::build_main" line 8)
:debug:build     invoked from within
:debug:build "$procedure $targetname"
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/main.log for details.
version:1
:debug:main Starting logging for libdeflate @1.11_0
:debug:sysinfo macOS 12.4 (darwin/21.5.0) arch arm
:debug:sysinfo MacPorts 2.7.2
:debug:sysinfo Xcode 13.4.1
:debug:sysinfo SDK 12
:debug:sysinfo MACOSX_DEPLOYMENT_TARGET: 12.0
:debug:main libdeflate has no conflicts
:debug:main Executing org.macports.main (libdeflate)
:debug:main dropping privileges: euid changed to 502, egid changed to 501.
:debug:archivefetch archivefetch phase started at Wed Jun  8 16:04:34 -03 2022
:msg:archivefetch --->  Fetching archive for libdeflate
:debug:archivefetch Executing org.macports.archivefetch (libdeflate)
:debug:archivefetch euid/egid changed to: 0/0
:debug:archivefetch chowned /opt/local/var/macports/incoming to macports
:debug:archivefetch euid/egid changed to: 502/501
:info:archivefetch --->  libdeflate-1.11_0.darwin_21.arm64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified
:msg:archivefetch --->  Attempting to fetch libdeflate-1.11_0.darwin_21.arm64.tbz2 from https://packages.macports.org/libdeflate
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404
:msg:archivefetch --->  Attempting to fetch libdeflate-1.11_0.darwin_21.arm64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/libdeflate
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404
:msg:archivefetch --->  Attempting to fetch libdeflate-1.11_0.darwin_21.arm64.tbz2 from https://mse.uk.packages.macports.org/libdeflate
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:archivefetch Skipping completed org.macports.fetch (libdeflate)
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:archivefetch Skipping completed org.macports.checksum (libdeflate)
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:archivefetch Skipping completed org.macports.extract (libdeflate)
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:archivefetch Skipping completed org.macports.patch (libdeflate)
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:archivefetch Skipping completed org.macports.configure (libdeflate)
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:build build phase started at Wed Jun  8 16:04:37 -03 2022
:notice:build --->  Building libdeflate
:debug:build Executing proc-pre-org.macports.build-build-0
:debug:build Executing org.macports.build (libdeflate)
:debug:build Environment: 
:debug:build CC='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/cc/usr/bin/clang'
:debug:build CC_PRINT_OPTIONS='YES'
:debug:build CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/.CC_PRINT_OPTIONS'
:debug:build CFLAGS='-Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -arch arm64'
:debug:build CPATH='/opt/local/include'
:debug:build CPPFLAGS='-I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk'
:debug:build CXX='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/cxx/usr/bin/clang++'
:debug:build CXXFLAGS='-Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -arch arm64 -stdlib=libc++'
:debug:build DEVELOPER_DIR='/Library/Developer/CommandLineTools'
:debug:build F90FLAGS='-Os -m64'
:debug:build FCFLAGS='-Os -m64'
:debug:build FFLAGS='-Os -m64'
:debug:build INSTALL='/usr/bin/install -c'
:debug:build LDFLAGS='-L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -arch arm64'
:debug:build LIBRARY_PATH='/opt/local/lib'
:debug:build MACOSX_DEPLOYMENT_TARGET='12.0'
:debug:build OBJC='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/objc/usr/bin/clang'
:debug:build OBJCFLAGS='-Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -arch arm64'
:debug:build OBJCXX='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/objcxx/usr/bin/clang++'
:debug:build OBJCXXFLAGS='-Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -arch arm64 -stdlib=libc++'
:debug:build PREFIX='/opt/local'
:debug:build SDKROOT='/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk'
:info:build Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/libdeflate-1.11" && /usr/bin/make -j8 -w all CC="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/cc/usr/bin/clang" CXX="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/cxx/usr/bin/clang++" OBJC="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/objc/usr/bin/clang" OBJCXX="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/objcxx/usr/bin/clang++" INSTALL="/usr/bin/install -c" 
:debug:build system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/libdeflate-1.11" && /usr/bin/make -j8 -w all CC="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/cc/usr/bin/clang" CXX="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/cxx/usr/bin/clang++" OBJC="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/objc/usr/bin/clang" OBJCXX="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/objcxx/usr/bin/clang++" INSTALL="/usr/bin/install -c" 
:info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/libdeflate-1.11'
:info:build   CC       lib/arm/cpu_features.shlib.o
:info:build   CC       lib/arm/cpu_features.o
:info:build   CC       programs/gzip.o
:info:build   CC       programs/prog_util.o
:info:build   CC       programs/tgetopt.o
:info:build In file included from lib/arm/cpu_features.c:130:
:info:build In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/sysctl.hIn file included from :lib/arm/cpu_features.c83:130:
:info:build In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/sysctl.h:
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/ucred.h:104:20: error: use of undeclared identifier 'NGROUPS_MAX'
:info:build :83:
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/ucred.h:104:20: error: use of undeclared identifier 'NGROUPS_MAX'
:info:build         gid_t   cr_groups[NGROUPS];     /* advisory group list */
:info:build                           ^
:info:build         gid_t   cr_groups[NGROUPS];     /* advisory group list */
:info:build                           ^
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/param.h:100/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/param.h:100:25: note:: 25expanded from macro 'NGROUPS':
:info:build  note: expanded from macro 'NGROUPS'
:info:build #define NGROUPS         NGROUPS_MAX     /* max number groups */
:info:build                         ^
:info:build #define NGROUPS         NGROUPS_MAX     /* max number groups */
:info:build                         ^
:info:build In file included from lib/arm/cpu_features.c:130:
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/sysctl.h:463:20: error: use of undeclared identifier 'NGROUPS_MAX'
:info:build         gid_t   cr_groups[NGROUPS];     /* groups */
:info:build                           ^In file included from lib/arm/cpu_features.c:130:
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/sysctl.h:463
:info:build :20: error: use of undeclared identifier 'NGROUPS_MAX'
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/param.h:100:25: note: expanded from macro 'NGROUPS'
:info:build         gid_t   cr_groups[NGROUPS];     /* groups */
:info:build                           ^#define NGROUPS         NGROUPS_MAX     /* max number groups */
:info:build                         ^
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/param.h:100:25: note: expanded from macro 'NGROUPS'
:info:build #define NGROUPS         NGROUPS_MAX     /* max number groups */
:info:build                         ^
:info:build 2 errors generated.
:info:build 2 errors generated.
:info:build make: *** [lib/arm/cpu_features.shlib.o] Error 1
:info:build make: *** Waiting for unfinished jobs....
:info:build make: *** [lib/arm/cpu_features.o] Error 1
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/libdeflate-1.11'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/libdeflate-1.11" && /usr/bin/make -j8 -w all CC="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/cc/usr/bin/clang" CXX="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/cxx/usr/bin/clang++" OBJC="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/objc/usr/bin/clang" OBJCXX="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/work/compwrap/objcxx/usr/bin/clang++" INSTALL="/usr/bin/install -c" 
:info:build Exit code: 2
:error:build Failed to build libdeflate: command execution failed
:debug:build Error code: CHILDSTATUS 22523 2
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec -callback portprogress::target_progress_callback build"
:debug:build     (procedure "portbuild::build_main" line 8)
:debug:build     invoked from within
:debug:build "$procedure $targetname"
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libdeflate/libdeflate/main.log for details.

comment:5 Changed 2 years ago by TrantorLix

Summary: libdeflate fails (while installing aseprite dependencies)libdeflate @1.11: error: use of undeclared identifier 'NGROUPS_MAX'

comment:6 Changed 2 years ago by TrantorLix

Cc: TrantorLix added

comment:7 Changed 2 years ago by gillerby (Mike Q)

i have the same issue

comment:8 Changed 2 years ago by TrantorLix

Any ETA on this? Not sure how bug fixing works for macports

comment:9 Changed 2 years ago by dankamongmen (nick black)

sorry, i had to get a macports trac account. i'll try to look into this tomorrow. thanks for the report!

comment:10 Changed 2 years ago by jmroot (Joshua Root)

Is _ANSI_SOURCE defined during the build by any chance? That's the only way I can see that sys/syslimits.h, which is included by sys/param.h, would fail to define NGROUPS_MAX.

comment:11 Changed 2 years ago by TrantorLix

Hi, any news?

comment:12 Changed 2 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.