"/bin/sh: Syntax error: "(" unexpected" building kernel

Asheesh Laroia openmoko at asheesh.org
Mon Dec 8 07:07:24 CET 2008

On Mon, 8 Dec 2008, Rui Castro wrote:

> Hi,
> I've been trying to compile openmoko kernel and I can't even start
> because of this dummy error:
> -----------------------------------------------------------------------------------------
> $ ./build dummy
> scripts/kconfig/conf -s arch/arm/Kconfig
> scripts/kconfig/conf -s arch/arm/Kconfig
> CHK     include/linux/version.h
> /bin/sh: Syntax error: "(" unexpected

The script probably has bashisms.  Set /bin/sh to /bin/bash and you'll do 

See "My production system has broken and I just want to get it back up!" 
at https://wiki.ubuntu.com/DashAsBinSh .

-- Asheesh.

The Tree of Learning bears the noblest fruit, but noble fruit tastes bad.

More information about the community mailing list