LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 07-14-2005, 12:57 PM   #1
E Pierce
LQ Newbie
 
Registered: Jul 2004
Posts: 13

Rep: Reputation: 0
Problem Compiling Custom Kernel


I'm trying to compile a custom 2.6.11 kernel - something which I've done many times before but not on this particular system which happens to be only a few hours old. My guess is that I am missing some package but I have no idea what it is. I am currently running the 2.6.11 kernel image from apt-get and xorg (this could be the problem as some packages are not yet build for it?)

Anyway here's where my error occurs after running "make-kpkg --initrd kernel_image"

CC arch/i386/kernel/reboot.o
CC arch/i386/kernel/mca.o
CC arch/i386/kernel/mpparse.o
CC arch/i386/kernel/apic.o
CC arch/i386/kernel/nmi.o
CC arch/i386/kernel/io_apic.o
CC arch/i386/kernel/module.o
CC arch/i386/kernel/sysenter.o
LDS arch/i386/kernel/vsyscall.lds
AS arch/i386/kernel/vsyscall-int80.o
SYSCALL arch/i386/kernel/vsyscall-int80.so
AS arch/i386/kernel/vsyscall-sysenter.o
SYSCALL arch/i386/kernel/vsyscall-sysenter.so
AS arch/i386/kernel/vsyscall.o
CC arch/i386/kernel/emu.o
arch/i386/kernel/emu.c: In function 'modrm_address':
arch/i386/kernel/emu.c:73: error: invalid lvalue in increment
arch/i386/kernel/emu.c:85: error: invalid lvalue in increment
arch/i386/kernel/emu.c:93: error: invalid lvalue in increment
arch/i386/kernel/emu.c:95: error: invalid lvalue in increment
arch/i386/kernel/emu.c:103: error: invalid lvalue in increment
arch/i386/kernel/emu.c:117: error: invalid lvalue in increment
arch/i386/kernel/emu.c:119: error: invalid lvalue in increment
make[2]: *** [arch/i386/kernel/emu.o] Error 1
make[1]: *** [arch/i386/kernel] Error 2
make[1]: Leaving directory `/usr/src/kernel-source-2.6.11'
make: *** [stamp-build] Error 2
socket:/usr/src/linux#

Thanks for any help anyone might be able to give me
 
Old 07-14-2005, 02:22 PM   #2
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 8,691
Blog Entries: 4

Rep: Reputation: 3026Reputation: 3026Reputation: 3026Reputation: 3026Reputation: 3026Reputation: 3026Reputation: 3026Reputation: 3026Reputation: 3026Reputation: 3026Reputation: 3026
It looks like this bug has surfaced just in the past few days in Debian and it looks to me like it might have been fixed. I did an advanced-search on Google for the exact phrase "invalid lvalue in increment" and had several recent hits.

The cryptic phrase apparently means that there are two "++" operators in a row, or somesuch... But anyway, search Google.
 
Old 07-14-2005, 03:07 PM   #3
E Pierce
LQ Newbie
 
Registered: Jul 2004
Posts: 13

Original Poster
Rep: Reputation: 0
From the looks of it others are having similar problems but with other packages (KDEbase being one example). Building from source seems to be what is affected by this bug - has anyone who has had the problem been able to fix it?
 
Old 07-15-2005, 01:37 AM   #4
E Pierce
LQ Newbie
 
Registered: Jul 2004
Posts: 13

Original Poster
Rep: Reputation: 0
I = frusterated. can't get my system running at full without a custom kernel
 
Old 07-15-2005, 02:26 AM   #5
E Pierce
LQ Newbie
 
Registered: Jul 2004
Posts: 13

Original Poster
Rep: Reputation: 0
A fantastic person on #Debian on EFnet was able to write a fix for the emu.c problem.

Props go out to pulse__

here is his fix -> http://pastebin.com/313763

press download and save as emu.c if you've been having the same problem
place the new file in /arch/i386/kernel/ and overwrite the old file.

Thanks again pulse
 
Old 07-22-2005, 05:16 PM   #6
rogeriogomes
LQ Newbie
 
Registered: Jul 2005
Posts: 1

Rep: Reputation: 0
hi E Pierce.

i have the same problem but, the page of the link does not exists anymore.
can u send the file names "emu.c" to my email?

tnx a lot!




Quote:
Originally posted by E Pierce
A fantastic person on #Debian on EFnet was able to write a fix for the emu.c problem.

Props go out to pulse__

here is his fix -> http://pastebin.com/313763

press download and save as emu.c if you've been having the same problem
place the new file in /arch/i386/kernel/ and overwrite the old file.

Thanks again pulse
 
Old 07-30-2005, 03:26 AM   #7
stauf
LQ Newbie
 
Registered: Jul 2005
Posts: 1

Rep: Reputation: 0
I'm having the same exact issue - and I can't find a working copy of emu.c anywhere. Can someone post a link or email me a copy? Once I get my hands on one, I'll host it somplace that everyone can get at.
 
Old 07-31-2005, 03:14 PM   #8
xenon_hs
LQ Newbie
 
Registered: Jul 2005
Distribution: Debian unstable
Posts: 11

Rep: Reputation: 0
Hello !

I had the same problem several hours ago

Fixed in using another versionof GCC, i had 4.0.1-3 and now i'm using the 3.4.4-5.

---------------
1 apt-get install gcc-3.4
2 rm /usr/bin/gcc
3 ln -s /usr/bin/gcc-3.4 /usr/bin/gcc
---------------

Probably a bug in last version of GCC ??? Tell me if it works for you too.

Should we advise gcc developers ?

Thanks to Utente Junior from http://www.debianitalia.org for the tips.

Cya, Xen.
 
Old 08-08-2005, 11:09 PM   #9
lars_no
LQ Newbie
 
Registered: Aug 2005
Posts: 1

Rep: Reputation: 0
Thumbs up

I had the same problem, and used your tip.

Installed the old gcc version, and the error disappeared.

I also found that this is a known bug in gcc 4.01, at:

http://gcc.gnu.org/bugs.html#known

It says something about the increment opperator (++) providing unpredictable results.
FX: n = ++n

I don't know much C, but man, thats some bug. I don't know a single program I have written, that would survive that. But they are great guys, and will probably fix it soon.
 
Old 08-09-2005, 05:48 AM   #10
xenon_hs
LQ Newbie
 
Registered: Jul 2005
Distribution: Debian unstable
Posts: 11

Rep: Reputation: 0


Thanks for your feedback and your answers.

Cya

Xen.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
trouble compiling modules against custom fedora core 4 kernel blahJake Linux - Software 6 12-16-2006 07:54 AM
Compiling custom Kernel from install cd turtlespit Slackware - Installation 27 10-09-2006 10:48 PM
compiling a custom kernel in 9.3 dvm SUSE / openSUSE 12 07-10-2005 08:57 AM
compiling iptables into custom kernel straxus Linux - Newbie 1 03-26-2005 11:32 PM
Errors compiling custom kernel tron_thomas Linux - General 4 09-03-2004 12:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 10:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration