Created attachment 441768 [details] config.log After emerging app-arch/libarchive-3.2.1-r4, most emerges and re-emerge libarchive end up with message like this: checking build system type... x86_64-gentoo-freebsd10.3 checking host system type... x86_64-gentoo-freebsd10.3 checking for x86_64-gentoo-freebsd10.3-gcc... x86_64-gentoo-freebsd10.3-gcc cat: -: Failed to open '-' checking whether the C compiler works... no configure: error: in `/var/tmp/portage/app-arch/libarchive-3.2.1-r4/work/libarchive-3.2.1-abi_x86_64.amd64_fbsd': configure: error: C compiler cannot create executables See `config.log' for more details !!! Please attach the following file when seeking support: !!! /var/tmp/portage/app-arch/libarchive-3.2.1-r4/work/libarchive-3.2.1-abi_x86_64.amd64_fbsd/config.log * ERROR: app-arch/libarchive-3.2.1-r4::gentoo failed (configure phase): * econf failed * * Call stack: * ebuild.sh, line 115: Called src_configure * environment, line 3338: Called multilib-minimal_src_configure * environment, line 2591: Called multilib_foreach_abi 'multilib-minimal_abi_src_configure' * environment, line 2805: Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure' * environment, line 2521: Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure' * environment, line 2519: Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_configure' * environment, line 528: Called multilib-minimal_abi_src_configure * environment, line 2585: Called multilib_src_configure * environment, line 3034: Called econf '--enable-acl' '--disable-static' '--enable-xattr' '--with-bz2lib' '--without-expat' '--with-xml2' '--with-iconv' '--without-lz4' '--with-lzma' '--without-lzo2' '--without-nettle' '--with-zlib' '--enable-bsdcat=shared' '--enable-bsdcpio=shared' '--enable-bsdtar=shared' '--without-lzmadec' * phase-helpers.sh, line 662: Called __helpers_die 'econf failed' * isolated-functions.sh, line 117: Called die * The specific snippet of code: * die "$@" * To make system usable again I emerged old binary version: emerge -v1k =app-arch/libarchive-3.1.2-r5
emerge --info Portage 2.3.0 (python 2.7.12-final-0, default/bsd/fbsd/amd64/10.3, gcc-5.4.0, freebsd-lib-10.3-r1, 10.3-r3-Gentoo amd64) ================================================================= System uname: FreeBSD-10.3-r3-Gentoo-amd64-64bit-ELF KiB Mem: 3609136 total KiB Swap: 1048476 total Timestamp of repository gentoo: Wed, 27 Jul 2016 19:00:01 +0000 sh sh ld GNU ld (Gentoo 2.26.1 p1.0) 2.26.1 app-shells/bash: 4.3_p46::gentoo dev-lang/perl: 5.24.0-r1::gentoo dev-lang/python: 2.7.12::gentoo, 3.5.1-r3::gentoo dev-util/cmake: 3.6.0::gentoo dev-util/pkgconfig: 0.29.1::gentoo sys-apps/baselayout: 2.2-r1::gentoo sys-apps/openrc: 0.21.2::gentoo sys-devel/autoconf: 2.69-r2::gentoo sys-devel/automake: 1.14.1-r1::gentoo, 1.15-r2::gentoo sys-devel/binutils: 2.26.1::gentoo sys-devel/gcc: 4.9.3::gentoo, 5.4.0::gentoo sys-devel/gcc-config: 1.8-r1::gentoo sys-devel/libtool: 2.4.6-r2::gentoo sys-devel/make: 4.2.1::gentoo sys-freebsd/freebsd-lib: 10.3-r1::gentoo (virtual/os-headers) Repositories: gentoo location: /sdb2/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 ACCEPT_KEYWORDS="amd64-fbsd ~amd64-fbsd" ACCEPT_LICENSE="*" CBUILD="x86_64-gentoo-freebsd10.3" CFLAGS="-O2 -pipe" CHOST="x86_64-gentoo-freebsd10.3" CONFIG_PROTECT="/boot/device.hints /etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs chflags config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news nodoc noinfo parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersync" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" INSTALL_MASK="/usr/lib/systemd" LDFLAGS=" -Wl,--as-needed" MAKEOPTS="-j4" PKGDIR="/bindist-gentoo-freebsd" PORTAGE_CONFIGROOT="/" 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="/var/tmp" USE="X acl amd64-fbsd berkdb clang cracklib crypt cxx dri gdbm iconv mmx mmxext modules multilib multislot ncurses oss pam pcre python2 readline sse sse2 ssl symlink tcpd unicode xattr zfs zlib" ABI_X86="64" 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="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="FreeBSD" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse" KERNEL="FreeBSD" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" RUBY_TARGETS="ruby20 ruby21" USERLAND="BSD" VIDEO_CARDS="vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" USE_PYTHON="2.7" Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
It appears /usr/bin/bsdcat, to which /usr/bin/cat symlinks, differs from standard cat in the way it handles single-dash arguments. For instance $ echo "foo" > /tmp/foo $ echo "bar" > /tmp/bar $ /usr/bin/bsdcat /tmp/foo | /usr/bin/bsdcat - /tmp/bar bar $ /usr/bin/bsdcat /tmp/foo | /usr/bin/bsdcat /tmp/bar - bar bsdcat: -: Failed to open '-' I would have expected the pipes to output "foo\nbar" and "bar\nfoo", respectively. From a quick glance at the source, I get the impression this is the intended behavior. At least, fixing bsdcat so that it behaves like standard cat appears to involve more than a few one-line changes to bsdcat's option parser. If the way bsdcat handles stdin is intentional, it cannot be used as a replacement for standard cat. I would then think that the proper fix is to omit installing the /usr/bin/cat -> /usr/bin/bsdcat symbolic link. libarchive-3.1.2-r5 did not provide bsdcat and that's why downgrading works.
(In reply to Johan Hattne from comment #2) > It appears /usr/bin/bsdcat, to which /usr/bin/cat symlinks, differs from > standard cat in the way it handles single-dash arguments. For instance > > $ echo "foo" > /tmp/foo > $ echo "bar" > /tmp/bar > $ /usr/bin/bsdcat /tmp/foo | /usr/bin/bsdcat - /tmp/bar > bar > $ /usr/bin/bsdcat /tmp/foo | /usr/bin/bsdcat /tmp/bar - > bar > bsdcat: -: Failed to open '-' > > I would have expected the pipes to output "foo\nbar" and "bar\nfoo", > respectively. > > From a quick glance at the source, I get the impression this is the intended > behavior. At least, fixing bsdcat so that it behaves like standard cat > appears to involve more than a few one-line changes to bsdcat's option > parser. > > If the way bsdcat handles stdin is intentional, it cannot be used as a > replacement for standard cat. I would then think that the proper fix is to > omit installing the /usr/bin/cat -> /usr/bin/bsdcat symbolic link. > > libarchive-3.1.2-r5 did not provide bsdcat and that's why downgrading works. Thanks for the update. I left a revision up for a couple of weeks that didn't have bsdcat, just in case there were any issues, and then moved ahead, but I guess we were lacking on testing during that time period. For the time being, let's just remove the bsdcat symlink while we work with upstream to investigate the differences/impact it has.
Alright, -r5 doesn't create the bsdcat symlink. I'll see if I can reach out to upstream to inquire about the compatibility issues.
Thank you, everything builds fine now!
*-fbsd is gone.