Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 38193 - openafs 1.2.10-r2 ebuild error impossible constraint in `asm'
Summary: openafs 1.2.10-r2 ebuild error impossible constraint in `asm'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Network Filesystems
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-14 11:14 UTC by Hans-Christian Armingeon
Modified: 2004-01-21 09:45 UTC (History)
3 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 Hans-Christian Armingeon 2004-01-14 11:14:30 UTC
Emerge -u openafs fails with:

[full log if needed]
gcc -fPIC   -O2 -fomit-frame-pointer -fno-strength-reduce -fno-strict-aliasing -fno-common -pipe -march=pentium -D__KERNEL__  -DCPU=586 -DKERNEL -D_KERNEL -DMODULE   -I. -I../ -I/var/tmp/portage/openafs-1.2.10-r2/work/openafs-1.2.10/src/config -c ../afs/afs_vcache.c;
../afs/afs_vcache.c: In function `__shrink_dcache_parent':
../afs/afs_vcache.c:526: warning: asm operand 1 probably doesn't match constraints
../afs/afs_vcache.c:526: error: impossible constraint in `asm'
make[4]: *** [afs_vcache.o] Error 1
make[4]: Leaving directory `/var/tmp/portage/openafs-1.2.10-r2/work/openafs-1.2.10/src/libafs/MODLOAD-2.4.23-SP'
make[3]: *** [linux_compdirs] Error 2
make[3]: Leaving directory `/var/tmp/portage/openafs-1.2.10-r2/work/openafs-1.2.10/src/libafs'
make[2]: *** [libafs] Error 2
make[2]: Leaving directory `/var/tmp/portage/openafs-1.2.10-r2/work/openafs-1.2.10'
make[1]: *** [build] Error 2
make[1]: Leaving directory `/var/tmp/portage/openafs-1.2.10-r2/work/openafs-1.2.10'
make: *** [all] Error 2

!!! ERROR: net-fs/openafs-1.2.10-r2 failed.
!!! Function src_compile, Line 52, Exitcode 2
!!! make

Calculating world dependencies  ...done!
>>> emerge (1 of 2) net-fs/openafs-1.2.10-r2 to /
>>> md5 src_uri ;-) openafs-1.2.10-src.tar.bz2

Johnny

Reproducible: Always
Steps to Reproduce:
1. emerge -u openafs
2.
3.
Actual Results:  
 

Expected Results:  
 

Portage 2.0.50_pre16 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20031222-r0, 
2.4.23) 
================================================================= 
System uname: 2.4.23 i686 mobile AMD Athlon(tm) XP 2500+ 
Gentoo Base System version 1.4.3.12 
distcc 2.12.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[disabled] 
ccache version 2.3 [enabled] 
Autoconf: sys-devel/autoconf-2.59 
Automake: sys-devel/automake-1.7.8 
ACCEPT_KEYWORDS="x86 ~x86" 
AUTOCLEAN="yes" 
CFLAGS="-O3 -mcpu=athlon-xp -funroll-loops -pipe" 
CHOST="i686-pc-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /lib/modules /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws /etc/gconf /etc/env.d" 
CXXFLAGS="-O3 -mcpu=athlon-xp -funroll-loops -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache sandbox" 
GENTOO_MIRRORS="http://builda http://gentoo.oregonstate.edu 
http://distro.ibiblio.org/pub/Linux/distributions/gentoo" 
MAKEOPTS="-j3" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="X Xaw3d aalib acl acpi afs alsa apache2 apm arts avi berkdb bonobo cdr 
crypt cscope cups curl dga directfb doc dvb dvd emacs encode esd ethereal evo 
fbcon firebird flash foomaticdb freetds gb gd gdbm ggi gif gnome gphoto2 gpm 
gps gstreamer gtk gtk2 gtkhtml guile imap imlib informix innodb ipv6 jack java 
jikes joystick jpeg kde kerberos krb4 ladcca lcm ldap leim libg++ libgda 
libwww lirc mad maildir mbox mcal memlimit mikmod mmx motif mozilla mpeg mpi 
mule mysql nas ncurses nhc98 nls oci8 odbc oggvorbis opengl oss pam pcmcia pda 
pdflib perl plotutils png pnp postgres ppds prelude python qt quicktime 
readline ruby18 samba sasl scanner sdl slang slp snmp socks5 spell ssl svga 
tcltk tcpd tetex tiff truetype usb wmf wxwindows x86 xface xinerama xml2 xmms 
xosd xv zeo zlib"
Comment 1 Steven Jenkins 2004-01-16 04:44:18 UTC
I get the same error, although the message is slightly different:
--------------
gcc -fPIC   -O2 -fomit-frame-pointer -fno-strength-reduce -fno-strict-aliasing -fno-common -pipe -march=pentium -D__KERNEL__  -DCPU=586 -DKERNEL -D_KERNEL -DMODULE -DAFS_SMP    -I. -I../ -I/var/tmp/portage/openafs-1.2.10-r2/work/openafs-1.2.10/src/config -c ../afs/afs_vcache.c;
../afs/afs_vcache.c: In function `__shrink_dcache_parent':
../afs/afs_vcache.c:526: warning: asm operand 1 probably doesn't match constraints
../afs/afs_vcache.c:526: inconsistent operand constraints in an `asm'
../asm/fixmap.h: In function `virt_to_fix':
../asm/fixmap.h:134: warning: asm operand 1 probably doesn't match constraints
distcc[12001] ERROR: compile on localhost failed
make[4]: *** [afs_vcache.o] Error 1
make[4]: Leaving directory `/var/tmp/portage/openafs-1.2.10-r2/work/openafs-1.2.10/src/libafs/MODLOAD-2.4.20-gentoo-r9-MP'
make[3]: *** [linux_compdirs] Error 2
make[3]: Leaving directory `/var/tmp/portage/openafs-1.2.10-r2/work/openafs-1.2.10/src/libafs'
make[2]: *** [libafs] Error 2
make[2]: Leaving directory `/var/tmp/portage/openafs-1.2.10-r2/work/openafs-1.2.10'
make[1]: *** [build] Error 2
make[1]: Leaving directory `/var/tmp/portage/openafs-1.2.10-r2/work/openafs-1.2.10'
make: *** [all] Error 2
                                                                                
!!! ERROR: net-fs/openafs-1.2.10-r2 failed.
!!! Function src_compile, Line 52, Exitcode 2
!!! make
-------------------
The warning messages appear for multiple files in this directory. The "../afs/afs_vcache.c:526: inconsistent operand constraints in an `asm'" message appears only once.

emerge info:
Portage 2.0.49-r20 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.4.20-gentoo-r9)
=================================================================
System uname: 2.4.20-gentoo-r9 i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.3.10p1
distcc 2.11.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws /etc/gconf /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distcc sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X afs alsa apm arts avi berkdb bonobo cdr crypt cups distcc dvd encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 gtkhtml guile imlib java jpeg kde ldap libg++ libwww mad mikmod motif mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png postgres python qt quicktime readline ruby ruby18 sdl slang spell ssl svga tcltk tcpd tetex truetype x86 xml2 xmms xv zlib"
Comment 2 Stephen Bosch 2004-01-19 08:34:30 UTC
I too am having exactly this problem with r2. Here's my output:

gcc -fPIC   -O2 -fomit-frame-pointer -fno-strength-reduce -fno-strict-aliasing -fno-common -pipe -march=pentium -D__KERNEL__  -DCPU=586 -DKERNEL -D_KERNEL -DMODULE   -I. -I../ -I/var/tmp/portage/openafs-1.2.10-r2/work/openafs-1.2.10/src/config -c ../afs/afs_vcache.c;
../afs/afs_vcache.c: In function `__shrink_dcache_parent':
../afs/afs_vcache.c:526: warning: asm operand 1 probably doesn't match constraints
../afs/afs_vcache.c:526: inconsistent operand constraints in an `asm'
make[4]: *** [afs_vcache.o] Error 1
make[4]: Leaving directory `/var/tmp/portage/openafs-1.2.10-r2/work/openafs-1.2.10/src/libafs/MODLOAD-2.4.24-SP'
make[3]: *** [linux_compdirs] Error 2
make[3]: Leaving directory `/var/tmp/portage/openafs-1.2.10-r2/work/openafs-1.2.10/src/libafs'
make[2]: *** [libafs] Error 2
make[2]: Leaving directory `/var/tmp/portage/openafs-1.2.10-r2/work/openafs-1.2.10'
make[1]: *** [build] Error 2
make[1]: Leaving directory `/var/tmp/portage/openafs-1.2.10-r2/work/openafs-1.2.10'
make: *** [all] Error 2

!!! ERROR: net-fs/openafs-1.2.10-r2 failed.
!!! Function src_compile, Line 52, Exitcode 2
!!! make

wopr openafs #

I am left with the impression that this package is hardly being maintained. First, there is this problem; Second, I am unable to create the root.afs volume with the *stable* build, even though the partition exists; Third, there was a critical update to OpenAFS (release 1.2.11) back on the 10th and there is no sign that any new ebuild is on the way.

I'd do it myself if I knew how.
Comment 3 George Shapovalov (RETIRED) gentoo-dev 2004-01-20 12:35:27 UTC
Renaming the 1.2.10-r2 and removing the fpic options passed to make in src_compile seems to make it compile. (yea, I know that -fpic is supposed to make the code more relocatable, but it seems to cause problems on x86 at least).
As I am not a maintainer and don't know much about the package I don't know whether it functions properly though..

George
Comment 4 Ryan Phillips (RETIRED) gentoo-dev 2004-01-21 09:45:50 UTC
Committed the fPIC change.  Gentoo doesn't have a full time developer for OpenAFS.  If anyone wants to step up to the plate email me.