Description of problem: I'm trying to compile some code examples from the book Real World Haskell. Running them with ghci and runghc works. But when I try to compile them it complains about a missing file (Rts.h), even though it's actually there (as pointed out by find, /usr/lib64/ghc-7.4.2/include/Rts.h). The error message looks like this (translated from spanish): fatal error: Rts.h: File or directory does not exist. I have tried to add the directory to the search path using the -I option, but it doesn't work. Version-Release number of selected component (if applicable): How reproducible: Every time an attempt is made to compile an example. Steps to Reproduce: 1. Get the code example from http://pastebin.com/ahD0PzFe 2. Try to compile: ghc --make WC. Won't work. 3. Try again using the -I option: ghc -I/usr/lib64/ghc-7.4.2/include --make WC. Again, it won't work. Reproducible: Steps to Reproduce:
Keywords: (none) => TriagedAssignee: bugsquad => pierre-malo.denielou
Thanks for the report. If you install the haskell platform from source from http://www.haskell.org/platform/, do you still have the error? I will try to reproduce.
Status: NEW => ASSIGNED
(In reply to Malo Deniélou from comment #1) > Thanks for the report. > If you install the haskell platform from source from > http://www.haskell.org/platform/, do you still have the error? > I will try to reproduce. Just saw your message, too late for trying that since I got the compiler to work :) I don't know exactly why, but installing the lib64ffi-devel package solved the problem. Last night I was trying to get it to work in my laptop, and started installing related packages like gmp and ffi, both the devel and non devel versions, which made it work. The problem was that I should have gone to sleep much earlier ;D and I couldn't tell which package fixed the problem... which made me even more fustrated. This morning, however, I made a list of related packages installed in my laptop: rpm -qa 'lib*gmp*' && rpm -qa 'lib*ffi*' Then on a virtual machine I executed these commands... and lib64ffi-devel was missing. I installed it and the compiler started working. Just to be really sure I installed yet another virtual machine. The usual "Rts.h is missing" error ocurred. Then installed lib64ffi-devel and the compiler started working. I'm not exactly sure why, because the original error doesn't seem to be related to the ffi package at all... anyways I got all this working. Thanks Malo, I leave the bug open in case you want to do some further research before marking it as resolved.
Could you post the rpm -qa of the working and non-working virtual machines? That would help narrow it down.
Sorry for the delay :p Here the list of packages when it's not working: http://pastebin.com/vN0yDc9H And here when it's working: http://pastebin.com/vN0yDc9H The command I used was rpm -qa | sort Executing this command egrep -i 'lib64*gmp*|lib64*ffi' over the two lists gives the same packages except for the lib64ffi-devel in the working list version.
You posted twice the same link :-). Can you do a diff of the two lists?
Oops, sorry. The correct link for the working list is: http://pastebin.com/Tu7LhH2H diff'ing them shows this: [javier@localhost ch01]$ diff all_packages_not_working.txt all_packages_working.txt 466a467 > lib64ffi-devel-3.0.11-3.mga3
Mageia 3 changed to end-of-life (EOL) status 4 months ago. http://blog.mageia.org/en/2014/11/26/lets-say-goodbye-to-mageia-3/ Mageia 3 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Mageia please feel free to click on "Version" change it against that version of Mageia and reopen this bug. Thank you for reporting this bug and we are sorry it could not be fixed. -- The Mageia Bugsquad
Status: ASSIGNED => RESOLVEDResolution: (none) => OLD