Wed Apr 13 07:41:00 2022 UTC ()
updated notes on bootstrapping with GNU ld on illumos


(nia)
diff -r1.26 -r1.27 pkgsrc/bootstrap/README.Solaris

cvs diff -r1.26 -r1.27 pkgsrc/bootstrap/README.Solaris (expand / switch to unified diff)

--- pkgsrc/bootstrap/README.Solaris 2022/04/09 14:45:32 1.26
+++ pkgsrc/bootstrap/README.Solaris 2022/04/13 07:41:00 1.27
@@ -1,47 +1,43 @@ @@ -1,47 +1,43 @@
1$NetBSD: README.Solaris,v 1.26 2022/04/09 14:45:32 nia Exp $ 1$NetBSD: README.Solaris,v 1.27 2022/04/13 07:41:00 nia Exp $
2 2
3This README describes pkgsrc on a variety of Solaris-derived operating 3This README describes pkgsrc on a variety of Solaris-derived operating
4systems. It corresponds to pkgsrc/platform/SunOS.mk. The relevant 4systems. It corresponds to pkgsrc/platform/SunOS.mk. The relevant
5operating systems are: 5operating systems are:
6 - illumos (open source fork, OpenIndiana, OmniOS, SmartOS, and others) 6 - illumos (open source fork, OpenIndiana, OmniOS, SmartOS, and others)
7 - Solaris (from Sun/Oracle, also Sun Solaris, Oracle Solaris) 7 - Solaris (from Sun/Oracle, also Sun Solaris, Oracle Solaris)
8 - OpenSolaris (from Sun; superseded long ago by illumos) 8 - OpenSolaris (from Sun; superseded long ago by illumos)
9 9
10As of 2022, the primary platforms of interest where pkgsrc is known to 10As of 2022, the primary platforms of interest where pkgsrc is known to
11work well are illumos distributions, Solaris 10, and Solaris 11. 11work well are illumos distributions, Solaris 10, and Solaris 11.
12pkgsrc is not currently known to work on SunOS 4 or OpenSolaris. 12pkgsrc is not currently known to work on SunOS 4 or OpenSolaris.
13 13
14As of 2022-04-09, bootstrapping does not work on Tribblix due to the 14As of 2022-04-09, it isn't possible to use GNU ld. This is relevant
15multi-arch toolchain: 15on Tribblix: when bootstrapping, ensure /usr/gnu/bin is last in your
16ld: Relocatable linking with relocations from format elf64-x86-64-sol2 16$PATH.
17(common.o.o) to format elf32-i386-sol2 (common.o) is not supported. 
18 17
19Prerequisites 18Prerequisites
20------------- 19-------------
21 20
22You will need a working C compiler. The two known options are gcc and 21You will need a working C compiler. The two known options are gcc and
23Sun/Solaris Studio. gcc can come from the OS vendor, or other places. 22Sun/Solaris Studio. gcc can come from the OS vendor, or other places.
24On some systems, it may only be possible to use the vendor gcc, or 23On some systems, it may only be possible to use the vendor gcc, or
25there might be no vendor gcc available by default. In general, there's 24there might be no vendor gcc available by default. In general, there's
26better support for gcc in third-party software, and much better support 25better support for gcc in third-party software, and much better support
27for gcc on illumos. 26for gcc on illumos.
28 27
29As with pkgsrc on other platforms, one should use the same compiler 28As with pkgsrc on other platforms, one should use the same compiler
30family and ideally the same compiler version for building all packages. 29family and ideally the same compiler version for building all packages.
31 30
32At some time in the past, GNU binutils was not usable on some systems, 
33but the status is unclear in 2022. 
34 
35The following packages are the minimum required on Solaris 8 to 31The following packages are the minimum required on Solaris 8 to
36bootstrap and build packages. 32bootstrap and build packages.
37 33
38 - SUNWsprot 34 - SUNWsprot
39 - SUNWarc 35 - SUNWarc
40 - SUNWbtool 36 - SUNWbtool
41 - SUNWtoo 37 - SUNWtoo
42 - SUNWscpu 38 - SUNWscpu
43 - SUNWxcu4 39 - SUNWxcu4
44 40
45Realistically you will need more, such as SUNWlibm, and SUNWlibC for 41Realistically you will need more, such as SUNWlibm, and SUNWlibC for
46C++ packages if you are using SunPro. 42C++ packages if you are using SunPro.
47 43