[Clfs-support] Error compiling binutils in chapter 6.8 of Version SVN-20100103-x86_64-Multilib
Szabolcs Gyalókay
gyalokay at gmail.com
Sat Apr 10 04:25:23 PDT 2010
Hi Chris,
I realized that the problem is caused by the
>> binutils-2.20-branch_update-1.patch. When not using it I was able to
>> build binutils. Also I was not having problems with the same patch later
>> in the book, it was compiling fine in the following chapters.
>>
>
> 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").
>
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.
1 env
2 cd ..
3 tar -xzvf file-5.03.tar.gz
4 cd file-5.03
5 ./configure --prefix=/cross-tools 2>&1 | tee file_conf_5_6.log
6 make 2>&1 | tee file_make_5_6.log
7 cd ..
8 tar -xzvf ncurses-5.7.tar.gz
9 patch -Np1 -i ../ncurses-5.7-bash_fix-1.patch
10 cd ncurses-5.7
11 patch -Np1 -i ../ncurses-5.7-bash_fix-1.patch
12 ./configure --prefix=/cross-tools \ 2>&1 | tee
13 ./configure --prefix=/cross-tools \ --without-debug
--without-shared 2>&1 | tee ncurses_conf_5.6.log
14 ./configure --prefix=/cross-tools --without-debug
--without-shared 2>&1 | tee ncurses_conf_5.6.log
15 make -C include 2>&1 | tee ncurses_mkinc_5.6.log
16 make -C include
17 cd ..
18 tar -xzvf ncurses-5.7.tar.gz
19 cd ncurses-5.7
20 patch -Np1 -i ../ncurses-5.7-bash_fix-1.patch
21 ./configure --prefix=/cross-tools --without-debug --without-shared
22 make -C include
23 make -C progs tic 2>&1 | tee ncurses_mkprog_5.6.log
24 env
25 install -m755 progs/tic /cross-tools/bin
26 chown -v clfs ${CLFS}/tools
27 chown -v clfs ${CLFS}/cross-tools
28 install -m755 progs/tic /cross-tools/bin
29 cd
30 tar -xzvf file-5.03.tar.gz
31 cd /mnt/pardus/sources/
32 tar -xzvf file-5.03.tar.gz
33 cd file-5.03
34 ./configure --prefix=/cross-tools
35 make
36 make install
37 make install
38 cd ..
39 cd ncurses-5.7
40 install -m755 progs/tic /cross-tools/bin
41 ls -l
42 cd ..
43 tar -xjvf gmp-4.3.1.tar.bz2
44 cd gmp-4.3.1
45 CPPFLAGS=-fexceptions ./configure --prefix=/cross-tools
--enable-cxx 2>&1 | tee gmp_conf_5_8.log
46 make 2>&1 | tee gmp_make_5_8.log
47 make install
48 cd ..
49 tar -xjvf mpfr-2.4.1.tar.bz2
50 tar -xzvf mpfr-2.4.1.tar.bz2
51 cd mpfr-2.4.1
52 env
53 patch -Np1 -i ../mpfr-2.4.1-branch_update-2.patch
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
55 make 2>&1 | tee mpfr_make_5_9.log
56 make install
57 cd ..
58 tar -xjvf ppl-0.10.2.tar.bz2
59 env
60 cd ppl-0.10.2
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
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
63 make 2>&1 | tee ppl_make_5_10.log
64 make install
65 cd ..
66 tar -xzvf cloog-ppl-0.15.7.tar.gz
67 cd cloog-ppl-0.15.7
68 env
69 cp -v configure{,.orig}
70 sed "/LD_LIBRARY_PATH=/d" configure.orig > configure
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
72 env
73 make 2>&1 | tee cloog_make_5_11.log
74 env
75 make install
76 cd ..
77 tar -xjvf binutils-2.20.tar.bz2
78 cd binutils-2.20
79 patch -Np1 -i ../binutils-2.20-branch_update-1.patch
80 patch -Np1 -i ../binutils-2.20-genscripts_multilib-1.patch
81 mkdir -v ../binutils-build
82 cd ../binutils-build
83 env
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
85 cd ..
86 tar -xjvf binutils-2.20.tar.bz2
87 cd binutils-2.20
88 patch -Np1 -i ../binutils-2.20-branch_update-1.patch
89 patch -Np1 -i ../binutils-2.20-genscripts_multilib-1.patch
90 mkdir -v ../binutils-build
91 cd ../binutils-build
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 */
93 AR=ar AS=as ../binutils-2.20/configure --prefix=/cross-tools
--host=${CLFS_HOST} --target=${CLFS_TARGET} --with-sysroot=${CLFS}
--with-lib-path=/cross-tools/lib --disable-nls --enable-shared
--enable-64-bit-bfd 2>&1 | tee binutils_conf_5_12.log
94 env
95 make configure-host 2>&1 | tee binutils_cfhost_5_12.log
96 make 2>&1 | tee binutils_make_5_12.log
97 make install
98 cp -v ../binutils-2.20/include/libiberty.h /tools/include
99 cd ..
100 tar -xjvf gcc-4.4.2.tar.bz2
101 cd gcc-4.4.2
102 patch -Np1 -i ../gcc-4.4.2-branch_update-1.patch
103 patch -Np1 -i ../gcc-4.4.2-specs-1.patch
104 echo -en '#undef STANDARD_INCLUDE_DIR\n#define
STANDARD_INCLUDE_DIR "/tools/include/"\n\n' >> gcc/config/linux.h
105 echo -en '\n#undef STANDARD_STARTFILE_PREFIX_1\n#define
STANDARD_STARTFILE_PREFIX_1 "/cross-tools/lib/"\n' >>
gcc/config/linux.h
106 echo -en '\n#undef STANDARD_STARTFILE_PREFIX_2\n#define
STANDARD_STARTFILE_PREFIX_2 ""\n' >> gcc/config/linux.h
107 cp -v gcc/Makefile.in{,.orig}
108 sed -e "s@\(^CROSS_SYSTEM_HEADER_DIR =\).*@\1 /tools/include at g"
gcc/Makefile.in.orig > gcc/Makefile.in
109 touch /tools/include/limits.h
110 mkdir -v ../gcc-build
111 cd ../gcc-build
112 env
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
114 make all-gcc all-target-libgcc 2>&1 | tee gcc_make_5_13.log
115 make install-gcc install-target-libgcc 2>&1 | tee gcc_mkinst_5_13.log
116 cd ..
117 tar -xjvf eglibc-2.10.1-20090825-r8873.tar.bz2
118 cd eglibc-2.10.1
119 cp -v Makeconfig{,.orig}
120 sed -e 's/-lgcc_eh//g' Makeconfig.orig > Makeconfig
121 mkdir -v ../eglibc-build
122 cd ../eglibc-build
123 cat > config.cache << "EOF"
124 libc_cv_forced_unwind=yes
125 libc_cv_c_cleanup=yes
126 libc_cv_gnu89_inline=yes
127 EOF
128 env
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
130 env
131 make > 2>&1 | tee gcc_make_5_14.log
132 make 2>&1 | tee gcc_make_5_14.log
133 make install
134 cd ..
135 tar -xjvf eglibc-2.10.1-20090825-r8873.tar.bz2
136 cd eglibc-2.10.1
137 cp -v Makeconfig{,.orig}
138 sed -e 's/-lgcc_eh//g' Makeconfig.orig > Makeconfig
139 mkdir -v ../eglibc-build
140 cd ../eglibc-build
141 env
142 cat > config.cache << "EOF"
143 libc_cv_forced_unwind=yes
144 libc_cv_c_cleanup=yes
145 libc_cv_gnu89_inline=yes
146 EOF
147 echo "slibdir=/tools/lib64" >> configparms
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
149 env
150 make 2>&1 | tee eglibc64_make_5_15.log
151 make install
152 cd ..
153 tar -xjvf gcc-4.4.2.tar.bz2
154 cd gcc-4.4.2
155 patch -Np1 -i ../gcc-4.4.2-branch_update-1.patch
156 patch -Np1 -i ../gcc-4.4.2-specs-1.patch
157 echo -en '#undef STANDARD_INCLUDE_DIR\n#define
STANDARD_INCLUDE_DIR "/tools/include/"\n\n' >> gcc/config/linux.h
158 echo -en '\n#undef STANDARD_STARTFILE_PREFIX_1\n#define
STANDARD_STARTFILE_PREFIX_1 "/cross-tools/lib/"\n' >>
gcc/config/linux.h
159 echo -en '\n#undef STANDARD_STARTFILE_PREFIX_2\n#define
STANDARD_STARTFILE_PREFIX_2 ""\n' >> gcc/config/linux.h
160 cp -v gcc/Makefile.in{,.orig}
161 sed -e "s@\(^CROSS_SYSTEM_HEADER_DIR =\).*@\1 /tools/include at g"
gcc/Makefile.in.orig > gcc/Makefile.in
162 mkdir -v ../gcc-build
163 cd ../gcc-build
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
165 make AS_FOR_TARGET="${CLFS_TARGET}-as"
LD_FOR_TARGET="${CLFS_TARGET}-ld" 2>&1 | tee gcc_make_5_16.log
166 cd ..
167 tar -xjvf gcc-4.4.2.tar.bz2
168 cd gcc-4.4.2
169 patch -Np1 -i ../gcc-4.4.2-branch_update-1.patch
170 patch -Np1 -i ../gcc-4.4.2-specs-1.patch
171 echo -en '#undef STANDARD_INCLUDE_DIR\n#define
STANDARD_INCLUDE_DIR "/tools/include/"\n\n' >> gcc/config/linux.h
172 echo -en '\n#undef STANDARD_STARTFILE_PREFIX_1\n#define
STANDARD_STARTFILE_PREFIX_1 "/tools/lib/"\n' >> gcc/config/linux.h
173 echo -en '\n#undef STANDARD_STARTFILE_PREFIX_2\n#define
STANDARD_STARTFILE_PREFIX_2 ""\n' >> gcc/config/linux.h
174 cp -v gcc/Makefile.in{,.orig}
175 sed -e "s@\(^CROSS_SYSTEM_HEADER_DIR =\).*@\1 /tools/include at g"
gcc/Makefile.in.orig > gcc/Makefile.in
176 mkdir -v ../gcc-build
177 cd ../gcc-build
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
179 make AS_FOR_TARGET="${CLFS_TARGET}-as"
LD_FOR_TARGET="${CLFS_TARGET}-ld" 2>&1 | tee gcc_make_5_16.log
180 make install
181 echo ${CLFS}
182 env
183 export CC="${CLFS_TARGET}-gcc"
184 export CXX="${CLFS_TARGET}-g++"
185 export AR="${CLFS_TARGET}-ar"
186 export AS="${CLFS_TARGET}-as"
187 export RANLIB="${CLFS_TARGET}-ranlib"
188 export LD="${CLFS_TARGET}-ld"
189 export STRIP="${CLFS_TARGET}-strip"
190 env
191 echo export CC=\""${CC}\"" >> ~/.bashrc
192 echo export CXX=\""${CXX}\"" >> ~/.bashrc
193 echo export AR=\""${AR}\"" >> ~/.bashrc
194 echo export AS=\""${AS}\"" >> ~/.bashrc
195 echo export RANLIB=\""${RANLIB}\"" >> ~/.bashrc
196 echo export LD=\""${LD}\"" >> ~/.bashrc
197 echo export STRIP=\""${STRIP}\"" >> ~/.bashrc
198 cd ..
199 tar -xjvf gmp-4.3.1.tar.bz2
200 cd gmp-4.3.1
201 env
202 HOST_CC=gcc CPPFLAGS=-fexceptions CC="${CC} \
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
204 make 2>&1 | tee gmp_make_6_3.log
205 make install
206 cd ..
207 tar -xjvf mpfr-2.4.1.tar.bz2
208 tar -xzvf mpfr-2.4.1.tar.bz2
209 cd mpfr-2.4.1
210 patch -Np1 -i ../mpfr-2.4.1-branch_update-2.patch
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
212 make 2>&1 | tee mpfr_make_6_4.log
213 make install
214 cd ..
215 tar -xjvf ppl-0.10.2.tar.bz2
216 cd ppl-0.10.2
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
218 make 2>&1 | tee ppl_make_6_5.log
219 make install
220 cd ..
221 tar -xzvf cloog-ppl-0.15.7.tar.gz
222 cd cloog-ppl-0.15.7
223 env
224 cp -v configure{,.orig}
225 sed "/LD_LIBRARY_PATH=/d" configure.orig > configure
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
227 make 2>&1 | tee cloog_make_6_6.log
228 make install
229 cd ..
230 tar -xzvf zlib-1.2.3.tar.gz
231 cd zlib-1.2.3
232 CC="${CC} ${BUILD64}" ./configure --prefix=/tools --shared
--libdir=/tools/lib64 2>&1 | tee zlib_conf_6_7.log
233 make 2>&1 | tee zlib_make_6_7.conf
234 make install
235 cd ..
236 tar -xjvf binutils-2.20.tar.bz2
237 cd binutils-2.20
238 patch -Np1 -i ../binutils-2.20-genscripts_multilib-1.patch
239 patch -Np1 -i ../binutils-2.20-branch_update-1.patch
240 mkdir -v ../binutils-build
241 cd ../binutils-build
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
243 make configure-host 2>&1 | tee binutils_mkhost_6_6.log
244 make 2>&1 | tee binutils_make_6_6.log /* Does not compile,
delete, retry*/
245 env
246 echo $LD_LIBRARY_PATH
247 cd ..
248 tar -xjvf binutils-2.20.tar.bz2
249 cd binutils-2.20
250 patch -Np1 -i ../binutils-2.20-genscripts_multilib-1.patch
251 mkdir -v ../binutils-build /* Do not patch with branch_update-1 */
252 cd ../binutils-build
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
254 make configure-host 2>&1 | tee binutils_mkhost_6_6.log
255 make 2>&1 | tee binutils_make_6_6.log /* Compiles fine, continue */
256 make install
257 cd ..
258 tar -xjvf gcc-4.4.2.tar.bz2
259 cd gcc-4.4.2
260 patch -Np1 -i ../gcc-4.4.2-branch_update-1.patch
261 patch -Np1 -i ../gcc-4.4.2-specs-1.patch
262 echo -en '#undef STANDARD_INCLUDE_DIR\n#define
STANDARD_INCLUDE_DIR "/tools/include/"\n\n' >> gcc/config/linux.h
263 echo -en '\n#undef STANDARD_STARTFILE_PREFIX_1\n#define
STANDARD_STARTFILE_PREFIX_1 "/tools/lib/"\n' >> gcc/config/linux.h
264 echo -en '\n#undef STANDARD_STARTFILE_PREFIX_2\n#define
STANDARD_STARTFILE_PREFIX_2 ""\n' >> gcc/config/linux.h
265 cp -v gcc/Makefile.in{,.orig}
266 sed -e 's@\(^NATIVE_SYSTEM_HEADER_DIR =\).*@\1
/tools/include at g' gcc/Makefile.in.orig > gcc/Makefile.in
267 mkdir -v ../gcc-build
268 cd ../gcc-build
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
270 cp Makefile{,.orig}
271 sed "/^HOST_\(GMP\|PPL\|CLOOG\)\(LIBS\|INC\)/s:-[IL]/\(lib\|include\)::"
Makefile.orig > Makefile
272 make AS_FOR_TARGET="${AS}" LD_FOR_TARGET="${LD}"
273 make install
274 cd ..
275 tar -xzvf ncurses-5.7.tar.gz
276 cd ncurses-5.7
277 patch -Np1 -i ../ncurses-5.7-bash_fix-1.patch
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
279 make
280 make install
281 cd ..
282 tar -xzvf bash-4.0.tar.gz
283 cd bash-4.0
284 patch -Np1 -i ../bash-4.0-branch_update-7.patch
285 cat > config.cache << "EOF"
286 ac_cv_func_mmap_fixed_mapped=yes
287 ac_cv_func_strcoll_works=yes
288 ac_cv_func_working_mktime=yes
289 bash_cv_func_sigsetjmp=present
290 bash_cv_getcwd_malloc=yes
291 bash_cv_job_control_missing=present
292 bash_cv_printf_a_format=yes
293 bash_cv_sys_named_pipes=present
294 bash_cv_ulimit_maxfds=yes
295 bash_cv_under_sys_siglist=yes
296 bash_cv_unusable_rtsigs=no
297 gt_cv_int_divbyzero_sigfpe=yes
298 EOF
299 CC="${CC} ${BUILD64}" CXX="${CXX} ${BUILD64}" ./configure
--prefix=/tools --build=${CLFS_HOST} --host=${CLFS_TARGET}
--without-bash-malloc --cache-file=config.cache
300 make
301 make install
302 ln -sv bash /tools/bin/sh
303 cd ..
304 tar -xjvf bison-2.4.1.tar.bz2
305 cd bison-2.4.1
306 CC="${CC} ${BUILD64}" ./configure --prefix=/tools
--build=${CLFS_HOST} --host=${CLFS_TARGET}
307 make
308 make install
309 cd ..
310 tar -xzvf bzip2-1.0.5.tar.gz
311 cp -v Makefile{,.orig}
312 sed -e 's@^\(all:.*\) test@\1 at g' -e 's@/lib\(/\|
\|$\)@/lib64\1 at g' Makefile.orig > Makefile
313 make CC="${CC} ${BUILD64}" AR="${AR}" RANLIB="${RANLIB}"
314 cd bzip2-1.0.5
315 cp -v Makefile{,.orig}
316 sed -e 's@^\(all:.*\) test@\1 at g' -e 's@/lib\(/\|
\|$\)@/lib64\1 at g' Makefile.orig > Makefile
317 make CC="${CC} ${BUILD64}" AR="${AR}" RANLIB="${RANLIB}"
318 make PREFIX=/tools install
319 cd ..
320 tar -xzvf coreutils-7.6.tar.gz
321 cd coreutils-7.6
322 cat > config.cache << EOF
323 fu_cv_sys_stat_statfs2_bsize=yes
324 gl_cv_func_rename_trailing_slash_bug=no
325 gl_cv_func_working_mkstemp=yes
326 EOF
327 CC="${CC} ${BUILD64}" ./configure --prefix=/tools
--build=${CLFS_HOST} --host=${CLFS_TARGET}
--enable-install-program=hostname --cache-file=config.cache
328 make
329 make install
330 cd ..
331 tar -xzvf diffutils-2.8.7.tar.gz
332 cd diffutils-2.8.7
333 CC="${CC} ${BUILD64}" ./configure --prefix=/tools
--build=${CLFS_HOST} --host=${CLFS_TARGET}
334 make
335 make install
336 cd ..
337 tar -xzvf findutils-4.4.2.tar.gz
338 cd findutils-4.4.2
339 echo "gl_cv_func_wcwidth_works=yes" > config.cache
340 echo "ac_cv_func_fnmatch_gnu=yes" >> config.cache
341 CC="${CC} ${BUILD64}" ./configure --prefix=/tools
--build=${CLFS_HOST} --host=${CLFS_TARGET}
--cache-file=config.cache
342 make
343 make install
344 cd ..
345 tar -xjvf file-5.03.tar.gz
346 tar -xzvf file-5.03.tar.gz
347 cd file-5.03
348 patch -Np1 -i ../file-5.03-cross_compile-1.patch
349 CC="${CC} ${BUILD64}" ./configure --prefix=/tools
--libdir=/tools/lib64 --build=${CLFS_HOST} --host=${CLFS_TARGET}
350 make
351 make install
352 cd ..
353 tar -xjvf flex-2.5.35.tar.bz2
354 cd flex-2.5.35
355 patch -Np1 -i ../flex-2.5.35-gcc44-1.patch
356 cp -v Makefile.in{,.orig}
357 sed "s/-I at includedir@//g" Makefile.in.orig > Makefile.in
358 cat > config.cache << EOF
359 ac_cv_func_malloc_0_nonnull=yes
360 ac_cv_func_realloc_0_nonnull=yes
361 EOF
362 CC="${CC} ${BUILD64}" ./configure --prefix=/tools
--build=${CLFS_HOST} --host=${CLFS_TARGET}
--cache-file=config.cache
363 make
364 make install
365 cd ..
366 tar -xjvf gawk-3.1.7.tar.bz2
367 cd gawk-3.1.7
368 CC="${CC} ${BUILD64}" ./configure --prefix=/tools
--build=${CLFS_HOST} --host=${CLFS_TARGET} --disable-libsigsegv
369 make
370 make install
371 cd ..
372 tar -xzvf gettext-0.17.tar.gz
373 cd gettext-0.17
374 cd gettext-tools
375 echo "gl_cv_func_wcwidth_works=yes" > config.cache
376 CC="${CC} ${BUILD64}" CXX="${CXX} ${BUILD64}" ./configure
--prefix=/tools --disable-shared --build=${CLFS_HOST}
--host=${CLFS_TARGET} --cache-file=config.cache
377 make -C gnulib-lib
378 make -C src msgfmt
379 cp -v src/msgfmt /tools/bin
380 cd ..
381 cd ..
382 tar -xjvf grep-2.5.4.tar.bz2
383 cd grep-2.5.4
384 CC="${CC} ${BUILD64}" ./configure --prefix=/tools
--build=${CLFS_HOST} --host=${CLFS_TARGET} --disable-perl-regexp
--without-included-regex
385 make
386 make install
387 cd ..
388 tar -xzvf gzip-1.3.12.tar.gz
389 cd gzip-1.3.12
390 sed -i "s/futimens/gl_&/" $(grep -lr futimens *)
391 CC="${CC} ${BUILD64}" ./configure --prefix=/tools
--build=${CLFS_HOST} --host=${CLFS_TARGET}
392 make
393 make install
394 cd ..
395 tar -xjvf m4-1.4.13.tar.bz2
396 cd m4-1.4.13
397 cat > config.cache << EOF
398 gl_cv_func_btowc_eof=yes
399 gl_cv_func_mbrtowc_incomplete_state=yes
400 gl_cv_func_mbrtowc_sanitycheck=yes
401 gl_cv_func_mbrtowc_null_arg=yes
402 gl_cv_func_mbrtowc_retval=yes
403 gl_cv_func_mbrtowc_nul_retval=yes
404 gl_cv_func_wcrtomb_retval=yes
405 gl_cv_func_wctob_works=yes
406 EOF
407 CC="${CC} ${BUILD64}" ./configure --prefix=/tools
--build=${CLFS_HOST} --host=${CLFS_TARGET} --cache-file=config.cache
408 make
409 make install
410 cd ..
411 tar -xjvf make-3.81.tar.bz2
412 cd make-3.81
413 CC="${CC} ${BUILD64}" ./configure --prefix=/tools
--build=${CLFS_HOST} --host=${CLFS_TARGET}
414 make
415 make install
416 cd ..
417 tar -xzvf patch-2.5.9.tar.gz
418 cd patch-2.5.9
419 CC="${CC} ${BUILD64}" ./configure --prefix=/tools
--build=${CLFS_HOST} --host=${CLFS_TARGET}
420 make
421 make install
422 cd ..
423 tar -xzvf sed-4.2.1.tar.bz2
424 tar -xjvf sed-4.2.1.tar.bz2
425 cd sed-4.2.1
426 CC="${CC} ${BUILD64}" ./configure --prefix=/tools
--build=${CLFS_HOST} --host=${CLFS_TARGET}
427 make
428 make install
429 cd ..
430 tar -xjvf tar-1.22.tar.bz2
431 cd tar-1.22
432 cat > config.cache << EOF
433 gl_cv_func_wcwidth_works=yes
434 gl_cv_func_btowc_eof=yes
435 ac_cv_func_malloc_0_nonnull=yes
436 ac_cv_func_realloc_0_nonnull=yes
437 gl_cv_func_mbrtowc_incomplete_state=yes
438 gl_cv_func_mbrtowc_nul_retval=yes
439 gl_cv_func_mbrtowc_null_arg=yes
440 gl_cv_func_mbrtowc_retval=yes
441 gl_cv_func_wcrtomb_retval=yes
442 EOF
443 CC="${CC} ${BUILD64}" ./configure --prefix=/tools
--build=${CLFS_HOST} --host=${CLFS_TARGET}
--cache-file=config.cache
444 make
445 make install
446 cd ..
447 tar -xzvf texinfo-4.13a.tar.gz
448 cd texinfo-4.13
449 CC="${CC} ${BUILD64}" ./configure --prefix=/tools
--build=${CLFS_HOST} --host=${CLFS_TARGET}
450 make -C tools/gnulib/lib
451 make -C tools
452 make
453 make install
454 cd ..
455 tar -xjvf vim-7.2.tar.bz2
456 cd vim
457 cd vim-7.2
458 patch -Np1 -i ../vim-7.2-branch_update-21.patch
459 cd vim72/
460 patch -Np1 -i ../vim-7.2-branch_update-21.patch
461 cat > src/auto/config.cache << "EOF"
462 vim_cv_getcwd_broken=no
463 vim_cv_memmove_handles_overlap=yes
464 vim_cv_stat_ignores_slash=no
465 vim_cv_terminfo=yes
466 vim_cv_tgent=zero
467 vim_cv_toupper_broken=no
468 vim_cv_tty_group=world
469 ac_cv_sizeof_int=4
470 EOF
471 echo '#define SYS_VIMRC_FILE "/tools/etc/vimrc"' >> src/feature.h
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
473 make
474 make install
475 ln -sv vim /tools/bin/vi
476 cd ..
477 tar -xjvf xz-4.999.9beta.tar.bz2
478 cd xz-4.999.9beta
479 CC="${CC} ${BUILD64}" ./configure --prefix=/tools
--build=${CLFS_HOST} --host=${CLFS_TARGET} --libdir=/tools/lib64
480 make
481 make install
482 /tools/lib/libc.so.6
483 /tools/lib64/libc.so.6
484 /tools/bin/gcc -v
485 cd ..
486 tar -xjvf util-linux-ng-2.16.1.tar.bz2
487 cd util-linux-ng-2.16.1
488 CC="${CC} ${BUILD64}" ./configure --prefix=/tools
--build=${CLFS_HOST} --host=${CLFS_TARGET}
--disable-makeinstall-chown
489 make
490 make install
491 exit
492 history
Bye,
Szabolcs Gyalókay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clfs.org/pipermail/clfs-support-clfs.org/attachments/20100410/8216e7a2/attachment-0001.htm>
More information about the Clfs-support
mailing list