Page 1 of 1

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

PostPosted: May 21st, '13, 20:07
by javierlopezf
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?

Re: GHC can't find Rts.h

PostPosted: May 22nd, '13, 10:28
by doktor5000
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

Re: GHC can't find Rts.h

PostPosted: May 22nd, '13, 19:54
by javierlopezf
For anyone who may be interested I filled a bug: https://bugs.mageia.org/show_bug.cgi?id=10220