develooper Front page | perl.perl5.porters | Postings from October 2005

SV: [perl #37156] perl-5.8.7 doesn't compile on IA64

From:
John Damm Soerensen
Date:
October 2, 2005 09:17
Subject:
SV: [perl #37156] perl-5.8.7 doesn't compile on IA64
Message ID:
9ECE575E7C19E3468632017ED7B7DF650645BE@rdg-emea002e--3.emea.sgi.com
 

________________________________

Fra: Steve Peters via RT [mailto:perlbug-followup@perl.org]
Sendt: sø 02-10-2005 06:55
Til: John Damm Soerensen
Emne: [perl #37156] perl-5.8.7 doen't compile on IA64 



> [Johnds@sgi.com - Tue Sep 13 04:07:02 2005]:
>
> Just to advice you about a problem with IA64 gcc-3.2.3-47 and perl-
> 5.8.7, that seems to be well known, but not mentionened in your
> README's.
>
> The problem shows during compilation as:
> ./miniperl -Ilib lib/lib_pm.PL
> Attempt to free unreferenced scalar: SV 0x6000000000034d00 at
> lib/lib_pm.PL line 1.
> Attempt to free unreferenced scalar: SV 0x600000000003c7c0 at
> lib/File/Basename.pm line 138.
> Attempt to free unreferenced scalar: SV 0x600000000003c7c0 at
> lib/File/Basename.pm line 142.
> Attempt to free unreferenced scalar: SV 0x6000000000065680 at
> lib/warnings.pm
> line 134.
> Attempt to free unreferenced scalar: SV 0x600000000003c7f0 at
> lib/File/Basename.pm line 143.
> Attempt to free unreferenced scalar: SV 0x6000000000042980 at
> lib/Exporter/Heavy.pm line 3.
> make: *** [lib/lib.pm] Segmentation fault
>
> The workarounds are:
> 1. Upgrade gcc to gcc-3.2.3-50  or later
> 2. Compile pp_ctl.c, pp_hot.c and pp_sort.c using -O1
> 3. Compile pp_ctl.c, pp_hot.c and pp_sort.c using -O2 and
> -fno-delete-null-pointer-checks
>
> I have tried workaround 3 on both 5.8.6 and 5.8.7 and it works fine.
>
> Maybe you should consider er README.ia64 with this information?
>
> The full description of the problem maybe found at:
> https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=141694
>
> BR
> John Damm Sørensen
> SGI DK
>

An existing chang to the hints/linux.sh was made to fix this problem
with PPC chips.  It defaults optimize to -O1 on all PPC/Linux.  I'd
prefer to simply add the "-fno-delete-null-pointer-checks" to ccflags.
Any other thoughts?


It is OK with me, the customer I helped with this problem has tested perl compiled with "-fno-delete-null-pointer"and it works without giving him any problems. But I think if possible it should only be done for versions of gcc versions less than gcc-3.2.3-50

John







nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About