Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 115487 - gpm-1.20.1-r5 fails to build using gcc 4.0.2-r2
Summary: gpm-1.20.1-r5 fails to build using gcc 4.0.2-r2
Status: RESOLVED DUPLICATE of bug 115708
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-13 17:50 UTC by Nathan Sullivan
Modified: 2005-12-19 06:05 UTC (History)
0 users

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 Nathan Sullivan 2005-12-13 17:50:33 UTC
gpm-1.20.1-r5 fails to build. ran the below past halcy0n and he said he will
organise fixing it.

Reproducible: Always
Steps to Reproduce:
1. use gcc 4.0.2-r2
2. emerge gpm
3.

Actual Results:  
powerpc-unknown-linux-gnu-gcc
-I/var/tmp/portage/gpm-1.20.1-r5/work/gpm-1.20.1/src -DHAVE_CONFIG_H -include
headers/config.h -Wall -DSYSCONF
IR="\"/etc/gpm\"" -DSBINDIR="\"/usr/sbin\""  -O2 -mtune=G4 -maltivec
-mabi=altivec -fno-strict-aliasing -pipe -O2 -mtune=G4 -maltivec -mabi=
ltivec -fno-strict-aliasing -pipe -c -o gpn.o gpn.c
gpn.c: In function 'loadlut':
gpn.c:108: warning: pointer targets in passing argument 1 of 'getsym' differ in
signedness
gpn.c:110: warning: pointer targets in passing argument 1 of 'getsym' differ in
signedness
powerpc-unknown-linux-gnu-gcc
-I/var/tmp/portage/gpm-1.20.1-r5/work/gpm-1.20.1/src -DHAVE_CONFIG_H -include
headers/config.h -Wall -DSYSCONF
IR="\"/etc/gpm\"" -DSBINDIR="\"/usr/sbin\""  -O2 -mtune=G4 -maltivec
-mabi=altivec -fno-strict-aliasing -pipe -O2 -mtune=G4 -maltivec -mabi=
ltivec -fno-strict-aliasing -pipe -c -o mice.o mice.c
In file included from /usr/include/linux/bitops.h:77,
                 from /usr/include/linux/thread_info.h:20,
                 from /usr/include/linux/spinlock.h:12,
                 from /usr/include/linux/wait.h:23,
                 from /usr/include/linux/keyboard.h:20,
                 from mice.c:60:
/usr/include/asm/bitops.h:250: error: static declaration of 'ffs' follows
non-static declaration
mice.c:170: warning: type qualifiers ignored on function return type
mice.c: In function 'option_modem_lines':
mice.c:185: warning: pointer targets in initialization differ in signedness
mice.c:186: warning: pointer targets in initialization differ in signedness
mice.c:187: warning: pointer targets in initialization differ in signedness
mice.c: In function 'M_gunze':
mice.c:1323: warning: pointer targets in passing argument 1 of 'sscanf' differ
in signedness
mice.c: In function 'I_summa':
mice.c:1997: warning: comparison is always false due to limited range of data type
mice.c:2007: warning: comparison is always false due to limited range of data type
mice.c:2025: warning: comparison is always false due to limited range of data type
mice.c:2039: warning: comparison is always false due to limited range of data type
make[1]: *** [mice.o] Error 1
make[1]: *** Waiting for unfinished jobs....
gpm.c: In function 'getMouseData':
gpm.c:380: warning: pointer targets in initialization differ in signedness
gpm.c:399: warning: pointer targets in return differ in signedness
gpm.c:430: warning: pointer targets in return differ in signedness
gpm.c: In function 'processMouse':
gpm.c:482: warning: pointer targets in passing argument 2 of
'which_mouse->m_type->fun' differ in signedness
gpm.c: In function 'open_console':
gpm.c:165: warning: 'si.line' is used uninitialized in this function
gpm.c:172: warning: control reaches end of non-void function
gpm.c: In function 'get_console_size':
gpm.c:165: warning: 'si.line' is used uninitialized in this function
gpm.c: In function 'processMouse':
gpm.c:165: warning: 'si.line' is used uninitialized in this function
gpm.c: In function 'old_main':
gpm.c:165: warning: 'si.line' is used uninitialized in this function
make[1]: Leaving directory `/var/tmp/portage/gpm-1.20.1-r5/work/gpm-1.20.1/src'
make: *** [do-all] Error 1

!!! ERROR: sys-libs/gpm-1.20.1-r5 failed.
!!! Function src_compile, Line 42, Exitcode 2
!!! emake failed

Expected Results:  
Successful build.

Portage 2.0.53 (default-linux/ppc/2005.0, gcc-4.0.2, glibc-2.3.6-r1,
2.6.14-gentoo-r4 ppc)
=================================================================
System uname: 2.6.14-gentoo-r4 ppc 7447A, altivec supported
Gentoo Base System version 1.12.0_pre11
ccache version 2.4 [enabled]
dev-lang/python:     2.3.4-r1, 2.4.2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.20-r1
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks fixpackages nostrip sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.isp.net.au/ftp/pub/gentoo
http://mirror.pacific.net.au/pub/Gentoo
http://public.planetmirror.com/pub/gentoo http://mirror.gentoo.gr.jp
ftp://gg3.net/pub/linux/gentoo http://ftp-mirror.internap.com/pub/gentoo
ftp://gentoo.agsn.ca/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://172.17.0.1/gentoo-portage"
USE="X aim alsa altivec apache2 audiofile berkdb bitmap-fonts bluetooth
browserplugin bzip2 cairo cdr cli crypt ctype cups curl dba divx4linux dvd dvdr
emboss ethereal exif expat extraengine fam flac fortran gd gdbm gif glut gmp gpm
gps gtk gtk2 icq idn imagemagick imap innodb ipv6 jabber java jpeg kerberos lcms
ldap libwww mad mhash mng motif mozsvg mp3 mpeg mysql mysqli ncurses nls nptl
nptlonly nsplugin ogg oggvorbis opengl pam pci pcmcia pcntl pcre pdflib pear
perl php png posix ppc python readline ruby samba sdl session simplexml snmp
soap softmmu spell sqlite ssl svg tcpd tidy tiff truetype truetype-fonts
type1-fonts udev unicode usb userlocales utf8 vhosts vnc vorbis wddx xine xml2
xmms xv xvid yahoo zip zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 SpanKY gentoo-dev 2005-12-13 17:56:08 UTC
looks more like linux-headers breakage than gcc

try with gcc-3.4.x
Comment 2 Nathan Sullivan 2005-12-15 16:35:18 UTC
From memory gpm was fine before moving to gcc-4.0.x. Was using 3.4.4 i think
previously.
Comment 3 nixnut (RETIRED) gentoo-dev 2005-12-17 23:01:54 UTC
Same here. Also on ppc.
with gcc-3.4.4 sucess
with gcc-4.0.2-r2 breakage as above
Comment 4 Mark Loeser (RETIRED) gentoo-dev 2005-12-19 06:05:42 UTC

*** This bug has been marked as a duplicate of 115708 ***