Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 75211 - Error when running wxhaskell programs
Summary: Error when running wxhaskell programs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-21 10:26 UTC by Peter
Modified: 2005-10-08 04:01 UTC (History)
1 user (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 Peter 2004-12-21 10:26:53 UTC
I cannot run any haskell program that uses the wxhaskell libraries. It crashes with the error message described below. 



Reproducible: Always
Steps to Reproduce:
1.# ghc -package wx wxhaskell_test.hs -o wxh
2.# ./wxh


Actual Results:  
wxh: internal error: adjustor creation not supported on this platform 
    Please report this as a bug to glasgow-haskell-bugs@haskell.org, 
    or http://www.sourceforge.net/projects/ghc/ 

Expected Results:  
the program should startup  

Portage 2.0.51-r3 (default-linux/amd64/2004.3, gcc-3.4.3,     
glibc-2.3.4.20040808-r1, 2.6.10-rc2 x86_64)     
=================================================================     
System uname: 2.6.10-rc2 x86_64 AMD Athlon(tm) 64 Processor 3000+     
Gentoo Base System version 1.4.16     
distcc 2.13 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632)     
[disabled]     
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.90.0.1.1-r3     
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1     
Libtools: sys-devel/libtool-1.5.2-r7     
ACCEPT_KEYWORDS="amd64"     
AUTOCLEAN="yes"     
CFLAGS="-O2 -march=athlon64 -fomit-frame-pointer -pipe"     
CHOST="x86_64-pc-linux-gnu"     
COMPILER=""     
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.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/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="-O2 -march=athlon64 -fomit-frame-pointer -pipe"     
DISTDIR="/usr/portage/distfiles"     
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox"     
GENTOO_MIRRORS="http://gentoo.inode.at"     
MAKEOPTS="-j2"     
PKGDIR="/usr/portage/packages"     
PORTAGE_TMPDIR="/var/tmp"     
PORTDIR="/usr/portage"     
PORTDIR_OVERLAY="/usr/local/portage"     
SYNC="rsync://rsync.gentoo.org/gentoo-portage"     
USE="amd64 X aalib acpi acpi4linux alsa amd arts artswrappersuid async     
audiofile autofs avantgo berkdb bitmap-fonts cddb cdparanoia cdr chroot crypt     
cups dga dhcp divx4linux docdv dvd dvdr dvdread esd f77 fam ffmpeg flac     
foreign-package fortran freetype fs gdbm gifgimp gpm gtk gtk2 icq imagemagick     
imlib ipv6 java jikes jp2 jpeg junit kde lcd libwww lzw lzw-tiff mad mikmod     
mime monkey mono motif mozilla mpeg4 multilib ncurses nls nptl ntlmoav     
offensive oggvorbis opengl oss pam pcmcia pdf pdflib perl png pnp postgres     
prelude python qt radeon readline samba sdl slang ssl tcltk tcpd tetex tiff     
transcode truetype truetype-fonts type1 usb userlocales v4l2 videos wxwindows     
xine xinerama xml xml2 xmms xpm xrandr xv xvid zlib"     
    
Code of wxhaskell_test.hs:   
module Main where   
import Graphics.UI.WX   
   
main = start hello   
   
hello :: IO ()   
hello = do f    <- frame [text := "Hello!" ]   
           quit <- button f [text := "Quit", on command := close f]   
           set f [layout := widget quit]   
   
 
That's my setup: 
dev-lang/ghc-6.2.2 
dev-haskell/wxhaskell-0.8-r1 
x11-libs/wxGTK-2.4.2-r2
Comment 1 Andreas Laestadius 2005-02-14 12:40:52 UTC
I can confirm the same results on amd64 using the same

dev-lang/ghc-6.2.2 
dev-haskell/wxhaskell-0.8-r1 
x11-libs/wxGTK-2.4.2-r2

Any ideas?
Comment 2 Peter 2005-02-27 14:45:03 UTC
Problem persists with wxhaskell-0.9
Comment 3 Peter 2005-06-07 14:56:25 UTC
Problem persists with  
ghc-6.4  
wxhaskell-0.9.4 
Comment 4 Simon Stelling (RETIRED) gentoo-dev 2005-07-13 14:59:23 UTC
haskell herd, any idea how to solve this problem?
Comment 5 Peter 2005-07-14 00:12:45 UTC
Problem is solved in ghc-6.4.1.20050626. 
Comment 6 Duncan Coutts (RETIRED) gentoo-dev 2005-07-22 15:43:08 UTC
ghc-6.4 did not support certain ffi constructs (dynamic "wrapper" import) on
amd64. It is supported in the 6.4.1 pre-release snapshots as Peter said. We
expect ghc-6.4.1 to be out in a couple weeks and we'll hope to get an ebuild of
that up asap.

(I think that wxhaskell should not have been marked ~amd64)
Comment 7 Simon Stelling (RETIRED) gentoo-dev 2005-10-08 04:01:41 UTC
ghc 6.4.1 is out, which fixes it