ghc 6.10.3-prerelease failed build log for freebsd7.2

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 hi after some trying, i was unable to get the 6.10.3 prerelease to build on freebsd 7.2. i was trying to use an existing 6.10.2 as my build ghc. i saved the output of the entire build from ./configure to the point of failure. it is too long too attach here, you can see it at: http://www.b7j0c.org/ghc-6.10.3.log.txt it is about 4.4mb thanks brad -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkn+hUUACgkQxRg3RkRK91OSCwCfZ2LuR2v1UNYfx1z1gCx/5Kam 4pwAn0+T69nj0qIl4LyCYEsy/mAOdc8h =6alu -----END PGP SIGNATURE-----

Hi, On Sun, May 03, 2009 at 11:03:49PM -0700, brad clawsie wrote:
after some trying, i was unable to get the 6.10.3 prerelease to build on freebsd 7.2. i was trying to use an existing 6.10.2 as my build ghc.
i saved the output of the entire build from ./configure to the point of failure. it is too long too attach here, you can see it at:
Interesting. haskeline seems to break the build in different ways and at different places (and sometimes it doesn't fail at all). In your case, it doesn't find libiconv, thus isn't built, and causes failure later. In my case (a buildbot running OpenBSD-4.5 on i386), the haskeline build itself fails (see `kili-stable' on darcs.haskell.org/buildbots), but at the same time on OpenBSD-current on an amd64 the haskeline build complains about a missing libiconv but builds nevertheless. This all is a little bit confusing, but it should be fixable by telling configure where to find libivonv (i didn't yet have the time to look what's going on for real here). Ciao, Kili

H Kili, On Mon, May 04, 2009 at 09:36:00PM +0200, Matthias Kilian wrote:
In your case, it doesn't find libiconv, thus isn't built, and causes failure later. In my case (a buildbot running OpenBSD-4.5 on i386), the haskeline build itself fails (see `kili-stable' on darcs.haskell.org/buildbots),
Is iconv installed somewhere on that machine? If so, where is it? (both the library and the header file) Thanks Ian

On Wed, May 06, 2009 at 08:48:04PM +0100, Ian Lynagh wrote:
H Kili,
On Mon, May 04, 2009 at 09:36:00PM +0200, Matthias Kilian wrote:
In your case, it doesn't find libiconv, thus isn't built, and causes failure later. In my case (a buildbot running OpenBSD-4.5 on i386), the haskeline build itself fails (see `kili-stable' on darcs.haskell.org/buildbots),
Is iconv installed somewhere on that machine? If so, where is it? (both the library and the header file)
Binary in /usr/local/bin/iconv, library in /usr/local/lib, header in /usr/local/include. The strange thing isn't that it isn't detected correctly (linking is done a little bit differently on OpenBSD, you have to explicitely specify depending libs), but that the overall build doesn't fail on my fast build machine at home (which i still have to turn into a buildslave) Anyway, i'll look into this next weekend. Don't hold back the release because of this. For FreeBSD, there should be no problem to add some small patches (or probably just some additional arguments to configure), and for OpenBSD, ir just doesn't matter (because I'll wait for ghc 6.12 with our port). Ciao, Kili -- Automake and autoconf deserve to wither and die, but unfortunately noone at GNU seems to make much of an effort to euthanasize them. -- Han-Wen Nienhuys, on Lilypond-devel mailing list

Hi brad, On Sun, May 03, 2009 at 11:03:49PM -0700, brad clawsie wrote:
after some trying, i was unable to get the 6.10.3 prerelease to build on freebsd 7.2. i was trying to use an existing 6.10.2 as my build ghc.
Thanks for trying it out! Do you have iconv installed? If so, does applying the patch below and putting: EXTRA_CABAL_CONFIGURE_FLAGS = --extra-include-dirs=/some/path --extra-lib-dirs=/some/other/path (where /some/path and /some/other/path are the paths to the iconv header and library respectively) in mk/build.mk before you start the build work? Thanks Ian diff -rN -u old-ghc/libraries/Makefile new-ghc/libraries/Makefile --- old-ghc/libraries/Makefile 2009-05-06 20:49:11.000000000 +0100 +++ new-ghc/libraries/Makefile 2009-05-06 20:49:11.000000000 +0100 @@ -200,7 +200,8 @@ $(COMMON_CONFIGURE_FLAGS) \ --haddock-options="--use-contents=../index.html \ --use-index=../doc-index.html" \ - $(CONFIGURE_OPTS) + $(CONFIGURE_OPTS) \ + $(EXTRA_CABAL_CONFIGURE_FLAGS) stamp/configure.library.build$(CONFIGURE_STAMP_EXTRAS).dph/dph-par: \ dph/dph-par

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
hi Ian, thanks for the response. unfortunately my bsd box has had an
accident. i will not be able to test your suggestion below. perhaps if
someone else has a freebsd box they can try.
thanks
brad
Ian Lynagh
Do you have iconv installed?
If so, does applying the patch below and putting:
EXTRA_CABAL_CONFIGURE_FLAGS = --extra-include-dirs=/some/path --extra-lib-dirs=/some/other/path -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkoChTcACgkQxRg3RkRK91OgqACbB3XSp6Yhg6NZ0/3VR72at6ay hWQAn0n8ToaIZXMW0oVSYprnV+2T1Mac =WYet -----END PGP SIGNATURE-----

On Wed, May 06, 2009 at 11:52:38PM -0700, brad clawsie wrote:
hi Ian, thanks for the response. unfortunately my bsd box has had an accident. i will not be able to test your suggestion below.
OK, no problem. Last night's build on kili went through: http://darcs.haskell.org/buildbot/all/builders/kili%20stable/builds/90 so it looks like we're good to go! Thanks Ian
participants (3)
-
brad clawsie
-
Ian Lynagh
-
Matthias Kilian