1PERLIRIX(1) Perl Programmers Reference Guide PERLIRIX(1)
2
3
4
6 perlirix - Perl version 5 on Irix systems
7
9 This document describes various features of Irix that will affect how
10 Perl version 5 (hereafter just Perl) is compiled and/or runs.
11
12 Building 32-bit Perl in Irix
13 Use
14
15 sh Configure -Dcc='cc -n32'
16
17 to compile Perl 32-bit. Don't bother with -n32 unless you have 7.1 or
18 later compilers (use cc -version to check).
19
20 (Building 'cc -n32' is the default.)
21
22 Building 64-bit Perl in Irix
23 Use
24
25 sh Configure -Dcc='cc -64' -Duse64bitint
26
27 This requires require a 64-bit MIPS CPU (R8000, R10000, ...)
28
29 You can also use
30
31 sh Configure -Dcc='cc -64' -Duse64bitall
32
33 but that makes no difference compared with the -Duse64bitint because of
34 the "cc -64".
35
36 You can also do
37
38 sh Configure -Dcc='cc -n32' -Duse64bitint
39
40 to use long longs for the 64-bit integer type, in case you don't have a
41 64-bit CPU.
42
43 If you are using gcc, just
44
45 sh Configure -Dcc=gcc -Duse64bitint
46
47 should be enough, the Configure should automatically probe for the
48 correct 64-bit settings.
49
50 About Compiler Versions of Irix
51 Some Irix cc versions, e.g. 7.3.1.1m (try cc -version) have been known
52 to have issues (coredumps) when compiling perl.c. If you've used
53 -OPT:fast_io=ON and this happens, try removing it. If that fails, or
54 you didn't use that, then try adjusting other optimization options
55 (-LNO, -INLINE, -O3 to -O2, etcetera). The compiler bug has been
56 reported to SGI. (Allen Smith <easmith@beatrice.rutgers.edu>)
57
58 Linker Problems in Irix
59 If you get complaints about so_locations then search in the file
60 hints/irix_6.sh for "lddflags" and do the suggested adjustments.
61 (David Billinghurst <David.Billinghurst@riotinto.com.au>)
62
63 Malloc in Irix
64 Do not try to use Perl's malloc, this will lead into very mysterious
65 errors (especially with -Duse64bitall).
66
67 Building with threads in Irix
68 Run Configure with -Duseithreads which will configure Perl with the
69 Perl 5.8.0 "interpreter threads", see threads.
70
71 For Irix 6.2 with perl threads, you have to have the following patches
72 installed:
73
74 1404 Irix 6.2 Posix 1003.1b man pages
75 1645 Irix 6.2 & 6.3 POSIX header file updates
76 2000 Irix 6.2 Posix 1003.1b support modules
77 2254 Pthread library fixes
78 2401 6.2 all platform kernel rollup
79
80 IMPORTANT: Without patch 2401, a kernel bug in Irix 6.2 will cause your
81 machine to panic and crash when running threaded perl. Irix 6.3 and
82 later are okay.
83
84 Thanks to Hannu Napari <Hannu.Napari@hut.fi> for the IRIX
85 pthreads patches information.
86
87 Irix 5.3
88 While running Configure and when building, you are likely to get quite
89 a few of these warnings:
90
91 ld:
92 The shared object /usr/lib/libm.so did not resolve any symbols.
93 You may want to remove it from your link line.
94
95 Ignore them: in IRIX 5.3 there is no way to quieten ld about this.
96
97 During compilation you will see this warning from toke.c:
98
99 uopt: Warning: Perl_yylex: this procedure not optimized because it
100 exceeds size threshold; to optimize this procedure, use -Olimit
101 option with value >= 4252.
102
103 Ignore the warning.
104
105 In IRIX 5.3 and with Perl 5.8.1 (Perl 5.8.0 didn't compile in IRIX 5.3)
106 the following failures are known.
107
108 Failed Test Stat Wstat Total Fail Failed List of Failed
109 -----------------------------------------------------------------------
110 ../ext/List/Util/t/shuffle.t 0 139 ?? ?? % ??
111 ../lib/Math/Trig.t 255 65280 29 12 41.38% 24-29
112 ../lib/sort.t 0 138 119 72 60.50% 48-119
113 56 tests and 474 subtests skipped.
114 Failed 3/811 test scripts, 99.63% okay. 78/75813 subtests failed,
115 99.90% okay.
116
117 They are suspected to be compiler errors (at least the shuffle.t
118 failure is known from some IRIX 6 setups) and math library errors (the
119 Trig.t failure), but since IRIX 5 is long since end-of-lifed, further
120 fixes for the IRIX are unlikely. If you can get gcc for 5.3, you could
121 try that, too, since gcc in IRIX 6 is a known workaround for at least
122 the shuffle.t and sort.t failures.
123
125 Jarkko Hietaniemi <jhi@iki.fi>
126
127 Please report any errors, updates, or suggestions to
128 <https://github.com/Perl/perl5/issues>.
129
130
131
132perl v5.32.1 2021-05-31 PERLIRIX(1)