LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-25-2005, 09:47 AM   #1
rbees
Member
 
Registered: Mar 2004
Location: northern michigan usa
Distribution: Debian Squeeze, Whezzy, Jessie
Posts: 871

Rep: Reputation: 43
finding compile errors


Shalom (peace to you),

First it only took me 7 days and 4 compiles to get a custom kernel that works. As per normal most of the time I was able to work on it was spent reading. I still have a couple of issues though.

1 is when I do "xconfig" I get "gconfig" and I am rather a puzzled by this. It started this after I did an "apt-get" (can't remember what all was incluced) because "xconfig" wouldn't run. At first I thought it was because I am using the 2.6.24.4 kernel source. "gconfig" gives this Well I guess that will have to wait because I get "There was an error creating the child process for this terminal" when I start the terminal. Of course I am running on my custom kernel at this point.

2 I was unable to babysit the whole compile process. At the start I was able to get the error messages. I would still like to be able to see what if any errors may have occured in the last 3 hours of compile time that didn't show up in the terminal window at conclusion. I looked thrugh the Make manual at the switchs but didn't find one to cause a "compile log" to be generated. I thought that perhaps one is generated by default but can't seam to find it. Does anyone know?

3 I am using Debian Sarge and my compile time is about 4 1/2 hours on this old p233mmx but I have access to another box on my network running RH Shrike on a p4 with a ten minute compile time. I would like to use it to compile on but I am unsure of RH making a correct kernel for Debian?

Thanks for your help in pointing me to the correct information.

Shalom (peace to you)
 
Old 12-25-2005, 03:27 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
Quote:
Originally Posted by rbees
1 is when I do "xconfig" I get "gconfig" and I am rather a puzzled by this. It started this after I did an "apt-get" (can't remember what all was incluced) because "xconfig" wouldn't run. At first I thought it was because I am using the 2.6.24.4 kernel source. "gconfig" gives this Well I guess that will have to wait because I get "There was an error creating the child process for this terminal" when I start the terminal. Of course I am running on my custom kernel at this point.
xconfig runs configuration tool based on Qt, gconfig -- based on GTK. If you don't have them, try 'make menuconfig' or (be careful!) 'make oldconfig'.

Quote:
2 I was unable to babysit the whole compile process. At the start I was able to get the error messages. I would still like to be able to see what if any errors may have occured in the last 3 hours of compile time that didn't show up in the terminal window at conclusion.
Something like 'make 2>complile.log' should work. It should make all errors appear in the file, not on the screen. You may also try 'make 1>another.log' to have all 'normal' messages in the log and errors on screen.

Quote:
3 I am using Debian Sarge and my compile time is about 4 1/2 hours on this old p233mmx but I have access to another box on my network running RH Shrike on a p4 with a ten minute compile time. I would like to use it to compile on but I am unsure of RH making a correct kernel for Debian?
You can do it without any problems. Just make sure you choose it to compile for i586, not for Pentium 4. When done, you can just copy the image (and modules).
 
Old 12-26-2005, 11:38 AM   #3
rbees
Member
 
Registered: Mar 2004
Location: northern michigan usa
Distribution: Debian Squeeze, Whezzy, Jessie
Posts: 871

Original Poster
Rep: Reputation: 43
Shalom

Mara responded :
xconfig runs configuration tool based on Qt, gconfig -- based on GTK. If you don't have them, try 'make menuconfig' or (be careful!) 'make oldconfig'.

Perhaps I was unclear.
when I enter the command
batnode1:/home/batnode1#xconfig
I get "gconfig" gconf seams to run alright and generates a .config that compiles.
When I enter
batnode1:/home/batnode1# gconf
bash: gconf: command not found
batnode1:/home/batnode1# gconfig
bash: gconfig: command not found
batnode1:/home/batnode1#

To my knowlege I didn't create any kind of a system link to cause this odd behavior. At some point I do need to fix it but I don't feal it is pressing at this time.

What has turned out to be a bigger problem is that my custom kernel generates this message when I launch a terminal window, both in root and in my normal use account.

"There was an error creating the child process for this terminal"

This apparently has something to do with udev which requires "CONFIG_HOTPLUG" to be built into the kernel according to something I read in the udev readme. So I rebuilt the kernel again with this support but I still get the error.

Yes I am building a 2.6.14.4 kennel which exceeds the min requirements. I am however not sure how to confirm if sysfs is mounted.


Quote:

Something like 'make 2>complile.log' should work.

So I should enter:
#make 2>compile.log -kpkg --append-to-version=.xxxx kernel_image

Quote"

Just make sure you choose it to compile for i586, not for Pentium 4.

You mean to make sure that I set the correct processor in the .config file? Or is there somehing else I need to do to cause it to compile to the pentium MMX


Thank you

Shalom
 
Old 12-26-2005, 02:37 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
Quote:
Originally Posted by rbees
Perhaps I was unclear.
when I enter the command
batnode1:/home/batnode1#xconfig
I get "gconfig" gconf seams to run alright and generates a .config that compiles.
When I enter
batnode1:/home/batnode1# gconf
bash: gconf: command not found
batnode1:/home/batnode1# gconfig
bash: gconfig: command not found
batnode1:/home/batnode1#

To my knowlege I didn't create any kind of a system link to cause this odd behavior. At some point I do need to fix it but I don't feal it is pressing at this time.
It's a strange thing... Try 'which xconfig'. It should give you the executable run.

Quote:
What has turned out to be a bigger problem is that my custom kernel generates this message when I launch a terminal window, both in root and in my normal use account.

"There was an error creating the child process for this terminal"

This apparently has something to do with udev which requires "CONFIG_HOTPLUG" to be built into the kernel according to something I read in the udev readme. So I rebuilt the kernel again with this support but I still get the error.
Make sure you have udev running (udevd daemon). Also check if you have /dev/pts (anything inside?) It means you need devpts and tmpfs support in the kernel (or careful system reconfigure).

Quote:
Yes I am building a 2.6.14.4 kennel which exceeds the min requirements. I am however not sure how to confirm if sysfs is mounted.
Run 'mount'. One of the lines should be something like
Code:
sysfs on /sys type sysfs (rw)
Quote:
You mean to make sure that I set the correct processor in the .config file? Or is there somehing else I need to do to cause it to compile to the pentium MMX
Exactly, only that one option.
 
Old 12-28-2005, 10:51 AM   #5
rbees
Member
 
Registered: Mar 2004
Location: northern michigan usa
Distribution: Debian Squeeze, Whezzy, Jessie
Posts: 871

Original Poster
Rep: Reputation: 43
Shalom
Peace to all

Problem solved. Reconfigure and recompil kernel.

Thanks for the help.

Once again reading has proved the answer, a Linux tradition I guess. On this site I found a post relateing to my problem. I needed to have the unix98 pty service installed and properly configured.

++++ from a different post++++
Have you these feature enabled in /usr/src/linux/.config ?
CONFIG_UNIX98_PTYS=y
CONFIG_LEGACY_PTYS=y
CONFIG_LEGACY_PTY_COUNT=256


+++from my existing .config+++++
# Non-8250 serial port support
#
CONFIG_SERIAL_CORE=y
CONFIG_SERIAL_CORE_CONSOLE=y
# CONFIG_SERIAL_JSM is not set
# CONFIG_UNIX98_PTYS is not set
# CONFIG_LEGACY_PTYS is not set

I set these options and recompiled and Bless G-d I have a 2.6.14.4 kernel that works, or atleast appers to work correctly.

Once again Thaks

Shalom
 
  


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
How repair /usr partition using fsck, after finding errors during boot up? sarajevo Debian 1 12-09-2005 12:27 AM
compile errors. DrunkenDisciple Linux - Software 3 11-29-2005 01:11 AM
c++ compile errors using g++ ttumelty Programming 5 09-08-2005 02:58 PM
C++ compile errors Palamides Programming 1 03-09-2005 07:28 AM
Compile Errors userini Linux - Software 6 07-16-2003 09:22 AM


All times are GMT -5. The time now is 10:57 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