Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

«cabal install» fails #10

Open
Hi-Angel opened this issue Dec 7, 2015 · 2 comments
Open

«cabal install» fails #10

Hi-Angel opened this issue Dec 7, 2015 · 2 comments

Comments

@Hi-Angel
Copy link

Hi-Angel commented Dec 7, 2015

The build fails with

[75 of 79] Compiling NN.CLI           ( NN/CLI.hs, dist/dist-sandbox-f1ec6f88/build/NN/CLI.o )                              

NN/CLI.hs:38:1:                                                                                                             
    Ambiguous occurrence ‘makeLenses’                                                                                       
    It could refer to either ‘Control.Lens.makeLenses’,                                                                     
                             imported from ‘Control.Lens’ at NN/CLI.hs:5:1-53                                               
                             (and originally defined in ‘Control.Lens.TH’)                                                  
                          or ‘P.makeLenses’,                                                                                
                             imported from ‘Text.ProtocolBuffers’ at NN/CLI.hs:18:1-43                                      
                             (and originally defined in ‘Text.ProtocolBuffers.Reflections’)                                 
Failed to install caffegraph-0.1.0.2                                                                                        
cabal: Error: some packages failed to install:                                                                              
caffegraph-0.1.0.2 failed during the building phase. The exception was:
ExitFailure 1

I tried to use stack too for some packages, so I actually have that CLI.hs built already in my .stack-work directory. So I tried to trick it with

cp .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/NN/CLI.* dist/dist-sandbox-f1ec6f88/build/NN/

But it didn't work, it still trying to compile the file, like it didn't see it is already built ☹

@Hi-Angel
Copy link
Author

Hi-Angel commented Dec 7, 2015

Yay, I fixed this!

@Hi-Angel Hi-Angel closed this as completed Dec 7, 2015
@Hi-Angel
Copy link
Author

/me is going through a backlog of old unmerged PRs on my account, and I found I shouldn't have closed this issue as the according PR was never merged. Sorry for potential confusion, reopening

@Hi-Angel Hi-Angel reopened this Jan 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant