Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 72538 - dev-haskell/wxhaskell-0.8-r1 ebuild fails on amd64
Summary: dev-haskell/wxhaskell-0.8-r1 ebuild fails on amd64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-26 03:09 UTC by Gour
Modified: 2004-11-26 10:31 UTC (History)
2 users (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 Gour 2004-11-26 03:09:59 UTC
Hi!

Did a fresh sync and tried to emerge wxhaskell, but it does not work (amd64):

gaura-nitai src # emerge -v wxhaskell
Calculating dependencies ...done!
>>> emerge (1 of 1) dev-haskell/wxhaskell-0.8-r1 to /
>>> md5 src_uri ;-) wxhaskell-src-0.8.zip
>>> Unpacking source...
>>> Unpacking wxhaskell-src-0.8.zip to /var/tmp/portage/wxhaskell-0.8-r1/work
>>> Source unpacked.
gtk2
 * Using /usr/bin/wxgtk2-2.4-config
checking system:
 wx-config found
 ghc found
 ghc-pkg found
 haddock found
 install program found

creating configuration files:
 config
 config/config.mk
 config/wxcore.pkg
 config/wx.pkg
 config/wxhaskell-register.bat
 config/wxhaskell-unregister.bat
 config/setcd
 config/macosx-install.info
 config/macosx-postinstall
 config/macosx-app
 config/wxhaskell.spec
 config/prologue.txt
 config/cache.txt

configuration:
 library:     wxhaskell-0.8  (release 0)
 compiler:    ghc-6.2.2
 wxwidgets:   gtk-2.4.2
 with openGL: yes
 library dir: /var/tmp/portage/wxhaskell-0.8-r1/image////usr/lib/ghc-6.2.2

done:
 type 'make' to build wxhaskell.
 type 'make install' to install wxhaskell.
 type 'make help' to receive help on all other make targets

c++ -c wxc/src/ewxw_main.cpp -o out/wxc/ewxw_main.o -MD -O2 -m32 -fPIC -I/usr/lib/wx/include/gtk2-2.4 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -Iwxc/include
In file included from /usr/include/wx/memory.h:20,
                 from /usr/include/wx/object.h:25,
                 from /usr/include/wx/wx.h:16,
                 from wxc/include/wrapper.h:8,
                 from wxc/src/ewxw_main.cpp:1:
/usr/include/wx/string.h:443: error: `wxChar wxString::operator[](unsigned int)const' and `wxChar wxString::operator[](size_t) const' cannot be overloaded
/usr/include/wx/string.h:447: error: `wxChar& wxString::operator[](unsigned int)' and `wxChar& wxString::operator[](size_t)' cannot be overloaded
make: *** [out/wxc/ewxw_main.o] Error 1

!!! ERROR: dev-haskell/wxhaskell-0.8-r1 failed.
!!! Function src_compile, Line 54, Exitcode 2
!!! make failed
!!! If you need support, post the topmost build error, NOT this status message.


Pls. excuse me for just reporting bugs :-( but I'd like to learn & use Haskell as a general programming language on amd64 platform :-)

Sincerely,
Gour


Reproducible: Always
Steps to Reproduce:
1. merge -v wxhaskell
2.
3.




Portage 2.0.51-r3 (default-linux/amd64/2004.3, gcc-3.4.3, 
glibc-2.3.4.20041102-r0, 2.6.9-gentoo-r1 x86_64) 
================================================================= 
System uname: 2.6.9-gentoo-r1 x86_64 AMD Athlon(tm) 64 Processor 3000+ 
Gentoo Base System version 1.6.4 
ccache version 2.3 [enabled] 
Autoconf: sys-devel/autoconf-2.59-r5 
Automake: sys-devel/automake-1.8.5-r1 
Binutils: sys-devel/binutils-2.15.92.0.2-r1 
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1 
Libtools: sys-devel/libtool-1.5.2-r5 
ACCEPT_KEYWORDS="amd64 ~amd64" 
AUTOCLEAN="yes" 
CFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer -funroll-loops" 
CHOST="x86_64-pc-linux-gnu" 
COMPILER="" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /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/alias /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer -funroll-loops" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs autoconfig buildpkg ccache distlocks sandbox" 
GENTOO_MIRRORS="ftp://gentoo.inode.at/source/ 
ftp://gd.tuwien.ac.at/opsys/linux/gentoo/ http://gentoo.inode.at/ 
http://gentoo.osuosl.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/portage/local" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="X aalib acpi alsa amd64 arts audiofile avi berkdb bitmap-fonts cddb 
cdparanoia cdr crypt cups directfb doc dvd dvdr encode esd f77 fam fbcon flac 
foomaticdb fortran gdbm gif gimpprint gnome gphoto2 gpm gtk gtk2 gtkhtml 
imagemagick imlib immqt innodb ipv6 java jikes jp2 jpeg jpeg2k junit kde lcms 
libwww lzw lzw-tiff mad mmap motif mozilla mpeg multilib mysql ncurses nls nptl 
oggvorbis opengl oss pam pcre pda perl pic png ppds pslib python qt readline 
ruby scanner slang speex sqlite ssl svg tcltk tcpd tetex tiff truetype unicode 
usb userlocales vim-with-x xface xine xinerama xml xml2 xmms xpm xprint xrandr 
xv zlib"
Comment 1 Andres Loeh (RETIRED) gentoo-dev 2004-11-26 03:22:53 UTC
Afaics, the -m32 is the culprit. Now I don't know enough about gcc or
amd64 to judge if -m32 is a valid choice for CXXFLAGS.

I can modify the ebuild to use strip-flags, which if I interpret
flag-o-matics.eclass correctly, will get rid of -m32 on amd64.

Gour, you should be fine by compiling wxhaskell with -m32 removed.
Can someone provide input if strip-flags is the way to go, or if
something else should be done?

Cheers,
  ks
Comment 2 Gour 2004-11-26 04:21:15 UTC
Hi Kosmikus!

>Gour, you should be fine by compiling wxhaskell with -m32 removed.
>Can someone provide input if strip-flags is the way to go, or if
>something else should be done?

Pls. excuse me for a false alarm :-(

The problem is that I tried to compile wxhaskell in the wron konsole, i.e. the one where I was experimenting in compiling clisp with some modules for xindy indexing packages and there I went with very light flags :-)

Now, wxhaskell is happy compiling and it emerged fine, so I'll close a bug.

Sincerely,
Gour