LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Bad compiling (https://www.linuxquestions.org/questions/linux-general-1/bad-compiling-26731/)

Borommakot 07-28-2002 08:13 PM

Bad compiling
 
I've been trying to compile my Mandrake kernel to add PPPoE support, but every time I replace the old kernel file with the new one and reboot, it doesn't work. It will load everything right, but instead of going into the graphic log-on, it flashes a text-based log-on, immediately blanks the screen, then flashes the logon (now screwed up) for a split sec, then blanks the screen again. It does this once a sec until I hit ctrl-alt-del, and then it stops flashing and goes into the reboot. It's done this on the 2.4.18 and Mandrake's 2.4.28 (I think that's the version it says), and both do this. ANy help for a :newbie: ?

Aussie 07-28-2002 08:41 PM

Sounds like you've missed something in the config. Try using the .config file from your old kernel and just change the PPPoE section.

Thymox 07-28-2002 08:45 PM

Did you rerun lilo after replacing the kernel image file?

Borommakot 07-29-2002 12:48 AM

I've done everything according to the kernel info, including rerunning lilo. It never runs aurora and it never activates the X system... I've never had a compilation NOT do this to me, including when replacing the original kernel with itself... I've checked every part of the config, but there isn't anything on how to setup how it boots... anyone else have this problem?

rverlander 07-29-2002 12:58 AM

Mandrake 8.x's gcc 2.96 compiles the kernel incorrectly:(

Thymox 07-29-2002 05:32 PM

Not being daft, but you did do make modules && make modules_install, didn't you? The number of times I've forgotten to do this important step...

Borommakot 07-30-2002 02:01 AM

I did exactly as the readme said:make xconfig, make dep, make clean, make bzImage, make modules, make modules_install. all worked (no fatal erros, altough some of the code gave warnings). I used the old .config, and aurora popped up, but it spit out something about IP Virtual Server not being setup correctly, something about not finding some USB stuff (which I made sure was included), and then stuck on the text logon again (as per my first description). normally it shows it for a bit, changes res 2-3 times(my monitor turns off and back on when changing res) and then goes into the X logon.

rverlander 07-30-2002 03:11 AM

Downgrade gcc.

Borommakot 08-01-2002 09:38 PM

Quote:

Originally posted by rverlander
Downgrade gcc.
which version would you recomend? if you arre saying downgrade, methihnks that everything past gcc2.96 is bad news...

rverlander 08-02-2002 12:16 AM

2.95.3 or egcs 1.1.2 (preferred) are good ones
egcs 1.1.2 is linus torvalds' recommendation
i know the url of a egcs 1.1.2 rpm if u want it

rverlander 08-02-2002 12:19 AM

Doh I forgot the egcs 1.1.2 rpm url so heres how to downgrade to 2.95.3:

Remove the old RPMs with:

rpm -e gcc-g77
rpm -e gcc-c++
rpm -e gcc
rpm -e cpp
rpm -e libstdc++ --nodeps
rpm -e libstdc++-devel --nodeps
rpm -e libstdc++-compat --nodeps

Then load these RPMs (in this order):

http://www.kernel.org/pub/linux/deve...503.1.i386.rpm
http://www.kernel.org/pub/linux/deve...503.1.i386.rpm
http://www.kernel.org/pub/linux/deve...503.1.i386.rpm
http://www.kernel.org/pub/linux/deve...503.1.i386.rpm
http://www.kernel.org/pub/linux/deve...503.1.i386.rpm
http://www.kernel.org/pub/linux/deve...503.1.i386.rpm
http://www.kernel.org/pub/linux/deve...503.1.i386.rpm

Then check with gcc -v


All times are GMT -5. The time now is 08:35 AM.