ghc-6.6 under sparc-sun-solaris

Christian Maeder maeder at tzi.de
Wed Oct 18 05:21:29 EDT 2006


Duncan Coutts schrieb:
>>> Try SRC_HC_OPTS = -optc-mcpu=ultrasparc -opta-mcpu=ultrasparc
>> With this I've produced a binary saying:
>> -bash-3.00$ ghc --version
>> ghc-6.6: schedule: re-entered unsafely.
>>    Perhaps a 'foreign import unsafe' should be 'safe'?
> 
> Yes! I get exactly the same under sparc linux for ghc-6.6.

I've tried the same on a different machine (with another gcc) and now it
works!

It works with gcc_4.0.3_s10 on
"SunOS leo 5.10 Generic_118833-20 sun4u sparc SUNW,Sun-Fire-280R"

-bash-3.00$ compiler/stage2/ghc-6.6
ghc-6.6: missing -B<dir> option
-bash-3.00$ ldd compiler/stage2/ghc-6.6
        librt.so.1 =>    /lib/librt.so.1
        libdl.so.1 =>    /lib/libdl.so.1
        libreadline.so.5 =>      /usr/local/lib/libreadline.so.5
        libncurses.so.5 =>       /usr/local/lib/libncurses.so.5
        libm.so.2 =>     /usr/local/lib/libm.so.2
        libgmp.so.3 =>   /usr/local/lib/libgmp.so.3
        libpthread.so.1 =>       /lib/libpthread.so.1
        libc.so.1 =>     /lib/libc.so.1
        libaio.so.1 =>   /lib/libaio.so.1
        libmd5.so.1 =>   /lib/libmd5.so.1
        libm.so.2 =>     /lib/libm.so.2
        /platform/SUNW,Sun-Fire-280R/lib/libc_psr.so.1
        /platform/SUNW,Sun-Fire-280R/lib/libmd5_psr.so.1


It crashes as above on
"SunOS cni 5.10 Generic_118833-24 sun4u sparc SUNW,Sun-Fire-V240"
with gcc_3.4.4_s10.

-bash-3.00$ compiler/stage2/ghc-6.6
ghc-6.6: schedule: re-entered unsafely.
   Perhaps a 'foreign import unsafe' should be 'safe'?
-bash-3.00$ ldd compiler/stage2/ghc-6.6
        librt.so.1 =>    /lib/librt.so.1
        libdl.so.1 =>    /lib/libdl.so.1
        libreadline.so.5 =>      /usr/local/lib/libreadline.so.5
        libncurses.so.5 =>       /usr/local/lib/libncurses.so.5
        libm.so.2 =>     /usr/local/lib/libm.so.2
        libgmp.so.3 =>   /usr/local/lib/libgmp.so.3
        libpthread.so.1 =>       /lib/libpthread.so.1
        libc.so.1 =>     /lib/libc.so.1
        libaio.so.1 =>   /lib/libaio.so.1
        libmd5.so.1 =>   /lib/libmd5.so.1
        libm.so.2 =>     /lib/libm.so.2
        /platform/SUNW,Sun-Fire-V240/lib/libc_psr.so.1
        /platform/SUNW,Sun-Fire-V240/lib/libmd5_psr.so.1




More information about the Glasgow-haskell-users mailing list