First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 134866
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Science Related Packages <sci@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: David Watzke <david@watzke.cz>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
qcad-2.0.4.0-1.src-gcc4.patch qcad-2.0.4.0-1.src-gcc4.patch patch Jon Hood (RETIRED) 2006-06-23 12:37 0000 1.15 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 134866 depends on: Show dependency tree
Bug 134866 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-05-29 22:05 0000
x86_64-pc-linux-gnu-g++ -c -pipe -Wall -W -O2 -march=athlon64 -pipe
-fno-strict-aliasing -O2 -march=athlon64 -fomit-frame-pointer -pipe
-D_REENTRANT  -DRS_NO_COMPLEX_ENTITIES -D_REENTRANT -DQT_THREAD_SUPPORT
-DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT
-I/usr/qt/3/mkspecs/linux-g++ -I. -I../include -I../../dxflib/include
-I../../fparser/include -I../../qcadcmd/include -I/usr/qt/3/include -Imoc/ -o
obj/rs_document.o engine/rs_document.cpp
x86_64-pc-linux-gnu-g++ -c -pipe -Wall -W -O2 -march=athlon64 -pipe
-fno-strict-aliasing -O2 -march=athlon64 -fomit-frame-pointer -pipe
-D_REENTRANT  -DRS_NO_COMPLEX_ENTITIES -D_REENTRANT -DQT_THREAD_SUPPORT
-DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT
-I/usr/qt/3/mkspecs/linux-g++ -I. -I../include -I../../dxflib/include
-I../../fparser/include -I../../qcadcmd/include -I/usr/qt/3/include -Imoc/ -o
obj/rs_ellipse.o engine/rs_ellipse.cpp
x86_64-pc-linux-gnu-g++ -c -pipe -Wall -W -O2 -march=athlon64 -pipe
-fno-strict-aliasing -O2 -march=athlon64 -fomit-frame-pointer -pipe
-D_REENTRANT  -DRS_NO_COMPLEX_ENTITIES -D_REENTRANT -DQT_THREAD_SUPPORT
-DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT
-I/usr/qt/3/mkspecs/linux-g++ -I. -I../include -I../../dxflib/include
-I../../fparser/include -I../../qcadcmd/include -I/usr/qt/3/include -Imoc/ -o
obj/rs_entity.o engine/rs_entity.cpp
engine/rs_ellipse.cpp:449: warning: unused parameter
&#8216;patternOffset&#8217;
x86_64-pc-linux-gnu-g++ -c -pipe -Wall -W -O2 -march=athlon64 -pipe
-fno-strict-aliasing -O2 -march=athlon64 -fomit-frame-pointer -pipe
-D_REENTRANT  -DRS_NO_COMPLEX_ENTITIES -D_REENTRANT -DQT_THREAD_SUPPORT
-DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT
-I/usr/qt/3/mkspecs/linux-g++ -I. -I../include -I../../dxflib/include
-I../../fparser/include -I../../qcadcmd/include -I/usr/qt/3/include -Imoc/ -o
obj/rs_entitycontainer.o engine/rs_entitycontainer.cpp
x86_64-pc-linux-gnu-g++ -c -pipe -Wall -W -O2 -march=athlon64 -pipe
-fno-strict-aliasing -O2 -march=athlon64 -fomit-frame-pointer -pipe
-D_REENTRANT  -DRS_NO_COMPLEX_ENTITIES -D_REENTRANT -DQT_THREAD_SUPPORT
-DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT
-I/usr/qt/3/mkspecs/linux-g++ -I. -I../include -I../../dxflib/include
-I../../fparser/include -I../../qcadcmd/include -I/usr/qt/3/include -Imoc/ -o
obj/rs_font.o engine/rs_font.cpp
engine/rs_entity.cpp: In function &#8216;std::ostream&
operator<<(std::ostream&, RS_Entity&)&#8217;:
engine/rs_entity.cpp:852: error: cast from &#8216;RS_Layer*&#8217; to
&#8216;int&#8217; loses precision
make[2]: *** [obj/rs_entity.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory
`/var/tmp/portage/qcad-2.0.4.0-r1/work/qcad-2.0.4.0-1.src/qcadlib/src'
make[1]: *** [lib/libqcad.a] Error 2
make[1]: Leaving directory
`/var/tmp/portage/qcad-2.0.4.0-r1/work/qcad-2.0.4.0-1.src/qcadlib'
make: *** [all] Error 2
Building qcadlib failed

!!! ERROR: sci-misc/qcad-2.0.4.0-r1 failed.
Call stack:
  ebuild.sh, line 1531:   Called dyn_compile
  ebuild.sh, line 931:   Called src_compile
  qcad-2.0.4.0-r1.ebuild, line 67:   Called die

Exactly same with -r2 and -r3, here's my emerge --info ::

Portage 2.1_rc3-r1 (default-linux/amd64/2006.0, gcc-4.1.1, glibc-2.4-r3,
2.6.16-gentoo-r8 x86_64)
=================================================================
System uname: 2.6.16-gentoo-r8 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.0
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
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-r2
sys-devel/binutils:  2.16.93
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=athlon64 -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon64 -fomit-frame-pointer -pipe"
DISTDIR="/portage/distfiles"
FEATURES="autoconfig candy distlocks metadata-transfer parallel-fetch sandbox
sfperms strict"
GENTOO_MIRRORS="ftp://ftp.linux.cz/pub/linux/gentoo http://mirror.gentoo.sk/pub
http://distfiles.gentoo.org/"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LINGUAS="cs"
MAKEOPTS="-j3"
PKGDIR="/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/portage"
PORTDIR_OVERLAY="/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac acpi alsa asf audiofile avi bash-completion bitmap-fonts
bzip2 cdparanoia cdr cli css cups dbus dga dts dvd dvdr dvdread emboss encode
fbcon ffmpeg flac flash fortran ftp gdbm gif gpm hal icq id3 id3v2 imagemagick
imlib isdnlog jabber javascript jpeg kde kdeenablefinal lame lcms lzw lzw-tiff
mad matroska mime mp3 mpeg mplayer ncurses nls nowebdav nptl nptlonly nsplugin
nvidia ogg oggvorbis openal opengl oscar pcre pdflib perl pic png posix ppds
pppd python qt quicktime readline reflection ruby sdl session sockets spl ssl
subversion svg symlink theora tiff truetype truetype-fonts type1-fonts unicode
usb userlocales vorbis wma xine xml xml2 xorg xpm xrandr xv xvid zlib
elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_cs
userland_GNU video_cards_nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS,
PORTAGE_RSYNC_EXTRA_OPTS

------- Comment #1 From Matteo Azzali 2006-06-08 03:53:11 0000 -------
This issue is or:
1) arch (amd64) related, or
2) depends on a gcc-4.1.1 patch (not vanilla) or 
3) completely gcc-4.1.1 unrelated : 
qcad-2.0.4.0-r3 emerges fine here with gcc-4.1.1/vanilla. 

my emerge --info:

Portage 2.1_rc4-r3 (default-linux/x86/2006.0, gcc-4.1.1/vanilla, glibc-2.4-r3,
2.6.16-gentoo-r9 i686)
=================================================================
System uname: 2.6.16-gentoo-r9 i686 AMD Sempron(tm) Processor 3100+
Gentoo Base System version 1.12.1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
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-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild
/etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache cvs distlocks metadata-transfer sandbox
sfperms strict"
GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo/
http://mirror.switch.ch/ftp/mirror/gentoo/ ftp://ftp.solnet.ch/mirror/Gentoo/
http://ftp.heanet.ie/pub/gentoo/"
LANG="it_IT@euro"
LINGUAS="it"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowex 3dnowext X aalib acl acpi acpi4linux alsa apache2 apm
audiofile avi berkdb bitmap-fonts bzip2 cli crypt cups curl divx4linux dri dts
dvb dvd dvdr dvdread eds emboss encode esd exif expat ffmpeg flac foomaticdb
fortran gdbm gif gimp glut gnome gphoto2 gpm gstreamer gtk gtk2 guile hal idn
imagemagick imlib isdnlog java joystick jpeg kde lcms libg++ libwww lirc live
lm_sensors mad matroska mikmod mmx mmx2 mmxext mng motif mp3 mpeg ncurses nls
nptl nptlonly nsplugin nvidia offensive ogg ogre opengl oss pam pcre pdflib
perl png pppd python qt quicktime readline real reflection scanner sdl session
spell spl sse sse-filters sse2 ssl svga tcltk tcpd tiff truetype truetype-fonts
type1-fonts udev unicode usb v4l v4l2 vorbis win32codecs wxgtk1 xcomposite xine
xml2 xmms xorg xscreensaver xv xvid xvmc zlib zvbi elibc_glibc
input_devices_mouse input_devices_keyboard input_devices_wacom kernel_linux
linguas_it lirc_devices_devinput userland_GNU video_cards_nvidia video_cards_nv
video_cards_vesa video_cards_vga"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS,
PORTAGE_RSYNC_EXTRA_OPTS

------- Comment #2 From Matteo Azzali 2006-06-08 04:08:10 0000 -------
However after testing I found I have some issue with i18n and command languages

QComboBox::changeItem: (cbLanguage) Index 0 out of range
QComboBox::changeItem: (cbLanguageCmd) Index 0 out of range

------- Comment #3 From Jon Hood (RETIRED) 2006-06-23 12:37:32 0000 -------
Created an attachment (id=89943) [edit]
qcad-2.0.4.0-1.src-gcc4.patch

Here's the patch to let it compile against gcc-4. Please test and apply to
portage. If possible, please also thank CAS, Inc. <http://www.cas-inc.com/> in
the ChangeLog for this patch, as I was working at the time I made this patch.

------- Comment #4 From Jon Hood (RETIRED) 2006-06-23 12:48:17 0000 -------
This looks more like a 64-bit issue to me. As I won't be at home to take a look
at it, will one of the other amd64 devs please commit this patch to portage?
You may also want to rename it from gcc4 to amd64, as this issue is about the
size of integer pointers across architectures, not gcc-4 specific.

------- Comment #5 From David Watzke 2006-06-23 13:12:11 0000 -------
Thanks for the patch, now it compiles &&

------- Comment #6 From David Watzke 2006-06-23 13:12:11 0000 -------
Thanks for the patch, now it compiles && works!

------- Comment #7 From Jon Hood (RETIRED) 2006-06-23 23:31:58 0000 -------
This is an amd64 issue, and I went ahead and applied the patch in portage due
to a large number of people reporting this problem locally. This patch was
verified to work across platforms, and since it does not change any
functionality, no revision bump was necessary. Patch tested on x86 and amd64
systems to verify.

First Last Prev Next    No search results available      Search page      Enter new bug