ListArc » English » Miscellaneous » Arch-haskell » Build+error+with+lekash+on+archlinux+when+using+cabal2arch


Build+error+with+lek...


12-05-2011 03:34 PM
1


In case this is an issue with archlinux platform specifically and not GHC in
general

http://hackage.haskell.org/trac/ghc/ticket/5193

Thanks





13-05-2011 05:36 AM
2


On Fri, May 13, 2011 at 01:34:13AM +1000, Mathew de Detrich wrote:
> In case this is an issue with archlinux platform specifically and not GHC in
> general
>
> http://hackage.haskell.org/trac/ghc/ticket/5193

Are you compiling leksah with profiling?
If so, try turning it off.

I'm also confused why you raised the bug on GHC's trac, are you not
using the Arch package for GHC?

/M

--
Magnus Therning OpenPGP: 0xAB4DFBA4
email: jabber:
twitter: magthe http://therning.org/magnus

Most software today is very much like an Egyptian pyramid with
millions of bricks piled on top of each other, with no structural
integrity, but just done by brute force and thousands of slaves.
-- Alan Kay





13-05-2011 05:48 AM
3


No I am not

Also the reason I put it on GHC is that it might have been a specific issue
with GHC (although unlikely)

On Fri, May 13, 2011 at 3:36 PM, Magnus Therning <>wrote:

> On Fri, May 13, 2011 at 01:34:13AM +1000, Mathew de Detrich wrote:
> > In case this is an issue with archlinux platform specifically and not GHC
> in
> > general
> >
> > http://hackage.haskell.org/trac/ghc/ticket/5193
>
> Are you compiling leksah with profiling?
> If so, try turning it off.
>
> I'm also confused why you raised the bug on GHC's trac, are you not
> using the Arch package for GHC?
>
> /M
>
> --
> Magnus Therning OpenPGP: 0xAB4DFBA4
> email: jabber:
> twitter: magthe http://therning.org/magnus
>
> Most software today is very much like an Egyptian pyramid with
> millions of bricks piled on top of each other, with no structural
> integrity, but just done by brute force and thousands of slaves.
> -- Alan Kay
>
> _______________________________________________
> arch-haskell mailing list
> arch-
> http://www.haskell.org/mailman/listinfo/arch-haskell
>
>





13-05-2011 05:49 AM
4


Also I am not compiling leksah with profiling, I am just using cabal2arch on
the standard leksah package on
http://hackage.haskell.org/packages/archive/leksah/0.10.0.4/leksah.cabal

On Fri, May 13, 2011 at 3:36 PM, Magnus Therning <>wrote:

> On Fri, May 13, 2011 at 01:34:13AM +1000, Mathew de Detrich wrote:
> > In case this is an issue with archlinux platform specifically and not GHC
> in
> > general
> >
> > http://hackage.haskell.org/trac/ghc/ticket/5193
>
> Are you compiling leksah with profiling?
> If so, try turning it off.
>
> I'm also confused why you raised the bug on GHC's trac, are you not
> using the Arch package for GHC?
>
> /M
>
> --
> Magnus Therning OpenPGP: 0xAB4DFBA4
> email: jabber:
> twitter: magthe http://therning.org/magnus
>
> Most software today is very much like an Egyptian pyramid with
> millions of bricks piled on top of each other, with no structural
> integrity, but just done by brute force and thousands of slaves.
> -- Alan Kay
>
> _______________________________________________
> arch-haskell mailing list
> arch-
> http://www.haskell.org/mailman/listinfo/arch-haskell
>
>





13-05-2011 06:04 AM
5


On Fri, May 13, 2011 at 03:47:35PM +1000, Mathew de Detrich wrote:
> No I am not

If I'm reading the Leksah .cabal correctly you will be compiling with
profiling when building as a shared library (ghc-shared-options).
AFAICS ghc (which provides filepath) isn't shipped with the
combination shared+profiling so this is possibly causing the problem
you see.

> Also the reason I put it on GHC is that it might have been a
> specific issue with GHC (although unlikely)

Fair enough :-)

/M

--
Magnus Therning OpenPGP: 0xAB4DFBA4
email: jabber:
twitter: magthe http://therning.org/magnus

Most software today is very much like an Egyptian pyramid with
millions of bricks piled on top of each other, with no structural
integrity, but just done by brute force and thousands of slaves.
-- Alan Kay





13-05-2011 06:07 AM
6


On Fri, May 13, 2011 at 03:49:55PM +1000, Mathew de Detrich wrote:
> Also I am not compiling leksah with profiling, I am just using cabal2arch on
> the standard leksah package on
> http://hackage.haskell.org/packages/archive/leksah/0.10.0.4/leksah.cabal

cabal2arch will create a PKGBUILD that supports profiling (you turn it
on using an environment variable) and it always turns on building of
shared libraries.

/M

--
Magnus Therning OpenPGP: 0xAB4DFBA4
email: jabber:
twitter: magthe http://therning.org/magnus

I invented the term Object-Oriented, and I can tell you I did not have
C++ in mind.
-- Alan Kay





13-05-2011 06:08 AM
7


Well I didn't explicitly turn on profiling as an environment variable, but
in any case filepath ships with GHC so that wouldn't fix anything (unless
you wanted to use cabal2arch on filepath and have to rebuild the cache for
GHC)

On Fri, May 13, 2011 at 4:07 PM, Magnus Therning <>wrote:

> On Fri, May 13, 2011 at 03:49:55PM +1000, Mathew de Detrich wrote:
> > Also I am not compiling leksah with profiling, I am just using cabal2arch
> on
> > the standard leksah package on
> > http://hackage.haskell.org/packages/archive/leksah/0.10.0.4/leksah.cabal
>
> cabal2arch will create a PKGBUILD that supports profiling (you turn it
> on using an environment variable) and it always turns on building of
> shared libraries.
>
> /M
>
> --
> Magnus Therning OpenPGP: 0xAB4DFBA4
> email: jabber:
> twitter: magthe http://therning.org/magnus
>
> I invented the term Object-Oriented, and I can tell you I did not have
> C++ in mind.
> -- Alan Kay
>





13-05-2011 06:14 AM
8


On Fri, May 13, 2011 at 04:08:49PM +1000, Mathew de Detrich wrote:
> Well I didn't explicitly turn on profiling as an environment variable, but
> in any case filepath ships with GHC so that wouldn't fix anything (unless
> you wanted to use cabal2arch on filepath and have to rebuild the cache for
> GHC)

I may have been unclear (forgive me if I'm mistaken in believing I
haven't quite gotten my point across). Here's the situation as I see
it:

• GHC ships with static libs, shared libs, and static libs for
profiling (it's missing shared libs for profiling)
• cabal2arch generates a PKGBUILD that compiles static libs, shared
libs and static libs for profiling
• Leksah turns on profiling when compiling shared libs

What you need to do is modify Leksah's cabal such that it *doesn't*
turn on profiling when compiling the shared libs.

/M

> On Fri, May 13, 2011 at 4:07 PM, Magnus Therning <>wrote:
>
> > On Fri, May 13, 2011 at 03:49:55PM +1000, Mathew de Detrich wrote:
> > > Also I am not compiling leksah with profiling, I am just using cabal2arch
> > on
> > > the standard leksah package on
> > > http://hackage.haskell.org/packages/archive/leksah/0.10.0.4/leksah.cabal
> >
> > cabal2arch will create a PKGBUILD that supports profiling (you turn it
> > on using an environment variable) and it always turns on building of
> > shared libraries.
> >
> > /M
> >
> > --
> > Magnus Therning OpenPGP: 0xAB4DFBA4
> > email: jabber:
> > twitter: magthe http://therning.org/magnus
> >
> > I invented the term Object-Oriented, and I can tell you I did not have
> > C++ in mind.
> > -- Alan Kay
> >

--
Magnus Therning OpenPGP: 0xAB4DFBA4
email: jabber:
twitter: magthe http://therning.org/magnus

I invented the term Object-Oriented, and I can tell you I did not have
C++ in mind.
-- Alan Kay





13-05-2011 06:16 AM
9


Oh no, I understood that perfectly. Technically speaking its an issue with
the cabal package file, although I have no idea if this is something cabal
package maintainers should be responsible for or if this is a side effect of
PKGBUILD supporting profiling

On Fri, May 13, 2011 at 4:14 PM, Magnus Therning <>wrote:

> On Fri, May 13, 2011 at 04:08:49PM +1000, Mathew de Detrich wrote:
> > Well I didn't explicitly turn on profiling as an environment variable,
> but
> > in any case filepath ships with GHC so that wouldn't fix anything (unless
> > you wanted to use cabal2arch on filepath and have to rebuild the cache
> for
> > GHC)
>
> I may have been unclear (forgive me if I'm mistaken in believing I
> haven't quite gotten my point across). Here's the situation as I see
> it:
>
> GHC ships with static libs, shared libs, and static libs for
> profiling (it's missing shared libs for profiling)
> cabal2arch generates a PKGBUILD that compiles static libs, shared
> libs and static libs for profiling
> Leksah turns on profiling when compiling shared libs
>
> What you need to do is modify Leksah's cabal such that it *doesn't*
> turn on profiling when compiling the shared libs.
>
> /M
>
> > On Fri, May 13, 2011 at 4:07 PM, Magnus Therning <
> >wrote:
> >
> > > On Fri, May 13, 2011 at 03:49:55PM +1000, Mathew de Detrich wrote:
> > > > Also I am not compiling leksah with profiling, I am just using
> cabal2arch
> > > on
> > > > the standard leksah package on
> > > >
> http://hackage.haskell.org/packages/archive/leksah/0.10.0.4/leksah.cabal
> > >
> > > cabal2arch will create a PKGBUILD that supports profiling (you turn it
> > > on using an environment variable) and it always turns on building of
> > > shared libraries.
> > >
> > > /M
> > >
> > > --
> > > Magnus Therning OpenPGP: 0xAB4DFBA4
> > > email: jabber:
> > > twitter: magthe http://therning.org/magnus
> > >
> > > I invented the term Object-Oriented, and I can tell you I did not have
> > > C++ in mind.
> > > -- Alan Kay
> > >
>
> --
> Magnus Therning OpenPGP: 0xAB4DFBA4
> email: jabber:
> twitter: magthe http://therning.org/magnus
>
> I invented the term Object-Oriented, and I can tell you I did not have
> C++ in mind.
> -- Alan Kay
>





13-05-2011 06:49 AM
10


On Fri, May 13, 2011 at 04:16:39PM +1000, Mathew de Detrich wrote:
> Oh no, I understood that perfectly. Technically speaking its an
> issue with the cabal package file, although I have no idea if this
> is something cabal package maintainers should be responsible for or
> if this is a side effect of PKGBUILD supporting profiling

Ah, good, English isn't my native tongue so I'm aware I sometimes
express myself clumsily.


IMNSHO the Leksah Cabal file clearly is the culprit here. I
personally think that Cabal files uploaded to Hackage shouldn't turn
on anything like profiling, shared libs etc. They should configure
the bare minimum. It should be left to packagers (e.g. ArchHaskell)
to turn on stuff like profiling and shared libs if that's suitable.


/M

--
Magnus Therning OpenPGP: 0xAB4DFBA4
email: jabber:
twitter: magthe http://therning.org/magnus

I invented the term Object-Oriented, and I can tell you I did not have
C++ in mind.
-- Alan Kay