1748275 Members
3622 Online
108761 Solutions
New Discussion юеВ

Cannot build a kernel

 
SOLVED
Go to solution
Hironori Sato
New Member

Cannot build a kernel

I'm using WS B2000(HP-UX 11.0 64bit) in my project.
I use sam and change some items in Kernel Configuration and try to create a new kernel.
But cannot do that!?
WS shows bellow:
Cannot build a kernel using /usr/sbin/config.
The standard output of the command is shown
below:

Stop.
config: make did an exet(1)
The command exitted with exitcode -71

WHY? Wtat means exitcode -71 ?
someone teach me please.
8 REPLIES 8
Jason VanDerMark
Trusted Contributor
Solution

Re: Cannot build a kernel

When entering the kernel tuning area of Sam, do you receive any error messages regarding wrongly set parameters? I don't use sam for modifying the kernel, so I am just going from what I had seen long ago on an improperly tuned system. What you may want to try is going into /stand and seeing if you have any older versions of the system file in there, copy the modified one to system.mod and then copy the older one to the current system file. Go back into sam and change a parameter like maxfiles to 2048 or something like this and then attempt to rebuild the kernel. If this works, then something is definitely wrong with your other system file. Hope this helps.

Regards,
Jason V.
Tie two birds together, eventhough they have four wings, they cannot fly.
Jon Mattatall
Esteemed Contributor

Re: Cannot build a kernel

Hi - Maybe this will help - I found this question for you

http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xa206a22d6d27d5118fef0090279cd0f9,00.html

The same errorcode, etc. In this case, the patches
PHKL_22589 - PHKL_23127- PHKL_23628
seemed to work
Jon
A little knowledge is dangerous - none is absolutely terrifying!!!
eran maor
Honored Contributor

Re: Cannot build a kernel

Hi

i agree strange error code .

i will check ( deside the other answer ) the version of the /usr/bin/cc .

just run what /use/bin/cc to see if this bin is for 11.00 and not 10.20 .


love computers
Hironori Sato
New Member

Re: Cannot build a kernel

Hi all. Thanks for replies.

Jason. There are two system files, named of
"system" and "system.prev". but there are
no difference between system and system.prev iles.

Jon. I tried to take PHKL_23628. but this
patch needs kernel configuration, then
I couldn't do that!

eran. the verson of the /usr/bin/cc linked
/opt/ansic/bin/cc is the bellow:
B3899BA B.11.02.02 HP C/ANSI C Developer's B
undle for HP-UX 11.00 (S700)
then I think correclt.

In addition, I did add swap space because i saw
other subject:LD fails with malloc error on HPUX 11.0.
but my probrem could not be fixed.
Pls advise me !

Animesh Chakraborty
Honored Contributor

Re: Cannot build a kernel

Hi ,
Have you tried creating the kernel manualy from the command line?To rebuild the HP-UX kernal, do the following:

1. cd /stand/build
2. create the kernal parameter system file
/usr/lbin/sysadm/system_prep -s system
3. make your changes to the system file
vi system
4. build the new kernal
/usr/sbin/mk_kernel -s ./system
5. back up the old kernel and sys files
mv /stan/system /stand/system.prev
mv /stand/vmunix /stand/vmunix.prev
6. install the new kernel
cp /stand/build/system /stand
cp /stand/build/vmunix_test /stand/vmunix
7. reboot system
8. verify the kernel changes using sysdef

best of luck
Animehs

Did you take a backup?
Hironori Sato
New Member

Re: Cannot build a kernel

Hi animesh. Thanks for your informations.
I tried to do your procedure.
But I saw the bellow when I build the new kernel:
# /usr/sbin/mk_kernel -s ./system -v
Bulding a new kernel based on template file "./system"
Compiling conf.c...
Loading the kernel...
Out of Memory.
*** Error exit code 12

Stop.
config: make did an exit(1)
config failure.

So,Are there any informations, can anyone help?
Animesh Chakraborty
Honored Contributor

Re: Cannot build a kernel

Hi,
How much memory do u have in your work station?
see output of "top" and stop all the unecessary process..if required reboot and try creating the kernel again

best of luck

Animesh
Did you take a backup?
Hironori Sato
New Member

Re: Cannot build a kernel

Hi all. I found the answer of my problem.
the procedure is bellow:
# adb -w /stand/vmunix
maxdsiz?2D <- input this
maxdsiz:
maxdsiz: 4096 16384
maxdsiz?W 0d16390 <- input this
maxdsiz: 61EC28 = 4096
control-d <- input this
#
After the system is rebooted then it is possible to generate a new kernel without getting the "Out of Memory" error.

This information was written in our K-mine.

Thanks and regards