Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 156843

Summary: sys-kernel/gentoo-sources-2.6.19 fails to compile fs/nfs/dir.c
Product: Gentoo Linux Reporter: Aaron Lukacsko <aaron.gentoo>
Component: [OLD] Core systemAssignee: Daniel Drake (RETIRED) <dsd>
Status: RESOLVED FIXED    
Severity: normal CC: kernel
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
URL: http://www2.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff_plain;h=24420760c3701ff422b344e047a20ca09b76fc64
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: My .config to recreate the bug.

Description Aaron Lukacsko 2006-12-01 13:32:06 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0
Build Identifier: 

Upon turning on NFS file support during make menuconfig, I get the following
when building:

localhost linux # make && make modules_install
scripts/kconfig/conf -s arch/x86_64/Kconfig
  CHK     include/linux/version.h
  CHK     include/linux/utsrelease.h
  CHK     include/linux/compile.h
  GZIP    kernel/config_data.gz
  IKCFG   kernel/config_data.h
  CC      kernel/configs.o
  LD      kernel/built-in.o
  CC      fs/lockd/clntlock.o
  CC      fs/lockd/clntproc.o
  CC      fs/lockd/host.o
  CC      fs/lockd/svc.o
  CC      fs/lockd/svclock.o
  CC      fs/lockd/svcshare.o
  CC      fs/lockd/svcproc.o
  CC      fs/lockd/svcsubs.o
  CC      fs/lockd/mon.o
  CC      fs/lockd/xdr.o
  LD      fs/lockd/lockd.o
  LD      fs/lockd/built-in.o
  CC      fs/nfs/client.o
  CC      fs/nfs/dir.o
fs/nfs/dir.c: In function `nfs_access_add_cache':
include/asm/bitops.h:122: error: inconsistent operand constraints in an `asm'
make[2]: *** [fs/nfs/dir.o] Error 1
make[1]: *** [fs/nfs] Error 2
make: *** [fs] Error 2



Reproducible: Always

Steps to Reproduce:
1.Turn on NFS Filesystem Support.
2.
3.

Actual Results:  
The kernel fails to build.

Expected Results:  
The new kernel should have built.

Portage 2.1.2_rc2-r3 (default-linux/amd64/2006.0, gcc-3.4.6, glibc-2.5-r0,
2.6.17-gentoo-r5 x86_64)
=================================================================
System uname: 2.6.17-gentoo-r5 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+
Gentoo Base System version 1.12.6
Last Sync: Fri, 01 Dec 2006 20:50:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
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, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -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/splash /etc/terminfo"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox
sfperms strict"
GENTOO_MIRRORS="ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/
http://distro.ibiblio.org/pub/linux/distributions/gentoo/
http://gentoo.chem.wisc.edu/gentoo/ ftp://gentoo.chem.wisc.edu/gentoo/ "
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/portage/local/layman/xeffects
/usr/local/overlays/xfce4-4rc1 /usr/local/overlays/local"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac aalib acpi alsa apache2 arts audiofile bash-completion
berkdb bitmap-fonts bonobo bzip2 cairo cddb cdparanoia cdr cli cracklib crypt
cups curl curlwrappers dbus directfb dlloader dri dvd dvdr dvdread eds
elibc_glibc emboss encode fbcon ffmpeg firefox flac foomaticdb fortran gif gnome
gphoto2 gpm gstreamer gtk gtk2 iconv ieee1394 imlib input_devices_evdev
input_devices_keyboard input_devices_mouse ipv6 isdnlog java jpeg kde
kernel_linux lzw lzw-tiff mono mp3 mpeg ncurses nls nptl nptlonly nsplugins
opengl pam pcre perl png pppd python qt3 qt4 quicktime readline reflection sdl
session smp spell spl sse-filters sse3 ssl sysfs tcpd thunar-vfs tiff truetype
truetype-fonts type1-fonts usb userland_GNU video_cards_none win32codec xorg xpm
xv zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS,
LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS

I've tried building it under a number of scenarios - XFCE4.4, pure console, etc.
all with the same result.
Comment 1 Aaron Lukacsko 2006-12-01 13:33:50 UTC
Created attachment 103160 [details]
My .config to recreate the bug.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-12-01 13:40:10 UTC
Kindly review http://bugs.gentoo.org/page.cgi?id=fields.html#bug_severity
Comment 3 Aaron Lukacsko 2006-12-01 13:57:16 UTC
Thanks - my first bug report and I read 'blocked' as couldn't build.
Comment 4 Daniel Drake (RETIRED) gentoo-dev 2006-12-01 15:38:28 UTC
Can you try it with gcc-4.1? If that doesn't help, try a newer binutils from the testing tree.
Comment 5 Aaron Lukacsko 2006-12-01 20:01:05 UTC
Building with version 4.1.1 of gcc appears to have fixed this issue and allowed the build to continue (until I hit http://bugs.gentoo.org/show_bug.cgi?id=156705).  

I guess its time to upgrade the system.

Should this be marked as fixed then?
Comment 6 Daniel Drake (RETIRED) gentoo-dev 2006-12-01 20:22:19 UTC
No, we also need to be compatible with 3.4
Comment 7 Daniel Drake (RETIRED) gentoo-dev 2007-01-29 18:17:26 UTC
Fixed in gentoo-sources-2.6.19-r5