View previous topic :: View next topic |
Author |
Message |
CaribbeanKnight Apprentice


Joined: 27 Apr 2003 Posts: 240 Location: Earth -> Europe -> Belgium -> Diest
|
Posted: Mon Apr 12, 2004 6:03 pm Post subject: kernel compilation error |
|
|
since a few days, i can't compile a kernel anymore, first i thought it was love-sources i was using, but tried it with gentoo-dev-sources too now and gives the same error:
Code: |
StardusT linux # make bzImage modules modules_install
CC scripts/empty.o
MKELF scripts/elfconfig.h
HOSTCC scripts/file2alias.o
HOSTCC scripts/modpost.o
HOSTCC scripts/sumversion.o
HOSTLD scripts/modpost
CC arch/i386/kernel/asm-offsets.s
CHK include/asm-i386/asm_offsets.h
CC init/main.o
CHK include/linux/compile.h
UPD include/linux/compile.h
CC init/version.o
CC init/do_mounts.o
LD init/mounts.o
CC init/initramfs.o
LD init/built-in.o
CC arch/i386/kernel/process.o
CC arch/i386/kernel/semaphore.o
CC arch/i386/kernel/signal.o
AS arch/i386/kernel/entry.o
arch/i386/kernel/entry.S: Assembler messages:
arch/i386/kernel/entry.S:81: Error: missing ')'
arch/i386/kernel/entry.S:81: Warning: rest of line ignored; first ignored charac
ter is `0'
arch/i386/kernel/entry.S:496: Error: bad expression
arch/i386/kernel/entry.S:496: Error: missing ')'
arch/i386/kernel/entry.S:496: Error: junk `8)' after expression
arch/i386/kernel/entry.S:496: Error: bad expression
arch/i386/kernel/entry.S:496: Error: missing ')'
arch/i386/kernel/entry.S:496: Error: junk `8)' after expression
arch/i386/kernel/entry.S:535: Error: bad expression
arch/i386/kernel/entry.S:535: Error: missing ')'
arch/i386/kernel/entry.S:535: Error: junk `8)' after expression
arch/i386/kernel/entry.S:535: Error: bad expression
arch/i386/kernel/entry.S:535: Error: missing ')'
arch/i386/kernel/entry.S:535: Error: junk `8)' after expression
arch/i386/kernel/entry.S:538: Error: bad expression
arch/i386/kernel/entry.S:538: Error: missing ')'
arch/i386/kernel/entry.S:538: Error: junk `8)' after expression
arch/i386/kernel/entry.S:540: Warning: missing operand; zero assumed
arch/i386/kernel/entry.S:540: Error: junk `1' after expression
arch/i386/kernel/entry.S:545: Error: bad expression
arch/i386/kernel/entry.S:545: Error: missing ')'
arch/i386/kernel/entry.S:545: Error: junk `8)' after expression
arch/i386/kernel/entry.S:545: Error: bad expression
arch/i386/kernel/entry.S:545: Error: missing ')'
arch/i386/kernel/entry.S:545: Error: junk `8)' after expression
make[1]: *** [arch/i386/kernel/entry.o] Error 1
make: *** [arch/i386/kernel] Error 2
StardusT linux #
|
anyone know what this can mean or where i can start looking?? any help greatly appreciated!! _________________ ...we ain't shit...
Linux User #353893 |
|
Back to top |
|
 |
pandaxiongmao Guru


Joined: 29 Sep 2003 Posts: 478 Location: USA
|
Posted: Mon Apr 12, 2004 6:41 pm Post subject: |
|
|
Have you tried to compile kernel with Code: | make && make modules_install | ? _________________ CPU: Intel Core 2 Duo
GPU: nVidia GeForce 9800 GT
MB: Asus P5N-E SLI |
|
Back to top |
|
 |
CaribbeanKnight Apprentice


Joined: 27 Apr 2003 Posts: 240 Location: Earth -> Europe -> Belgium -> Diest
|
Posted: Mon Apr 12, 2004 7:37 pm Post subject: |
|
|
same error... _________________ ...we ain't shit...
Linux User #353893 |
|
Back to top |
|
 |
pandaxiongmao Guru


Joined: 29 Sep 2003 Posts: 478 Location: USA
|
Posted: Mon Apr 12, 2004 8:06 pm Post subject: |
|
|
oh, well, how about trying to get a full kernel from www.kernel.org, then compile it, after that you should see whether your compiler is really broken, or the kernel itself. _________________ CPU: Intel Core 2 Duo
GPU: nVidia GeForce 9800 GT
MB: Asus P5N-E SLI |
|
Back to top |
|
 |
dkaplowitz Guru


Joined: 22 Nov 2003 Posts: 596 Location: Philadelphia, PA
|
Posted: Mon Apr 12, 2004 8:09 pm Post subject: |
|
|
I had a similar problem once too. I think that deleting the /usr/src/kernelversion directory _and_ doing another "make menuconfig" within that directory (after re-emerging it) helped.
Good luck. _________________ http://dkap.info |
|
Back to top |
|
 |
CaribbeanKnight Apprentice


Joined: 27 Apr 2003 Posts: 240 Location: Earth -> Europe -> Belgium -> Diest
|
Posted: Tue Apr 13, 2004 8:57 pm Post subject: |
|
|
no, already tried that, but didn't work.... i'm pretty sure now that my problem is with gcc and not with the kernel itself.. but after re-emerging gcc, glibc and some other stuff i'm getting desperate so i'm just making a new installation on another partition now.... heck it'll be faster than fixing this i guess...  _________________ ...we ain't shit...
Linux User #353893 |
|
Back to top |
|
 |
4nykey Apprentice

Joined: 11 Feb 2004 Posts: 180
|
Posted: Tue Apr 20, 2004 7:35 pm Post subject: |
|
|
I think it's rather binutils.
I'm switching to gcc 3.4 now, so I recently recompiled binutils with -O2 using 3.4.0 and found that I cannot compile kernel anymore neither with 3.3.3 nor with 3.4.0, getting exactly the same errors.
Must be CFLAGS issue, I suppose?
Anyway, just emerged 2.15.90, compiling the kernel now and well, at least it passed that mark this time. |
|
Back to top |
|
 |
|