[GHC] #1066: MacOSX powerpc gcc 3.3/4.0 and unknown symbol
`_printf$LDBLStub'
GHC
trac at galois.com
Thu Dec 21 08:45:57 EST 2006
#1066: MacOSX powerpc gcc 3.3/4.0 and unknown symbol `_printf$LDBLStub'
--------------------------------+-------------------------------------------
Reporter: gracjan-agh.edu.pl | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 6.6
Severity: minor | Resolution:
Keywords: | Difficulty: Easy (1 hr)
Testcase: | Architecture: powerpc
Os: MacOS X |
--------------------------------+-------------------------------------------
Changes (by wolfgang):
* difficulty: Unknown => Easy (1 hr)
* severity: normal => minor
Comment:
Is there any reason to still use ghc 3.3?
----
This is a problem with the underlying GCC, which always fails when trying
to link a gcc4-compiled .o file that references printf:
{{{
gould:~/Experiments wolfgang$ gcc-4.0 -arch ppc -c hello.c
gould:~/Experiments wolfgang$ gcc-3.3 -arch ppc hello.o
ld: Undefined symbols:
_printf$LDBLStub
}}}
----
Fixing this involves
* checking for -lSystemStubs availability during configure
* adding it to the libs required by the RTS, if available
* maybe doing the above olnly on powerpc-apple-darwin, as the lib is
empty & useless on i386.
I'd hate to have to touch a configure script to fix a bug that is so easy
to work around... any other volunteers?
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1066>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list