Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 471024 - sys-libs/glibc-2.17 - rpcsvc/bootparam_prot.x: Value too large for defined data type
Summary: sys-libs/glibc-2.17 - rpcsvc/bootparam_prot.x: Value too large for defined da...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: http://sourceware.org/git/?p=glibc.gi...
Whiteboard:
Keywords:
Depends on:
Blocks: lfs-tracker
  Show dependency tree
 
Reported: 2013-05-22 18:32 UTC by brho
Modified: 2013-06-10 02:12 UTC (History)
0 users

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


Attachments
glibc-no-change.log.gz (glibc-no-change.log.gz,259.32 KB, application/octet-stream)
2013-05-22 18:39 UTC, brho
Details

Note You need to log in before you can comment on or make changes to this bug.
Description brho 2013-05-22 18:32:03 UTC
glibc-2.17 fails to emerge on a fresh amd64 machine.  It appears to be related to large file issues with 32 bit binaries.  

First, it fails during the sunrpc cross-rpcgen part.  When it tries using cross-rpcgen, I get "rpcsvc/bootparam_prot.x: Value too large for defined data type".  I can hack the sunrpc Makefile to add in -D_FILE_OFFSET_BITS=64, which is enough to make it pass compilation.  (manually did an ebuild compile).

However, it fails to install with error "/var/tmp/portage/sys-libs/glibc-2.17/image//lib32/libc.so.6: invalid destination: Value too large for defined data type"

I attempted to turn on -D_FILE_OFFSET_BITS=64 globally, but the compilation fails early on.

Reproducible: Always




I'm running XFS.  I don't know if it matters or not, but this older bug was related to XFS, GCC, and the "Value too large" problem: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44116.

# emerge --info
Portage 2.1.11.63 (default/linux/amd64/13.0/desktop, gcc-4.7.3, glibc-2.15-r3, 3.9.2-gentoo x86_64)
=================================================================
System uname: Linux-3.9.2-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_920_@_2.67GHz-with-gentoo-2.2
KiB Mem:     6095680 total,   2683988 free
KiB Swap:    5242860 total,   5242860 free
Timestamp of tree: Wed, 15 May 2013 05:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.4, 3.2.4
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.6, 1.12.6, 1.13.1
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.3, 4.7.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://mirror.iawnet.sandia.gov/pub/gentoo/ ftp://gentoo.mirrors.tds.net/gentoo ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ ftp://ftp.lug.udel.edu/pub/gentoo/ ftp://gentoo.cites.uiuc.edu/pub/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi afs alsa amd64 audiofile bash-completion bcmath berkdb bindist branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cscope cups curl cxx dbus dga dri dts dv dvd dvdr emboss encode exif fam ffmpeg firefox flac fortran gd gdbm gif glut gmp gnutls gphoto2 gpm gstreamer gtk gtk2 gzip iconv ieee1394 imagemagick imap ipv6 jpeg lame latex lcms ldap lm_sensors mad maildir mbox mime mmap mmx mmxext mng modules mp3 mp4 mpeg mplayer mudflap multilib musicbrainz mysql ncurses nls nptl nsplugin ntfs offensive ogg opengl openmp oscar oss pam pango pcre pdf perl png policykit ppds python qt3support qt4 quicktime readline ruby samba sasl scanner sdl session smp spell sqlite sse sse2 ssl startup-notification svg tcpd theora threads tiff tk truetype udev udisks unicode upower usb vim-syntax vnc vorbis wxwidgets wxwindows x264 xcb xcomposite xine xinerama xml xpm xscreensaver xv xvid yahoo zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="adc65 agfa_cl20 aox barbie canon casio_qv clicksmart310 digigr8 digita dimagev dimera3500 directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 jl2005a kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica konica_qm150 largan lg_gsm mars mustek panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859 pccam300 pccam600 polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ptp2 ricoh ricoh_g3 samsung sierra sipix_blink sipix_blink2 sipix_web2 smal sonix sony_dscf1 sony_dscf55 soundvision spca50x sq905 stv0674 stv0680 sx330z template topfield toshiba_pdrm11" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" 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 ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="radeon" 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"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 brho 2013-05-22 18:39:32 UTC
Created attachment 348938 [details]
glibc-no-change.log.gz
Comment 2 SpanKY gentoo-dev 2013-05-22 19:35:30 UTC
don't put -D_FILE_OFFSET_BITS into global CPPFLAGS.  it doesn't make sense on a 64bit system like amd64.

you've got a lot of ram.  what if you mount tmpfs at /var/tmp/portage and build glibc ?  does it work then ?
Comment 3 brho 2013-05-22 20:09:21 UTC
Two comments:

1) After a fresh reboot (a crash/freeze, actually), the ebuild (on XFS) still needed its sunrpc Makefile changed to compile, and it installed completely.

2) With a tmpfs mounted at /var/tmp/portage, glibc emerged with no problem, and did not need the sunrpc Makefile change.
Comment 4 SpanKY gentoo-dev 2013-05-22 22:29:58 UTC
i think this issue was fixed recently (for glibc-2.18) by:
http://sourceware.org/git/?p=glibc.git;a=commit;h=4c0fe6fe42ecf97c9f7f5a0921638560c89973a2

you could try downloading that and putting it in /etc/portage/patches/sys-libs/glibc/ (you'll probably have to delete the ChangeLog hunks to get it to apply)
Comment 5 brho 2013-05-23 16:36:51 UTC
That patch did the trick, thanks!
Comment 6 SpanKY gentoo-dev 2013-05-23 17:55:11 UTC
(In reply to comment #5)

since i'm fairly certain there are other broken packages, and cramming this one fix in won't help with the others, i'd prefer to just wait for the glibc-2.18 release to include things rather than add it to our glibc-2.17.
Comment 7 SpanKY gentoo-dev 2013-05-23 18:19:00 UTC
here's a related thread:
http://sourceware.org/ml/libc-alpha/2013-02/msg00575.html

we probably will have to start some automated QA checks in our build if we want to stay on top of this since the issue affects all 32bit programs that call stat() on real filesystems (not pseudo ala procfs)
Comment 8 SpanKY gentoo-dev 2013-05-23 18:19:30 UTC
and another link:
http://blog.fmeh.org/2013/05/11/does-the-world-need-32-bit-inodes/
Comment 9 brho 2013-05-23 18:28:06 UTC
I agree.  

I've also run into issues with wine (fails during configure) and sandbox (fails when using FEATURES="sandbox" on glibc on my XFS, with the Value too large error).  I'll post bugs for those too.  Should I reference this one or some other central bug tracking the stat64?
Comment 10 SpanKY gentoo-dev 2013-05-23 19:24:40 UTC
(In reply to comment #9)

you should file one bug per package you find.  i've started a new tracker (bug 471102), so include that in the blocker list when you do file things.
Comment 11 Roc Vallès 2013-06-07 23:36:11 UTC
Nice patch.

However, it's not applied in the ebuild, so it isn't fixed. Needs reopening.
Comment 12 SpanKY gentoo-dev 2013-06-10 02:12:09 UTC
(In reply to Roc Vallès from comment #11)

read comment #6