Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 888980 - sys-apps/sandbox-2.29: configure: error: cannot run C compiled programs. (Value too large for defined data type) on btrfs 64bit inode
Summary: sys-apps/sandbox-2.29: configure: error: cannot run C compiled programs. (Val...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Sandbox Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-30 12:37 UTC by Zdenek Sojka
Modified: 2022-12-31 14:58 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,4.72 KB, text/x-log)
2022-12-30 12:39 UTC, Zdenek Sojka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Zdenek Sojka 2022-12-30 12:37:54 UTC
Trying to build maybe any 32bit package, including sandbox itself, fails with:
# emerge -1v sandbox

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] sys-apps/sandbox-2.29::gentoo  USE="nnp" ABI_X86="(32) (64) (-x32)" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB


>>> Verifying ebuild manifests

>>> Emerging (1 of 1) sys-apps/sandbox-2.29::gentoo
...
checking whether we are cross compiling...  * /var/tmp/portage/sys-apps/sandbox-2.29/work/sandbox-2.29/libsandbox/libsandbox.c:check_syscall():983: failure (Value too large for defined data type):
 * ISE: fopen_wr('conftest.out')
        abs_path: (null)
        res_path: (null)
        errno=75: Value too large for defined data type
configure: error: in `/var/tmp/portage/sys-apps/sandbox-2.29/work/sandbox-2.29-abi_x86_32.x86':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
...

This is similar to https://bugs.gentoo.org/583282#c16 , but there is no sandbox-3.2+ available, where it should be fixed.

The /var/tmp/portage filesystem is btrfs, with inode >= 2**32:

# ls -i /var/tmp/portage/sys-apps/sandbox-2.29/work/sandbox-2.29/configure
4325851767 /var/tmp/portage/sys-apps/sandbox-2.29/work/sandbox-2.29/configure


Building without sandbox:
# FEATURES='-sandbox -usersandbox' emerge -1 sandbox
succeeds

Using a different filesystem also helps:
# mount -t tmpfs tmpfs /var/tmp/portage/
# emerge -1 sandbox
succeeds

Reproducible: Always

Steps to Reproduce:
1. have a filesystem with inode >= 2**32
2. emerge -1 sandbox


Actual Results:  
Configure fails due to sandbox error:
checking whether we are cross compiling...  * /var/tmp/portage/sys-apps/sandbox-2.29/work/sandbox-2.29/libsandbox/libsandbox.c:check_syscall():983: failure (Value too large for defined data type):
 * ISE: fopen_wr('conftest.out')
        abs_path: (null)
        res_path: (null)
        errno=75: Value too large for defined data type
configure: error: in `/var/tmp/portage/sys-apps/sandbox-2.29/work/sandbox-2.29-abi_x86_32.x86':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details


Expected Results:  
Build succeeds

# emerge --info
Portage 3.0.41 (python 3.10.9-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-11, glibc-2.36-r5, 6.1.1-gentoo-dist x86_64)
=================================================================
System uname: Linux-6.1.1-gentoo-dist-x86_64-AMD_Ryzen_7_4800H_with_Radeon_Graphics-with-glibc2.36
KiB Mem:    65231092 total,  32550860 free
KiB Swap:   16511984 total,  15892648 free
Timestamp of repository gentoo: Fri, 30 Dec 2022 10:30:01 +0000
Head commit of repository gentoo: 2b46bb3fb16dd9e67adc27c92bd013ae5c6b82dd
Timestamp of repository gamerlay: Tue, 27 Dec 2022 16:48:54 +0000
Head commit of repository gamerlay: 83cea2909135f5a3498f4140ca6862408039ccca

Timestamp of repository palemoon: Sat, 24 Dec 2022 22:17:57 +0000
Head commit of repository palemoon: d1dc22836877dd117633b9259e58a392336cf50e

Timestamp of repository steam-overlay: Tue, 27 Dec 2022 16:49:00 +0000
Head commit of repository steam-overlay: 40d6049781a464f1d47e1a42e2d35f0d091fb7b1

Head commit of repository tlp: 4ba9fce0927a4bc87a4df54eb352a163a439810e

Timestamp of repository x11: Tue, 27 Dec 2022 16:49:01 +0000
Head commit of repository x11: ad84c41e5f267d9747eea9b10e817bf5a851172f

sh bash 5.1_p16-r2
ld GNU ld (Gentoo 2.38 p4) 2.38
ccache version 4.7.4 [enabled]
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r2::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.36.0-r1::gentoo
dev-lang/python:           2.7.18_p16::gentoo, 3.10.9::gentoo, 3.11.1::gentoo
dev-lang/rust:             1.65.0::gentoo
dev-util/ccache:           4.7.4::gentoo
dev-util/cmake:            3.24.3::gentoo
dev-util/meson:            0.64.1::gentoo
sys-apps/baselayout:       2.9::gentoo
sys-apps/openrc:           0.45.2-r2::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.13-r7::gentoo, 2.71-r5::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.38-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           14.0.6-r1::gentoo, 15.0.6::gentoo
sys-devel/gcc:             10.4.1_p20221208::gentoo, 11.3.1_p20221209::gentoo, 12.2.0::gentoo
sys-devel/gcc-config:      2.8::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/lld:             15.0.6::gentoo
sys-devel/llvm:            14.0.6-r2::gentoo, 15.0.6::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.36-r5::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts: 

gamerlay
    location: /var/db/repos/gamerlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gamerlay.git
    masters: gentoo

palemoon
    location: /var/db/repos/palemoon
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/palemoon.git
    masters: gentoo

steam-overlay
    location: /var/db/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
    masters: gentoo

tlp
    location: /var/db/repos/localrepo-tlp
    sync-type: git
    sync-uri: https://github.com/dywisor/tlp-portage.git
    sync-user: portage
    masters: gentoo

x11
    location: /var/db/repos/x11
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/x11.git
    masters: gentoo

crossdev
    location: /var/db/repos/localrepo-crossdev
    masters: gentoo
    priority: 10

localrepo
    location: /var/db/repos/localrepo
    masters: gentoo
    priority: 10

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -fomit-frame-pointer -fipa-cp-clone -finline-functions -fno-stack-protector"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native -fomit-frame-pointer -fipa-cp-clone -finline-functions -fno-stack-protector"
DISTDIR="/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="-O2 -pipe -march=native -fomit-frame-pointer -fipa-cp-clone -finline-functions -fno-stack-protector"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live ccache config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe -march=native -fomit-frame-pointer -fipa-cp-clone -finline-functions -fno-stack-protector"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
LINGUAS="cs en"
MAKEOPTS="-j8"
PKGDIR="/var/cache/binpkgs"
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"
SHELL="/bin/bash"
USE="X a52 aac acpi activities alsa amd64 amr avif bluetooth bluray branding btrfs bzip2 cairo cdda cdr cli crypt cups dav1d dbus declarative dri drm dts dvb dvd dvdr egl elogind encode eps exif flac fortran gdbm gif gles gles2 gles3 gpm graphite gsm gtk gtk3 gui heif iconv icu jbig jpeg jpeg2k jpegxl kde kwallet lcms libglvnd libnotify libtirpc lto lz4 lzma lzo mad matroska midi mng mount mp3 mp4 mpeg multilib multitarget ncurses nls nopic nossp nptl ntfs offensive ogg openexr opengl openh264 openmp opus pam pango pcre pdf pgo plasma png policykit postscript ppds proprietary-codecs qml qt5 rar rav1e raw readline rtmp sdl semantic-desktop smp sound speex spell split-usr ssl startup-notification svg test-rust tga theora threads tiff timidity truetype udev udisks unicode upower usb v4l vaapi vdpau vkd3d vorbis vtv vulkan wayland webp widevine widgets wmf wxwidgets x264 x265 xcb xft xinerama xml xpm xv xvfb xvid xwayland zlib zstd" ABI_X86="32 64" ADA_TARGET="gnat_2021" 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" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" 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="linux" L10N="cs en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="X86 BPF AMDGPU" 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" QEMU_SOFTMMU_TARGETS="*" QEMU_USER_TARGETS="*" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi radeon" 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, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, 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 Zdenek Sojka 2022-12-30 12:39:27 UTC
Created attachment 845862 [details]
build.log
Comment 2 Mike Gilbert gentoo-dev 2022-12-30 20:43:51 UTC
I suppose we should backport those fixes to 2.x.
Comment 3 Larry the Git Cow gentoo-dev 2022-12-30 21:46:01 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a5997c2abe91411b2802f8867662a967fb3b520d

commit a5997c2abe91411b2802f8867662a967fb3b520d
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2022-12-30 21:43:54 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2022-12-30 21:44:00 +0000

    sys-apps/sandbox: add 2.30
    
    Closes: https://bugs.gentoo.org/888980
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 sys-apps/sandbox/Manifest            |  1 +
 sys-apps/sandbox/sandbox-2.30.ebuild | 62 ++++++++++++++++++++++++++++++++++++
 2 files changed, 63 insertions(+)