Operating System - Linux
1748136 Members
3798 Online
108758 Solutions
New Discussion юеВ

Re: HP C ANSI C optimizer broken on HP-UX 11.11

 
H.Merijn Brand (procura
Honored Contributor

HP C ANSI C optimizer broken on HP-UX 11.11

`sh cflags "optimize='+O2 +Onolimit -g'" toke.o` toke.c
CCCMD = cc -DPERL_CORE -c -DPERL_PATCHNUM=28095 -Ae -DDEBUGGING -DPERL_DONT_CREATE_GVSV +Z -z -D_HPUX_SOURCE -Wl,+vnocompatwarnings +DD64 -DDEBUGGING -I/pro/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DARG_ZERO_IS_SCRIPT +O2 +Onolimit -g
Stack_Trace: error while unwinding stack
cc: error 1405: "/opt/ansic/lbin/ccom" terminated abnormally with signal 11.

# swshow ANSI
# B3901BA B.11.11.14 HP C/ANSI C Developer's Bundle for HP-UX (S800)
# B3901BA.C-ANSI-C B.11.11.14 HP C/ANSI C Compiler
B3901BA.C-ANSI-C.C B.11.11.14 C Programming Language
B3901BA.C-ANSI-C.C-HELP B.11.11.14 C Online help
B3901BA.C-ANSI-C.C-MAN B.11.11.14 C References Pages

# path -w cc
/usr/bin/cc:
$Revision: 92453-07 linker linker crt0.o B.11.47 051104 $
LINT B.11.X.34412-34415.GP CXREF B.11.X.34412-34415.GP
HP92453-01 B.11.X.34412-34415.GP HP C Compiler
$ PATCH/11.00:PHCO_27774 Oct 3 2002 09:45:59 $

# kmtune.pl ^max
Parameter Value hex Value dec Function Default
-------------------- ------------ ----------- --------------------------- --------------------
max_async_ports 0x0000000032 50 50
max_fcp_reqs 0x0000000200 512 512
max_mem_window 0x0000000000 0 0
max_thread_proc 0x0000000200 512 512 64
maxdsiz 0x0018000000 402653184 0x18000000 0x10000000
maxdsiz_64bit 0x0060000000 1610612736 0x60000000 0x0000000040000000
maxfiles 0x0000000200 512 512 60
maxfiles_lim 0x0000000400 1024 1024
maxqueuetime - - - 0
maxssiz 0x0000a00000 10485760 0xa00000 0x00800000
maxssiz_64bit 0x0002000000 33554432 0x2000000 0x00800000
maxswapchunks 0x0000000800 2048 2048 256
maxtsiz 0x0004000000 67108864 0x4000000 0x04000000
maxtsiz_64bit 0x0040000000 1073741824 0x40000000 0x0000000040000000
maxuprc 0x000000004b 75 75
maxusers 0x0000000400 1024 1024 32
maxvgs 0x000000000a 10 10

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
9 REPLIES 9
Peter Nikitka
Honored Contributor

Re: HP C ANSI C optimizer broken on HP-UX 11.11

Hi,

I remember having had problems in compiling SW-packages when options for optimizing AND for debugging were specified.
Perhaps you try a compilation without '-g' or '+O2'.

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
H.Merijn Brand (procura
Honored Contributor

Re: HP C ANSI C optimizer broken on HP-UX 11.11

Already did so.

For most of these files dropping to +O1 is enough, for others +O0 is required

Dropping -g is also OK.

Anyway, IMHO the compiler/optimizer should not crash, but either give me a sensible warning, or drop to a (for the optimizer) accepable level/combination.

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Arunvijai_4
Honored Contributor

Re: HP C ANSI C optimizer broken on HP-UX 11.11

Hi Merijn,

Perhaps, you could try installing latest Libc patch PHCO_33609.

http://www1.itrc.hp.com/service/patch/patchDetail.do?BC=patch.breadcrumb.main|patch.breadcrumb.search|&patchid=PHCO_33609&context=hpux:800:11:00

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Arunvijai_4
Honored Contributor

Re: HP C ANSI C optimizer broken on HP-UX 11.11

HI Merijn,

Sorry for the second post. I just now remember i had this same problem two years ago while trying to build Xerces or Xalan. If i remember correctly, it turned out to be a compiler bug.

I remember i got replies from both Dennis Handley and Steve from HP about this.

-Arun

P.S Assign zero points.
"A ship in the harbor is safe, but that is not what ships are built for"
H.Merijn Brand (procura
Honored Contributor

Re: HP C ANSI C optimizer broken on HP-UX 11.11

I swapped the points :)

Well you got a reply from them that it is a bug. WHAT WAS THEIR ANSWER?
Are they going to fix it?

Can I `confirm' your bug number?

Enjoy, Have FUN! H.Merijn [ who hates to see an area where gcc does better than HP C-ANSI-C ]
Enjoy, Have FUN! H.Merijn
Sameer_Nirmal
Honored Contributor

Re: HP C ANSI C optimizer broken on HP-UX 11.11

I guess there are 2 issues invloved, one for stack trace and second for Signal 11.

I would take a look at these patches as similar issues have been taken care of

PHSS_33902
PHSS_34412
Sameer_Nirmal
Honored Contributor

Re: HP C ANSI C optimizer broken on HP-UX 11.11

Typo..
Correction...
Instead of PHSS_33902, wanted to mention PHSS_33901.
ranganath ramachandra
Esteemed Contributor

Re: HP C ANSI C optimizer broken on HP-UX 11.11

hi

can you file a defect for this ? or post a .i file which can reproduce the problem, so that i can file a defect for you.

thanks
ranga
 
--
ranga
[i work for hpe]

Accept or Kudo

H.Merijn Brand (procura
Honored Contributor

Re: HP C ANSI C optimizer broken on HP-UX 11.11

Sameer. thanks for searching, but if you would have had a closer look at the what output for cc, you could have seen that the PHSS_34412 was already in:

HP92453-01 B.11.X.34412-34415.GP HP C Compiler

I do not have confidence in the second patch. This is a production system, and as - from the description - I see no resolution in the defects these patches fix, and they only have one star, I'll just wait for the next goldpack.

ranganath, you could generate it yourself most likely.

# cd /tmp
# mkdir perl-devel
# cd perl-devel
# rsync -avz rsync://public.activestate.com/perl-current/ .
# sh ./Configure --Dusedevel -Duse64bitall -DEBUGGING=both -des
# make

... boom ...

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn