Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
-fdevelopment not working with cabal-dev and cabal-install-0.17
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
shahn  
View profile  
 More options Aug 9 2012, 12:09 pm
From: shahn <soenkeh...@gmail.com>
Date: Thu, 9 Aug 2012 09:09:31 -0700 (PDT)
Local: Thurs, Aug 9 2012 12:09 pm
Subject: -fdevelopment not working with cabal-dev and cabal-install-0.17

Hi all!

This is just a heads up in case someone is interested:

I compiled a snap application (called papst) with

cabal-dev install -fdevelopment

, and when accessing the application from a browser, I got the following
error message:

papst: Unknown interpreter error:

flags: '-o dist/build/papst/papst' not recognized

This happens with cabal-install-0.17 (some development state from the cabal
darcs repo). With cabal-install-0.14.0 everything works well.

Cheers,
Sönke


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Carl Howells  
View profile  
 More options Aug 9 2012, 12:30 pm
From: Carl Howells <chowell...@gmail.com>
Date: Thu, 9 Aug 2012 09:30:31 -0700
Local: Thurs, Aug 9 2012 12:30 pm
Subject: Re: [snap] -fdevelopment not working with cabal-dev and cabal-install-0.17
Interesting.

This is an easy tweak for an existing hack in the code. I wish there
was an obvious non-hack way to handle it.

Thanks for reporting it.

Carl


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
shahn  
View profile  
 More options Oct 10 2012, 6:53 am
From: shahn <soenkeh...@gmail.com>
Date: Wed, 10 Oct 2012 03:53:33 -0700 (PDT)
Local: Wed, Oct 10 2012 6:53 am
Subject: Re: [snap] -fdevelopment not working with cabal-dev and cabal-install-0.17

Now that cabal-install-1.16.0 is out:
Does anybody know if this problem still persists?

Am Donnerstag, 9. August 2012 18:30:31 UTC+2 schrieb Carl Howells:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Haisheng  
View profile  
 More options Oct 20 2012, 1:57 am
From: Haisheng <fre...@gmail.com>
Date: Fri, 19 Oct 2012 22:57:06 -0700 (PDT)
Local: Sat, Oct 20 2012 1:57 am
Subject: Re: [snap] -fdevelopment not working with cabal-dev and cabal-install-0.17

Same error with cabal-0.16.0.

Do you know the root cause?

Thank you.
-Haisheng


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Carl Howells  
View profile  
 More options Oct 23 2012, 5:48 pm
From: Carl Howells <chowell...@gmail.com>
Date: Tue, 23 Oct 2012 14:48:53 -0700
Local: Tues, Oct 23 2012 5:48 pm
Subject: Re: [snap] -fdevelopment not working with cabal-dev and cabal-install-0.17
Wow, I forgot about this completely.

The root cause is deep, but I might as well document it somewhere.

The dynamic loader used by development mode uses the GHC api to
interpret action code. But the GHC api isn't totally independent of
its environment. In fact, there are a *lot* of external options that
control how it behaves.

I looked at several different ways of attempting to get the
environment correct for the compilation process. The only one I could
make work sufficiently in the end involved a compile-time hook with
TH. During compilation, the dynamic loader has TH code that gets the
arguments GHC was executed with. It uses that argument list to
generate the flags needed for the GHC api.

But this is where things get brittle. The GHC api has a lot of
internal state that's not documented. Further, there isn't really a
function to convert an argument list into a configuration object that
you can then tweak. There are a bunch of different sub-parts of the
argument list that are handled in somewhat different ways.

So, I took a look at how cabal was generating argument lists, and
hacked together a few bad heuristics to handle them. What's going on
here is that the new version of cabal generates argument lists
slightly differently, in a way that the heuristics don't handle
properly. There's a pre-existing hack in place to blacklist certain
flags, and it's easy for me to add "-o" to the list. And I should do
that, since it's a minimal change that will make things work again.

But it's still just papering over a hole caused by not having enough
tooling from the GHC api.

Carl


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »