GHC 6.2.1 and FedoraCore2: ar-related build problem, looked like readline problem
Henrik Nilsson <nhn <at> Cs.Nott.AC.UK>
2004-09-01 16:19:47 GMT
Interestingly, I first thought this problem was related to the long
"readline story", since the build process complained about
"readline" when it failed. But that turned out not to be the case!
The subject of the mail reflects this, hopefully making this mail
easier to find should someone face similar problems.
Background:
I'm trying to build GHC 6.2.1 on a Fedora Core 2 (FC2) Linux box.
The reason is that ghci from the available binary releases (the RH9 rpm
and the generic Linux version for glibc 2.3) segfaults.
However, the compiler itself seems to run fine, so I decided to try to
build and install a system from sources, using the GHC compiler from
the generic binary release.
Problem:
After a long time with a lot of activity, the build process halts
with the following error:
/home/henrik/ghc-6.2.1/libraries/readline/libHSreadline.a:
could not read symbols: Archive has no index; run ranlib to add one
collect2: ld returned 1 exit status
<<ghc: 3845976 bytes, 2 GCs, 129524/129524 avg/max bytes residency
(1 samples), 5M in use, 0.00 INIT (0.00 elapsed), 0.01 MUT (3.80
elapsed),
0.00 GC (0.00 elapsed) :ghc>>
It turns out that "libHSreadline.a" actually isn't an archive at all:
(Continue reading)