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

Bug 95721

Summary: sys-libs/ncurses-5.4.20050319 failes to compile with GCC (4.1.0_beta20050604)
Product: Gentoo Linux Reporter: Lars Strojny <lars>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Other   
Whiteboard:
Package list:
Runtime testing required: ---

Description Lars Strojny 2005-06-10 14:38:03 UTC
$ emerge --oneshot ncurses
[...]
substituting autoconf'd values from ../include/ncurses_cfg.h into etip.h
... CPP_HAS_PARAM_INIT 0
... ETIP_NEEDS_MATH_EXCEPTION 0
... ETIP_NEEDS_MATH_H 1
... HAVE_BUILTIN_H 0
... HAVE_GPP_BUILTIN_H 0
... HAVE_GXX_BUILTIN_H 0
... HAVE_STRSTREAM_H 0
... HAVE_TYPEINFO 1
... HAVE_VALUES_H 0
... USE_STRSTREAM_VSCAN 0
... USE_STRSTREAM_VSCAN_CAST 0
In file included from /usr/include/linux/prefetch.h:15,
                 from /usr/include/linux/list.h:5,
                 from /usr/include/linux/wait.h:12,
                 from /usr/include/linux/keyboard.h:4,
                 from /var/tmp/portage/ncurses-5.4.20050319/work/ncurses-5.4/ncurses/base/lib_mouse.c:91:
/usr/include/asm/processor.h:89: error: array type has incomplete element type
make[1]: *** [../obj_s/lib_mouse.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [all] Error 2

!!! ERROR: sys-libs/ncurses-5.4.20050319 failed.
!!! Function do_compile, Line 94, Exitcode 2
!!! make failed
!!! If you need support, post the topmost build error, NOT this status message.


Seems to be a problem with the linux-headers, not with ncurses especially.


$ emerge info
Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-4.1.0-beta20050604, glibc-2.3.5-r0, 2.6.11-swsusp2 i686)
=================================================================
System uname: 2.6.11-swsusp2 i686 Pentium III (Coppermine)
Gentoo Base System version 1.6.9
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.8
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.16-r1
sys-devel/libtool:   1.5.10-r2
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS=""
CHOST="i686-pc-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 /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/gconf /etc/terminfo /etc/env.d"
CXXFLAGS=""
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="de_DE.utf-8"
LC_ALL="de_DE.utf-8"
MAKEOPTS="-s -j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/mabuse_overlay /usr/local/portage/horkheimer_overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib acl acpi alsa apache2 avi bash-completion bitmap-fonts bzlib caca calendar cpdflib crypt cups eds encode esd ethereal evo exif flac foomaticdb ftp gd gd-external gif gimpprint gnome gphoto2 gpm gstreamer gtk2 gtkhtml hal hbci howl i8x0 iconv imagemagick imlib imlib2 ipv6 irda jpeg ldap libg++ libwww mad maildir mbox md5sum mikmod mmap mmx mng motif mozilla moznocompose moznoirc moznomail mozsvg mpeg mysql ncurses nls nntp nogcj nptl nptlonly oggvorbis opengl openssh pam pcmcia pcre pdflib php pic plotutils png python quicktime readline samba sdl session simplexml slang sockets spell sqlite sse ssl svg svga tetex tiff transcode truetype truetype-fonts type1-fonts unicode usb userlocales vhosts videos wavelan wmf wxwindows x86 xface xfs xml xml2 xmlrpc xosd xprint xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS, LINGUAS
Comment 1 SpanKY gentoo-dev 2005-06-10 16:44:02 UTC
so post a patch to fix the issue
Comment 2 Mark Loeser (RETIRED) gentoo-dev 2005-06-10 20:48:37 UTC
Upgrade your linux-headers to 2.6.11.  There have been a lot of fixes between
the version you are using and them.
Comment 3 Jason Bucata 2005-07-17 22:46:37 UTC
I just encountered this very problem on my Gentoo test install, with gcc 4.0.0
(didn't tried 4.0.1 or the 4.1 beta).  Upgrading linux-headers from 2.6.8.1 to
2.6.11-r2 worked for me.
Comment 4 SpanKY gentoo-dev 2005-07-17 23:08:16 UTC
sounds good
Comment 5 SpanKY gentoo-dev 2005-07-17 23:08:36 UTC
use linux-headers-2.6.11+ if you wish to screw around with gcc-4