Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Languages and Scripting
cancel
Showing results for 
Search instead for 
Did you mean: 

LP64 WARNING IS GETTING SUPPRESSED

BALAJI CHANDRAN
Occasional Contributor

LP64 WARNING IS GETTING SUPPRESSED

When i am compiling the .c file in CBSIHP01 or CBSIHP02 with +M2 and +DD64 options enabled I am getting Warnings as below

cc: "stubstr.c", line 8: warning 720: LP64 migration: Assignment may overflow integer "len".

When i am compiling the .c file in CVNSHP03 with +M2 and +DD64 options enabled I am getting Warnings as below

cc: "stubstr.c", line 8: warning 720:Assignment may overflow integer "len"


..But we want LP64 migration MESSAGE in CVNSHP03 also........

I have enclosed the Hardware model of CBSIHP01, CBSIHP02 and CVNSHP03.
CBSIHP01: 9000/782/J2240
CBSIHP02: 9000/861/D270
CVNSHP03: 9000/800/L3000-7x

Can anyone provide solution for this?

Thanks
C.Balaji



3 REPLIES
Nicolas Portais
Frequent Advisor

Re: LP64 WARNING IS GETTING SUPPRESSED

Hi,

Generally, this error appears when you compare (or assign) a long variable to a integer.

for example:

$ cat test.c
void main(void)
{
int a;
long b=1L;
a=b;
}

$ cc +M2 +DD64 test.c -o test
cc: "test.c", line 5: LP64 migration warning 720: Assignment may overflow integer "a".

the solution is to replace 'int' by 'long'.

Regards,
Nicolas
A. Clay Stephenson
Acclaimed Contributor

Re: LP64 WARNING IS GETTING SUPPRESSED

Do a cc -V myfile.c and make sure that all the compilers are at the same revision level. Next check to see if compiler patches are equivalent.
If it ain't broke, I can fix that.

Re: LP64 WARNING IS GETTING SUPPRESSED

NLSPATH=/opt/ansic/lib/nls/msg/C/%N.cat

You have to set /opt/ansic/lib/nls/msg/C/%N.cat catalogue path of system ( C Compiler Catalog message path). then you will get that message.

Thanks
Srinivasan S