public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user]  can't compile kernel
@ 2006-07-02 22:22 Sven Köhler
  2006-07-02 23:07 ` [gentoo-user] " Sven Köhler
  2006-07-02 23:24 ` [gentoo-user] " Daniel Iliev
  0 siblings, 2 replies; 3+ messages in thread
From: Sven Köhler @ 2006-07-02 22:22 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1503 bytes --]

Hi!,

my gentoo just suprised me with the following:

gwinet linux # pwd
/usr/src/linux
gwinet linux # make all
/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.17.3 .file null
.ident GCC:(GNU)4.1.1(Gentoo4.1.1) .section .note.GNU-stack,,@progbits"
| wc -c ` -gt 64 ]; then echo '"2.6.17.3 .file null .ident
GCC:(GNU)4.1.1(Gentoo4.1.1) .section .note.GNU-stack,,@progbits" exceeds
64 characters' >&2; exit 1; fi; (echo \#define UTS_RELEASE \"2.6.17.3
.file null .ident GCC:(GNU)4.1.1(Gentoo4.1.1) .section
.note.GNU-stack,,@progbits\"; echo \#define LINUX_VERSION_CODE `expr 2
\\* 65536 + 6 \\* 256 + 17`; echo '#define KERNEL_VERSION(a,b,c) (((a)
<< 16) + ((b) << 8) + (c))'; ) < /usr/src/linux-2.6.17.3/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


Hooray!

So what could i have changed, that there is that unexpected token "("
now? I compiled that kernel pretty often. And now none of the kernels
compiles - but they used to!

Any clue what might have changed?

My guess is, that this (GNU)4.1.1(Gentoo4.1.1) causes troubles.

I'm helpless :-(


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 251 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [gentoo-user]  Re: can't compile kernel
  2006-07-02 22:22 [gentoo-user] can't compile kernel Sven Köhler
@ 2006-07-02 23:07 ` Sven Köhler
  2006-07-02 23:24 ` [gentoo-user] " Daniel Iliev
  1 sibling, 0 replies; 3+ messages in thread
From: Sven Köhler @ 2006-07-02 23:07 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 270 bytes --]

> my gentoo just suprised me with the following:
> 
> gwinet linux # pwd
> /usr/src/linux
> gwinet linux # make all
> [...] some strange error
> 
> 
> Hooray!

Hmmm, did a "make clean" and then a "make all" - and now it works
without problems. Strange ...


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 251 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user]  can't compile kernel
  2006-07-02 22:22 [gentoo-user] can't compile kernel Sven Köhler
  2006-07-02 23:07 ` [gentoo-user] " Sven Köhler
@ 2006-07-02 23:24 ` Daniel Iliev
  1 sibling, 0 replies; 3+ messages in thread
From: Daniel Iliev @ 2006-07-02 23:24 UTC (permalink / raw
  To: gentoo-user


On Mon, Юли 3, 2006 1:22 am, Sven Kцhler wrote:
> Hi!,
>
> my gentoo just suprised me with the following:
>
> gwinet linux # pwd
> /usr/src/linux
> gwinet linux # make all
> /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.17.3 .file null
> .ident GCC:(GNU)4.1.1(Gentoo4.1.1) .section .note.GNU-stack,,@progbits"
> | wc -c ` -gt 64 ]; then echo '"2.6.17.3 .file null .ident
> GCC:(GNU)4.1.1(Gentoo4.1.1) .section .note.GNU-stack,,@progbits" exceeds
> 64 characters' >&2; exit 1; fi; (echo \#define UTS_RELEASE \"2.6.17.3
> .file null .ident GCC:(GNU)4.1.1(Gentoo4.1.1) .section
> .note.GNU-stack,,@progbits\"; echo \#define LINUX_VERSION_CODE `expr 2
> \\* 65536 + 6 \\* 256 + 17`; echo '#define KERNEL_VERSION(a,b,c) (((a)
> << 16) + ((b) << 8) + (c))'; ) < /usr/src/linux-2.6.17.3/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
>

Make a copy of your .config file if don't use /proc/config.gz.

Then do:
1) cd /usr/src/linux
2) make mrproper
3) zcat /proc/config.gz > .config
( or copy back .config in /usr/src/linux )
4) make oldconfig
5) make menuconfig
6) make
7) Do your kernel installation procedure

The most important part is "make mrproper". If compilation fails after this you
better rm -rf /usr/src/"your-version" and emerge a fresh copy of the sources you
use. For example
"emerge gentoo-sources"

HTH
-- 
Best regards,
Daniel

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-07-02 23:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-02 22:22 [gentoo-user] can't compile kernel Sven Köhler
2006-07-02 23:07 ` [gentoo-user] " Sven Köhler
2006-07-02 23:24 ` [gentoo-user] " Daniel Iliev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox