[GHC] #4204: Link-Time Undefined Reference Errors
GHC
cvs-ghc at haskell.org
Sat Jul 17 15:20:22 EDT 2010
#4204: Link-Time Undefined Reference Errors
---------------------------------+------------------------------------------
Reporter: pgj | Owner:
Type: bug | Status: new
Priority: normal | Component: Runtime System
Version: 6.13 | Keywords:
Os: FreeBSD | Testcase:
Architecture: Unknown/Multiple | Failure: Other
---------------------------------+------------------------------------------
An {{{undefined reference}}} error is generated on FreeBSD at linking time
when using dynamic libraries. It is because of the visibility attributes
of GCC. FreeBSD 8.x includes GCC 4.2.1 in the base system, which behaves
badly when the {{{#pragma GCC visibility push(hidden)}}} line is present,
it might refer to an OS-specific error.
Regarding the given problem, here is an excerpt from the testing log on
FreeBSD:
{{{
=====> arith001(dyn) 624 of 2520 [0, 43, 0]
cd ./numeric/should_run && '/usr/home/ghc-
builder/work/builder/tempbuild/build/bindisttest/install dir/bin/ghc'
-fforce-recomp -dcore-lint -dcmm-lint -no-user-package-conf -rtsopts -dno-
debug-output -o arith001 arith001.hs -O -dynamic >arith001.comp.stderr
2>&1
Compile failed (status 256) errors were:
[1 of 1] Compiling Main ( arith001.hs, arith001.o )
Linking arith001 ...
/usr/home/ghc-builder/work/builder/tempbuild/build/bindisttest/install
dir/lib/ghc-6.13.20100717/unix-2.4.0.1/libHSunix-2.4.0.1-ghc6.13.20100717.so:
undefined reference to `genericRaise'
*** unexpected failure for arith001(dyn)
}}}
It happens for both
[http://darcs.haskell.org/ghcBuilder/builders/pgj/89/12.html i386] and
[http://darcs.haskell.org/ghcBuilder/builders/pgj2/89/12.html amd64].
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4204>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list