Bug 133100 - basket 0.5.0 doesn't compile on amd64 with gcc4.1
Bug#: 133100 Product:  Gentoo Linux Version: unspecified Platform: AMD64
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: desktop-misc@gentoo.org Reported By: panard@inzenet.org
Component: GCC Porting
URL: 
Summary: basket 0.5.0 doesn't compile on amd64 with gcc4.1
Keywords:  
Status Whiteboard: 
Opened: 2006-05-12 03:09 0000
Description:   Opened: 2006-05-12 03:09 0000
# emerge basket
...
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.5/include
-I/usr/qt/3/include -I.  -I/usr/kde/3.5/include  -DQT_THREAD_SUPPORT 
-D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W
-Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE
-Wcast-align -Wconversion -Wchar-subscripts -DNDEBUG -DNO_DEBUG -O2 -pipe
-march=athlon64 -mtune=athlon64 -O2 -ftree-vectorize -Wformat-security
-Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common  -c -o
item.o `test -f 'item.cpp' || echo './'`item.cpp
item.cpp: In member function ‘void Item::setSelected(bool)’:
item.cpp:420: error: cast from ‘Item*’ to ‘int’ loses
precision
item.cpp:421: error: cast from ‘Item*’ to ‘int’ loses
precision
make[2]: *** [item.o] Error 1
make[2]: Leaving directory
`/var/tmp/portage/basket-0.5.0/work/basket-0.5.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/basket-0.5.0/work/basket-0.5.0'
make: *** [all] Error 2

!!! ERROR: x11-misc/basket-0.5.0 failed.
Call stack:
  ebuild.sh, line 1527:   Called dyn_compile
  ebuild.sh, line 930:   Called src_compile
  ebuild.sh, line 1239:   Called kde_src_compile
  kde.eclass, line 120:   Called kde_src_compile 'all'
  kde.eclass, line 238:   Called kde_src_compile 'myconf' 'configure' 'make'
  kde.eclass, line 234:   Called die

!!! died running emake, kde_src_compile:make
!!! If you need support, post the topmost build error, and the call stack if
relevant.


here is a patch to fix that

------- Comment #1 From Panard 2006-05-12 03:10:38 0000 -------
Created an attachment (id=86638) [details]
fix basket compilation on amd64 with gcc4.1

------- Comment #2 From Panard 2006-05-12 03:12:17 0000 -------
Created an attachment (id=86639) [details]
patch for basket-0.5.0.ebuild

------- Comment #3 From Krzysiek Pawlik 2006-05-17 11:27:16 0000 -------
Fixed.