Skip to content

OS X: ld: warning: -read_only_relocs cannot be used with x86_64

From http://www.haskell.org/pipermail/glasgow-haskell-users/2011-February/020086.html

I'm getting a warning from the linker when building programs using the 64-bit   
version of the release candidate on Mac OS X 10.6.                              
                                                                                
$ cat Hello.hs                                                                  
module Main where                                                               
main = putStrLn "Hello, World"                                                  
                                                                                
$ ~/ghc-7/bin/ghc -fforce-recomp Hello.hs                                       
[1 of 1] Compiling Main             ( Hello.hs, Hello.o )                       
Linking Hello ...                                                               
ld: warning: -read_only_relocs cannot be used with x86_64                       
                                                                                
It doesn't seem to cause a problem when actually running the programs, from what
I have seen so far.                                                             
Trac metadata
Trac field Value
Version 7.0.1
Type Bug
TypeOfFailure OtherFailure
Priority high
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system Unknown/Multiple
Architecture Unknown/Multiple
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information