Annotation of pkgsrc/bootstrap/README.Linux, revision 1.6

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

CVSweb <webmaster@jp.NetBSD.org>