Annotation of pkgsrc/bootstrap/README.Linux, revision 1.9
1.9 ! cjep 1: $NetBSD: README.Linux,v 1.8 2021/02/12 13:00:05 cjep Exp $
1.1 grant 2:
3: Please read the general README file as well.
4:
1.4 dmcmahil 5: ==========================================================================
6:
1.6 sevan 7: For Debian and derivatives such as Ubuntu the following packages should be
8: installed prior to attempting bootstrap
9:
1.9 ! cjep 10: apt-get install cvs libncurses5 libncurses5-dev gcc g++ zlib1g-dev \
! 11: zlib1g libssl-dev libudev-dev
1.6 sevan 12:
13: ==========================================================================
14:
1.4 dmcmahil 15: Some versions of Linux (RHEL3 Update 2 for i386 for example) have a
16: /usr/lib/libacl.la libtool archive file that lists /lib/libattr.la as a
17: dependency. However, libattr.la does not exist in /lib/libattr.la. If
18: this is the case, the bootstrap will fail with
19:
20: grep: /lib/libattr.la: No such file or directory
21: /usr/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/.tools/bin/sed: can't read /lib/libattr.la: No such file or directory
22: libtool: link: `/lib/libattr.la' is not a valid libtool archive
23:
1.5 prlw1 24: The solution is to copy /usr/lib/libattr.la to /lib/libattr.la with:
1.4 dmcmahil 25:
26: cp -p /usr/lib/libattr.la /lib
27:
28: ==========================================================================
29:
1.1 grant 30: Some versions of Linux (for example Debian GNU/Linux) need either libtermcap
1.7 gutterid 31: or libcurses (libncurses). Installing the distribution's libncurses-dev
32: package (or equivalent) should fix related build problems.
1.2 grant 33:
1.4 dmcmahil 34: ==========================================================================
35:
1.2 grant 36: pkgsrc supports both gcc (GNU Compiler Collection) and icc (Intel C++
37: Compiler). gcc is the default. icc 8.0 and 8.1 on i386 have been tested.
38:
39: To bootstrap using icc, assuming the default icc installation
40: directory:
41:
42: env CC=/opt/intel_cc_80/bin/icc LDFLAGS=-static-libcxa \
43: ac_cv___attribute__=yes ./bootstrap
44:
1.3 grant 45: note: icc 8.1 needs the `-i-static' argument instead of
46: -static-libcxa.
47:
1.2 grant 48: icc supports __attribute__, but the GNU configure test uses a nested
49: function, which icc does not support. #undef'ing __attribute__ has the
50: unfortunate side-effect of breaking many of the Linux header files, which
51: cannot be compiled properly without __attribute__. The test must be
52: overridden so that __attribute__ is assumed supported by the compiler.
53:
54: After bootstrapping, you should set PKGSRC_COMPILER in mk.conf:
55:
56: PKGSRC_COMPILER=icc
57:
58: The default installation directory for icc is /opt/intel_cc_80, which
59: is also the pkgsrc default. If you have installed it into a different
60: directory, set ICCBASE in mk.conf:
61:
62: ICCBASE=/opt/icc
63:
64: pkgsrc uses the static linking method of the runtime libraries
65: provided by icc, so binaries can be run on other systems which do not
66: have the shared libraries installed.
67:
68: Libtool, however, extracts a list of libraries from the ld(1) command
69: run when linking a C++ shared library and records it, throwing away
70: the -Bstatic and -Bdynamic options interspersed between the libraries.
71: This means that libtool-linked C++ shared libraries will have a
72: runtime dependency on the icc libraries until this is fixed in
73: libtool.
CVSweb <webmaster@jp.NetBSD.org>