Pulseaudio build fails

  • Done
  • quality assurance status badge
Details
4 participants
  • Andreas Enge
  • David Thompson
  • Ludovic Courtès
  • Mark H Weaver
Owner
unassigned
Submitted by
David Thompson
Severity
normal

Debbugs page

David Thompson wrote 11 years ago
(address . bug-guix@gnu.org)
525C7408.5080409@worcester.edu
`guix build pulseaudio` fails because of the following test:

Running suite(s): Memblock
shm_open() failed: Function not implemented
0%: Checks: 1, Failures: 1, Errors: 0
tests/memblock-test.c:86:F:memblock:memblock_test:0: Assertion 'pool_a
!= NULL' failed
FAIL: memblock-test

Does this happen for anyone else or just me?

- Dave
Ludovic Courtès wrote 11 years ago
(name . David Thompson)(address . dthompson2@worcester.edu)(address . 15615-done@debbugs.gnu.org)
874n8hgxvz.fsf@gnu.org
David Thompson <dthompson2@worcester.edu> skribis:

Toggle quote (5 lines)
> `guix build pulseaudio` fails because of the following test:
>
> Running suite(s): Memblock
> shm_open() failed: Function not implemented

I think you hit the /dev/shm issue described in a footnote (info "(guix)
Setting Up the Daemon").

(Of course, re-open this bug if this is not the case.)

I’m not sure how to better avoid that situation. Perhaps ‘guix-daemon’
could explicitly check whether /dev/shm is a symlink and emit a warning
if it is?

OTOH this won’t be a problem on the GNU distro where everything will be
correctly setup.

Thanks,
Ludo’.
Closed
David Thompson wrote 11 years ago
(name . Ludovic Courtès)(address . ludo@gnu.org)(address . 15615-done@debbugs.gnu.org)
525F3BCF.6080707@worcester.edu
On 10/16/2013 09:15 AM, Ludovic Courtès wrote:
Toggle quote (5 lines)
> I think you hit the /dev/shm issue described in a footnote (info "(guix)
> Setting Up the Daemon").
>
> (Of course, re-open this bug if this is not the case.)

That is indeed the case. /dev/shm is a symlink to /run/shm.

Toggle quote (11 lines)
>
> I’m not sure how to better avoid that situation. Perhaps ‘guix-daemon’
> could explicitly check whether /dev/shm is a symlink and emit a warning
> if it is?
>
> OTOH this won’t be a problem on the GNU distro where everything will be
> correctly setup.
>
> Thanks,
> Ludo’.

Have other Debian users worked around this issue?
Closed
Mark H Weaver wrote 11 years ago
(name . David Thompson)(address . dthompson2@worcester.edu)
878uxs4pmo.fsf@netris.org
David Thompson <dthompson2@worcester.edu> writes:

Toggle quote (8 lines)
> On 10/16/2013 09:15 AM, Ludovic Courtès wrote:
>> I think you hit the /dev/shm issue described in a footnote (info "(guix)
>> Setting Up the Daemon").
>>
>> (Of course, re-open this bug if this is not the case.)
>
> That is indeed the case. /dev/shm is a symlink to /run/shm.

[...]

Toggle quote (2 lines)
> Have other Debian users worked around this issue?

I successfully built pulseaudio in Guix within Debian Wheezy x86_64, but
/dev/shm is not a symlink on that box. I'm not sure why it's different
from yours, maybe because I installed systemd?

Mark
Closed
Ludovic Courtès wrote 11 years ago
(name . David Thompson)(address . dthompson2@worcester.edu)(address . 15615-done@debbugs.gnu.org)
87iowwi0w4.fsf@gnu.org
David Thompson <dthompson2@worcester.edu> skribis:

Toggle quote (8 lines)
> On 10/16/2013 09:15 AM, Ludovic Courtès wrote:
>> I think you hit the /dev/shm issue described in a footnote (info "(guix)
>> Setting Up the Daemon").
>>
>> (Of course, re-open this bug if this is not the case.)
>
> That is indeed the case. /dev/shm is a symlink to /run/shm.

[...]

Toggle quote (2 lines)
> Have other Debian users worked around this issue?

I think Andreas hit that problem some time ago, which led to the
footnote.

Ludo’.
Closed
Andreas Enge wrote 11 years ago
(name . David Thompson)(address . dthompson2@worcester.edu)
20131017121739.GA6484@debian.eduroam.u-bordeaux.fr
On Wed, Oct 16, 2013 at 09:22:23PM -0400, David Thompson wrote:
Toggle quote (2 lines)
> Have other Debian users worked around this issue?

Well, you can delete the symbolic link, create a directory /dev/shm and
mount a new tmpfs there:
rm /dev/shm
mkdir /dev/shm
mount -t tmpfs -o size=1G tmpfs /dev/shm

I did this once or twice to compile a package the tests of which would
otherwise fail. I do not know what happens if you reboot; each time,
I reverted the changes with
umount /dev/shm
rmdir /dev/shm
ln -s /run/shm /dev/shm

Andreas
Closed
Thompson, David wrote 11 years ago
(name . Andreas Enge)(address . andreas@enge.fr)
CAJ=Rwfa24Vrfae810H5K2R82irhXjqZyg=aLoaQmOnz0CA7abQ@mail.gmail.com
Thanks, Andreas. Took me awhile to get around to trying it, but it
worked for me.

On Thu, Oct 17, 2013 at 8:17 AM, Andreas Enge <andreas@enge.fr> wrote:
Toggle quote (18 lines)
> On Wed, Oct 16, 2013 at 09:22:23PM -0400, David Thompson wrote:
>> Have other Debian users worked around this issue?
>
> Well, you can delete the symbolic link, create a directory /dev/shm and
> mount a new tmpfs there:
> rm /dev/shm
> mkdir /dev/shm
> mount -t tmpfs -o size=1G tmpfs /dev/shm
>
> I did this once or twice to compile a package the tests of which would
> otherwise fail. I do not know what happens if you reboot; each time,
> I reverted the changes with
> umount /dev/shm
> rmdir /dev/shm
> ln -s /run/shm /dev/shm
>
> Andreas
>
Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 15615@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 15615
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch
You may also tag this issue. See list of standard tags. For example, to set the confirmed and easy tags
mumi command -t +confirmed -t +easy
Or, remove the moreinfo tag and set the help tag
mumi command -t -moreinfo -t +help