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

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.
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.
So I added the -I option to add the directory to the search list.
However that fails too! I've searched Google without finding anything helpful.
Anyone has an idea of what might be going on?
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?