Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 878841 - app-arch/cpio-2.13-r3: gnulib(?) state breaks configure on macOS
Summary: app-arch/cpio-2.13-r3: gnulib(?) state breaks configure on macOS
Status: RESOLVED DUPLICATE of bug 884659
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-30 21:49 UTC by Askar Bektassov
Modified: 2022-12-13 15:40 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,9.47 KB, application/octet-stream)
2022-10-30 21:54 UTC, Askar Bektassov
Details
config.log (config.log,83.69 KB, text/plain)
2022-10-30 21:55 UTC, Askar Bektassov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Askar Bektassov 2022-10-30 21:49:14 UTC
From /Users/askarbektassov/Gentoo/var/tmp/portage/app-arch/cpio-2.13-r3/work/cpio-2.13/config.log

configure:8074: arm64-apple-darwin21-gcc -c  -O2 -pipe  conftest.c >&5
conftest.c:59:10: fatal error: sys/sysmacros.h: No such file or directory
   59 | #include <sys/sysmacros.h>
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.
configure:8074: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU cpio"
| ...
| ZILLION OF OTHER DEFINITIONS
| ...
| /* end confdefs.h.  */
|
| #include <sys/sysmacros.h>
| #include <sys/types.h>
|
|
| int
| main (void)
| {
| switch (0) case 0: case (sizeof (major(0)) == sizeof (long long)):;
|   ;
|   return 0;
| }
configure:8085: error: cannot determine type

Reproducible: Always

Steps to Reproduce:
emerge cpio
Actual Results:  
checking for egrep... (cached) /Users/askarbektassov/Gentoo/usr/bin/grep -E
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking return type of major()... configure: error: cannot determine type

!!! Please attach the following file when seeking support:
!!! /Users/askarbektassov/Gentoo/var/tmp/portage/app-arch/cpio-2.13-r3/work/cpio-2.13/config.log
 * ERROR: app-arch/cpio-2.13-r3::gentoo_prefix failed (configure phase):
 *   econf failed

Expected Results:  
successful emerge

askarbektassov@Askars-MBP ~ $ emerge --info
Portage 3.0.34 (python 3.10.4-final-0, prefix/darwin/macos/12.0/arm64/gcc, gcc-12.2.0, unavailable, 22.1.0 arm64)
=================================================================
System uname: macOS-13.0-arm64-64bit
Timestamp of repository gentoo_prefix: Sun, 30 Oct 2022 20:27:25 +0000
Head commit of repository gentoo_prefix: b7bbfcddac74acd544770935024d765d45e1ff79
sh bash 5.1_p16-r2
app-misc/pax-utils:        1.3.5::gentoo_prefix
app-shells/bash:           5.1_p16-r2::gentoo_prefix
dev-lang/perl:             5.36.0-r1::gentoo_prefix
dev-lang/python:           3.10.4::gentoo_prefix
dev-util/cmake:            3.24.2::gentoo_prefix
dev-util/meson:            0.63.3::gentoo_prefix
sys-apps/baselayout:       2.9::gentoo_prefix
sys-devel/autoconf:        2.71-r4::gentoo_prefix
sys-devel/automake:        1.16.5::gentoo_prefix
sys-devel/binutils-config: 5.1-r4::gentoo_prefix
sys-devel/gcc:             12.2.0::gentoo_prefix
sys-devel/gcc-config:      2.7::gentoo_prefix
sys-devel/libtool:         2.4.7::gentoo_prefix
sys-devel/make:            4.3::gentoo_prefix
Repositories:

gentoo_prefix
    location: /Users/askarbektassov/Gentoo/var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.prefix.bitzolder.nl/gentoo-portage-prefix
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: no
    sync-rsync-extra-opts:
    sync-rsync-verify-jobs: 1

ACCEPT_KEYWORDS="~x64-macos"
ACCEPT_LICENSE="@FREE"
CBUILD="arm64-apple-darwin21"
CFLAGS=" -O2 -pipe"
CHOST="arm64-apple-darwin21"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/terminfo"
CONFIG_SHELL="/Users/askarbektassov/Gentoo/bin/bash"
CXXFLAGS=" -O2 -pipe"
DISTDIR="/Users/askarbektassov/Gentoo/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS=""
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live case-insensitive-fs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news nostrip parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sfperms strict unknown-features-warn unmerge-logs unmerge-orphans unprivileged"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distfiles.prefix.bitzolder.nl/prefix"
LDFLAGS="-Wl,-dead_strip_dylibs"
LEX="/usr/bin/flex"
MAKEOPTS="-j6"
PKGDIR="/Users/askarbektassov/Gentoo/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/Users/askarbektassov/Gentoo/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/Users/askarbektassov/Gentoo/var/tmp"
SHELL="/Users/askarbektassov/Gentoo/bin/zsh"
USE="aqua arm64-macos coreaudio ipv6 libglvnd ncurses nls objc objc++ prefix prefix-guest readline ssl test-rust unicode x64-macos zlib" ADA_TARGET="gnat_2020" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="Darwin" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="Darwin" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby27" USERLAND="GNU" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LANG, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-10-30 21:51:19 UTC
Please attach (as attachments, don't paste their contents) /Users/askarbektassov/Gentoo/var/tmp/portage/app-arch/cpio-2.13-r3/work/cpio-2.13/config.log and the build.log in full, with no truncations.

Also, did a previous version work?
Comment 2 Askar Bektassov 2022-10-30 21:54:41 UTC
Created attachment 826173 [details]
build.log

/Users/askarbektassov/Gentoo/var/tmp/portage/app-arch/cpio-2.13-r3/temp/build.log
Comment 3 Askar Bektassov 2022-10-30 21:55:53 UTC
Created attachment 826175 [details]
config.log

/Users/askarbektassov/Gentoo/var/tmp/portage/app-arch/cpio-2.13-r3/work/cpio-2.13/config.log
Comment 4 Askar Bektassov 2022-10-30 21:57:34 UTC
(In reply to Sam James from comment #1)
> Please attach (as attachments, don't paste their contents)
> /Users/askarbektassov/Gentoo/var/tmp/portage/app-arch/cpio-2.13-r3/work/cpio-
> 2.13/config.log and the build.log in full, with no truncations.
> 
> Also, did a previous version work?

I guess so, few days back I upgraded to gcc 12.2 and run emerge -e without any issues. Then today decided to eix-sync and emerge world -uDN
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-10-30 22:00:35 UTC
Oh, I see. I bet the older version builds fine for you if you try again?

I bet it's one of the Bad Gnulib changes and it got caught at an unlucky point.
Comment 6 Askar Bektassov 2022-10-30 22:04:13 UTC
(In reply to Sam James from comment #5)
> Oh, I see. I bet the older version builds fine for you if you try again?
> 
> I bet it's one of the Bad Gnulib changes and it got caught at an unlucky
> point.

Yep, emerge '=app-arch/cpio-2.12-r1' runs fine.
Comment 7 Askar Bektassov 2022-12-13 15:32:49 UTC
This seems duplicate of https://bugs.gentoo.org/show_bug.cgi?id=884659 The workaround is removing #include <sys/sysmacros.h> lines from configure, before configuration stage.
Comment 8 Fabian Groffen gentoo-dev 2022-12-13 15:40:33 UTC

*** This bug has been marked as a duplicate of bug 884659 ***