[GHC] #7062: Spurious undefined reference to `openpty'
GHC
cvs-ghc at haskell.org
Sat Jul 14 11:15:02 CEST 2012
#7062: Spurious undefined reference to `openpty'
---------------------------------+------------------------------------------
Reporter: simonmar | Owner:
Type: bug | Status: merge
Priority: high | Milestone: 7.4.3
Component: Compiler | Version: 7.4.2
Keywords: | Os: Unknown/Multiple
Architecture: Unknown/Multiple | Failure: None/Unknown
Difficulty: Unknown | Testcase:
Blockedby: | Blocking:
Related: |
---------------------------------+------------------------------------------
Comment(by trommler):
Replying to [comment:7 simonmar]:
> @trommler does the patch fix it for you?
Yes, it fixes the linker issue.
The test, however, still fails for me. Now libHSunix*.so cannot be found:
{{{
=====> process001(dyn) 1 of 13 [0, 0, 0]
cd . && '/local/home/peter/ghc-HEAD-validate/inplace/bin/ghc-stage2'
-fforce-recomp -dcore-lint -dcmm-lint -dno-debug-output -no-user-package-
db -rtsopts -fno-ghci-history -o process001 process001.hs -O -dynamic
>process001.comp.stderr 2>&1
cd . && ./process001 </dev/null >process001.run.stdout
2>process001.run.stderr
Wrong exit code (expected 0 , actual 127 )
Stdout:
Stderr:
./process001: error while loading shared libraries:
libHSunix-2.5.1.0-ghc7.5.20120713.so: cannot open shared object file: No
such file or directory
}}}
This matches nus' results with readelf above. In number 2) note that
libHSunix... is missing in {{{readelf -d process001}}} output. That means
the Rpath to libHSunix... is also not included in process001 and hence the
"No such file or directory."
If I disable --as-needed all process001 tests pass as expected.
On openSUSE we are using this patch (for ghc7.4.1)
[https://build.opensuse.org/package/view_file?file=ghc-suse-as-
needed.patch&package=ghc&project=devel%3Alanguages%3Ahaskell&rev=ba0317723891490dee86f5cc014eff2c],
which disables --as-needed for ghc.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7062#comment:8>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list