Send Beginners mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://www.haskell.org/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."


Today's Topics:

   1.  Compiling GHC 7.4.1 on Mac OS X, XCode 4.3 (Obscaenvs)
   2. Re:  Compiling GHC 7.4.1 on Mac OS X, XCode 4.3 (Erlend Hamberg)
   3.  Installing Haskell on Lion with Homebrew... (Stuart Hungerford)


----------------------------------------------------------------------

Message: 1
Date: Mon, 05 Mar 2012 13:08:17 +0100
From: Obscaenvs <[email protected]>
Subject: [Haskell-beginners] Compiling GHC 7.4.1 on Mac OS X, XCode
        4.3
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hello! I have for various subtle reasons bought a MacBook Pro. It 
certainly is very shiny :)

I find it somewhat reluctant in the Haskell department, though: I do not 
want the lagging haskell-platform, and decided to do things from 
scratch, i.e. compile ghc myself. I followed the intructions, and I 
*have* compiled stuff before, so I'm not completely lost. However, after 
./configure, make exits with the message

<code>
===--- building phase 0
make -r --no-print-directory -f ghc.mk phase=0 phase_0_builds
libraries/extensible-exceptions/ghc.mk:3: 
libraries/extensible-exceptions/dist-boot/package-data.mk: No such file 
or directory
libraries/hpc/ghc.mk:3: libraries/hpc/dist-boot/package-data.mk: No such 
file or directory
libraries/Cabal/Cabal/ghc.mk:3: 
libraries/Cabal/Cabal/dist-boot/package-data.mk: No such file or directory
libraries/binary/ghc.mk:3: libraries/binary/dist-boot/package-data.mk: 
No such file or directory
libraries/bin-package-db/ghc.mk:3: 
libraries/bin-package-db/dist-boot/package-data.mk: No such file or 
directory
libraries/hoopl/ghc.mk:3: libraries/hoopl/dist-boot/package-data.mk: No 
such file or directory
compiler/ghc.mk:437: compiler/stage1/package-data.mk: No such file or 
directory
utils/hsc2hs/ghc.mk:14: utils/hsc2hs/dist/package-data.mk: No such file 
or directory
ghc/ghc.mk:93: ghc/stage1/package-data.mk: No such file or directory
"inplace/bin/ghc-cabal" configure --with-ghc="/usr/bin/ghc" 
--with-ghc-pkg="/usr/bin/ghc-pkg"  
--package-db=/Users/fcar/Downloads/ghc-7.4.1/libraries/bootstrapping.conf 
--enable-library-profiling 
--enable-shared --enable-library-for-ghci --configure-option=CFLAGS=" 
-m64 -fno-stack-protector  " --configure-option=LDFLAGS=" -m64  " 
--configure-option=CPPFLAGS=" -m64  "   --constraint "Cabal == 1.14.0"   
--constraint "hpc == 0.5.1.1"   --constraint "extensible-exceptions == 
0.1.1.4"   --constraint "binary == 0.5.1.0"   --constraint 
"bin-package-db == 0.0.0.0"   --constraint "hoopl == 3.8.7.3" 
--with-gcc="/usr/bin/gcc" --configure-option=--with-cc="/usr/bin/gcc" 
--with-ar="/Developer/usr/bin/ar" --with-ranlib="ranlib" -- dist-boot 
libraries/Cabal/Cabal
Configuring Cabal-1.14.0...
ghc-cabal: Cannot find the program 'ar' at '/Developer/usr/bin/ar' or on the
path
make[1]: *** [libraries/Cabal/Cabal/dist-boot/package-data.mk] Error 1
make: *** [all] Error 2
</code>


I can clearly make out the offending flag: 
--with-ar="/Developer/usr/bin/ar". Having Xcode 4.3, there is no longer 
any /Developer folder - but where do I tell it to use "/usr/bin/ar" 
instead? Furthermore, it says "or on the
path" above, but /usr/bin *is* in PATH, at least in the environment I 
have at the shell prompt (but this might be changed in some script that 
make calls or whatever...)


Grateful for help.

/Fredrik, Stockholm



------------------------------

Message: 2
Date: Mon, 5 Mar 2012 13:13:13 +0100
From: Erlend Hamberg <[email protected]>
Subject: Re: [Haskell-beginners] Compiling GHC 7.4.1 on Mac OS X,
        XCode 4.3
To: Obscaenvs <[email protected]>
Cc: [email protected]
Message-ID:
        <ca+g9oxmqvwo158e7vvfrb0ahyghhuh4otejs02gcpejsyie...@mail.gmail.com>
Content-Type: text/plain; charset=windows-1252

On 5 March 2012 13:08, Obscaenvs <[email protected]> wrote:
> I find it somewhat reluctant in the Haskell department, though: I do not
> want the lagging haskell-platform, and decided to do things from scratch,
> i.e. compile ghc myself. I followed the intructions, and I *have* compiled
> stuff before, so I'm not completely lost. However, after ./configure, make
> exits with the message

Have you considered using the Homebrew package manager??
Using homebrew it should ? at least in theory ? be as easy as:

$ brew update
$ brew install --devel ghc

The ?--devel? switch should choose GHC 7.4.1, as far as I remember.

[1] http://mxcl.github.com/homebrew/

-- 
Erlend Hamberg
[email protected]



------------------------------

Message: 3
Date: Tue, 6 Mar 2012 18:57:59 +1100
From: Stuart Hungerford <[email protected]>
Subject: [Haskell-beginners] Installing Haskell on Lion with
        Homebrew...
To: [email protected]
Message-ID:
        <cag+kmrh5-kuogcbdwj_wd9fisd-23bcbnqfueciznr30u32...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

Hi,

I'd like to start using Haskell on my OS/X Lion system.  In
preparation I've installed 10.7.3 and the latest XCode. I've also
installed the XCode command line tools.

I'm using Homebrew and run "brew doctor" first to make sure Homebrew
is happy. Then a "brew install haskell-platform" generates thousands
of "ld: warning: text reloc in _cZh_str to _stg_ap_pppppp_info"
warnings then fails on C Compiler errors.

I must have missed something important?  Any advice from other OS/X
Lion users much appreciated.

Thanks,

Stu



------------------------------

_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners


End of Beginners Digest, Vol 45, Issue 4
****************************************

Reply via email to