Messages in this thread | | | Date | Thu, 19 Jan 2006 01:15:49 -0800 | From | Miles Lane <> | Subject | Re: 2.6.16-rc1-git1 -- Build error "make: *** [include/linux/version.h] Error 2" |
| |
On 1/18/06, Sam Ravnborg <sam@ravnborg.org> wrote: > On Wed, Jan 18, 2006 at 10:47:13PM -0800, Miles Lane wrote: > > make all install modules modules_install > > /bin/sh: -c: line 0: syntax error near unexpected token `(' > > /bin/sh: -c: line 0: `set -e; echo ' CHK > > include/linux/version.h'; mkdir -p include/linux/; if [ `echo -n > > "2.6.16-rc1-git1 .file null .ident > > GCC:(GNU)4.0.320060115(prerelease)(Ubuntu4.0.2-7ubuntu1) .section > > .note.GNU-stack,,@progbits" | wc -c ` -gt 64 ]; then echo > > '"2.6.16-rc1-git1 .file null .ident > > GCC:(GNU)4.0.320060115(prerelease)(Ubuntu4.0.2-7ubuntu1) .section > > .note.GNU-stack,,@progbits" exceeds 64 characters' >&2; exit 1; fi; > > (echo \#define UTS_RELEASE \"2.6.16-rc1-git1 .file null .ident > > GCC:(GNU)4.0.320060115(prerelease)(Ubuntu4.0.2-7ubuntu1) .section > > .note.GNU-stack,,@progbits\"; echo \#define LINUX_VERSION_CODE `expr 2 > > \\* 65536 + 6 \\* 256 + 16`; echo '#define KERNEL_VERSION(a,b,c) (((a) > > << 16) + ((b) << 8) + (c))'; ) < /usr/src/linux-2.6/Makefile > > > include/linux/version.h.tmp; if [ -r include/linux/version.h ] && cmp > > -s include/linux/version.h include/linux/version.h.tmp; then rm -f > > include/linux/version.h.tmp; else echo ' UPD > > include/linux/version.h'; mv -f include/linux/version.h.tmp > > include/linux/version.h; fi' > > make: *** [include/linux/version.h] Error 2 > Do you have any file in your build directory named localversion* ? > That would explain the loon line that includes > ".file null .ident GCC: ..." > > Otherwise something else goes in and trigger the long localversion. > The variable CONFIG_LOCALVERSION may also be set to a wrong value in > your environment but this is unlikely.
I don't have any localversion* files in the build directory. I do have .kernelrelease that contains: "2.6.16-rc1-mm1 .file null .ident GCC:(GNU)4.0.320060115(prerelease)(Ubuntu4.0.2-7ubuntu1) .section .note.GNU-stack,,@progbits" I tried deleting it, but it gets recreated.
I'm pretty frustrated. I have built hundreds of kernels and have not hit this problem before.
Any help is most appreciated! Miles - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |