[GHC] #7062: Spurious undefined reference to `openpty'
GHC
cvs-ghc at haskell.org
Tue Jul 10 17:13:53 CEST 2012
#7062: Spurious undefined reference to `openpty'
---------------------------------+------------------------------------------
Reporter: simonmar | Owner:
Type: bug | Status: new
Priority: high | Milestone: 7.6.1
Component: Compiler | Version: 7.4.2
Keywords: | Os: Unknown/Multiple
Architecture: Unknown/Multiple | Failure: None/Unknown
Difficulty: Unknown | Testcase:
Blockedby: | Blocking:
Related: |
---------------------------------+------------------------------------------
Comment(by nus):
{{{
$ ls -l /usr/bin/ld
lrwxrwxrwx 1 root root 6 Mar 9 03:10 /usr/bin/ld -> ld.bfd
$ ~/dev/ghcbld/inplace/bin/ghc-stage2 -o process001 process001.hs -dynamic
-optl -Wl,-yopenpty
Linking process001 ...
/home/user/dev/ghcbld/libraries/unix/dist-
install/build/libHSunix-2.5.1.0-ghc7.5.so: reference to openpty
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libutil.so:
definition of openpty
/home/user/dev/ghcbld/libraries/unix/dist-
install/build/libHSunix-2.5.1.0-ghc7.5.so: reference to openpty
/home/user/dev/ghcbld/libraries/unix/dist-
install/build/libHSunix-2.5.1.0-ghc7.5.so: undefined reference to
`openpty'
collect2: ld returned 1 exit status
}}}
After making /usr/bin/ld point to ld.gold and editing lib/settings to
exclude incompatible options:
{{{
user at host:~/dev/ghcbld/libraries/process/tests
$ ~/ghcbld/inplace/bin/ghc-stage2 -o process001 process001.hs -dynamic
-optl -Wl,-yopenpty
Linking process001 ...
/home/user/ghcbld/libraries/unix/dist-
install/build/libHSunix-2.5.1.0-ghc7.5.so: reference to openpty
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libutil.so:
definition of openpty
}}}
Seems like ld.bfd bug.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7062#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list