Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 142517 - sys-fs/unionfs-1.3 fails on "error: invalid operands to binary"
Summary: sys-fs/unionfs-1.3 fails on "error: invalid operands to binary"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Cluster Team
URL: https://bugzilla.filesystems.org/show...
Whiteboard:
Keywords: Inclusion
: 143479 145093 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-08-02 03:03 UTC by Benjamin Hodgetts
Modified: 2010-09-10 19:00 UTC (History)
8 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Hodgetts 2006-08-02 03:03:07 UTC
------------------------------------
cc1: warnings being treated as errors
/var/tmp/portage/unionfs-1.3/work/unionfs-1.3/super.c: In function 
Comment 1 Benjamin Hodgetts 2006-08-02 03:03:07 UTC
------------------------------------
cc1: warnings being treated as errors
/var/tmp/portage/unionfs-1.3/work/unionfs-1.3/super.c: In function do_decode:
/var/tmp/portage/unionfs-1.3/work/unionfs-1.3/super.c:673: warning: cast to pointer from integer of different size
/var/tmp/portage/unionfs-1.3/work/unionfs-1.3/super.c:677: warning: left shift count >= width of type
/var/tmp/portage/unionfs-1.3/work/unionfs-1.3/super.c:677: error: invalid operands to binary |
/var/tmp/portage/unionfs-1.3/work/unionfs-1.3/super.c:678: warning: left shift count >= width of type
/var/tmp/portage/unionfs-1.3/work/unionfs-1.3/super.c:679: warning: left shift count >= width of type
/var/tmp/portage/unionfs-1.3/work/unionfs-1.3/super.c: In function unionfs_encode_fh:
/var/tmp/portage/unionfs-1.3/work/unionfs-1.3/super.c:728: warning: cast from pointer to integer of different size
/var/tmp/portage/unionfs-1.3/work/unionfs-1.3/super.c:732: error: invalid operands to binary >>
make[2]: *** [/var/tmp/portage/unionfs-1.3/work/unionfs-1.3/super.o] Error 1
make[1]: *** [_module_/var/tmp/portage/unionfs-1.3/work/unionfs-1.3] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.17-beyond2.2'
make: *** [unionfs.ko] Error 2
-----------------------------------


emerge --info:

Portage 2.1.1_pre4-r1 (default-linux/amd64/2006.0, gcc-4.1.1, glibc-2.4-r3, 2.6.17-beyond2.2 x86_64)
=================================================================
System uname: 2.6.17-beyond2.2 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+
Gentoo Base System version 1.12.2
ccache version 2.4 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -msse3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=athlon64 -O2 -msse3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_GB.UTF-8"
LC_ALL="en_GB.UTF-8"
LINGUAS="en_GB"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/pro-audio /usr/portage/local/layman/zugaina /usr/portage/local/layman/vmware /usr/portage/local/layman/voip /usr/portage/local/layman/musicbrainz /usr/portage/local/layman/ebuild-exchange /usr/portage/local/layman/sunrise"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 7zip X a52 aac acpi aim alsa artworkextra asf async audacious audiofile automount avi berkdb bitmap-fonts bluetooth bzip2 cairo capslib cdda cddb cdinstall cdparanoia cdr cdrom cjk clamav cli crypt cups dbus dga dlloader dmi dri dvd dvdr dvdread eds emboss emul-linux-x86 encode evolution exif faad fat ffmpeg fftw firefox flac foomatic foomaticdb fortran fuse gcc64 gif gimp gimpprint glitz glut gnome gnome-print gphoto2 gpm gstreamer gtk gtk2 gzip h323 hal hfs ieee1394 imap imlib ipv6 isdnlog java jbig jfs jikes joystick jpeg jpeg2k kdeenablefinal kqemu ladspa lcms lzo lzw lzw-tiff mad maildir mbox mikmod mime mjpeg modplug moznocompose moznoirc moznomail mozsvg mp3 mp4 mpeg mpeg2 mplayer musepack musicbrainz nautilus ncurses network nfs nls nptl nptlonly nsplugin ntfs nvidia nvram nvtv ogg openexr opengl pam pcre pdf pdflib perl pic png pop ppds pppd python qemu-fast quicktime readline reflection reiser4 reiserfs samba sasl scanner sdl sdl-sound session sid silc skins smartcard smp sms sndfile speex spell spl ssl stencil-buffer svg svgz swat symlink szip tcpd tga theora threads tiff transcode truetype truetype-fonts type1 type1-fonts udev unicode usb v4l v4l2 vcd videos vorbis wma wmf x264 xchat xcomposite xfs xft xine xorg xpm xv xvid xvmc yahoo zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_joystick input_devices_aiptek kernel_linux linguas_en_GB userland_GNU video_cards_nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 donald webster 2006-08-04 11:52:19 UTC
I'm having the same problem.  I thought I posted this already, but aparantly not :/
Comment 3 Harm Geerts 2006-08-04 12:38:56 UTC
Same for me, with both vanilla-sources and gentoo-sources.
Seems like a gcc-4.1 issue

Portage 2.1.1_pre4-r2 (default-linux/amd64/2005.0, gcc-4.1.1/amd64-vanilla, glibc-2.4-r3, 2.6.17-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.17-gentoo-r4 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.12.4
ccache version 2.4 [enabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
Comment 4 Donnie Berkholz (RETIRED) gentoo-dev 2006-08-04 15:21:16 UTC
On a guess it's trying to apply bitwise operators to a pointer, which isn't allowed. I'll try to look closer later.
Comment 5 Donnie Berkholz (RETIRED) gentoo-dev 2006-08-07 14:27:49 UTC
I've brought this to the attention of an upstream developer on IRC, he's looking into it.
Comment 6 Donnie Berkholz (RETIRED) gentoo-dev 2006-08-07 19:23:16 UTC
There's an upstream bug open, it's only accessible once you register. We'll follow it there for now, and reopen this when it's fixed upstream.
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2006-08-10 11:01:08 UTC
*** Bug 143479 has been marked as a duplicate of this bug. ***
Comment 8 Donnie Berkholz (RETIRED) gentoo-dev 2006-08-25 18:12:26 UTC
*** Bug 145093 has been marked as a duplicate of this bug. ***
Comment 9 Donnie Berkholz (RETIRED) gentoo-dev 2006-08-25 18:12:57 UTC
There's a patch available on the upstream bug. It would be helpful if anyone having this issue could test it.
Comment 10 Maurice Volaski 2006-08-25 18:21:31 UTC
There is no easy way to test the patch on the ebuild because portage redownloads the source over the patch if I try to patch the working copy, but it definitely works when I compile it manually. I think the patch should be added to the ebuild until a formal bug fix release is made.
Comment 11 Donnie Berkholz (RETIRED) gentoo-dev 2006-08-25 18:31:58 UTC
Stick the ebuild in your overlay, the patch in files/, add an 'epatch ${FILESDIR}/patchname' line to src_unpack(), then run 'ebuild path-to-ebuild manifest'

More info on overlays is at http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3&chap=5#doc_chap2
Comment 12 Donnie Berkholz (RETIRED) gentoo-dev 2006-08-25 18:32:24 UTC
Oh, you may also need to add 'inherit eutils' near the top of the ebuild if it's not in an inherit line already.
Comment 13 Allen Parker 2006-08-25 19:38:57 UTC
anybody care to reopen this thing just in case upstream doesn't provide the pretty patch like in the latest cvs snapshot?
Comment 14 Harm Geerts 2006-08-26 06:51:43 UTC
Donnie: I've been using the patch without trouble for almost 2 weeks.
Comment 15 Matteo Spreafico 2006-08-29 11:57:49 UTC
The patch on upstream bug works well for me.

If you don't want to include it in portage, at least can you mask the broken ebuild for amd64? thanks
Comment 16 Sandro Bonazzola (RETIRED) gentoo-dev 2006-08-29 12:03:19 UTC
reopening the bug for covering the gap between now and the next release of unionfs. A patch exists produced by upstream here:  http://www.fsl.cs.sunysb.edu/~jsipek/unionfs/64bit_compile_fix.diff

the patch is committed in the upstream cvs tree, the log is here:
http://www.fsl.cs.sunysb.edu/pipermail/unionfs-cvs/2006-August/000787.html

please add the patch to the ebuild, fixing the issue untill the next release is available.
Comment 17 Donnie Berkholz (RETIRED) gentoo-dev 2006-09-24 19:32:43 UTC
Fixed in CVS, thanks.