Hi Chris,<br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>I realized that the problem is caused by the<br>
binutils-2.20-branch_update-1.patch. When not using it I was able to<br>
build binutils. Also I was not having problems with the same patch later<br>
in the book, it was compiling fine in the following chapters.<br>
</div></blockquote><br>
This must be either some strange host system issue, or you're missing something. If you can, please paste the command history for the clfs user (just type "history").<br></blockquote></div><br>No problem at all. I had several failed builds earlier because of this binutils issue, this is the last try, where I finally found the solution. I experimented with a lot of things, changed some switches I think were buggy, you will see a command difference marked with red (line 93), for example, where I think the book command is false. Until binutils compiles, everything is logged with tee. When I retried to build a package, I deleted the earlier build with mc, so you won't see the rmdir commands in the log. I inserted some comments for easier understanding. <br>
<br><pre> 1 env<br> 2 cd ..<br> 3 tar -xzvf file-5.03.tar.gz <br> 4 cd file-5.03<br> 5 ./configure --prefix=/cross-tools 2>&1 | tee file_conf_5_6.log<br> 6 make 2>&1 | tee file_make_5_6.log<br>
7 cd ..<br> 8 tar -xzvf ncurses-5.7.tar.gz <br> 9 patch -Np1 -i ../ncurses-5.7-bash_fix-1.patch<br> 10 cd ncurses-5.7<br> 11 patch -Np1 -i ../ncurses-5.7-bash_fix-1.patch<br> 12 ./configure --prefix=/cross-tools \ 2>&1 | tee <br>
13 ./configure --prefix=/cross-tools \ --without-debug --without-shared 2>&1 | tee ncurses_conf_5.6.log<br> 14 ./configure --prefix=/cross-tools --without-debug --without-shared 2>&1 | tee ncurses_conf_5.6.log<br>
15 make -C include 2>&1 | tee ncurses_mkinc_5.6.log<br> 16 make -C include<br> 17 cd ..<br> 18 tar -xzvf ncurses-5.7.tar.gz <br> 19 cd ncurses-5.7<br> 20 patch -Np1 -i ../ncurses-5.7-bash_fix-1.patch<br>
21 ./configure --prefix=/cross-tools --without-debug --without-shared<br> 22 make -C include<br> 23 make -C progs tic 2>&1 | tee ncurses_mkprog_5.6.log<br> 24 env<br> 25 install -m755 progs/tic /cross-tools/bin<br>
26 chown -v clfs ${CLFS}/tools<br> 27 chown -v clfs ${CLFS}/cross-tools<br> 28 install -m755 progs/tic /cross-tools/bin<br> 29 cd <br> 30 tar -xzvf file-5.03.tar.gz <br> 31 cd /mnt/pardus/sources/<br> 32 tar -xzvf file-5.03.tar.gz <br>
33 cd file-5.03<br> 34 ./configure --prefix=/cross-tools<br> 35 make<br> 36 make install<br> 37 make install<br> 38 cd ..<br> 39 cd ncurses-5.7<br> 40 install -m755 progs/tic /cross-tools/bin<br> 41 ls -l<br>
42 cd ..<br> 43 tar -xjvf gmp-4.3.1.tar.bz2 <br> 44 cd gmp-4.3.1<br> 45 CPPFLAGS=-fexceptions ./configure --prefix=/cross-tools --enable-cxx 2>&1 | tee gmp_conf_5_8.log<br> 46 make 2>&1 | tee gmp_make_5_8.log<br>
47 make install<br> 48 cd ..<br> 49 tar -xjvf mpfr-2.4.1.tar.bz2 <br> 50 tar -xzvf mpfr-2.4.1.tar.bz2 <br> 51 cd mpfr-2.4.1<br> 52 env<br> 53 patch -Np1 -i ../mpfr-2.4.1-branch_update-2.patch<br> 54 LDFLAGS="-Wl,-rpath,/cross-tools/lib" ./configure --prefix=/cross-tools --enable-shared --with-gmp=/cross-tools 2>&1 | tee mpfr_conf_5_9.log<br>
55 make 2>&1 | tee mpfr_make_5_9.log<br> 56 make install<br> 57 cd ..<br> 58 tar -xjvf ppl-0.10.2.tar.bz2 <br> 59 env<br> 60 cd ppl-0.10.2<br> 61 LDFLAGS="-Wl,-rpath,/cross-tools/lib" ./configure --prefix=/cross-tools --enable-shared --enable-interfaces="c,cxx" --disable-optimization --with-libgmp-prefix=/cross-tools --with-libgmpxx-prefix=/cross-tools<br>
62 LDFLAGS="-Wl,-rpath,/cross-tools/lib" ./configure --prefix=/cross-tools --enable-shared --enable-interfaces="c,cxx" --disable-optimization --with-libgmp-prefix=/cross-tools --with-libgmpxx-prefix=/cross-tools 2>&1 | tee ppl_conf_5_10.log<br>
63 make 2>&1 | tee ppl_make_5_10.log<br> 64 make install<br> 65 cd ..<br> 66 tar -xzvf cloog-ppl-0.15.7.tar.gz <br> 67 cd cloog-ppl-0.15.7<br> 68 env<br> 69 cp -v configure{,.orig}<br> 70 sed "/LD_LIBRARY_PATH=/d" configure.orig > configure<br>
71 LDFLAGS="-Wl,-rpath,/cross-tools/lib" ./configure --prefix=/cross-tools --enable-shared --with-bits=gmp --with-gmp=/cross-tools --with-ppl=/cross-tools 2>&1 | tee cloog_conf_5_11.log<br> 72 env<br>
73 make 2>&1 | tee cloog_make_5_11.log<br> 74 env<br> 75 make install<br> 76 cd ..<br> 77 tar -xjvf binutils-2.20.tar.bz2 <br> 78 cd binutils-2.20<br> 79 patch -Np1 -i ../binutils-2.20-branch_update-1.patch<br>
80 patch -Np1 -i ../binutils-2.20-genscripts_multilib-1.patch<br> 81 mkdir -v ../binutils-build<br> 82 cd ../binutils-build<br> 83 env<br> 84 AR=ar AS=as ../binutils-2.20/configure --prefix=/cross-tools --host=${CLFS_HOST} --target=${CLFS_TARGET} --with-sysroot=${CLFS} --with-lib-path=/tools/lib --disable-nls --enable-shared --enable-64-bit-bfd 2>&1 | tee binutils_conf_5_12.log<br>
85 cd ..<br> 86 tar -xjvf binutils-2.20.tar.bz2 <br> 87 cd binutils-2.20<br> 88 patch -Np1 -i ../binutils-2.20-branch_update-1.patch<br> 89 patch -Np1 -i ../binutils-2.20-genscripts_multilib-1.patch<br> 90 mkdir -v ../binutils-build<br>
91 cd ../binutils-build<br> 92 AR=ar AS=as ../binutils-2.20/configure --prefix=/cross-tools --host=${CLFS_HOST} --target=${CLFS_TARGET} --with-sysroot=${CLFS} --with-lib-path=/tools/lib --disable-nls --enable-shared \ /* This was interrupted with CTRL-C */<br>
93 AR=ar AS=as ../binutils-2.20/configure --prefix=/cross-tools --host=${CLFS_HOST} --target=${CLFS_TARGET} --with-sysroot=${CLFS} --with-lib-path=/<span style="color: rgb(255, 0, 0);">cross-</span>tools/lib --disable-nls --enable-shared --enable-64-bit-bfd 2>&1 | tee binutils_conf_5_12.log<br>
94 env<br> 95 make configure-host 2>&1 | tee binutils_cfhost_5_12.log<br> 96 make 2>&1 | tee binutils_make_5_12.log<br> 97 make install<br> 98 cp -v ../binutils-2.20/include/libiberty.h /tools/include<br>
99 cd ..<br> 100 tar -xjvf gcc-4.4.2.tar.bz2 <br> 101 cd gcc-4.4.2<br> 102 patch -Np1 -i ../gcc-4.4.2-branch_update-1.patch<br> 103 patch -Np1 -i ../gcc-4.4.2-specs-1.patch<br> 104 echo -en '#undef STANDARD_INCLUDE_DIR\n#define STANDARD_INCLUDE_DIR "/tools/include/"\n\n' >> gcc/config/linux.h<br>
105 echo -en '\n#undef STANDARD_STARTFILE_PREFIX_1\n#define STANDARD_STARTFILE_PREFIX_1 "/cross-tools/lib/"\n' >> gcc/config/linux.h<br> 106 echo -en '\n#undef STANDARD_STARTFILE_PREFIX_2\n#define STANDARD_STARTFILE_PREFIX_2 ""\n' >> gcc/config/linux.h<br>
107 cp -v gcc/Makefile.in{,.orig}<br> 108 sed -e "s@\(^CROSS_SYSTEM_HEADER_DIR =\).*@\1 /tools/include@g" gcc/Makefile.in.orig > gcc/Makefile.in<br> 109 touch /tools/include/limits.h<br> 110 mkdir -v ../gcc-build<br>
111 cd ../gcc-build<br> 112 env<br> 113 AR=ar LDFLAGS="-Wl,-rpath,/cross-tools/lib" ../gcc-4.4.2/configure --prefix=/cross-tools --build=${CLFS_HOST} --host=${CLFS_HOST} --target=${CLFS_TARGET} --with-sysroot=${CLFS} --with-local-prefix=/tools --disable-nls --disable-shared --with-mpfr=/cross-tools --with-gmp=/cross-tools --with-ppl=/cross-tools --with-cloog=/cross-tools --without-headers --with-newlib --disable-decimal-float --disable-libgomp --disable-libmudflap --disable-libssp --disable-threads --enable-languages=c 2>&1 | tee gcc_conf_5_13.log<br>
114 make all-gcc all-target-libgcc 2>&1 | tee gcc_make_5_13.log<br> 115 make install-gcc install-target-libgcc 2>&1 | tee gcc_mkinst_5_13.log<br> 116 cd ..<br> 117 tar -xjvf eglibc-2.10.1-20090825-r8873.tar.bz2 <br>
118 cd eglibc-2.10.1<br> 119 cp -v Makeconfig{,.orig}<br> 120 sed -e 's/-lgcc_eh//g' Makeconfig.orig > Makeconfig<br> 121 mkdir -v ../eglibc-build<br> 122 cd ../eglibc-build<br> 123 cat > config.cache << "EOF"<br>
124 libc_cv_forced_unwind=yes<br> 125 libc_cv_c_cleanup=yes<br> 126 libc_cv_gnu89_inline=yes<br> 127 EOF<br> 128 env<br> 129 BUILD_CC="gcc" CC="${CLFS_TARGET}-gcc ${BUILD32}" AR="${CLFS_TARGET}-ar" RANLIB="${CLFS_TARGET}-ranlib" CFLAGS="-march=$(cut -d- -f1 <<< $CLFS_TARGET32) -mtune=generic -g -O2" ../eglibc-2.10.1/configure --prefix=/tools --host=${CLFS_TARGET32} --build=${CLFS_HOST} --disable-profile --enable-add-ons --with-tls --enable-kernel=2.6.0 --with-__thread --with-binutils=/cross-tools/bin --with-headers=/tools/include --cache-file=config.cache 2>&1 | tee eglibc_conf_5_14.log<br>
130 env<br> 131 make > 2>&1 | tee gcc_make_5_14.log<br> 132 make 2>&1 | tee gcc_make_5_14.log<br> 133 make install<br> 134 cd ..<br> 135 tar -xjvf eglibc-2.10.1-20090825-r8873.tar.bz2 <br> 136 cd eglibc-2.10.1<br>
137 cp -v Makeconfig{,.orig}<br> 138 sed -e 's/-lgcc_eh//g' Makeconfig.orig > Makeconfig<br> 139 mkdir -v ../eglibc-build<br> 140 cd ../eglibc-build<br> 141 env<br> 142 cat > config.cache << "EOF"<br>
143 libc_cv_forced_unwind=yes<br> 144 libc_cv_c_cleanup=yes<br> 145 libc_cv_gnu89_inline=yes<br> 146 EOF<br> 147 echo "slibdir=/tools/lib64" >> configparms<br> 148 BUILD_CC="gcc" CC="${CLFS_TARGET}-gcc ${BUILD64}" AR="${CLFS_TARGET}-ar" RANLIB="${CLFS_TARGET}-ranlib" ../eglibc-2.10.1/configure --prefix=/tools --host=${CLFS_TARGET} --build=${CLFS_HOST} --libdir=/tools/lib64 --disable-profile --enable-add-ons --with-tls --enable-kernel=2.6.0 --with-__thread --with-binutils=/cross-tools/bin --with-headers=/tools/include --cache-file=config.cache 2>&1 | tee eglibc64_conf_5_15.log<br>
149 env<br> 150 make 2>&1 | tee eglibc64_make_5_15.log<br> 151 make install<br> 152 cd ..<br> 153 tar -xjvf gcc-4.4.2.tar.bz2 <br> 154 cd gcc-4.4.2<br> 155 patch -Np1 -i ../gcc-4.4.2-branch_update-1.patch<br>
156 patch -Np1 -i ../gcc-4.4.2-specs-1.patch<br> 157 echo -en '#undef STANDARD_INCLUDE_DIR\n#define STANDARD_INCLUDE_DIR "/tools/include/"\n\n' >> gcc/config/linux.h<br> 158 echo -en '\n#undef STANDARD_STARTFILE_PREFIX_1\n#define STANDARD_STARTFILE_PREFIX_1 "/cross-tools/lib/"\n' >> gcc/config/linux.h<br>
159 echo -en '\n#undef STANDARD_STARTFILE_PREFIX_2\n#define STANDARD_STARTFILE_PREFIX_2 ""\n' >> gcc/config/linux.h<br> 160 cp -v gcc/Makefile.in{,.orig}<br> 161 sed -e "s@\(^CROSS_SYSTEM_HEADER_DIR =\).*@\1 /tools/include@g" gcc/Makefile.in.orig > gcc/Makefile.in<br>
162 mkdir -v ../gcc-build<br> 163 cd ../gcc-build<br> 164 AR=ar LDFLAGS="-Wl,-rpath,/cross-tools/lib" ../gcc-4.4.2/configure --prefix=/cross-tools --build=${CLFS_HOST} --target=${CLFS_TARGET} --host=${CLFS_HOST} --with-sysroot=${CLFS} --with-local-prefix=/tools --disable-nls --enable-shared --enable-languages=c,c++ --enable-__cxa_atexit --with-mpfr=/cross-tools --with-gmp=/cross-tools --enable-c99 --with-ppl=/cross-tools --with-cloog=/cross-tools --enable-long-long --enable-threads=posix 2>&1 | tee gcc_conf_5_16.log<br>
165 make AS_FOR_TARGET="${CLFS_TARGET}-as" LD_FOR_TARGET="${CLFS_TARGET}-ld" 2>&1 | tee gcc_make_5_16.log<br> 166 cd ..<br> 167 tar -xjvf gcc-4.4.2.tar.bz2 <br> 168 cd gcc-4.4.2<br>
169 patch -Np1 -i ../gcc-4.4.2-branch_update-1.patch<br> 170 patch -Np1 -i ../gcc-4.4.2-specs-1.patch<br> 171 echo -en '#undef STANDARD_INCLUDE_DIR\n#define STANDARD_INCLUDE_DIR "/tools/include/"\n\n' >> gcc/config/linux.h<br>
172 echo -en '\n#undef STANDARD_STARTFILE_PREFIX_1\n#define STANDARD_STARTFILE_PREFIX_1 "/tools/lib/"\n' >> gcc/config/linux.h<br> 173 echo -en '\n#undef STANDARD_STARTFILE_PREFIX_2\n#define STANDARD_STARTFILE_PREFIX_2 ""\n' >> gcc/config/linux.h<br>
174 cp -v gcc/Makefile.in{,.orig}<br> 175 sed -e "s@\(^CROSS_SYSTEM_HEADER_DIR =\).*@\1 /tools/include@g" gcc/Makefile.in.orig > gcc/Makefile.in<br> 176 mkdir -v ../gcc-build<br> 177 cd ../gcc-build<br>
178 AR=ar LDFLAGS="-Wl,-rpath,/cross-tools/lib" ../gcc-4.4.2/configure --prefix=/cross-tools --build=${CLFS_HOST} --target=${CLFS_TARGET} --host=${CLFS_HOST} --with-sysroot=${CLFS} --with-local-prefix=/tools --disable-nls --enable-shared --enable-languages=c,c++ --enable-__cxa_atexit --with-mpfr=/cross-tools --with-gmp=/cross-tools --enable-c99 --with-ppl=/cross-tools --with-cloog=/cross-tools --enable-long-long --enable-threads=posix 2>&1 | tee gcc_conf_5_16.log<br>
179 make AS_FOR_TARGET="${CLFS_TARGET}-as" LD_FOR_TARGET="${CLFS_TARGET}-ld" 2>&1 | tee gcc_make_5_16.log<br> 180 make install<br> 181 echo ${CLFS}<br> 182 env<br> 183 export CC="${CLFS_TARGET}-gcc"<br>
184 export CXX="${CLFS_TARGET}-g++"<br> 185 export AR="${CLFS_TARGET}-ar"<br> 186 export AS="${CLFS_TARGET}-as"<br> 187 export RANLIB="${CLFS_TARGET}-ranlib"<br> 188 export LD="${CLFS_TARGET}-ld"<br>
189 export STRIP="${CLFS_TARGET}-strip"<br> 190 env<br> 191 echo export CC=\""${CC}\"" >> ~/.bashrc<br> 192 echo export CXX=\""${CXX}\"" >> ~/.bashrc<br>
193 echo export AR=\""${AR}\"" >> ~/.bashrc<br> 194 echo export AS=\""${AS}\"" >> ~/.bashrc<br> 195 echo export RANLIB=\""${RANLIB}\"" >> ~/.bashrc<br>
196 echo export LD=\""${LD}\"" >> ~/.bashrc<br> 197 echo export STRIP=\""${STRIP}\"" >> ~/.bashrc<br> 198 cd ..<br> 199 tar -xjvf gmp-4.3.1.tar.bz2 <br> 200 cd gmp-4.3.1<br>
201 env<br> 202 HOST_CC=gcc CPPFLAGS=-fexceptions CC="${CC} \<br> 203 ${BUILD64}" CXX="${CXX} ${BUILD64}" ./configure --prefix=/tools --build=${CLFS_HOST} --host=${CLFS_TARGET} --libdir=/tools/lib64 --enable-cxx 2>&1 | tee gmp_conf_6_3.log<br>
204 make 2>&1 | tee gmp_make_6_3.log<br> 205 make install<br> 206 cd ..<br> 207 tar -xjvf mpfr-2.4.1.tar.bz2 <br> 208 tar -xzvf mpfr-2.4.1.tar.bz2 <br> 209 cd mpfr-2.4.1<br> 210 patch -Np1 -i ../mpfr-2.4.1-branch_update-2.patch<br>
211 CC="${CC} ${BUILD64}" ./configure --prefix=/tools --build=${CLFS_HOST} --host=${CLFS_TARGET} --libdir=/tools/lib64 --enable-shared 2>&1 | tee mpfr_conf_6_4.log<br> 212 make 2>&1 | tee mpfr_make_6_4.log<br>
213 make install<br> 214 cd ..<br> 215 tar -xjvf ppl-0.10.2.tar.bz2 <br> 216 cd ppl-0.10.2<br> 217 CC="${CC} ${BUILD64}" ./configure --prefix=/tools --build=${CLFS_HOST} --host=${CLFS_TARGET} --enable-interfaces="c,cxx" --libdir=/tools/lib64 --enable-shared --disable-optimization --with-libgmp-prefix=/tools --with-libgmpxx-prefix=/tools 2>&1 | tee ppl_conf_6_5.log<br>
218 make 2>&1 | tee ppl_make_6_5.log<br> 219 make install<br> 220 cd ..<br> 221 tar -xzvf cloog-ppl-0.15.7.tar.gz <br> 222 cd cloog-ppl-0.15.7<br> 223 env<br> 224 cp -v configure{,.orig}<br> 225 sed "/LD_LIBRARY_PATH=/d" configure.orig > configure<br>
226 CC="${CC} ${BUILD64}" ./configure --prefix=/tools --build=${CLFS_HOST} --host=${CLFS_TARGET} --with-bits=gmp --libdir=/tools/lib64 --enable-shared --with-gmp=/tools --with-ppl=/tools 2>&1 | tee cloog_conf_6_6.log<br>
227 make 2>&1 | tee cloog_make_6_6.log<br> 228 make install<br> 229 cd ..<br> 230 tar -xzvf zlib-1.2.3.tar.gz <br> 231 cd zlib-1.2.3<br> 232 CC="${CC} ${BUILD64}" ./configure --prefix=/tools --shared --libdir=/tools/lib64 2>&1 | tee zlib_conf_6_7.log<br>
233 make 2>&1 | tee zlib_make_6_7.conf<br> 234 make install<br> 235 cd ..<br> 236 tar -xjvf binutils-2.20.tar.bz2 <br> 237 cd binutils-2.20<br> 238 patch -Np1 -i ../binutils-2.20-genscripts_multilib-1.patch<br>
239 patch -Np1 -i ../binutils-2.20-branch_update-1.patch<br> 240 mkdir -v ../binutils-build<br> 241 cd ../binutils-build<br> 242 CC="${CC} ${BUILD64}" ../binutils-2.20/configure --prefix=/tools --libdir=/tools/lib64 --with-lib-path=/tools/lib64:/tools/lib --build=${CLFS_HOST} --host=${CLFS_TARGET} --target=${CLFS_TARGET} --disable-nls --enable-shared --enable-64-bit-bfd 2>&1 | tee binutils_conf_6_8.log<br>
243 make configure-host 2>&1 | tee binutils_mkhost_6_6.log<br> 244 make 2>&1 | tee binutils_make_6_6.log /* Does not compile, delete, retry*/<br> 245 env<br> 246 echo $LD_LIBRARY_PATH<br> 247 cd ..<br>
248 tar -xjvf binutils-2.20.tar.bz2 <br> 249 cd binutils-2.20<br> 250 patch -Np1 -i ../binutils-2.20-genscripts_multilib-1.patch<br> 251 mkdir -v ../binutils-build /* Do not patch with branch_update-1 */<br> 252 cd ../binutils-build<br>
253 CC="${CC} ${BUILD64}" ../binutils-2.20/configure --prefix=/tools --libdir=/tools/lib64 --with-lib-path=/tools/lib64:/tools/lib --build=${CLFS_HOST} --host=${CLFS_TARGET} --target=${CLFS_TARGET} --disable-nls --enable-shared --enable-64-bit-bfd 2>&1 | tee binutils_conf_6_8.log<br>
254 make configure-host 2>&1 | tee binutils_mkhost_6_6.log<br> 255 make 2>&1 | tee binutils_make_6_6.log /* Compiles fine, continue */<br> 256 make install<br> 257 cd ..<br> 258 tar -xjvf gcc-4.4.2.tar.bz2 <br>
259 cd gcc-4.4.2<br> 260 patch -Np1 -i ../gcc-4.4.2-branch_update-1.patch<br> 261 patch -Np1 -i ../gcc-4.4.2-specs-1.patch<br> 262 echo -en '#undef STANDARD_INCLUDE_DIR\n#define STANDARD_INCLUDE_DIR "/tools/include/"\n\n' >> gcc/config/linux.h<br>
263 echo -en '\n#undef STANDARD_STARTFILE_PREFIX_1\n#define STANDARD_STARTFILE_PREFIX_1 "/tools/lib/"\n' >> gcc/config/linux.h<br> 264 echo -en '\n#undef STANDARD_STARTFILE_PREFIX_2\n#define STANDARD_STARTFILE_PREFIX_2 ""\n' >> gcc/config/linux.h<br>
265 cp -v gcc/Makefile.in{,.orig}<br> 266 sed -e 's@\(^NATIVE_SYSTEM_HEADER_DIR =\).*@\1 /tools/include@g' gcc/Makefile.in.orig > gcc/Makefile.in<br> 267 mkdir -v ../gcc-build<br> 268 cd ../gcc-build<br>
269 CC="${CC} ${BUILD64}" CXX="${CXX} ${BUILD64}" ../gcc-4.4.2/configure --prefix=/tools --libdir=/tools/lib64 --build=${CLFS_HOST} --host=${CLFS_TARGET} --target=${CLFS_TARGET} --with-local-prefix=/tools --enable-long-long --enable-c99 --enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-nls --enable-languages=c,c++ --disable-libstdcxx-pch<br>
270 cp Makefile{,.orig}<br> 271 sed "/^HOST_\(GMP\|PPL\|CLOOG\)\(LIBS\|INC\)/s:-[IL]/\(lib\|include\)::" Makefile.orig > Makefile<br> 272 make AS_FOR_TARGET="${AS}" LD_FOR_TARGET="${LD}"<br>
273 make install<br> 274 cd ..<br> 275 tar -xzvf ncurses-5.7.tar.gz <br> 276 cd ncurses-5.7<br> 277 patch -Np1 -i ../ncurses-5.7-bash_fix-1.patch<br> 278 CC="${CC} ${BUILD64}" CXX="${CXX} ${BUILD64}" ./configure --prefix=/tools --with-shared --build=${CLFS_HOST} --host=${CLFS_TARGET} --without-debug --without-ada --enable-overwrite --with-build-cc=gcc --libdir=/tools/lib64<br>
279 make<br> 280 make install<br> 281 cd ..<br> 282 tar -xzvf bash-4.0.tar.gz <br> 283 cd bash-4.0<br> 284 patch -Np1 -i ../bash-4.0-branch_update-7.patch<br> 285 cat > config.cache << "EOF"<br>
286 ac_cv_func_mmap_fixed_mapped=yes<br> 287 ac_cv_func_strcoll_works=yes<br> 288 ac_cv_func_working_mktime=yes<br> 289 bash_cv_func_sigsetjmp=present<br> 290 bash_cv_getcwd_malloc=yes<br> 291 bash_cv_job_control_missing=present<br>
292 bash_cv_printf_a_format=yes<br> 293 bash_cv_sys_named_pipes=present<br> 294 bash_cv_ulimit_maxfds=yes<br> 295 bash_cv_under_sys_siglist=yes<br> 296 bash_cv_unusable_rtsigs=no<br> 297 gt_cv_int_divbyzero_sigfpe=yes<br>
298 EOF<br> 299 CC="${CC} ${BUILD64}" CXX="${CXX} ${BUILD64}" ./configure --prefix=/tools --build=${CLFS_HOST} --host=${CLFS_TARGET} --without-bash-malloc --cache-file=config.cache<br> 300 make<br>
301 make install<br> 302 ln -sv bash /tools/bin/sh<br> 303 cd ..<br> 304 tar -xjvf bison-2.4.1.tar.bz2 <br> 305 cd bison-2.4.1<br> 306 CC="${CC} ${BUILD64}" ./configure --prefix=/tools --build=${CLFS_HOST} --host=${CLFS_TARGET}<br>
307 make<br> 308 make install<br> 309 cd ..<br> 310 tar -xzvf bzip2-1.0.5.tar.gz <br> 311 cp -v Makefile{,.orig}<br> 312 sed -e 's@^\(all:.*\) test@\1@g' -e 's@/lib\(/\| \|$\)@/lib64\1@g' Makefile.orig > Makefile<br>
313 make CC="${CC} ${BUILD64}" AR="${AR}" RANLIB="${RANLIB}"<br> 314 cd bzip2-1.0.5<br> 315 cp -v Makefile{,.orig}<br> 316 sed -e 's@^\(all:.*\) test@\1@g' -e 's@/lib\(/\| \|$\)@/lib64\1@g' Makefile.orig > Makefile<br>
317 make CC="${CC} ${BUILD64}" AR="${AR}" RANLIB="${RANLIB}"<br> 318 make PREFIX=/tools install<br> 319 cd ..<br> 320 tar -xzvf coreutils-7.6.tar.gz <br> 321 cd coreutils-7.6<br> 322 cat > config.cache << EOF<br>
323 fu_cv_sys_stat_statfs2_bsize=yes<br> 324 gl_cv_func_rename_trailing_slash_bug=no<br> 325 gl_cv_func_working_mkstemp=yes<br> 326 EOF<br> 327 CC="${CC} ${BUILD64}" ./configure --prefix=/tools --build=${CLFS_HOST} --host=${CLFS_TARGET} --enable-install-program=hostname --cache-file=config.cache<br>
328 make<br> 329 make install<br> 330 cd ..<br> 331 tar -xzvf diffutils-2.8.7.tar.gz <br> 332 cd diffutils-2.8.7<br> 333 CC="${CC} ${BUILD64}" ./configure --prefix=/tools --build=${CLFS_HOST} --host=${CLFS_TARGET}<br>
334 make<br> 335 make install<br> 336 cd ..<br> 337 tar -xzvf findutils-4.4.2.tar.gz <br> 338 cd findutils-4.4.2<br> 339 echo "gl_cv_func_wcwidth_works=yes" > config.cache<br> 340 echo "ac_cv_func_fnmatch_gnu=yes" >> config.cache<br>
341 CC="${CC} ${BUILD64}" ./configure --prefix=/tools --build=${CLFS_HOST} --host=${CLFS_TARGET} --cache-file=config.cache<br> 342 make<br> 343 make install<br> 344 cd ..<br> 345 tar -xjvf file-5.03.tar.gz <br>
346 tar -xzvf file-5.03.tar.gz <br> 347 cd file-5.03<br> 348 patch -Np1 -i ../file-5.03-cross_compile-1.patch<br> 349 CC="${CC} ${BUILD64}" ./configure --prefix=/tools --libdir=/tools/lib64 --build=${CLFS_HOST} --host=${CLFS_TARGET}<br>
350 make<br> 351 make install<br> 352 cd ..<br> 353 tar -xjvf flex-2.5.35.tar.bz2 <br> 354 cd flex-2.5.35<br> 355 patch -Np1 -i ../flex-2.5.35-gcc44-1.patch<br> 356 cp -v Makefile.in{,.orig}<br> 357 sed "s/-I@includedir@//g" Makefile.in.orig > Makefile.in<br>
358 cat > config.cache << EOF<br> 359 ac_cv_func_malloc_0_nonnull=yes<br> 360 ac_cv_func_realloc_0_nonnull=yes<br> 361 EOF<br> 362 CC="${CC} ${BUILD64}" ./configure --prefix=/tools --build=${CLFS_HOST} --host=${CLFS_TARGET} --cache-file=config.cache<br>
363 make<br> 364 make install<br> 365 cd ..<br> 366 tar -xjvf gawk-3.1.7.tar.bz2 <br> 367 cd gawk-3.1.7<br> 368 CC="${CC} ${BUILD64}" ./configure --prefix=/tools --build=${CLFS_HOST} --host=${CLFS_TARGET} --disable-libsigsegv<br>
369 make<br> 370 make install<br> 371 cd ..<br> 372 tar -xzvf gettext-0.17.tar.gz <br> 373 cd gettext-0.17<br> 374 cd gettext-tools<br> 375 echo "gl_cv_func_wcwidth_works=yes" > config.cache<br>
376 CC="${CC} ${BUILD64}" CXX="${CXX} ${BUILD64}" ./configure --prefix=/tools --disable-shared --build=${CLFS_HOST} --host=${CLFS_TARGET} --cache-file=config.cache<br> 377 make -C gnulib-lib<br>
378 make -C src msgfmt<br> 379 cp -v src/msgfmt /tools/bin<br> 380 cd ..<br> 381 cd ..<br> 382 tar -xjvf grep-2.5.4.tar.bz2 <br> 383 cd grep-2.5.4<br> 384 CC="${CC} ${BUILD64}" ./configure --prefix=/tools --build=${CLFS_HOST} --host=${CLFS_TARGET} --disable-perl-regexp --without-included-regex<br>
385 make<br> 386 make install<br> 387 cd ..<br> 388 tar -xzvf gzip-1.3.12.tar.gz <br> 389 cd gzip-1.3.12<br> 390 sed -i "s/futimens/gl_&/" $(grep -lr futimens *)<br> 391 CC="${CC} ${BUILD64}" ./configure --prefix=/tools --build=${CLFS_HOST} --host=${CLFS_TARGET}<br>
392 make<br> 393 make install<br> 394 cd ..<br> 395 tar -xjvf m4-1.4.13.tar.bz2 <br> 396 cd m4-1.4.13<br> 397 cat > config.cache << EOF<br> 398 gl_cv_func_btowc_eof=yes<br> 399 gl_cv_func_mbrtowc_incomplete_state=yes<br>
400 gl_cv_func_mbrtowc_sanitycheck=yes<br> 401 gl_cv_func_mbrtowc_null_arg=yes<br> 402 gl_cv_func_mbrtowc_retval=yes<br> 403 gl_cv_func_mbrtowc_nul_retval=yes<br> 404 gl_cv_func_wcrtomb_retval=yes<br> 405 gl_cv_func_wctob_works=yes<br>
406 EOF<br> 407 CC="${CC} ${BUILD64}" ./configure --prefix=/tools --build=${CLFS_HOST} --host=${CLFS_TARGET} --cache-file=config.cache<br> 408 make<br> 409 make install<br> 410 cd ..<br> 411 tar -xjvf make-3.81.tar.bz2 <br>
412 cd make-3.81<br> 413 CC="${CC} ${BUILD64}" ./configure --prefix=/tools --build=${CLFS_HOST} --host=${CLFS_TARGET}<br> 414 make<br> 415 make install<br> 416 cd ..<br> 417 tar -xzvf patch-2.5.9.tar.gz <br>
418 cd patch-2.5.9<br> 419 CC="${CC} ${BUILD64}" ./configure --prefix=/tools --build=${CLFS_HOST} --host=${CLFS_TARGET}<br> 420 make<br> 421 make install<br> 422 cd ..<br> 423 tar -xzvf sed-4.2.1.tar.bz2 <br>
424 tar -xjvf sed-4.2.1.tar.bz2 <br> 425 cd sed-4.2.1<br> 426 CC="${CC} ${BUILD64}" ./configure --prefix=/tools --build=${CLFS_HOST} --host=${CLFS_TARGET}<br> 427 make<br> 428 make install<br> 429 cd ..<br>
430 tar -xjvf tar-1.22.tar.bz2 <br> 431 cd tar-1.22<br> 432 cat > config.cache << EOF<br> 433 gl_cv_func_wcwidth_works=yes<br> 434 gl_cv_func_btowc_eof=yes<br> 435 ac_cv_func_malloc_0_nonnull=yes<br>
436 ac_cv_func_realloc_0_nonnull=yes<br> 437 gl_cv_func_mbrtowc_incomplete_state=yes<br> 438 gl_cv_func_mbrtowc_nul_retval=yes<br> 439 gl_cv_func_mbrtowc_null_arg=yes<br> 440 gl_cv_func_mbrtowc_retval=yes<br> 441 gl_cv_func_wcrtomb_retval=yes<br>
442 EOF<br> 443 CC="${CC} ${BUILD64}" ./configure --prefix=/tools --build=${CLFS_HOST} --host=${CLFS_TARGET} --cache-file=config.cache<br> 444 make<br> 445 make install<br> 446 cd ..<br> 447 tar -xzvf texinfo-4.13a.tar.gz <br>
448 cd texinfo-4.13<br> 449 CC="${CC} ${BUILD64}" ./configure --prefix=/tools --build=${CLFS_HOST} --host=${CLFS_TARGET}<br> 450 make -C tools/gnulib/lib<br> 451 make -C tools<br> 452 make<br> 453 make install<br>
454 cd ..<br> 455 tar -xjvf vim-7.2.tar.bz2 <br> 456 cd vim<br> 457 cd vim-7.2<br> 458 patch -Np1 -i ../vim-7.2-branch_update-21.patch<br> 459 cd vim72/<br> 460 patch -Np1 -i ../vim-7.2-branch_update-21.patch<br>
461 cat > src/auto/config.cache << "EOF"<br> 462 vim_cv_getcwd_broken=no<br> 463 vim_cv_memmove_handles_overlap=yes<br> 464 vim_cv_stat_ignores_slash=no<br> 465 vim_cv_terminfo=yes<br> 466 vim_cv_tgent=zero<br>
467 vim_cv_toupper_broken=no<br> 468 vim_cv_tty_group=world<br> 469 ac_cv_sizeof_int=4<br> 470 EOF<br> 471 echo '#define SYS_VIMRC_FILE "/tools/etc/vimrc"' >> src/feature.h<br> 472 CC="${CC} ${BUILD64}" CXX="${CXX} ${BUILD64}" CPPFLAGS="-DUNUSED=" ./configure --build=${CLFS_HOST} --host=${CLFS_TARGET} --prefix=/tools --enable-multibyte --enable-gui=no --disable-gtktest --disable-xim --with-features=normal --disable-gpm --without-x --disable-netbeans --with-tlib=ncurses<br>
473 make<br> 474 make install<br> 475 ln -sv vim /tools/bin/vi<br> 476 cd ..<br> 477 tar -xjvf xz-4.999.9beta.tar.bz2 <br> 478 cd xz-4.999.9beta<br> 479 CC="${CC} ${BUILD64}" ./configure --prefix=/tools --build=${CLFS_HOST} --host=${CLFS_TARGET} --libdir=/tools/lib64<br>
480 make<br> 481 make install<br> 482 /tools/lib/libc.so.6<br> 483 /tools/lib64/libc.so.6<br> 484 /tools/bin/gcc -v<br> 485 cd ..<br> 486 tar -xjvf util-linux-ng-2.16.1.tar.bz2 <br> 487 cd util-linux-ng-2.16.1<br>
488 CC="${CC} ${BUILD64}" ./configure --prefix=/tools --build=${CLFS_HOST} --host=${CLFS_TARGET} --disable-makeinstall-chown<br> 489 make<br> 490 make install<br> 491 exit<br> 492 history </pre>
Bye,<br><br>Szabolcs Gyalókay<br>