Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 96783 - linux-headers-2.6 causes build failure on ia64 with dosfstools
Summary: linux-headers-2.6 causes build failure on ia64 with dosfstools
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: IA64 Linux
: High normal (vote)
Assignee: Tim Yamin (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-22 07:08 UTC by Henrik Grubbström
Modified: 2005-06-24 10:56 UTC (History)
1 user (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 Henrik Grubbström 2005-06-22 07:08:09 UTC
Emerging of sys-fs/dosfstools-2.11 fails with:

>>> Source unpacked.
make -C mkdosfs all
make[1]: Entering directory
`/var/tmp/portage/dosfstools-2.11/work/dosfstools-2.11/mkdosfs'
gcc -O2 -fomit-frame-pointer -D_FILE_OFFSET_BITS=64 -Wall  -c mkdosfs.c -o mkdosfs.o
In file included from /usr/include/signal.h:333,
                 from mkdosfs.c:58:
/usr/include/bits/sigcontext.h:31: error: redefinition of `struct ia64_fpreg'
make[1]: *** [mkdosfs.o] Error 1
make[1]: Leaving directory
`/var/tmp/portage/dosfstools-2.11/work/dosfstools-2.11/mkdosfs'
make: *** [all] Error 2

which most likely is due to struct ia64_fpreg being defined in both <asm/fpu.h>:

struct ia64_fpreg {
        union {
                unsigned long bits[2];
                long double __dummy;    /* force 16-byte alignment */
        } u;
};

and in <bits/sigcontext.h> (included from <signal.h>):

struct ia64_fpreg
  {
    union
      {
        unsigned long bits[2];
      } u;
  } __attribute__ ((aligned (16)));

It looks like <asm/fpu.h> is aware of the definition in <bits/sigcontext.h>, but
not the other way around.

Reproducible: Always
Steps to Reproduce:
1. Attempt to emerge sys/dosfstools-2.11 on an IA64.
2. Watch it fail.





# emerge info
Portage 2.0.51.22-r1 (default-linux/ia64/2004.3, gcc-3.4.4, glibc-2.3.5-r0,
2.6.8-gentoo-r3 ia64)
=================================================================
System uname: 2.6.8-gentoo-r3 ia64 
Gentoo Base System version 1.6.12
ccache version 2.3 [disabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.9
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r1, 2.15.92.0.2-r10
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r1, 2.6.8.1-r2
ACCEPT_KEYWORDS="ia64"
AUTOCLEAN="yes"
CBUILD="ia64-unknown-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="ia64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /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="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.pudas.net/gentoo
rsync://trumpetti.atm.tut.fi/gentoo/ http://gentoo.linux.no/
ftp://gentoo.linux.no/pub/gentoo/"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage_overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="ia64 X acpi berkdb bitmap-fonts bzlib canna cjk crypt cups emacs encode
foomaticdb fortran freetds gdbm gif gmp gnutls gpm gtk gtk2 imlib ipv6 jpeg ldap
libg++ libwww maildir mbox mhash mikmod mime motif mozilla mule mysql mysqli
ncurses nis nls nptl odbc offensive ogg oggvorbis opengl oss pam pcre pdflib
perl pic pie png posix python qt quicktime readline recode samba sdl spell
sqlite ssl tcltk tcpd tiff truetype truetype-fonts type1-fonts unicode vorbis
xml2 xmms xpm xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 SpanKY gentoo-dev 2005-06-22 18:37:45 UTC
does upgrading to linux-headers-2.6.11 fix this ?
Comment 2 Henrik Grubbström 2005-06-23 01:41:22 UTC
Yes, upgrading to linux-headers-2.6.11 (~ia64) seems to fix the problem.
Comment 3 Tim Yamin (RETIRED) gentoo-dev 2005-06-24 10:56:09 UTC
2.6.11 stabled on IA64, thanks!