1836620 Members
1651 Online
110102 Solutions
New Discussion

Re: Kernel Config Error

 
Bob Verity
Occasional Advisor

Kernel Config Error

I am getting an error as follows when trying to build a new kernel:
Config: make did an exit (1)

I don't under stand what is causing the error.
Any suggestions?

Thanks
Bob
9 REPLIES 9
Con O'Kelly
Honored Contributor

Re: Kernel Config Error

Hi Bob

What commands are using to re-build kernel? Did you get this error after running mk_kernel? Can you post the parameter(s) & value(s) you are changing.

Cheers
Con
twang
Honored Contributor

Re: Kernel Config Error

Did you manually build the kernel or through SAM? What parameter did you changed? Do you try to change back the parameter and see if it works?
Bob Verity
Occasional Advisor

Re: Kernel Config Error

I get the message when I build it through SAM or mk_kernel. I have tried to only change something simple like maxusers 32 -> 64. The error is not very specific, but references the following:

cannot build kernel using /usr/sbin/config. The standard output of the command is shown below:
config: make did an exit(1)

the commmand exitted with exitcode -71.


Bob
twang
Honored Contributor

Re: Kernel Config Error

Do you see any other error/warning message before the "*** Error exit code"?
Did you make any change like OS upgrade recently? If yes, do you check the patch prerequisite?
Con O'Kelly
Honored Contributor

Re: Kernel Config Error

Hi Bob

This is more a stab in the dark than anything but look at the config man page, might point you in the right direction.

It appears from what you said there is a problem with the make command which is called by the config command. Its possible that some of the conf files (/usr/conf/*) that it needs are missing, corrupted or unreadable??

Also have a look in /stand/build & see if mk_kernel has managed to create files such as conf.o, tune.h etc

The mk_kernel has output such as
Generating module: krm...
Compiling conf.c...
Loading the kernel...
Generating kernel symbol table....

How far does it get before the error message appears?

Cheers
Con

Cheers
Con
twang
Honored Contributor

Re: Kernel Config Error

Do you see any other error message before "*** Error exit code"?
Did you make any change like O/S upgrade recently?
Do check_patches and take a look at the /tmp/check_patches.report. It may help you.

Steven E. Protter
Exalted Contributor

Re: Kernel Config Error

I would have all my data backed up and a make_tape_recovery tape on hand.

It would appear something aweful might have happened to your system.

At the very least you may have a corrupted system file and I'd be hunting for a backup of the /stand filesystem so you can restore that.

From now on, take a backup of /stand before making any move.

You can back up /stand to a vxfs filesystem, but you can't boot off of it. At this point, I'd be making tapes.

HP-UX 10.20, 11.00 or 11.11?

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Michael Tully
Honored Contributor

Re: Kernel Config Error

The first thing I would doing is to see if you can generate a new kernel from the existing one.

# cd /stand/build
# /usr/lbin/sysadm/system_prep -s system
# mk_kernel -s system

This will tell you if some of the config files may have got corrupted.
Anyone for a Mutiny ?
doug mielke
Respected Contributor

Re: Kernel Config Error

Another common 'gotcha' is making a 'backup' file in a kernel config directory, such that the kernel tries to link both, similar, files which almost always fails.