Changeset 229ed25 for BOOK/temp-system/common
- Timestamp:
- Jan 4, 2014, 12:03:38 AM (11 years ago)
- Branches:
- clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
- Children:
- f90d077
- Parents:
- ec008670 (diff), e57ce38 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- BOOK/temp-system/common
- Files:
-
- 2 added
- 1 deleted
- 17 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
BOOK/temp-system/common/binutils.xml
rec008670 r229ed25 23 23 <title>Installation of Binutils</title> 24 24 25 <!-- Branch update patch area 26 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 27 href="../../final-system/common/binutils.xml" 28 xpointer="xpointer(//*[@os='p1'])"/> 29 30 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 31 href="../../final-system/common/binutils.xml" 32 xpointer="xpointer(//*[@os='p2'])"/> 33 --> 34 25 35 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 26 36 href="../../final-system/common/binutils.xml" … … 35 45 xpointer="xpointer(//*[@os='i'])"/> 36 46 37 <screen os="j"><userinput>../binutils-&binutils- version;/configure --prefix=/tools \47 <screen os="j"><userinput>../binutils-&binutils-dir;/configure --prefix=/tools \ 38 48 --build=${CLFS_HOST} --host=${CLFS_TARGET} --target=${CLFS_TARGET} \ 39 49 --with-lib-path=/tools/lib --disable-nls --enable-shared \ -
BOOK/temp-system/common/bison.xml
rec008670 r229ed25 23 23 <title>Installation of Bison</title> 24 24 25 <para os='s1'>Apply a <command>sed</command> which disables the building of <filename>bison.help</filename> when cross-compiling.</para> 26 27 <screen os='s2'><userinput>cp -v Makefile.in{,.orig} 28 sed '/bison.help:/s/^/# /' Makefile.in.orig > Makefile.in</userinput></screen> 29 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 30 href="../../final-system/common/bison.xml" 31 xpointer="xpointer(//*[@os='t3'])"/> 32 33 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 34 href="../../final-system/common/bison.xml" 35 xpointer="xpointer(//*[@os='t4'])"/> 36 25 37 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 26 38 href="../../final-system/common/bison.xml" 27 39 xpointer="xpointer(//*[@os='a'])"/> 28 40 29 <screen os="ca"><userinput>./configure --prefix=/tools \ 30 --build=${CLFS_HOST} --host=${CLFS_TARGET}</userinput></screen> 41 <screen os="ca"><userinput>M4=m4 ./configure --prefix=/tools \ 42 --build=${CLFS_HOST} --host=${CLFS_TARGET} \ 43 --cache-file=config.cache</userinput></screen> 31 44 32 45 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" -
BOOK/temp-system/common/choose.xml
rec008670 r229ed25 34 34 method.</para> 35 35 36 <para>To chroot, you will also need a Linux Kernel-2.6.x (having been 37 compiled with GCC-3.0 or greater). The reason for the kernel version 38 requirement is that, without it, thread-local storage support in Binutils 39 will not be built and the Native POSIX Threading Library (NPTL) test suite 40 will segfault.</para> 36 <para>To chroot, you will also need a Linux Kernel-2.6.32 or greater 37 (having been compiled with GCC-4.1.2 or greater). The reason for the 38 kernel version requirement is that eglibc is built to generate the library 39 for the smallest version of the Linux kernel expected to be supported.</para> 41 40 42 41 <para>To check your kernel version, run <command>cat /proc/version</command> 43 - if it does not say that you are running a 2.6. 2 or later Linux kernel,44 compiled with GCC 3.0or later, you cannot chroot.</para>42 - if it does not say that you are running a 2.6.32 or later Linux kernel, 43 compiled with GCC 4.1.2 or later, you cannot chroot.</para> 45 44 46 45 <para os="e">For the boot method, follow <xref linkend="chapter-boot"/>.</para> -
BOOK/temp-system/common/cloog.xml
rec008670 r229ed25 6 6 ]> 7 7 8 <sect1 id="ch-temp-system- ppl" role="wrap">9 <?dbhtml filename=" ppl.html"?>8 <sect1 id="ch-temp-system-cloog" role="wrap"> 9 <?dbhtml filename="cloog.html"?> 10 10 11 <title> PPL-&ppl-version;</title>11 <title>CLooG &cloog-version;</title> 12 12 13 <indexterm zone="ch-temp-system- ppl">14 <primary sortas="a- PPL">PPL</primary>13 <indexterm zone="ch-temp-system-cloog"> 14 <primary sortas="a-CLooG">CLooG</primary> 15 15 <secondary>temporary system</secondary> 16 16 </indexterm> 17 17 18 18 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 19 href="../../final-system/common/ ppl.xml"19 href="../../final-system/common/cloog.xml" 20 20 xpointer="xpointer(//*[@role='package'])"/> 21 21 22 22 <sect2 role="installation"> 23 <title>Installation of PPL</title>23 <title>Installation of CLooG</title> 24 24 25 <para os="a">Prepare PPLfor compilation:</para>25 <para os="a">Prepare CLooG for compilation:</para> 26 26 27 27 <screen os="b"><userinput>./configure --prefix=/tools \ 28 28 --build=${CLFS_HOST} --host=${CLFS_TARGET} \ 29 --enable-interfaces="c,cxx" --enable-shared --disable-optimization \ 30 --with-libgmp-prefix=/tools --with-libgmpxx-prefix=/tools</userinput></screen> 29 --with-gmp-prefix=/tools --with-isl-prefix=/tools</userinput></screen> 31 30 32 < para os="bp1">When PPL is cross-compiled, it does not check whether33 GMP was compiled with support for exceptions, and simply assumes it was not.34 This assumption is incorrect, so we will fix that:</para>31 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 32 href="../../final-system/common/cloog.xml" 33 xpointer="xpointer(//*[@os='s1'])"/> 35 34 36 <screen os="bp2"><userinput>echo '#define PPL_GMP_SUPPORTS_EXCEPTIONS 1' >> confdefs.h</userinput></screen> 35 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 36 href="../../final-system/common/cloog.xml" 37 xpointer="xpointer(//*[@os='s2'])"/> 37 38 38 39 <para os="c">Compile the package:</para> … … 50 51 51 52 <para>Details on this package are located in <xref 52 linkend="contents- ppl" role="."/></para>53 linkend="contents-cloog" role="."/></para> 53 54 54 55 </sect2> -
BOOK/temp-system/common/coreutils.xml
rec008670 r229ed25 23 23 <title>Installation of Coreutils</title> 24 24 25 <para os="aa">The following command updates the timestamps on the uname26 and hostname man pages so that the Makefile does not attempt to regenerate27 them:</para>28 29 <screen os="ab"><userinput>touch man/uname.1 man/hostname.1</userinput></screen>30 31 25 <para os="ba">Configure can not properly determine how to get free space 32 26 when cross-compiling - as a result, the <command>df</command> program will … … 39 33 EOF</userinput></screen> 40 34 35 <para os="p1">Apply a patch to not generate manpages :</para> 36 37 <screen os="p2"><userinput>patch -Np1 -i ../&coreutils-noman-patch;</userinput></screen> 38 41 39 <para os="bd">Prepare Coreutils for compilation:</para> 42 40 … … 44 42 --build=${CLFS_HOST} --host=${CLFS_TARGET} \ 45 43 --enable-install-program=hostname --cache-file=config.cache</userinput></screen> 44 45 <variablelist os="be1"> 46 <title>The meaning of the new configure option:</title> 47 48 <varlistentry> 49 <term><parameter>--enable-install-program=hostname</parameter></term> 50 <listitem> 51 <para>Tells Coreutils to install <command>hostname</command>, 52 which is needed for the Perl testsuite.</para> 53 </listitem> 54 </varlistentry> 55 56 </variablelist> 57 58 <para os="s1">Apply a sed to allow completion of the build:</para> 59 60 <screen os="s2"><userinput>cp -v Makefile{,.orig} 61 sed -e 's/^#run_help2man\|^run_help2man/#&/' \ 62 -e 's/^\##run_help2man/run_help2man/' Makefile.orig > Makefile</userinput></screen> 46 63 47 64 <para os="bf">Compile the package:</para> -
BOOK/temp-system/common/flex.xml
rec008670 r229ed25 23 23 <title>Installation of Flex</title> 24 24 25 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 26 href="../../final-system/common/flex.xml" 27 xpointer="xpointer(//*[@os='p1'])"/> 28 29 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 30 href="../../final-system/common/flex.xml" 31 xpointer="xpointer(//*[@os='p2'])"/> 32 33 <para os="t3">When Cross Compiling the configure script 34 does not determine the correct values for the following, 25 <para os="t3">When cross compiling, the <command>configure</command> 26 script does not determine the correct values for the following. 35 27 Set the values manually:</para> 36 28 … … 44 36 xpointer="xpointer(//*[@os='a'])"/> 45 37 46 <screen os="cb"><userinput> ./configure --prefix=/tools \38 <screen os="cb"><userinput>M4=m4 ./configure --prefix=/tools \ 47 39 --build=${CLFS_HOST} --host=${CLFS_TARGET} \ 48 40 --cache-file=config.cache</userinput></screen> -
BOOK/temp-system/common/gawk.xml
rec008670 r229ed25 22 22 <sect2 role="installation"> 23 23 <title>Installation of Gawk</title> 24 25 <para os="s1">Apply a sed which will allow the build system to complete without error:</para> 26 27 <screen os="s2"><userinput>cp -v extension/Makefile.in{,.orig} 28 sed -e 's/check-recursive all-recursive: check-for-shared-lib-support/check-recursive all-recursive:/' \ 29 extension/Makefile.in.orig > extension/Makefile.in</userinput></screen> 24 30 25 31 <para os="a">Prepare Gawk for compilation:</para> -
BOOK/temp-system/common/gcc.xml
rec008670 r229ed25 24 24 25 25 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 26 href="../../ cross-tools/common/gcc-static.xml"26 href="../../final-system/common/gcc.xml" 27 27 xpointer="xpointer(//*[@os='p1'])"/> 28 28 29 29 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 30 href="../../ cross-tools/common/gcc-static.xml"30 href="../../final-system/common/gcc.xml" 31 31 xpointer="xpointer(//*[@os='p2'])"/> 32 32 … … 47 47 xpointer="xpointer(//*[@os='ah'])"/> 48 48 49 <para os="cf">Also, we need to set the directory searched by the fixincludes 50 process for system headers, so it won't look at the host's headers:</para> 49 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 50 href="../../final-system/common/gcc.xml" 51 xpointer="xpointer(//*[@os='fix1'])"/> 51 52 52 <screen os="cg"><userinput>cp -v gcc/Makefile.in{,.orig} 53 sed -e 's@\(^NATIVE_SYSTEM_HEADER_DIR =\).*@\1 /tools/include@g' \ 54 gcc/Makefile.in.orig > gcc/Makefile.in</userinput></screen>53 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 54 href="../../final-system/common/gcc.xml" 55 xpointer="xpointer(//*[@os='fix2'])"/> 55 56 56 57 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" … … 71 72 <screen os="ck"><userinput>../gcc-&gcc-version;/configure --prefix=/tools \ 72 73 --build=${CLFS_HOST} --host=${CLFS_TARGET} --target=${CLFS_TARGET} \ 73 --with-local-prefix=/tools --enable-long-long --enable-c99 \ 74 --enable-shared --enable-threads=posix --enable-__cxa_atexit \ 75 --disable-nls --enable-languages=c,c++ --disable-libstdcxx-pch \ 76 --disable-multilib</userinput></screen> 74 --libexecdir=/tools/lib --with-local-prefix=/tools --enable-long-long \ 75 --enable-c99 --enable-shared --enable-threads=posix --disable-multilib \ 76 --disable-nls --enable-__cxa_atexit --enable-languages=c,c++ \ 77 --disable-libstdcxx-pch --enable-cloog-backend=isl --with-gmp=/tools \ 78 --with-mpfr=/tools --with-mpc=/tools --with-isl=/tools \ 79 --disable-isl-version-check --with-cloog=/tools --with-system-zlib \ 80 --with-native-system-header-dir=/tools/include --disable-libssp \ 81 --disable-install-libiberty --enable-checking=release \ 82 --enable-libstdcxx-time</userinput></screen> 77 83 78 84 <variablelist os="cl"> … … 90 96 </variablelist> 91 97 92 <para os=" ts1">The following will prevent GCC from looking in the wrong98 <para os="s1">The following will prevent GCC from looking in the wrong 93 99 directories for headers and libraries:</para> 94 100 95 <screen os=" ts2"><userinput>cp -v Makefile{,.orig}96 sed "/^HOST_\(GMP\| PPL\|CLOOG\)\(LIBS\|INC\)/s:-[IL]/\(lib\|include\)::" \97 Makefile.orig >Makefile</userinput></screen>101 <screen os="s2"><userinput>cp -v Makefile{,.orig} 102 sed "/^HOST_\(GMP\|ISL\|CLOOG\)\(LIBS\|INC\)/s:/tools:/cross-tools:g" \ 103 Makefile.orig > Makefile</userinput></screen> 98 104 99 105 <para os="cm">Compile the package:</para> -
BOOK/temp-system/common/gmp.xml
rec008670 r229ed25 35 35 <para os="a">Prepare GMP for compilation:</para> 36 36 37 <screen os="b"><userinput>HOST_CC=gcc CPPFLAGS=-fexceptions./configure --prefix=/tools \37 <screen os="b"><userinput>HOST_CC=gcc ./configure --prefix=/tools \ 38 38 --build=${CLFS_HOST} --host=${CLFS_TARGET} \ 39 39 --enable-cxx</userinput></screen> -
BOOK/temp-system/common/grep.xml
rec008670 r229ed25 23 23 <title>Installation of Grep</title> 24 24 25 <para os="t1">When Cross Compiling the configure script26 does not determine the correct values for the following,27 Set the values manually:</para>28 29 <screen os="t2"><userinput>cat > config.cache << EOF30 ac_cv_func_malloc_0_nonnull=yes31 ac_cv_func_realloc_0_nonnull=yes32 EOF</userinput></screen>33 34 25 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 35 26 href="../../final-system/common/grep.xml" … … 38 29 <screen os="ca"><userinput>./configure --prefix=/tools \ 39 30 --build=${CLFS_HOST} --host=${CLFS_TARGET} \ 40 --disable-perl-regexp --without-included-regex \ 41 --cache-file=config.cache</userinput></screen> 31 --without-included-regex</userinput></screen> 42 32 43 33 <variablelist os="cb"> 44 <title>The meaning of the configure options:</title>34 <title>The meaning of the new configure option:</title> 45 35 46 36 <varlistentry> 47 <term><parameter>-- disable-perl-regexp</parameter></term>37 <term><parameter>--without-included-regex</parameter></term> 48 38 <listitem> 49 <para> This ensures that the <command>grep</command> program50 does not get linked against a Perl Compatible Regular Expression51 (PCRE) library that may be present on the host but will not be52 available when building the final system.</para>39 <para>When cross-compiling, Grep's <command>configure</command> 40 assumes there is no usable <filename>regex.h</filename> installed and 41 instead uses the one included with Grep. This switch forces the use of 42 the regex functions from EGLIBC.</para> 53 43 </listitem> 54 44 </varlistentry> -
BOOK/temp-system/common/m4.xml
rec008670 r229ed25 30 30 gl_cv_func_mbrtowc_incomplete_state=yes 31 31 gl_cv_func_mbrtowc_sanitycheck=yes 32 gl_cv_func_mbrtowc_null_arg=yes 32 gl_cv_func_mbrtowc_null_arg1=yes 33 gl_cv_func_mbrtowc_null_arg2=yes 33 34 gl_cv_func_mbrtowc_retval=yes 34 35 gl_cv_func_mbrtowc_nul_retval=yes -
BOOK/temp-system/common/mpc.xml
rec008670 r229ed25 25 25 <para os="a">Prepare MPC for compilation:</para> 26 26 27 <screen os="b"><userinput> EGREP="grep -E"./configure --prefix=/tools \27 <screen os="b"><userinput>./configure --prefix=/tools \ 28 28 --build=${CLFS_HOST} --host=${CLFS_TARGET}</userinput></screen> 29 29 -
BOOK/temp-system/common/mpfr.xml
rec008670 r229ed25 23 23 <title>Installation of MPFR</title> 24 24 25 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 26 href="../../final-system/common/mpfr.xml" 27 xpointer="xpointer(//*[@os='p1'])"/> 28 29 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 30 href="../../final-system/common/mpfr.xml" 31 xpointer="xpointer(//*[@os='p2'])"/> 32 25 33 <para os="a">Prepare MPFR for compilation:</para> 26 34 27 35 <screen os="b"><userinput>./configure --prefix=/tools \ 28 36 --build=${CLFS_HOST} --host=${CLFS_TARGET} \ 29 --enable-shared --with-gmp=/tools</userinput></screen>37 --enable-shared</userinput></screen> 30 38 31 39 <para os="c">Compile the package:</para> -
BOOK/temp-system/common/ncurses.xml
rec008670 r229ed25 37 37 38 38 <variablelist os="c"> 39 <title>The meaning of the configure options:</title>39 <title>The meaning of the new configure options:</title> 40 40 41 41 <varlistentry> -
BOOK/temp-system/common/patch.xml
rec008670 r229ed25 23 23 <title>Installation of Patch</title> 24 24 25 <para os="cc1">When cross-compiling configure cannot properly detect the26 existance of certain features. Override this behaviour:</para>27 28 <screen os="cc2"><userinput>echo "ac_cv_func_strnlen_working=yes" > config.cache</userinput></screen>29 30 25 <para os="a">Prepare Patch for compilation:</para> 31 26 32 27 <screen os="b"><userinput>./configure --prefix=/tools \ 33 --build=${CLFS_HOST} --host=${CLFS_TARGET} \ 34 --cache-file=config.cache</userinput></screen> 28 --build=${CLFS_HOST} --host=${CLFS_TARGET}</userinput></screen> 35 29 36 30 <para os="c">Compile the package:</para> -
BOOK/temp-system/common/tar.xml
rec008670 r229ed25 30 30 gl_cv_func_btowc_eof=yes 31 31 ac_cv_func_malloc_0_nonnull=yes 32 ac_cv_func_realloc_0_nonnull=yes33 32 gl_cv_func_mbrtowc_incomplete_state=yes 34 33 gl_cv_func_mbrtowc_nul_retval=yes 35 gl_cv_func_mbrtowc_null_arg=yes 34 gl_cv_func_mbrtowc_null_arg1=yes 35 gl_cv_func_mbrtowc_null_arg2=yes 36 36 gl_cv_func_mbrtowc_retval=yes 37 37 gl_cv_func_wcrtomb_retval=yes -
BOOK/temp-system/common/texinfo.xml
rec008670 r229ed25 34 34 xpointer="xpointer(//*[@os='c'])"/> 35 35 36 <screen os="d"><userinput>make -C tools/gnulib/lib 37 make -C tools 38 make</userinput></screen> 36 <screen os="d"><userinput>make</userinput></screen> 39 37 40 38 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" -
BOOK/temp-system/common/vim.xml
rec008670 r229ed25 31 31 xpointer="xpointer(//*[@os='p2'])"/> 32 32 33 <para os="s1">The configure script has a single hard coded test that34 cannot be bypassed with a cache entry. Disable this test with the35 following command:</para>36 37 <screen os="s2"><userinput>sed -i "/using uint32_t/s/as_fn_error/#&/" src/auto/configure</userinput></screen>38 39 33 <para os="c1">The <command>configure</command> script is full of logic 40 34 that aborts at the first sign of cross compiling. Work around this by … … 47 41 vim_cv_stat_ignores_slash=no 48 42 vim_cv_terminfo=yes 49 vim_cv_tgent=zero50 43 vim_cv_toupper_broken=no 51 44 vim_cv_tty_group=world 52 ac_cv_sizeof_int=453 ac_cv_sizeof_long=454 ac_cv_sizeof_time_t=455 ac_cv_sizeof_off_t=456 45 EOF</userinput></screen> 57 46
Note:
See TracChangeset
for help on using the changeset viewer.