strange ghc behaviour?
Hi, I use ghc 6.4.1 on Mac OS X 10.4.5 and recently I have been getting some very strange errors. It has happened when I have been trying to compile DrIFT, and also today when I was compiling Haddock. The errors seem to change each time, and they always complain about an undefined symbol. For example, when compiling Haddock I got: /tmp/ghc24547.s:22969:Invalid mnemonic 'mtcts' /tmp/ghc24547.s:103127:Invalid mnemonic 'mtcur' /tmp/ghc24547.s:103430:Invalid mnemonic 'mtcur' /tmp/ghc24547.s:108482:Invalid mnemonic 'mtcts' I flushed out /tmp and ran make again, and this time I get: /tmp/ghc24804.s:unknown:Undefined local symbol L___DISCARE__$stub make[3]: *** [HsSyn.o] Error 1 make[2]: *** [all] Error 2 make[1]: *** [all] Error 1 make: *** [build] Error 1 Eventually Haddock will compile if I keep typing make every time ghc fails, but is there any reason why ghc is doing this? and how can I correct it? Thanks for your help. Chris Brown. Christopher Brown Ph.D. Student University of Kent. UK. http://www.cs.kent.ac.uk/people/rpg/cmb21/index.html
On 3/15/06, Christopher Brown <cmb21@kent.ac.uk> wrote:
/tmp/ghc24547.s:22969:Invalid mnemonic 'mtcts' /tmp/ghc24547.s:103127:Invalid mnemonic 'mtcur' /tmp/ghc24547.s:103430:Invalid mnemonic 'mtcur' /tmp/ghc24547.s:108482:Invalid mnemonic 'mtcts'
/tmp/ghc24804.s:unknown:Undefined local symbol L___DISCARE__$stub
All bit-0 errors. Do you have bad RAM, perhaps? -- Taral <taralx@gmail.com> "Computer science is no more about computers than astronomy is about telescopes." -- Edsger Dijkstra
Taral, What is a bit-0 error? and how do I find out if I have bad RAM? Chris. On 15 Mar 2006, at 20:32, Taral wrote:
On 3/15/06, Christopher Brown <cmb21@kent.ac.uk> wrote:
/tmp/ghc24547.s:22969:Invalid mnemonic 'mtcts' /tmp/ghc24547.s:103127:Invalid mnemonic 'mtcur' /tmp/ghc24547.s:103430:Invalid mnemonic 'mtcur' /tmp/ghc24547.s:108482:Invalid mnemonic 'mtcts'
/tmp/ghc24804.s:unknown:Undefined local symbol L___DISCARE__$stub
All bit-0 errors. Do you have bad RAM, perhaps?
-- Taral <taralx@gmail.com> "Computer science is no more about computers than astronomy is about telescopes." -- Edsger Dijkstra
Christopher Brown Ph.D. Student University of Kent. UK. http://www.cs.kent.ac.uk/people/rpg/cmb21/index.html
On 3/15/06, Christopher Brown <cmb21@kent.ac.uk> wrote:
Taral,
What is a bit-0 error? and how do I find out if I have bad RAM?
/tmp/ghc24547.s:22969:Invalid mnemonic 'mtcts' /tmp/ghc24547.s:103127:Invalid mnemonic 'mtcur' /tmp/ghc24547.s:103430:Invalid mnemonic 'mtcur' /tmp/ghc24547.s:108482:Invalid mnemonic 'mtcts' /tmp/ghc24804.s:unknown:Undefined local symbol L___DISCARE__$stub
If you look at the ASCII values, you will find that the least significant bit (bit 0) of the corrupted character is set when it should not be. This is a bit-0 error, and usually indicates a problem with your RAM. You will need to find a memory tester to find out if you have bad RAM. If you don't have a memory tester, you can switch out the RAM with known good RAM to see if the problem goes away. If you are not familiar with these things, you may want to enlist the aid of a professional. -- Taral <taralx@gmail.com> "Computer science is no more about computers than astronomy is about telescopes." -- Edsger Dijkstra
Taral, Thanks for the information. I have ran the apple hardware test and it reported that there were no errors with the RAM (although I'm not convinced there is nothing wrong with the RAM). Perhaps it could have been a problem with the ghc installation (i.e. a bit got flipped in the executable during build). Is it possible to uninstall ghc? Thanks. Chris. On 15 Mar 2006, at 21:48, Taral wrote:
On 3/15/06, Christopher Brown <cmb21@kent.ac.uk> wrote:
Taral,
What is a bit-0 error? and how do I find out if I have bad RAM?
/tmp/ghc24547.s:22969:Invalid mnemonic 'mtcts' /tmp/ghc24547.s:103127:Invalid mnemonic 'mtcur' /tmp/ghc24547.s:103430:Invalid mnemonic 'mtcur' /tmp/ghc24547.s:108482:Invalid mnemonic 'mtcts' /tmp/ghc24804.s:unknown:Undefined local symbol L___DISCARE__$stub
If you look at the ASCII values, you will find that the least significant bit (bit 0) of the corrupted character is set when it should not be. This is a bit-0 error, and usually indicates a problem with your RAM.
You will need to find a memory tester to find out if you have bad RAM. If you don't have a memory tester, you can switch out the RAM with known good RAM to see if the problem goes away. If you are not familiar with these things, you may want to enlist the aid of a professional.
-- Taral <taralx@gmail.com> "Computer science is no more about computers than astronomy is about telescopes." -- Edsger Dijkstra
Christopher Brown Ph.D. Student University of Kent. UK. http://www.cs.kent.ac.uk/people/rpg/cmb21/index.html
On 3/15/06, Christopher Brown <cmb21@kent.ac.uk> wrote:
Thanks for the information. I have ran the apple hardware test and it reported that there were no errors with the RAM (although I'm not convinced there is nothing wrong with the RAM).
I do not know how to uninstall ghc on your system, but I can assure you that the apple hardware test does not test your RAM to the extent required to detect this error. Such a test would take several hours. -- Taral <taralx@gmail.com> "Computer science is no more about computers than astronomy is about telescopes." -- Edsger Dijkstra
participants (2)
-
Christopher Brown -
Taral