darcs patch: Unbreak the GHC build with older versions of gcc
Ian Lynagh
igloo at earth.li
Sun Aug 31 15:19:54 EDT 2008
On Thu, Aug 28, 2008 at 09:50:19PM +0200, kili at outback.escape.de wrote:
> Thu Aug 28 16:27:43 CEST 2008 kili at outback.escape.de
> * Unbreak the GHC build with older versions of gcc
>
> Stg.h must be included before HsBase.h, because the latter contains
> function definitions causing older versions of gcc (3.3.5 in my
> case) to bail out with "error: global register variable follows a
> function definition" on Regs.h, which is included by Stg.h.
>
> hunk ./cbits/PrelIOUtils.c 8
> -#include "HsBase.h"
> hunk ./cbits/PrelIOUtils.c 9
> +#include "HsBase.h"
This breaks the build for me:
Building ghc-bin-6.9...
[1 of 1] Compiling Main ( Main.hs,
dist-stage2/build/ghc/ghc-tmp/Main.o )
Linking dist-stage2/build/ghc/ghc ...
/home/ian/ghc/darcs/ghc/libraries/base/dist/build/libHSbase-4.0.a(Internals.o):(.text+0x24):
undefined reference to `__hscore_s_issock'
/home/ian/ghc/darcs/ghc/libraries/base/dist/build/libHSbase-4.0.a(Internals.o):
In function `s3qd_info':
(.text+0x2435): undefined reference to `__hscore_s_issock'
/home/ian/ghc/darcs/ghc/libraries/base/dist/build/libHSbase-4.0.a(Internals.o):
In function `s3qB_info':
(.text+0x26c8): undefined reference to `__hscore_s_issock'
/home/ian/ghc/darcs/ghc/libraries/base/dist/build/libHSbase-4.0.a(Internals.o):
In function `s3uh_info':
(.text+0x61e6): undefined reference to `__hscore_s_issock'
collect2: ld returned 1 exit status
I haven't looked at why yet.
Thanks
Ian
More information about the Libraries
mailing list