[GHC] #1066: MacOSX powerpc gcc 3.3/4.0 and unknown symbol
`_printf$LDBLStub'
GHC
trac at galois.com
Thu Dec 21 08:15:18 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: normal | Keywords:
Difficulty: Unknown | Testcase:
Architecture: powerpc | Os: MacOS X
-----------------------------------+----------------------------------------
There are problems with linking on MacOSX 10.4.8 when selected gcc 3.3.
Following session demonstrates problem:
{{{
gracjan$ sudo gcc_select 3.3
Default compiler has been set to:
gcc version 3.3 20030304 (Apple Computer, Inc. build 1819)
gracjan$ ghc --make x.hs
[1 of 1] Compiling Main ( x.hs, x.o )
Linking x ...
ld: Undefined symbols:
_sprintf$LDBLStub
_fprintf$LDBLStub
_vfprintf$LDBLStub
gracjan$ sudo gcc_select 4.0
Default compiler has been set to:
gcc version 4.0.1 (Apple Computer, Inc. build 5363)
gracjan$ ghc --make x.hs
Linking x ...
gracjan$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 6.6
}}}
Linking manually with `-lSystemStubs` fixes the problem. Seems to be
connected with Ticket #1018, where the solution is to only add
`-lSystemStubs` when build evironment says so. Probably adding it always
could be a solution.
Affected: ghc-6.6-ppc-apple-darwin.tar.gz from
http://haskell.org/ghc/download_ghc_66.html, also macports:
{{{
gracjan$ port info ghc
ghc 6.6, Revision 2, lang/ghc (Variants: darwin_6, darwin_7_powerpc,
darwin_8_powerpc, darwin_8_i386, noopengl)
http://www.haskell.org/ghc
Library Dependencies: readline, gmp
Runtime Dependencies: perl5.8
Platforms: darwin
}}}
--
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