Bug #10220 - GHC can't find Rts.h

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

Bug #10220 - GHC can't find Rts.h

Postby javierlopezf » May 21st, '13, 20:07

Hello, I installed GHC 7.4.2 using the package manager.
Using ghci I can run some code examples successfully, but trying to compile them throws
an error complaining about a missing file.
Code: Select all
[javier@localhost ch01]$ ghc -o WC WC.hs
Linking WC ...

/tmp/ghc4372_0/ghc4372_0.c:1:17:
     error fatal: Rts.h: No existe el fichero o el directorio
compilación terminada.


So the compiler doesn't seem able to find Rts.h. A quick search using find revealed it to be in the /usr/lib64/ghc-7.4.2/include directory.
Code: Select all
[javier@localhost ch01]$ find /usr -type f -name 'Rts.h'
/usr/lib64/ghc-7.4.2/include/Rts.h


So I added the -I option to add the directory to the search list.
Code: Select all
[javier@localhost ch01]$ ghc -I/usr/lib64/ghc-7.4.2/include --make WC
[1 of 1] Compiling Main             ( WC.hs, WC.o )
Linking WC ...

/tmp/ghc4521_0/ghc4521_0.c:1:17:
     error fatal: Rts.h: No existe el fichero o el directorio
compilación terminada.
[javier@localhost ch01]$


However that fails too! I've searched Google without finding anything helpful.
Anyone has an idea of what might be going on?
Last edited by javierlopezf on May 22nd, '13, 19:55, edited 1 time in total.
javierlopezf
 
Posts: 2
Joined: May 21st, '13, 19:41

Re: GHC can't find Rts.h

Postby doktor5000 » May 22nd, '13, 10:28

Then please report that as a bug, after searching if it hasn't been reported yet already: https://wiki.mageia.org/en/How_to_report_a_bug_properly
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18066
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: GHC can't find Rts.h

Postby javierlopezf » May 22nd, '13, 19:54

For anyone who may be interested I filled a bug: https://bugs.mageia.org/show_bug.cgi?id=10220
javierlopezf
 
Posts: 2
Joined: May 21st, '13, 19:41


Return to Basic support

Who is online

Users browsing this forum: Google [Bot] and 1 guest