develooper Front page | perl.perl5.porters | Postings from November 2003

5.8.2 on itanium

Thread Next
H.Merijn Brand
November 13, 2003 07:05
5.8.2 on itanium
Message ID:
Someone is trying to build perl-5.8.2 on HP-UX 11.23 (itanium) and is
facing problems. I don't have access to Itanium architecture machines

Nov 11, 2003 06:54:34 GMT
I tried to compile perl 5.8.1 and 5.8.2 on hp-ux 11.23 with gcc 3.3.1/2.

rm -f
sh Configure -de -O \
-Dcc=gcc \
-Duselargefiles \
-Dprefix='/opt/mfgperl' \
-Dstartperl='#!/opt/mfgperl/bin/perl' \
-Dperlpath='/opt/mfgperl/bin/perl' \
-Doptimize='-O3' \
-Dloclibpth="/opt/mfgdep/lib/hpux32 /usr/lib/hpux32" \
-Dlocincpth="/opt/mfgdep/include " \
-Dinstallusrbinperl='n' \
-Duseithreads='y' \
-Dusethreads \
-Duseperlio='y' \
-Duseshrplib='y' \
-A prepend:libswanted='cl pthread ' | tee ../mfgperl.configure

which reults in:

cp op.c opmini.c
`sh cflags "optimize='-O3'" opmini.o` -fPIC -DPERL_EXTERNAL_GLOB opmini.c
CCCMD = gcc -DPERL_CORE -c -D_POSIX_C_SOURCE=199506L -D_REENTRANT -D_HPUX_SOURCE -fno-strict-aliasing -I/opt/mfgd
rm -f opmini.c
LD_LIBRARY_PATH=/usr/local/src/perl-5.8.2 gcc -L/opt/mfgdep/lib/hpux32 -L/usr/lib/hpux32 -o miniperl \
miniperlmain.o opmini.o -L /usr/local/src/perl-5.8.2 -Wl,+s -Wl,+b/opt/mfgperl/lib/5.8.2/IA64.ARCHREV_0-thread-multi/COR
E -lperl -lcl -lpthread -lnsl -lnm -ldl -ldld -lm -lsec -lc
LD_LIBRARY_PATH=/usr/local/src/perl-5.8.2 ./miniperl -w -Ilib -MExporter -e '<?>' || gmake minitest
/bin/sh: 13992 Memory fault(coredump)
gmake[1]: Entering directory `/usr/local/src/perl-5.8.2'
cp ext/re/ ext/re/re.tmp && sh mv-if-diff ext/re/re.tmp lib/
gmake[2]: Entering directory `/usr/local/src/perl-5.8.2'
LD_LIBRARY_PATH=/usr/local/src/perl-5.8.2 ./miniperl -Ilib configpm configpm.tmp
/bin/sh: 14003 Memory fault(coredump)
gmake[2]: *** [lib/] Error 139
gmake[2]: Leaving directory `/usr/local/src/perl-5.8.2'
gmake[1]: [minitest] Error 2 (ignored)

Lowering the optimization level does not have any effect.

Compilation with HP's ansic works. Gcc successfully compiles perl 5.8.0 as well. Did anyone have more success with newer versions?

Kind regards,


Nov 11, 2003 07:38:55 GMT
1. useperlio, and uselargefiles are default, so you don't have to pass those
2. do you *need* a threaded build? If not, please could you test without it?

Enjoy, have FUN! H.Merijn [ who does not have access to itanium ]

Nov 13, 2003 14:57:06 GMT
About H.Merijn's suggestion:

Omitting the -Duseithreads='y' \
-Dusethreads \
flags does not change anything. Any more ideas?

H.Merijn Brand        Amsterdam Perl Mongers (
using perl-5.6.1, 5.8.0, & 5.9.x, and 806 on  HP-UX 10.20 & 11.00, 11i,
   AIX 4.3, SuSE 8.2, and Win2k. 
send smoke reports to:, QA:

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About