Bug 4407 - Check if /dev/shm exists to avoid cryptic error
Summary: Check if /dev/shm exists to avoid cryptic error
Status: VERIFIED FIXED
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: 1.5
Hardware: All Multiple
: Medium enhancement
Target Milestone: 1.5 M1
Assignee: Paul Eggleton
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-04-24 10:36 UTC by Paul Eggleton
Modified: 2013-10-08 13:21 UTC (History)
6 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Eggleton 2013-04-24 10:36:18 UTC
If /dev/shm doesn't exist (e.g. in a chroot environment) or is not writable, you'll get "OSError: [Errno 38] Function not implemented" or "OSError: [Errno 13] Permission denied" with a traceback, which doesn't really help to explain what is wrong. We should just check on startup whether this is present e.g. in sanity.bbclass, and bail out with an appropriate message if it isn't.
Comment 2 Ionut Chisanovici 2013-10-08 13:21:50 UTC
Verified

[ionut@ionut-fedora build]$ bitbake core-image-minimal
FATAL: /dev/shm does not exist or is not writable
[ionut@ionut-fedora build]$ cat /proc/mounts | grep shm
tmpfs /dev/shm tmpfs ro,seclabel,relatime 0 0
[ionut@ionut-fedora build]$