Operating System - HP-UX
1832275 Members
1757 Online
110041 Solutions
New Discussion

kernel build error upgrading 11 -> 11i

 
SOLVED
Go to solution
Enrique Galdú
Advisor

kernel build error upgrading 11 -> 11i

I am upgrading a L2000 from HP-UX 11 to 11i (december 2003).
It has failed when building the new kernel with this error:

* Building the kernel
NOTE: Building a new kernel based on template file "/stand/system"
WARNING: No such device, tunable, or cdio num_tachyon_adapters.
Ignoring the following line.
num_tachyon_adapters 5
/usr/lbin/sw/bin/mkdir -p /stand/build
Compiling /stand/build/conf.c...
Loading the kernel...
aCC runtime: ERROR: Unexpected use of shared libraries
aCC runtime: ERROR: Read aCC manpage, +A option
/usr/lib/nls/loc/locales.1//C.iso88591
sh: 26607 Abort(coredump)
*** Error exit code 134

Stop.
make failure.
ERROR: The kernel build failed. See the /var/adm/sw/swagent.log for details.
Do not attempt to reboot the system before the new kernel is
successfully built. An attempt to do this could result in an unusable
system which would require recovery from backup. Because the system
is in a partially updated state, many common system commands will not
run correctly. However, there are some common commands available in
/usr/lbin/sw/bin that were built archived and they should work in
this environment.
NOTE: One or more errors encountered. Take appropriate corrective action
and re-run update-ux to complete the update.

======= Wed Jan 21 17:06:44 2004 END update-ux

Is there a way to fix this problem?
Thank you for your help
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: kernel build error upgrading 11 -> 11i

The problem may not be fixable.

update-ux has undergone what appears to be a pretty catastrophic failure.

Perhaps there was not enough disk space allocated to the /usr or /stand filesystems.

I've never been a big update-ux fan.

If you want to work on it, copy the vmunix file from the Core OS cd prior to booting the machine.

At least then the machine will boot.

More likely you need to recover the system back to 11.00 with your ignite tape and plan a cold installation followed by application upgrade.

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
Sridhar Bhaskarla
Honored Contributor

Re: kernel build error upgrading 11 -> 11i

Hi,

I haven't used update-ux so far. But I am surprized to see "Ansi C++" compiler showing up in the errors. As far as I know, kernel is compiled with C. what are the parameters
CC and CKRN defined in your /stand/build/config.mk file?.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Enrique Galdú
Advisor

Re: kernel build error upgrading 11 -> 11i

Hi,
the parameters are:
CKRN= /usr/ccs/bin
CC= $(CKRN)/cc

and this compiler is not linked to aCC.
ll /usr/ccs/bin/cc
lrwxr-xr-x 1 root sys 12 Jan 21 12:55 /usr/ccs/bin/cc -> ./cc_bundled
ll /usr/ccs/bin/cc_bundled
-r-xr-xr-x 1 bin bin 208896 Nov 14 2000 /usr/ccs/bin/cc_bundled
Dietmar Konermann
Honored Contributor
Solution

Re: kernel build error upgrading 11 -> 11i

Looks like an NLS related problem... the path /usr/lib/nls/loc/locales.1//C.iso88591 sounds like your LANG variable is C.iso88591. Try to unset LANG before restarting the update. The locale(1) command should list LANG= and "C" for all others.

Best regards...
Dietmar.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)
Enrique Galdú
Advisor

Re: kernel build error upgrading 11 -> 11i

You are right, the problem was with the LANG variable.

I have completed the update executing:

#echo $LANG
C.iso88591
#unset LANG
#update-ux -kernel_build


Thanks everybody.