summaryrefslogtreecommitdiff
path: root/bootstrap/README.IRIX
blob: c576089326e160bdb178d733c0baeee5d5a6380e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
$NetBSD: README.IRIX,v 1.7 2009/08/01 20:16:25 dholland Exp $

You will need a working C compiler, either gcc or SGI's MIPS and MIPSpro
compiler (cc/c89).  Please set the CC environment variable according to your
preference.  If you do not have a license for the MIPSpro compiler suite, you
can download a gcc tardist file from http://freeware.sgi.com/.

Please note that you will need Irix 6.5.17 or higher, as this is the earliest
version of Irix providing support for if_indextoname(3), if_nametoindex(3),
etc.

At this point in time, pkgsrc only supports one ABI.  That is, you cannot
switch between the old 32-bit ABI, the new 32-bit ABI and the 64-bit ABI.  If
you start out using "abi=n32", that's what all your packages will be built
with.

Therefore, please make sure that you have no conflicting CFLAGS in your
environment or the /etc/mk.conf.  Particularly, make sure that you do
not try to link n32 object files with lib64 or vice versa.  Check your
/etc/compiler.defaults and $SGI_ABI!

If you have the actual pkgsrc tree mounted via NFS from a different host,
please make sure to set WRKOBJDIR to a local directory, as it appears that
Irix linker occasionally runs into issues when trying to link over a network
mounted filesystem.

The bootstrapping process should set all the right options for programs
such as imake(1), but you may want to set some options depending on your
local setup.  Please see pkgsrc/mk/defaults/mk.conf and, of course,
your compilers man pages for details.

If you are using SGI's MIPSPro compiler, please set

PKGSRC_COMPILER=mipspro

in /etc/mk.conf -- otherwise, pkgsrc will assume you are using gcc and may end
up passing invalid flags to the compiler.  Note that bootstrap should create
an appropriate mk.conf.example by default.

If you have both the MIPSPro compiler chain installed as well as gcc, but want
to make sure that MIPSPro is used, please set your PATH to not include the
location of gcc (often /usr/freeware/bin), and (important), pass the
'--preserve-path' flag.

bootstrap-pkgsrc has been tested on:
	- an O2 with 1 180 MHZ IP32 Processor (R5000) (n32 ABI)
	  running 6.5.27
	- an Origin 200 with 2 180 MHZ IP27 Processors (R10000) (64 ABI)
	  running 6.5.23