Bug 11965 - autogen-native: /bin/sh: bad interpreter: Permission denied
Summary: autogen-native: /bin/sh: bad interpreter: Permission denied
Status: RESOLVED OBSOLETE
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 2.3.1
Hardware: x86 Multiple
: Medium+ major
Target Milestone: 2.5 M2
Assignee: Yi Zhao
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-08-23 08:11 UTC by Robert Berger
Modified: 2017-11-16 00:24 UTC (History)
3 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 Robert Berger 2017-08-23 08:11:03 UTC
1) pyro (I guess all versions)

2) remove SSTATE MIRROR and SSTATE cache

3) bitbake -c cleansstate autogen-native && bitbake autogen-native

...

/bin/sh: ../autoopts/tpl/texi2mdoc: /tmp/yocto-autobuilder/yocto-autobuilder/
yocto-worker/res-custom-pyro-multi-: bad interpreter: Permission denied

...

The problem boils down to the the fact, that the variable POSIX_SHELL as shebang doesn't work when the path is longer than BINPRM_BUF_SIZE which is 128 usually. So use "/bin/sh" instead.

Proposed patch: 

https://github.com/RobertBerger/poky/commit/92a17c9074538a38d3d11c063be624f6c62a6352
Comment 1 Yi Zhao 2017-11-16 00:24:49 UTC
The autogen-native recipe had been removed in 2.4 with commit: 765fec2f363aeb0540970c57217a2ea1aab8e088