2006-12-31 17:50:34

by Robin Cook

[permalink] [raw]
Subject: compile failure on 2.6.19

I am getting this error when I try to compile 2.6.19 and 2.6.19.1.

I ran make mrproper and make menuconfig then ran make and got the below
error.

HOSTLD scripts/kconfig/conf
scripts/kconfig/conf -s arch/i386/Kconfig
CHK include/linux/version.h
UPD include/linux/version.h
/bin/sh: -c: line 0: syntax error near unexpected token `('
/bin/sh: -c: line 0: `set -e; echo ' CHK
include/linux/utsrelease.h'; mkdir -p include/linux/; if [ `echo -n
"2.6.19.1 .file null .ident
GCC:(GNU)4.1.1 .section .note.GNU-stack,,@progbits" | wc -c ` -gt 64 ];
then echo '"2.6.19.1 .file null .ident
GCC:(GNU)4.1.1 .section .note.GNU-stack,,@progbits" exceeds 64
characters' >&2; exit 1; fi; (echo \#define UTS_RELEASE \"2.6.19.1 .file
null .ident GCC:(GNU)4.1.1 .section .note.GNU-stack,,@progbits\";) <
include/config/kernel.release > include/linux/utsrelease.h.tmp; if [ -r
include/linux/utsrelease.h ] && cmp -s include/linux/utsrelease.h
include/linux/utsrelease.h.tmp; then rm -f
include/linux/utsrelease.h.tmp; else echo ' UPD
include/linux/utsrelease.h'; mv -f include/linux/utsrelease.h.tmp
include/linux/utsrelease.h; fi'
make: *** [include/linux/utsrelease.h] Error 2


Attachments:
signature.asc (827.00 B)
This is a digitally signed message part

2006-12-31 18:27:29

by David Brown

[permalink] [raw]
Subject: Re: compile failure on 2.6.19

On 12/31/06, Robin Cook <[email protected]> wrote:
> I am getting this error when I try to compile 2.6.19 and 2.6.19.1.
>
> I ran make mrproper and make menuconfig then ran make and got the below
> error.
>
> HOSTLD scripts/kconfig/conf
> scripts/kconfig/conf -s arch/i386/Kconfig
> CHK include/linux/version.h
> UPD include/linux/version.h
> /bin/sh: -c: line 0: syntax error near unexpected token `('
> /bin/sh: -c: line 0: `set -e; echo ' CHK
> include/linux/utsrelease.h'; mkdir -p include/linux/; if [ `echo -n
> "2.6.19.1 .file null .ident
> GCC:(GNU)4.1.1 .section .note.GNU-stack,,@progbits" | wc -c ` -gt 64 ];
> then echo '"2.6.19.1 .file null .ident
> GCC:(GNU)4.1.1 .section .note.GNU-stack,,@progbits" exceeds 64
> characters' >&2; exit 1; fi; (echo \#define UTS_RELEASE \"2.6.19.1 .file
> null .ident GCC:(GNU)4.1.1 .section .note.GNU-stack,,@progbits\";) <
> include/config/kernel.release > include/linux/utsrelease.h.tmp; if [ -r
> include/linux/utsrelease.h ] && cmp -s include/linux/utsrelease.h
> include/linux/utsrelease.h.tmp; then rm -f
> include/linux/utsrelease.h.tmp; else echo ' UPD
> include/linux/utsrelease.h'; mv -f include/linux/utsrelease.h.tmp
> include/linux/utsrelease.h; fi'
> make: *** [include/linux/utsrelease.h] Error 2

I'd check /dev/null and make sure it's not a regular file this
happened to me a while back

- David Brown

2006-12-31 20:19:01

by Ken Moffat

[permalink] [raw]
Subject: Re: compile failure on 2.6.19

On Sun, Dec 31, 2006 at 10:27:26AM -0800, David Brown wrote:
> On 12/31/06, Robin Cook <[email protected]> wrote:
> >I am getting this error when I try to compile 2.6.19 and 2.6.19.1.
> >
> >I ran make mrproper and make menuconfig then ran make and got the below
> >error.
> >
> > HOSTLD scripts/kconfig/conf
> >scripts/kconfig/conf -s arch/i386/Kconfig
> > CHK include/linux/version.h
> > UPD include/linux/version.h
> >/bin/sh: -c: line 0: syntax error near unexpected token `('
> >/bin/sh: -c: line 0: `set -e; echo ' CHK
> >include/linux/utsrelease.h'; mkdir -p include/linux/; if [ `echo -n
> >"2.6.19.1 .file null .ident
> >GCC:(GNU)4.1.1 .section .note.GNU-stack,,@progbits" | wc -c ` -gt 64 ];
> >then echo '"2.6.19.1 .file null .ident
> >GCC:(GNU)4.1.1 .section .note.GNU-stack,,@progbits" exceeds 64
> >characters' >&2; exit 1; fi; (echo \#define UTS_RELEASE \"2.6.19.1 .file
> >null .ident GCC:(GNU)4.1.1 .section .note.GNU-stack,,@progbits\";) <
> >include/config/kernel.release > include/linux/utsrelease.h.tmp; if [ -r
> >include/linux/utsrelease.h ] && cmp -s include/linux/utsrelease.h
> >include/linux/utsrelease.h.tmp; then rm -f
> >include/linux/utsrelease.h.tmp; else echo ' UPD
> >include/linux/utsrelease.h'; mv -f include/linux/utsrelease.h.tmp
> >include/linux/utsrelease.h; fi'
> >make: *** [include/linux/utsrelease.h] Error 2
>
> I'd check /dev/null and make sure it's not a regular file this
> happened to me a while back
>
> - David Brown

If that doesn't fix it, I suspect it's a shell problem (e.g.
bash-3.{1,2} without all the patches). I've seen a number of
issues with bash in the past few months, sometimes it highlighted
code that needed to be fixed, other times it tripped over
parentheses.

Ken
--
das eine Mal als Trag?die, das andere Mal als Farce

2006-12-31 20:41:27

by Robin Cook

[permalink] [raw]
Subject: Re: compile failure on 2.6.19

That fixed the problem.

Thanks

On Sun, 2006-12-31 at 10:27 -0800, David Brown wrote:
> On 12/31/06, Robin Cook <[email protected]> wrote:
> > I am getting this error when I try to compile 2.6.19 and 2.6.19.1.
> >
> > I ran make mrproper and make menuconfig then ran make and got the below
> > error.
> >
> > HOSTLD scripts/kconfig/conf
> > scripts/kconfig/conf -s arch/i386/Kconfig
> > CHK include/linux/version.h
> > UPD include/linux/version.h
> > /bin/sh: -c: line 0: syntax error near unexpected token `('
> > /bin/sh: -c: line 0: `set -e; echo ' CHK
> > include/linux/utsrelease.h'; mkdir -p include/linux/; if [ `echo -n
> > "2.6.19.1 .file null .ident
> > GCC:(GNU)4.1.1 .section .note.GNU-stack,,@progbits" | wc -c ` -gt 64 ];
> > then echo '"2.6.19.1 .file null .ident
> > GCC:(GNU)4.1.1 .section .note.GNU-stack,,@progbits" exceeds 64
> > characters' >&2; exit 1; fi; (echo \#define UTS_RELEASE \"2.6.19.1 .file
> > null .ident GCC:(GNU)4.1.1 .section .note.GNU-stack,,@progbits\";) <
> > include/config/kernel.release > include/linux/utsrelease.h.tmp; if [ -r
> > include/linux/utsrelease.h ] && cmp -s include/linux/utsrelease.h
> > include/linux/utsrelease.h.tmp; then rm -f
> > include/linux/utsrelease.h.tmp; else echo ' UPD
> > include/linux/utsrelease.h'; mv -f include/linux/utsrelease.h.tmp
> > include/linux/utsrelease.h; fi'
> > make: *** [include/linux/utsrelease.h] Error 2
>
> I'd check /dev/null and make sure it's not a regular file this
> happened to me a while back
>
> - David Brown
>


Attachments:
signature.asc (827.00 B)
This is a digitally signed message part