[GHC] #943: Unable to create static binaries on osx
GHC
trac at galois.com
Fri Oct 20 20:06:24 EDT 2006
#943: Unable to create static binaries on osx
------------------------------+---------------------------------------------
Reporter: brett at librum.org | Owner:
Type: bug | Status: closed
Priority: normal | Milestone:
Component: Compiler | Version: 6.6
Severity: normal | Resolution: invalid
Keywords: osx intel static | Difficulty: Unknown
Testcase: | Architecture: x86
Os: MacOS X |
------------------------------+---------------------------------------------
Changes (by wolfgang):
* resolution: => invalid
* testcase: =>
* status: new => closed
Old description:
> It appears that ghc 6.6 can't create static binaries on osx/intel. I've
> been attempting to create static binaries of darcs for distribution to a
> project team on both osx/ppc and osx/intel, and ghc. It fails to find the
> static versions of libs that do exist, afaict.
>
> --
>
> [brett at fin]:~/files/src/darcs/darcs-unstable% ./configure --with-static-
> libs
> checking for darcs... darcs
> checking the release state... unstable branch
> checking for gcc... gcc
> checking for C compiler default output file name... a.out
> checking whether the C compiler works... yes
> checking whether we are cross compiling... no
> checking for suffix of executables...
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> checking for gcc option to accept ISO C89... none needed
> checking how to run the C preprocessor... gcc -E
> checking for a BSD-compatible install... /usr/bin/install -c
> checking for ghc... ghc
> checking where GHC keeps its libraries... /usr/local/lib/ghc-6.6
> checking GHC.Handle.openFd... NOT old API
> checking GHC.Handle.openFd new API... okay
> checking for module System.Posix.Signals(installHandler, Handler(..),
> Signal,
> sigINT, sigHUP, sigABRT, sigALRM, sigTERM,
> sigPIPE,)... yes
> checking for module Text.Regex( mkRegex, matchRegex, Regex )... no; and
> neither in package text
> checking for module Text.Regex( mkRegex, matchRegex, Regex )... in
> package regex-compat
> checking for module Debug.QuickCheck( quickCheck )... in package
> QuickCheck
> checking for module Control.Monad.Error... no; and neither in package
> util
> checking for module Control.Monad.Error... in package mtl
> checking for module Text.ParserCombinators.Parsec... in package parsec
> checking for module Text.Html... in package html
> checking getCurrentDirectory... uses /
> checking for module System.Posix.Files( createLink )... in package unix
> checking createDirectoryIfMissing... has createDirectoryIfMissing
> checking renameFile... okay
> checking for module System.Posix.Files( fileMode, getFileStatus,
> setFileMode )... yes
> checking for module System.Posix.Files( fileMode, getFileStatus,
> setFileMode )... yes
> checking whether to optimize... yes
> checking whether to profile... no
> checking whether to use mmap... yes
> checking whether to do PackedString debugging... no
> checking whether to use wxhaskell... no
> checking whether to build docs... yes
> checking for latex... latex
> checking for dvips... dvips
> checking for latex2html... no
> configure: WARNING: Cannot find latex2html in your path!
> checking for htlatex... no
> configure: WARNING: Cannot find htlatex in your path either!
> checking for hevea... no
> configure: WARNING: Cannot find hevea in your path either!
> checking for sendmail... /usr/sbin/sendmail
> checking for MAPISendMail in -lmapi32... no
> checking for gawk... gawk
> checking for libcurl... 7.15.5
> checking for curl_global_init in -lcurl... no
> configure: error: Cannot actually use libcurl; try specifying --without-
> libcurl.
New description:
It appears that ghc 6.6 can't create static binaries on osx/intel. I've
been attempting to create static binaries of darcs for distribution to a
project team on both osx/ppc and osx/intel, and ghc. It fails to find the
static versions of libs that do exist, afaict.
--
{{{
[brett at fin]:~/files/src/darcs/darcs-unstable% ./configure --with-static-
libs
checking for darcs... darcs
checking the release state... unstable branch
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for a BSD-compatible install... /usr/bin/install -c
checking for ghc... ghc
checking where GHC keeps its libraries... /usr/local/lib/ghc-6.6
checking GHC.Handle.openFd... NOT old API
checking GHC.Handle.openFd new API... okay
checking for module System.Posix.Signals(installHandler, Handler(..),
Signal,
sigINT, sigHUP, sigABRT, sigALRM, sigTERM,
sigPIPE,)... yes
checking for module Text.Regex( mkRegex, matchRegex, Regex )... no; and
neither in package text
checking for module Text.Regex( mkRegex, matchRegex, Regex )... in package
regex-compat
checking for module Debug.QuickCheck( quickCheck )... in package
QuickCheck
checking for module Control.Monad.Error... no; and neither in package util
checking for module Control.Monad.Error... in package mtl
checking for module Text.ParserCombinators.Parsec... in package parsec
checking for module Text.Html... in package html
checking getCurrentDirectory... uses /
checking for module System.Posix.Files( createLink )... in package unix
checking createDirectoryIfMissing... has createDirectoryIfMissing
checking renameFile... okay
checking for module System.Posix.Files( fileMode, getFileStatus,
setFileMode )... yes
checking for module System.Posix.Files( fileMode, getFileStatus,
setFileMode )... yes
checking whether to optimize... yes
checking whether to profile... no
checking whether to use mmap... yes
checking whether to do PackedString debugging... no
checking whether to use wxhaskell... no
checking whether to build docs... yes
checking for latex... latex
checking for dvips... dvips
checking for latex2html... no
configure: WARNING: Cannot find latex2html in your path!
checking for htlatex... no
configure: WARNING: Cannot find htlatex in your path either!
checking for hevea... no
configure: WARNING: Cannot find hevea in your path either!
checking for sendmail... /usr/sbin/sendmail
checking for MAPISendMail in -lmapi32... no
checking for gawk... gawk
checking for libcurl... 7.15.5
checking for curl_global_init in -lcurl... no
configure: error: Cannot actually use libcurl; try specifying --without-
libcurl.
}}}
Comment:
There are no static binaries on Mac OS X.
Apple does not provide a static version of the C library, or crt0.o, so
passing the "-static" flag to gcc or, therefore, to ghc, fails.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/943>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list