geekosaur suggests on IRC that this might be related to a SELinux
security policy.
"what might be possible is that hLock uses fcntl locking, ghc-pkg
opens a database r/o if it can't open it r/w, and it tried to acquire
a write lock (which will fail with EBADF if the file descriptor is
only open
Hi Richard,
I seem to be running into a similar error message when using "make
install", did you ever find a solution to the problem?
Matt
On Mon, Mar 13, 2017 at 10:17 PM, Richard Eisenberg
wrote:
>
>> On Mar 13, 2017, at 5:57 PM, Ben Gamari wrote:
> On Mar 13, 2017, at 5:57 PM, Ben Gamari 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
Richard Eisenberg 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:
>>
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
Richard Eisenberg 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:
>>
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
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