What happened to -optdep option?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

What happened to -optdep option?

Volker Wysk
Hello!

I'm using GHC 7.10.3 after an upgrade. I have the following in my Makefile:

depend_mod :: lib/abh
        ghc -M $(CFLAGS_GHC_0) -dep-makefile -optdepbuild/depend.tmp -dep-suffix "p_"
\
               $(foreach m, $(MOD_HS) $(PROG_HS), src/$(m).hs) \
               $(foreach m, $(MOD_CHS) $(PROG_CHS), build/$(m).hs)
        ...
       
This used to work. The previous GHC version was 7.8.

Now GHC complains:

-optdepbuild/depend.tmp: openBinaryFile: does not exist (No such file or
directory)

This looks like the -optdep argument isn't understood. There is no mention of
it in the new/7.10.3 user manual. I don't know any longer what this "-optget"
argument does, and it isn't in the documentation any longer.

I googled the GHC web site. There it is mentioned that -optdep was deprecated,
but almost all of the hits are very outdated (like ten years old).

Can soneone tell me, how I should change my Makefile..?


Greetings,
Volker Wysk
_______________________________________________
Glasgow-haskell-users mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-haskell-users
Reply | Threaded
Open this post in threaded view
|

Re: What happened to -optdep option?

Bertram Felgenhauer-2
Volker Wysk wrote:
> Hello!
>
> I'm using GHC 7.10.3 after an upgrade. I have the following in my Makefile:
>
> depend_mod :: lib/abh
> ghc -M $(CFLAGS_GHC_0) -dep-makefile -optdepbuild/depend.tmp -dep-suffix "p_"

You should drop the -optdep here

> \
>       $(foreach m, $(MOD_HS) $(PROG_HS), src/$(m).hs) \
>       $(foreach m, $(MOD_CHS) $(PROG_CHS), build/$(m).hs)
>         ...
>        
> This used to work. The previous GHC version was 7.8.

As a side effect of finally removing the -optdep-f flag,

  https://ghc.haskell.org/trac/ghc/ticket/2773
  (another relevant commit is  994d5e3cfc32cb624b63683205dd8fd876171d0c)

the code that strips -optdep from the filename, which was required to
make  -optdep-f -optdepfoo  work, also got removed. The fact that
-dep-makefile continued to strip -optdep was an accident in my view.

Cheers,

Bertram
_______________________________________________
Glasgow-haskell-users mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-haskell-users
Reply | Threaded
Open this post in threaded view
|

Re: What happened to -optdep option?

Volker Wysk
Hello!

Am Freitag, 6. Mai 2016, 00:35:01 CEST schrieb Bertram Felgenhauer:

> Volker Wysk wrote:
> > Hello!
> >
> > I'm using GHC 7.10.3 after an upgrade. I have the following in my
> > Makefile:
> >
> > depend_mod :: lib/abh
> >
> > ghc -M $(CFLAGS_GHC_0) -dep-makefile -optdepbuild/depend.tmp -dep-suffix
> > "p_"
> You should drop the -optdep here
>
> > \
> >
> >       $(foreach m, $(MOD_HS) $(PROG_HS), src/$(m).hs) \
> >       $(foreach m, $(MOD_CHS) $(PROG_CHS), build/$(m).hs)
> >      
> >         ...
> >
> > This used to work. The previous GHC version was 7.8.
>
> As a side effect of finally removing the -optdep-f flag,
>
>   https://ghc.haskell.org/trac/ghc/ticket/2773
>   (another relevant commit is  994d5e3cfc32cb624b63683205dd8fd876171d0c)
>
> the code that strips -optdep from the filename, which was required to
> make  -optdep-f -optdepfoo  work, also got removed. The fact that
> -dep-makefile continued to strip -optdep was an accident in my view.

I've fixed it by removing "-optdepbuild/depend.tmp" and replacing "-dep-
makefile" with "-dep-makefile build/depend.tmp". Thanks.

Volker
_______________________________________________
Glasgow-haskell-users mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-haskell-users