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
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?
Problem persists with wxhaskell-0.9
Problem persists with ghc-6.4 wxhaskell-0.9.4
haskell herd, any idea how to solve this problem?
Problem is solved in ghc-6.4.1.20050626.
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)
ghc 6.4.1 is out, which fixes it