Operating System - HP-UX
1820561 Members
2059 Online
109626 Solutions
New Discussion юеВ

Warnings when building new kernel

 
SOLVED
Go to solution
Tony Flaherty
Frequent Advisor

Warnings when building new kernel

hi, apologies for the lack of tech knowledge! It's been a while since I had to do anything like this.

Anyhow, I have a L3440 running hpux 11i

hpdev:/> uname -a
HP-UX hpdev B.11.11 U 9000/800

I have the C Compiler installed,
B3901BA B.11.11.12 HP C/ANSI C Developer's Bundle for HP-UX (S800)

And I run Informix Dynamic Server 7.31.FD8

After changing some kernel paramaters as per the Informix release notes, when I build the kernel I get the following warning repeated several times:

(Bundled) cc: warning 480: The -A option is available only with the C/ANSI C product; ignored.

Any advice is greatly appreciated.
There are 10 types of people in the world, Those who understand Binary and those who don't.
6 REPLIES 6
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: Warnings when building new kernel

You didn't indicate how you are building the kernel but it appears that the -Aa (or -Ac) was added to the config.mk file. This option is supported by your Ansi C compiler but not by the Bundled C compiler -- which is always used to build kernels. In any event, it is ignored by the Bundled C compiler and as long as your kernel source files contain no ANSI C syntax (which would produce an error rather than a warning) then you are fine. It is also possible that your environment contains some variables (e.g. CCOPTS which could be setting the flag). Do an env as root and look for "-A" in any of the variables displayed. If you see any then unset the variable before building your kernel.
If it ain't broke, I can fix that.
Tony Flaherty
Frequent Advisor

Re: Warnings when building new kernel

ok, I am building the kernel from within SAM, just changed the configurable paramaters and selected Process New Kernel from the menu.


There are 10 types of people in the world, Those who understand Binary and those who don't.
Tony Flaherty
Frequent Advisor

Re: Warnings when building new kernel

I have checked my env output and you were right:

CCOPTS=-Aa -D_HPUX_SOURCE

so I assume I am ok to go ahead and build the new kernel?
There are 10 types of people in the world, Those who understand Binary and those who don't.
A. Clay Stephenson
Acclaimed Contributor

Re: Warnings when building new kernel

Ideally, unset CCOPTS before invoking SAM although no real harm is being done.
If it ain't broke, I can fix that.
Tony Flaherty
Frequent Advisor

Re: Warnings when building new kernel

OK will do.

Thanks for the help and advice!

Tony.
There are 10 types of people in the world, Those who understand Binary and those who don't.
Tony Flaherty
Frequent Advisor

Re: Warnings when building new kernel

The advice given solved the problem for me.

Thanks!
There are 10 types of people in the world, Those who understand Binary and those who don't.