Message from discussion
ANN: Happstack 0.4.1
X-BeenThere: happs@googlegroups.com
Received: by 10.90.59.36 with SMTP id h36ls306928aga.3.p; Wed, 23 Dec 2009
02:58:34 -0800 (PST)
Received: by 10.90.41.1 with SMTP id o1mr7215968ago.7.1261565913996;
Wed, 23 Dec 2009 02:58:33 -0800 (PST)
Received: by 10.90.41.1 with SMTP id o1mr7215966ago.7.1261565913952;
Wed, 23 Dec 2009 02:58:33 -0800 (PST)
Return-Path: <hessel...@gmail.com>
Received: from mail-yx0-f141.google.com (mail-yx0-f141.google.com [209.85.210.141])
by gmr-mx.google.com with ESMTP id 24si943186yxe.11.2009.12.23.02.58.33;
Wed, 23 Dec 2009 02:58:33 -0800 (PST)
Received-SPF: pass (google.com: domain of hessel...@gmail.com designates 209.85.210.141 as permitted sender) client-ip=209.85.210.141;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of hessel...@gmail.com designates 209.85.210.141 as permitted sender) smtp.mail=hessel...@gmail.com
Received: by mail-yx0-f141.google.com with SMTP id 5so7510552yxe.24
for <happs@googlegroups.com>; Wed, 23 Dec 2009 02:58:33 -0800 (PST)
MIME-Version: 1.0
Received: by 10.101.179.34 with SMTP id g34mr206829anp.6.1261565913908; Wed,
23 Dec 2009 02:58:33 -0800 (PST)
Date: Wed, 23 Dec 2009 02:58:33 -0800 (PST)
In-Reply-To: <694519c50912211933p257746abgca00c46a443264ac@mail.gmail.com>
X-IP: 24.132.106.179
References: <54342.1261377119@n-heptane.com> <694519c50912211933p257746abgca00c46a443264ac@mail.gmail.com>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US;
rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6,gzip(gfe),gzip(gfe)
Message-ID: <03191f28-aac0-49c9-b242-17d1be7a2ef8@m16g2000yqc.googlegroups.com>
Subject: Re: ANN: Happstack 0.4.1
From: Erik Hesselink <hessel...@gmail.com>
To: HAppS <happs@googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
On Dec 22, 4:33=A0am, Antoine Latter <aslat...@gmail.com> wrote:
> On Mon, Dec 21, 2009 at 6:31 AM, =A0<jer...@n-heptane.com> wrote:
> > Hello,
>
> > That sort of missing symbol error at link time is often (but not always=
) a
> > sign that some libraries got recompiled but not others. So there are
> > references to the old symbol names hanging around.
>
> > I would try to ghc-pkg unregister syb-with-class and everything that de=
pends
> > on it, and then try cabal install happstack again.
>
> I'm pretty well stumped at this point. I've cleared off everything and
> gone up to GHC 6.12 HEAD, and a 'cabal install happstack-data' gives
> me the same symbol not defined error in Happstack.Data.Xml.Base.
>
> But here's the spooky part, if I run it by hand like so:
>
> ghc --make src/Happstack/Data/Xml/Base.hs
> src/Happstack/Data/Default.hs src/Happstack/Data/
> DeriveAll.hs src/Happstack/Data/Normalize.hs src/Happstack/Data/Migrate.h=
s
>
> after resolving issues due to CPP not being run, everything runs to
> completion, no errors. Also, the list of things we're pulling in
> during the template-haskell execution is much smaller (see bellow).
I've found that if I log the command cabal executes (cabal install -v)
and execute that by hand, it doesn't work. However, if I remove the -O
flag from there, it _does_ work. So a workaround is this:
cabal install -O0 happstack-data
I have no idea _why_ it is failing with optimizations on, though.
> Has anyone seen this, where template-haskell behaves different when
> run from cabal-install (or Setup.hs) than from ghc --make (or ghci)?
Yes, I have seen that before, but in that case, I think it was the ghc
linker doing something different from the standard linker, possibly
related to GHC bug 3333 [1]. I think every bug or limitation that
applies to ghci also applies to cabal if you're using template haskell
(at least that's my suspicion).
[1] http://hackage.haskell.org/trac/ghc/ticket/3333
Erik