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

5.8.2 on itanium

Thread Next
From:
H.Merijn Brand
Date:
November 13, 2003 07:05
Subject:
5.8.2 on itanium
Message ID:
20031113160204.662D.H.M.BRAND@hccnet.nl
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

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=248415

--8<---
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 config.sh Policy.sh
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
ep/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O3 -Wall
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/re.pm ext/re/re.tmp && sh mv-if-diff ext/re/re.tmp lib/re.pm
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/Config.pm] 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,

Lars
-->8---

--8<---
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 ]
-->8---

--8<---
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?
-->8---


-- 
H.Merijn Brand        Amsterdam Perl Mongers (http://amsterdam.pm.org/)
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.           http://www.cmve.net/~merijn/
http://archives.develooper.com/daily-build@perl.org/   perl-qa@perl.org
send smoke reports to: smokers-reports@perl.org, QA: http://qa.perl.org


Thread Next


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