64 bit generic link warning on every compile

GHC 7 compiles fine, but there's an additional warning during linking. $ system_profiler SPSoftwareDataType | grep "System Version" System Version: Mac OS X 10.6.7 (10J869) $ ghc --version The Glorious Glasgow Haskell Compilation System, version 7.0.2 $ cat hello.hs #!/usr/bin/env runhaskell module Main where main :: IO () main = putStrLn "Hello World" $ ghc --make hello.hs [1 of 1] Compiling Main ( hello.hs, hello.o ) Linking hello ... ld: warning: -read_only_relocs cannot be used with x86_64 $ ./hello Hello World Cheers, Andrew Pennebaker www.yellosoft.us

I get this too.
I've heard that it is resolved in 7.0.3 but I can't recall where.
(System Version: Mac OS X 10.6.7 (10J869), The Glorious Glasgow
Haskell Compilation System, version 7.0.2)
On Sat, Apr 16, 2011 at 10:47 AM, Andrew Pennebaker
GHC 7 compiles fine, but there's an additional warning during linking. $ system_profiler SPSoftwareDataType | grep "System Version" System Version: Mac OS X 10.6.7 (10J869) $ ghc --version The Glorious Glasgow Haskell Compilation System, version 7.0.2 $ cat hello.hs #!/usr/bin/env runhaskell module Main where main :: IO () main = putStrLn "Hello World" $ ghc --make hello.hs [1 of 1] Compiling Main ( hello.hs, hello.o ) Linking hello ... ld: warning: -read_only_relocs cannot be used with x86_64 $ ./hello Hello World Cheers, Andrew Pennebaker www.yellosoft.us _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

"The -read_only_relocs flag is no longer used on OS X 64, which eliminates
some warnings."
http://www.haskell.org/ghc/docs/7.0.3/html/users_guide/release-7-0-3.html
HTH,
Ozgur
On 16 April 2011 03:47, Andrew Pennebaker
GHC 7 compiles fine, but there's an additional warning during linking.
$ system_profiler SPSoftwareDataType | grep "System Version" System Version: Mac OS X 10.6.7 (10J869) $ ghc --version The Glorious Glasgow Haskell Compilation System, version 7.0.2 $ cat hello.hs #!/usr/bin/env runhaskell
module Main where
main :: IO () main = putStrLn "Hello World" $ ghc --make hello.hs [1 of 1] Compiling Main ( hello.hs, hello.o ) Linking hello ... ld: warning: -read_only_relocs cannot be used with x86_64 $ ./hello Hello World
Cheers,
Andrew Pennebaker www.yellosoft.us
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
-- Ozgur Akgun
participants (3)
-
Andrew Pennebaker
-
Lyndon Maydwell
-
Ozgur Akgun