Bug 10220 - GHC cannot find Rts.h file
Summary: GHC cannot find Rts.h file
Status: RESOLVED OLD
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 3
Hardware: x86_64 Linux
Priority: Normal major
Target Milestone: ---
Assignee: Malo Deniélou
QA Contact:
URL:
Whiteboard:
Keywords: Triaged
Depends on:
Blocks:
 
Reported: 2013-05-22 12:36 CEST by Javier Lopez
Modified: 2015-03-31 16:02 CEST (History)
0 users

See Also:
Source RPM: ghc-7.4.2-2.mga3.src.rpm
CVE:
Status comment:


Attachments

Description Javier Lopez 2013-05-22 12:36:12 CEST
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:
Manuel Hiebel 2013-05-24 20:20:38 CEST

Keywords: (none) => Triaged
Assignee: bugsquad => pierre-malo.denielou

Comment 1 Malo Deniélou 2013-05-29 00:14:40 CEST
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

Comment 2 Javier Lopez 2013-05-29 21:38:07 CEST
(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.
Comment 3 Malo Deniélou 2013-05-30 14:42:46 CEST
Could you post the rpm -qa of the working and non-working virtual machines? That would help narrow it down.
Comment 4 Javier Lopez 2013-06-02 11:34:21 CEST
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.
Comment 5 Malo Deniélou 2013-06-02 11:50:35 CEST
You posted twice the same link :-).
Can you do a diff of the two lists?
Comment 6 Javier Lopez 2013-06-02 16:12:30 CEST
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
Comment 7 Marja Van Waes 2015-03-31 16:02:47 CEST
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 => RESOLVED
Resolution: (none) => OLD


Note You need to log in before you can comment on or make changes to this bug.