Link-Time Undefined Reference Errors
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 i386 and amd64.
Trac metadata
Trac field | Value |
---|---|
Version | 6.13 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Runtime System |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |