Annotation of pkgsrc/bootstrap/README.Linux, revision 1.13
1.13 ! gdt 1: $NetBSD: README.Linux,v 1.12 2022/06/01 12:12:20 gdt Exp $
1.1 grant 2:
1.10 gdt 3: # General
1.1 grant 4:
1.10 gdt 5: Generally, bootstrapping on GNU/Linux is expected to Just Work with
6: gcc.
7:
8: # Compilers
9:
10: ## gcc
11:
12: gcc is the standard approach.
13:
14: As of 2022 it has been reported that systems with gcc 4.8 (e.g. RHEL7)
15: do not bootstrap, but that gcc7 (AWS-flavored RHEL7) and gcc8 (RHEL8) succeed.
16:
17: ## clang
18:
19: There are no reports of success or failure with clang.
20:
21: ## icc
22:
1.12 gdt 23: It was reported in 2008 that icc (Intel C++ Compiler) 8.0 and 8.1
1.10 gdt 24: have been tested on i386. See the old section at the end.
25:
26: # Debian and derivatives
1.4 dmcmahil 27:
1.6 sevan 28: For Debian and derivatives such as Ubuntu the following packages should be
1.10 gdt 29: installed prior to attempting bootstrap:
1.6 sevan 30:
1.9 cjep 31: apt-get install cvs libncurses5 libncurses5-dev gcc g++ zlib1g-dev \
32: zlib1g libssl-dev libudev-dev
1.6 sevan 33:
1.13 ! gdt 34: # RedHat and derivatives
! 35:
! 36: In 2022, pkgsrc bootstrapped ok on RHEL 8.5, and packages generally worked.
! 37:
1.11 nia 38: # NixOS
39:
40: stdenv.cc should be installed prior to attempting bootstrap.
41:
42: Please note that if you run the Nix garbage collector and it collects
43: libc, every pkgsrc binary (including binaries generated during bootstrap)
44: will need to be rebuilt.
45:
1.12 gdt 46: # musl
47:
48: Linux with musl was reported to work in 2022.
49:
50: # Termux (Android)
51:
52: In 2022, unprivileged bootstrap failed.
53:
54: # Very old information
1.4 dmcmahil 55:
1.12 gdt 56: ## Details of using icc (last update 2005
1.2 grant 57:
58: To bootstrap using icc, assuming the default icc installation
59: directory:
60:
61: env CC=/opt/intel_cc_80/bin/icc LDFLAGS=-static-libcxa \
62: ac_cv___attribute__=yes ./bootstrap
63:
1.3 grant 64: note: icc 8.1 needs the `-i-static' argument instead of
65: -static-libcxa.
66:
1.2 grant 67: icc supports __attribute__, but the GNU configure test uses a nested
68: function, which icc does not support. #undef'ing __attribute__ has the
69: unfortunate side-effect of breaking many of the Linux header files, which
70: cannot be compiled properly without __attribute__. The test must be
71: overridden so that __attribute__ is assumed supported by the compiler.
72:
73: After bootstrapping, you should set PKGSRC_COMPILER in mk.conf:
74:
75: PKGSRC_COMPILER=icc
76:
77: The default installation directory for icc is /opt/intel_cc_80, which
78: is also the pkgsrc default. If you have installed it into a different
79: directory, set ICCBASE in mk.conf:
80:
81: ICCBASE=/opt/icc
82:
83: pkgsrc uses the static linking method of the runtime libraries
84: provided by icc, so binaries can be run on other systems which do not
85: have the shared libraries installed.
86:
87: Libtool, however, extracts a list of libraries from the ld(1) command
88: run when linking a C++ shared library and records it, throwing away
89: the -Bstatic and -Bdynamic options interspersed between the libraries.
90: This means that libtool-linked C++ shared libraries will have a
91: runtime dependency on the icc libraries until this is fixed in
92: libtool.
CVSweb <webmaster@jp.NetBSD.org>