This is probably a well-known problem, but here goes anyway...

In using the binary distribution of ghc (version 4.04, patchlevel 0)
for the HP (HP-UX B.10.20), I get a warning during final link of

    /usr/bin/ld: (Warning) At least one of the files 
    (/ghc/lib/ghc-4.04/libHS_cbits.a(freeFile.o)) contains an 
    R_CODE_PLABEL fixup request which may not be supported in 
    future releases.

> gcc -v

    gcc version 2.95.2 19991024 (release)

> what /usr/bin/ld

    92453-07 linker linker ld B.10.33 990520


The following hack forces the warnings to be silent.

--- /ghc/bin/ghc-4.04~     Mon Jan 17 14:49:50 2000
+++ /ghc/bin/ghc-4.04   Mon Feb  7 11:12:13 2000
@@ -1144,7 +1144,9 @@
     #  unshift(@Ld_flags, ('-Xlinker -bbigtoc -Xlinker -bnoquiet')); 
     unshift(@Ld_flags, ('-Xlinker -bbigtoc')); 
   }
-
+  if ($TargetPlatform =~ /^hppa/) {
+    unshift(@Ld_flags, ('-Xlinker +vnocompatwarnings'));
+  }
 
 } # end of setupLinkOpts
 

--
Eric

Reply via email to