
Dear GHC team, We are trying to install ghc-6.4.1 on SuSE Linux 10.0, lib64. First, we install it to the system area from binary found on the GHC www page as Binary x86, Generic Linux with glib 2.3. Now, ~> rpm -qa | grep compat says compat-curl2-32bit-7.11.0-7.2 compat-32bit-2004.11.13-4 compat-libstdc++-5.0.7-6 compat-readline4-4.3-4 compat-2004.11.13-4 compat-curl2-7.11.0-7.2 Then, ghc makes the project (under Cabal), creates .o, .a libraries, after runhaskell Setup.hs install --user Then, ghc $dmCpOpt --make Main 'makes' the user module and needs to link all libraries. It reports --------- Chasing modules from: Main Skipping Main ( Main.hs, Main.o ) Linking ... /usr/lib64/gcc/x86_64-suse-linux/4.0.2/../../../../x86_64-suse-linux/bin/ld: cannot find -lreadline collect2: ld returned 1 exit status source/demotest> --------- We simplified the project to a single module module DPrelude (sublists) where sublists :: [a] -> [[a]] sublists [] = [[]] sublists (x:xs) = (map (x:) ls) ++ ls where ls = sublists xs The libraries are made of this module. The "user" program is module Main where import DPrelude main = let ll = sublists [1, 2 :: Integer] in putStr "abc" >> writeFile "fl" "abc" >> getChar putStr (shows ll "\n")
appendFile "fl" "1"
And it faills with this"readline".
-------------------------------------------------------------------------
Then, we try the module which does not use newly created library,
but uses input-output:
main = putStr "abc" >> writeFile "fl" "abc" >> getChar
>>
putStr "abc" >> appendFile "fl" "1"
And it makes and runs all right.
------------------------------------------------------------------------
Then, I tried to "make" GHC from source by this binary GHC.
"configure" does not tell anything about Alex and Happy -- although
I do not see them (forgotten of them).
It finishes with exit 0,
as if nothing has happened.
Then,
> make
reports something which ends (after a couple of minutes) with
utils/PrimPacked.lhs:263:0:
Warning: foreign declaration uses deprecated non-standard syntax
In file included from /tmp/ghc31185.hc:6:
/usr/local/lib/ghc-6.4.1/include/HsReadline.h:5:31: error: readline/readline.h:\
No such file or directory
/usr/local/lib/ghc-6.4.1/include/HsReadline.h:6:30: error: readline/history.h: \
No such file or directory
<

Serge D. Mechveliani wrote:
First, we install it to the system area from binary found on the GHC www page as Binary x86, Generic Linux with glib 2.3.
This binary is not for a 64 bit arch, I think.
/usr/lib64/gcc/x86_64-suse-linux/4.0.2/../../../../x86_64-suse-linux/bin/ld: cannot find -lreadline
you may try: http://www.haskell.org/ghc/dist/6.4.1/ghc-6.4.1-x86_64-unknown-linux.tar.bz2 Christian
participants (2)
-
Christian Maeder
-
Serge D. Mechveliani