Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 81085 - uw-imap-2004c fails to build during an emerge world - weird %rax from amd64, but on x86
Summary: uw-imap-2004c fails to build during an emerge world - weird %rax from amd64, ...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-07 02:41 UTC by Will Briggs
Modified: 2005-02-07 14:53 UTC (History)
2 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 Will Briggs 2005-02-07 02:41:34 UTC
During an emerge world, uw-imap-2004c is the first to be emerged.  The build fails with the following trace:

batman root # emerge -Du world
Calculating world dependencies ...done!
>>> emerge (1 of 11) net-mail/uw-imap-2004c to /
>>> md5 src_uri ;-) imap-2004c1.tar.Z
>>> Unpacking source...
>>> Unpacking imap-2004c1.tar.Z to /var/tmp/portage/uw-imap-2004c/work
>>> Source unpacked.
ssl

make sslunix
make[1]: Entering directory `/var/tmp/portage/uw-imap-2004c/work/imap-2004c1'
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Building in PARTIAL compliance with RFC 3501 security
+ requirements:
+ Compliant:
++ TLS/SSL encryption is supported
+ Non-compliant:
++ Unencrypted plaintext passwords are permitted
+
+ In order to rectify this problem, you MUST build with:
++ SSLTYPE=unix.nopwd
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Do you want to continue this build anyway? Type y or n please:
make[1]: Leaving directory `/var/tmp/portage/uw-imap-2004c/work/imap-2004c1'
Applying an process to sources...
tools/an "ln -s" src/c-client c-client
tools/an "ln -s" src/ansilib c-client
tools/an "ln -s" src/charset c-client
tools/an "ln -s" src/osdep/unix c-client
tools/an "ln -s" src/mtest mtest
tools/an "ln -s" src/ipopd ipopd
tools/an "ln -s" src/imapd imapd
tools/an "ln -s" src/mailutil mailutil
tools/an "ln -s" src/mlock mlock
tools/an "ln -s" src/dmail dmail
tools/an "ln -s" src/tmail tmail
ln -s tools/an .
make build EXTRACFLAGS='' EXTRALDFLAGS='' EXTRADRIVERS='mbox' EXTRAAUTHENTICATORS='' PASSWDTYPE=std SSLTYPE=unix IP=4 EXTRASPECIALS='' BUILDTYPE=lnp
make[1]: Entering directory `/var/tmp/portage/uw-imap-2004c/work/imap-2004c1'
Building c-client for lnp...
echo `cat SPECIALS`  > c-client/SPECIALS
cd c-client;make lnp EXTRACFLAGS=''\
 EXTRALDFLAGS=''\
 EXTRADRIVERS='mbox'\
 EXTRAAUTHENTICATORS=''\
 PASSWDTYPE=std SSLTYPE=unix IP=4\

make[2]: Entering directory `/var/tmp/portage/uw-imap-2004c/work/imap-2004c1/c-client'
make build EXTRACFLAGS='' EXTRALDFLAGS='' EXTRADRIVERS='mbox' EXTRAAUTHENTICATORS='' PASSWDTYPE=std SSLTYPE=unix IP=4 `cat SPECIALS` OS=lnx \
 SIGTYPE=psx CHECKPW=pam CRXTYPE=nfs \
 SPOOLDIR=/var/spool \
 ACTIVEFILE=/var/lib/news/active \
 RSHPATH=/usr/bin/rsh \
 BASECFLAGS="-g" \
 BASELDFLAGS="-lpam -ldl"
make[3]: Entering directory `/var/tmp/portage/uw-imap-2004c/work/imap-2004c1/c-client'
sh -c 'rm -rf auths.c crexcl.c nfstest.c linkage.[ch] siglocal.c osdep*.[ch] *.o ARCHIVE *FLAGS *TYPE c-client.a || true'
Once-only environment setup...
echo cc > CCTYPE
echo -g '' > CFLAGS
echo -DCREATEPROTO=unixproto -DEMPTYPROTO=unixproto \
 -DMAILSPOOL=\"/var/spool/mail\" \
 -DANONYMOUSHOME=\"/var/spool/mail/anonymous\" \
 -DACTIVEFILE=\"/var/lib/news/active\" -DNEWSSPOOL=\"/var/spool/news\" \
 -DRSHPATH=\"/usr/bin/rsh\" -DLOCKPGM=\"/etc/mlock\" > OSCFLAGS
echo -lpam -ldl  > LDFLAGS
echo "ar rc c-client.a osdep.o mail.o misc.o newsrc.o smanager.o utf8.o siglocal.o dummy.o pseudo.o netmsg.o flstring.o fdstring.o rfc822.o nntp.o smtp.o imap4r1.o pop3.o unix.o mbx.o mmdf.o tenex.o mtx.o news.o phile.o mh.o mx.o;ranlib c-client.a" > ARCHIVE
echo lnx > OSTYPE
./drivers mbox imap nntp pop3 mh mx mbx tenex mtx mmdf unix news phile dummy
./mkauths  md5 pla log
make[4]: Entering directory `/var/tmp/portage/uw-imap-2004c/work/imap-2004c1/c-client'
echo -DMD5ENABLE=\"/etc/cram-md5.pwd\" >> OSCFLAGS
make[4]: Leaving directory `/var/tmp/portage/uw-imap-2004c/work/imap-2004c1/c-client'
ln -s os_lnx.h osdep.h
ln -s os_lnx.c osdepbas.c
ln -s log_std.c osdeplog.c
ln -s sig_psx.c siglocal.c
ln -s crx_nfs.c crexcl.c
ln -s ip4_unix.c ip_unix.c
sh -c '(test -f /usr/include/sys/statvfs.h -a lnx != sc5 -a lnx != sco) && ln -s nfstnew.c nfstest.c || ln -s nfstold.c nfstest.c'
Standard password authentication
ln -s ckp_pam.c osdepckp.c
Building with SSL
ln -s ssl_unix.c osdepssl.c
echo -I/usr/include -I/usr/include/openssl -DSSL_CERT_DIRECTORY=\"/etc/ssl/certs\" -DSSL_KEY_DIRECTORY=\"/etc/ssl/certs\" >> OSCFLAGS
echo "  ssl_onceonlyinit ();" >> linkage.c
echo -L/usr/lib -lssl -lcrypto  >> LDFLAGS
cat osdepbas.c osdepckp.c osdeplog.c osdepssl.c > osdep.c
Building OS-dependent module
If you get No such file error messages for files x509.h, ssl.h,
pem.h, buffer.h, bio.h, and crypto.h, that means that OpenSSL
is not installed on your system. Either install OpenSSL first
or build with command: make lnx SSLTYPE=none
`cat CCTYPE` -c `cat CFLAGS` `cat OSCFLAGS` -c osdep.c
In file included from osdep.c:41:
env_unix.c: In function `mm_blocknotify':
env_unix.c:1631: warning: cast to pointer from integer of different size
env_unix.c:1634: warning: cast from pointer to integer of different size
env_unix.c:1634: warning: cast from pointer to integer of different size
/tmp/ccnmaYjC.s: Assembler messages:
/tmp/ccnmaYjC.s:6055: Error: Incorrect register `%rax' used with `l' suffix
/tmp/ccnmaYjC.s:6060: Error: Incorrect register `%rax' used with `l' suffix
/tmp/ccnmaYjC.s:12438: Error: Incorrect register `%rax' used with `l' suffix
/tmp/ccnmaYjC.s:12449: Error: Incorrect register `%rax' used with `l' suffix
/tmp/ccnmaYjC.s:13032: Error: Incorrect register `%rax' used with `l' suffix
/tmp/ccnmaYjC.s:13045: Error: Incorrect register `%rax' used with `l' suffix
/tmp/ccnmaYjC.s:13058: Error: Incorrect register `%rax' used with `l' suffix
/tmp/ccnmaYjC.s:13497: Error: Incorrect register `%rax' used with `l' suffix
/tmp/ccnmaYjC.s:13510: Error: Incorrect register `%rax' used with `l' suffix
/tmp/ccnmaYjC.s:13777: Error: Incorrect register `%rax' used with `l' suffix
/tmp/ccnmaYjC.s:13790: Error: Incorrect register `%rax' used with `l' suffix
/tmp/ccnmaYjC.s:14075: Error: Incorrect register `%rax' used with `l' suffix
/tmp/ccnmaYjC.s:14088: Error: Incorrect register `%rax' used with `l' suffix
/tmp/ccnmaYjC.s:16663: Error: Incorrect register `%rax' used with `l' suffix
/tmp/ccnmaYjC.s:16674: Error: Incorrect register `%rax' used with `l' suffix
/tmp/ccnmaYjC.s:17687: Error: Incorrect register `%rax' used with `l' suffix
/tmp/ccnmaYjC.s:17698: Error: Incorrect register `%rax' used with `l' suffix
distcc[31037] ERROR: compile osdep.c on 192.168.0.234/2 failed
make[3]: *** [osdep.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/uw-imap-2004c/work/imap-2004c1/c-client'
make[2]: *** [lnp] Error 2
make[2]: Leaving directory `/var/tmp/portage/uw-imap-2004c/work/imap-2004c1/c-client'
make[1]: *** [OSTYPE] Error 2
make[1]: Leaving directory `/var/tmp/portage/uw-imap-2004c/work/imap-2004c1'
make: *** [lnp] Error 2
yes: standard output: Broken pipe
yes: write error

!!! ERROR: net-mail/uw-imap-2004c failed.
!!! Function src_compile, Line 66, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.


Reproducible: Always
Steps to Reproduce:
1.emerge uw-imap
2.
3.

Actual Results:  
Build fails

Expected Results:  
Build

Portage 2.0.51-r15 (default-linux/x86/2004.0, gcc-3.4.3,
glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r6n i686)
=================================================================
System uname: 2.6.10-gentoo-r6n i686 Pentium II (Deschutes)
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Feb  4 2005, 02:35:28)]
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.4.21-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-Os -march=pentium2 -ftracer -pipe -fomit-frame-pointer -m32"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-Os -march=pentium2 -ftracer -pipe -fomit-frame-pointer -m32"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distcc distlocks sandbox sfperms"
GENTOO_MIRRORS="http://gentoo.ccccom.com"
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="x86 aalib apache2 apm arts avi berkdb bitmap-fonts crypt cups curl encode
esd f77 fam font-server foomaticdb fortran fxsr gdbm gif gtk gtk2 imagemagick
imap imlib jpeg ldap libg++ libwww mad mbox mikmod mmx motif mozilla mpeg
ncurses nls nntp odbc oggvorbis opengl oss pam pdflib perl png postgres ppds
python quicktime readline samba sdl slang ssl tcpd tiff truetype truetype-fonts
type1-fonts xml2 xmms xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 1 Andrej Kacian (RETIRED) gentoo-dev 2005-02-07 05:34:31 UTC
What happens when you try building it without distcc in FEATURES ?
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-02-07 05:40:54 UTC
remove the -m32 from your cflags.
%rax is an amd64 register.
So I really don't know where it came from...
Comment 3 Will Briggs 2005-02-07 14:53:28 UTC
My bad
  a) I thought distcc was off (so much for reducing log levels)
  b) I've stuffed up the cross-compile somewhere on the other machine (which is amd64) - looking at that now.

Funny though, I have built 10's of things as it currently is with no problems.

Thanks.