can't validate on Linux

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

can't validate on Linux

Richard Eisenberg-4
Hi devs,

When I try validating my patch, validation fails with

> ...
> Registering library for ghc-prim-0.5.0.0..
> ghc-cabal: '/home/rae/ghc/ghc-valid/bindisttest/install
> dir/lib/ghc-8.3.20170312/bin/ghc-pkg' exited with an error:
> ghc-pkg: Couldn't open database /home/rae/ghc/ghc-valid/bindisttest/install
> dir/lib/ghc-8.3.20170312/package.conf.d for modification: {handle:
> /home/rae/ghc/ghc-valid/bindisttest/install
> dir/lib/ghc-8.3.20170312/package.conf.d/package.cache.lock}: hLock: invalid
> argument (Bad file descriptor)
> make[3]: *** [ghc.mk:990: install_packages] Error 1
> make[2]: *** [Makefile:51: install] Error 2
> make[1]: *** [bindisttest/ghc.mk:33: test_bindist] Error 2
> make: *** [Makefile:127: test_bindist] Error 2

Any advice?

Thanks!
Richard
_______________________________________________
ghc-devs mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: can't validate on Linux

Erik de Castro Lopo-34
Richard Eisenberg wrote:

> /home/rae/ghc/ghc-valid/bindisttest/install
> > dir/lib/ghc-8.3.20170312/package.conf.d/package.cache.lock

I'd try manually deleting that file.

Erik
--
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/
_______________________________________________
ghc-devs mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: can't validate on Linux

Ben Gamari-2
In reply to this post by Richard Eisenberg-4
Richard Eisenberg <[hidden email]> writes:

> Hi devs,
>
> When I try validating my patch, validation fails with
>
>> ...
>> Registering library for ghc-prim-0.5.0.0..
>> ghc-cabal: '/home/rae/ghc/ghc-valid/bindisttest/install
>> dir/lib/ghc-8.3.20170312/bin/ghc-pkg' exited with an error:
>> ghc-pkg: Couldn't open database /home/rae/ghc/ghc-valid/bindisttest/install
>> dir/lib/ghc-8.3.20170312/package.conf.d for modification: {handle:
>> /home/rae/ghc/ghc-valid/bindisttest/install
>> dir/lib/ghc-8.3.20170312/package.conf.d/package.cache.lock}: hLock: invalid
>> argument (Bad file descriptor)
>> make[3]: *** [ghc.mk:990: install_packages] Error 1
>> make[2]: *** [Makefile:51: install] Error 2
>> make[1]: *** [bindisttest/ghc.mk:33: test_bindist] Error 2
>> make: *** [Makefile:127: test_bindist] Error 2
>
This is when I typically `make distclean`. That being said, this does
look a bit suspicious. Let me know if cleaning doesn't help.

Cheers,

- Ben

_______________________________________________
ghc-devs mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs

signature.asc (497 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: can't validate on Linux

Richard Eisenberg-4
This was a fresh validation run, so make distclean won’t do it. And deleting the file makes no difference. For what it’s worth, I ran with CPUS=1 (instead of my usual CPUS=32) to avoid threading problems.

Any other suggestions?

Thanks!
Richard

> On Mar 13, 2017, at 10:07 AM, Ben Gamari <[hidden email]> wrote:
>
> Richard Eisenberg <[hidden email]> writes:
>
>> Hi devs,
>>
>> When I try validating my patch, validation fails with
>>
>>> ...
>>> Registering library for ghc-prim-0.5.0.0..
>>> ghc-cabal: '/home/rae/ghc/ghc-valid/bindisttest/install
>>> dir/lib/ghc-8.3.20170312/bin/ghc-pkg' exited with an error:
>>> ghc-pkg: Couldn't open database /home/rae/ghc/ghc-valid/bindisttest/install
>>> dir/lib/ghc-8.3.20170312/package.conf.d for modification: {handle:
>>> /home/rae/ghc/ghc-valid/bindisttest/install
>>> dir/lib/ghc-8.3.20170312/package.conf.d/package.cache.lock}: hLock: invalid
>>> argument (Bad file descriptor)
>>> make[3]: *** [ghc.mk:990: install_packages] Error 1
>>> make[2]: *** [Makefile:51: install] Error 2
>>> make[1]: *** [bindisttest/ghc.mk:33: test_bindist] Error 2
>>> make: *** [Makefile:127: test_bindist] Error 2
>>
> This is when I typically `make distclean`. That being said, this does
> look a bit suspicious. Let me know if cleaning doesn't help.
>
> Cheers,
>
> - Ben

_______________________________________________
ghc-devs mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: can't validate on Linux

Ben Gamari-3
In reply to this post by Richard Eisenberg-4
Richard Eisenberg <[hidden email]> writes:

> Hi devs,
>
> When I try validating my patch, validation fails with
>
>> ...
>> Registering library for ghc-prim-0.5.0.0..
>> ghc-cabal: '/home/rae/ghc/ghc-valid/bindisttest/install
>> dir/lib/ghc-8.3.20170312/bin/ghc-pkg' exited with an error:
>> ghc-pkg: Couldn't open database /home/rae/ghc/ghc-valid/bindisttest/install
>> dir/lib/ghc-8.3.20170312/package.conf.d for modification: {handle:
>> /home/rae/ghc/ghc-valid/bindisttest/install
>> dir/lib/ghc-8.3.20170312/package.conf.d/package.cache.lock}: hLock: invalid
>> argument (Bad file descriptor)
Andrzej, it looks like this is another ghc-pkg issue. Do you have any
idea what is going on here?

Richard, this is on Linux, yes?

Cheers,

- Ben

_______________________________________________
ghc-devs mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs

signature.asc (497 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: can't validate on Linux

Richard Eisenberg-4

> On Mar 13, 2017, at 5:57 PM, Ben Gamari <[hidden email]> wrote:
>
> Richard, this is on Linux, yes?

Yes, it is. But I have now noticed other aspects of some very strange behavior regarding the filesystem on my Linux server, so the problem may be unrelated to GHC. (Example of other problem: running the testsuite, with `make`, reveals tons of stderr mismatches. Some digging reveals that the .run.stderr files are sometimes truncated.)

So, thanks for the offers for help, but I’ve passed this problem up to my sysadmin.

Thanks,
Richard
_______________________________________________
ghc-devs mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
Loading...