超越自我

gcc-4.6.0-cross_compile-1.patch

Filed under: 操作系统 ; Tags: — freeyun @ 2011-06-29 09:08:48

$ patch -Np1 -i gcc-4.6.0-cross_compile-1.patch
patching file configure
Hunk #1 FAILED at 2801.
1 out of 1 hunk FAILED — saving rejects to file configure.rej
patching file configure.ac
Hunk #1 FAILED at 262.
1 out of 1 hunk FAILED — saving rejects to file configure.ac.rej

配置错误引起的,lfs需要进入到gcc-4.6.0目录,再执行补丁

patch -Np1 -i ../gcc-4.6.0-cross_compile-1.patch

config.log

Filed under: 操作系统 ; Tags: — freeyun @ 2011-06-28 23:43:53

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.64.  Invocation command line was

$ ../gcc-4.6.0/configure –target= –prefix=/tools –disable-nls –disable-shared –disable-multilib –disable-decimal-float –disable-threads –disable-libmudflap –disable-libssp –disable-libgomp –disable-libquadmath –disable-target-libiberty –disable-target-zlib –enable-languages=c –without-ppl –without-cloog

(more…)

GCC-4.6.0 – Pass 1 error hase Solve

Filed under: 操作系统 ; Tags: — freeyun @ 2011-06-28 13:48:58

checking whether  /mnt/lfs/sources/gcc-build/./prev-gcc/xgcc -B/mnt/lfs/sources/gcc-build/./prev-gcc/ -B/tools/x86_64-unknown-linux-gnu/bin/ -B/tools/x86_64-unknown-linux-gnu/bin/ -B/tools/x86_64-unknown-linux-gnu/lib/ -isystem /tools/x86_64-unknown-linux-gnu/include -isystem /tools/x86_64-unknown-linux-gnu/sys-include    supports -Wstrict-prototypes…
configure: error: in `/mnt/lfs/sources/gcc-build/lto-plugin’:
configure: error: C compiler cannot create executables
See `config.log’ for more details.
yes
make[2]: *** [configure-stage2-lto-plugin] Error 77
checking whether  /mnt/lfs/sources/gcc-build/./prev-gcc/xgcc -B/mnt/lfs/sources/gcc-build/./prev-gcc/ -B/tools/x86_64-unknown-linux-gnu/bin/ -B/tools/x86_64-unknown-linux-gnu/bin/ -B/tools/x86_64-unknown-linux-gnu/lib/ -isystem /tools/x86_64-unknown-linux-gnu/include -isystem /tools/x86_64-unknown-linux-gnu/sys-include    supports -pedantic … yes
checking whether  /mnt/lfs/sources/gcc-build/./prev-gcc/xgcc -B/mnt/lfs/sources/gcc-build/./prev-gcc/ -B/tools/x86_64-unknown-linux-gnu/bin/ -B/tools/x86_64-unknown-linux-gnu/bin/ -B/tools/x86_64-unknown-linux-gnu/lib/ -isystem /tools/x86_64-unknown-linux-gnu/include -isystem /tools/x86_64-unknown-linux-gnu/sys-include    and cc understand -c and -o together… yes
checking for an ANSI C-conforming const… yes
checking for inline… inline
checking for grep that handles long lines and -e… /bin/grep
checking for egrep… /bin/grep -E
checking for ANSI C header files… yes
checking for sys/types.h… yes
checking for sys/stat.h… yes
checking for stdlib.h… yes
checking for string.h… yes
checking for memory.h… yes
checking for strings.h… yes
checking for inttypes.h… yes
checking for stdint.h… yes
checking for unistd.h… yes
checking whether byte ordering is bigendian… no
checking for a BSD-compatible install… /usr/bin/install -c
checking for sys/file.h… yes
checking for sys/param.h… yes
checking for limits.h… yes
checking for stdlib.h… (cached) yes
checking for malloc.h… yes
checking for string.h… (cached) yes
checking for unistd.h… (cached) yes
checking for strings.h… (cached) yes
checking for sys/time.h… yes
checking for time.h… yes
checking for sys/resource.h… yes
checking for sys/stat.h… (cached) yes
checking for sys/mman.h… yes
checking for fcntl.h… yes
checking for alloca.h… yes
checking for sys/pstat.h… no
checking for sys/sysmp.h… no
checking for sys/sysinfo.h… yes
checking for machine/hal_sysinfo.h… no
checking for sys/table.h… no
checking for sys/sysctl.h… yes
checking for sys/systemcfg.h… no
checking for stdint.h… (cached) yes
checking for stdio_ext.h… yes
checking for process.h… no
checking for sys/prctl.h… yes
checking for sys/wait.h that is POSIX.1 compatible… yes
checking whether time.h and sys/time.h may both be included… yes
checking whether errno must be declared… no
checking size of int… 4
checking for a 64-bit type… uint64_t
checking for intptr_t… yes
checking for uintptr_t… yes
checking for ssize_t… yes
checking for pid_t… yes
checking for library containing strerror… configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.
make[2]: *** [configure-stage2-libiberty] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/gcc-build’
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/gcc-build’
make: *** [all] Error 2

 

make distclean 后重新编译即可解决,不行就重新解压gcc-4.6.0,再编译

5.5. GCC-4.6.0 – Pass 1 error ,已经解决

Filed under: 操作系统 ; Tags: — freeyun @ 2011-06-27 23:35:20

In file included from /usr/include/bits/errno.h:25:0,
from /usr/include/errno.h:36,
from ../../../gcc-4.6.0/libgcc/../gcc/tsystem.h:93,
from ../../../gcc-4.6.0/libgcc/../gcc/libgcc2.c:29:
/usr/include/linux/errno.h:4:23: fatal error: asm/errno.h: No such file or directory
compilation terminated.
make[3]: *** [_negdi2.o] Error 1
make[3]: *** Waiting for unfinished jobs….
In file included from /usr/include/bits/errno.h:25:0,
from /usr/include/errno.h:36,
from ../../../gcc-4.6.0/libgcc/../gcc/tsystem.h:93,
from ../../../gcc-4.6.0/libgcc/../gcc/libgcc2.c:29:
/usr/include/linux/errno.h:4:23: fatal error: asm/errno.h: No such file or directoryIn file included from /usr/include/bits/errno.h:25:0,
from /usr/include/errno.h:36,
from ../../../gcc-4.6.0/libgcc/../gcc/tsystem.h:93,
from ../../../gcc-4.6.0/libgcc/../gcc/libgcc2.c:29:
/usr/include/linux/errno.h:4:23: fatal error: asm/errno.h: No such file or directory

compilation terminated.
compilation terminated.
make[3]: *** [_muldi3.o] Error 1
make[3]: *** [_lshrdi3.o] Error 1
make[3]: Leaving directory `/mnt/lfs/sources/gcc-build/x86_64-unknown-linux-gnu/libgcc’
make[2]: *** [all-stage1-target-libgcc] Error 2
make[2]: Leaving directory `/mnt/lfs/sources/gcc-build’
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/gcc-build’
make: *** [all] Error 2

 

need root

ln -sv /usr/src/linux-headers-2.6.38-8/arch/x86/include/asm  /usr/include/asm

lfs环境变量–不是正确的,只是对我才是正确的

Filed under: 操作系统 ; Tags: — freeyun @ 2011-06-27 23:28:22

heary@heary-Inspiron-1464:~$ sudo -s
root@heary-Inspiron-1464:~# export LFS=/mnt/lfs
root@heary-Inspiron-1464:~# mkdir -pv $LFS
root@heary-Inspiron-1464:~# mount -v -t ext3 /dev/sda1 $LFS
/dev/sda1 on /mnt/lfs type ext3 (rw)
root@heary-Inspiron-1464:~# echo $LFS
/mnt/lfs
root@heary-Inspiron-1464:~# mkdir -v $LFS/tools
mkdir: cannot create directory `/mnt/lfs/tools’: File exists
root@heary-Inspiron-1464:~# ln -sv $LFS/tools /
ln: creating symbolic link `/tools’: File exists
root@heary-Inspiron-1464:~# chown -v lfs $LFS/tools
ownership of `/mnt/lfs/tools’ retained as lfs
root@heary-Inspiron-1464:~# chown -v lfs $LFS/sources
ownership of `/mnt/lfs/sources’ retained as lfs
root@heary-Inspiron-1464:~# su – lfs

下一步是在宿主系统上创建一个 /tools 符号链接,指向 LFS 分区上新创建的目录,这个命令同样要作为 root 用户运行:

Filed under: 操作系统 ; freeyun @ 2011-06-26 15:48:55
ln -sv $LFS/tools /

 

root@heary-Inspiron-1464:~# ls /mnt/lfs
lost+found  sources  tools
root@heary-Inspiron-1464:~# ln -s  /mnt/lfs/tools /tools
root@heary-Inspiron-1464:~# ll / |gre pool
ll: command not found
No command ‘gre’ found, did you mean:
Command ‘ge’ from package ‘pvm-examples’ (universe)
Command ‘grep’ from package ‘grep’ (main)
Command ‘gpre’ from package ‘firebird2.5-super’ (universe)
Command ‘gpre’ from package ‘firebird2.1-classic’ (universe)
Command ‘gpre’ from package ‘firebird2.5-classic-common’ (universe)
Command ‘gpre’ from package ‘firebird2.1-super’ (universe)
Command ‘re’ from package ‘re’ (universe)
Command ‘gle’ from package ‘gle-graphics’ (universe)
Command ‘grc’ from package ‘grc’ (universe)
Command ‘grc’ from package ‘gnuradio-companion’ (universe)
Command ‘grn’ from package ‘groff’ (main)
Command ‘gri’ from package ‘gri’ (universe)
gre: command not found
root@heary-Inspiron-1464:~# ls -l / |grep tools
lrwxrwxrwx   1 root root    14 Jun 26 15:30 tools -> /mnt/lfs/tools
root@heary-Inspiron-1464:~# chown lfs.lfs /mnt/lfs/tools -R
root@heary-Inspiron-1464:~# ls -l / |grep tools
lrwxrwxrwx   1 root root    14 Jun 26 15:30 tools -> /mnt/lfs/tools

做个记录

Filed under: 操作系统 ; Tags: — freeyun @ 2011-06-26 14:06:53

ug.la” “libldtestplug.la” )
LIB_PATH=” /bin/bash ../../binutils-2.21/ld/genscripts.sh “../../binutils-2.21/ld” “/tools/lib” “/tools” “/tools” x86_64-unknown-linux-gnu x86_64-unknown-linux-gnu x86_64-unknown-linux-gnu “elf_x86_64 elf_i386″ “/usr/local/lib /lib /usr/lib” no elf_x86_64 “x86_64-unknown-linux-gnu”
mv -f .deps/objcopy.Tpo .deps/objcopy.Po
mv -f .deps/wrstabs.Tpo .deps/wrstabs.Po
LIB_PATH=” /bin/bash ../../binutils-2.21/ld/genscripts.sh “../../binutils-2.21/ld” “/tools/lib” “/tools” “/tools” x86_64-unknown-linux-gnu x86_64-unknown-linux-gnu x86_64-unknown-linux-gnu “elf_x86_64 elf_i386″ “/usr/local/lib /lib /usr/lib” no elf_i386 “i386-unknown-linux-gnu”
gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.21/binutils  -I. -I../../binutils-2.21/binutils -I../bfd -I../../binutils-2.21/binutils/../bfd -I../../binutils-2.21/binutils/../include -DLOCALEDIR=”\”/tools/share/locale\”" -Dbin_dummy_emulation=bin_vanilla_emulation  -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -MT addr2line.o -MD -MP -MF .deps/addr2line.Tpo -c -o addr2line.o ../../binutils-2.21/binutils/addr2line.c
mv -f .deps/addr2line.Tpo .deps/addr2line.Po
gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.21/binutils  -I. -I../../binutils-2.21/binutils -I../bfd -I../../binutils-2.21/binutils/../bfd -I../../binutils-2.21/binutils/../include -DLOCALEDIR=”\”/tools/share/locale\”" -Dbin_dummy_emulation=bin_vanilla_emulation  -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -MT readelf.o -MD -MP -MF .deps/readelf.Tpo -c -o readelf.o ../../binutils-2.21/binutils/readelf.c
gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.21/binutils  -I. -I../../binutils-2.21/binutils -I../bfd -I../../binutils-2.21/binutils/../bfd -I../../binutils-2.21/binutils/../include -DLOCALEDIR=”\”/tools/share/locale\”" -Dbin_dummy_emulation=bin_vanilla_emulation  -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -MT unwind-ia64.o -MD -MP -MF .deps/unwind-ia64.Tpo -c -o unwind-ia64.o ../../binutils-2.21/binutils/unwind-ia64.c
mv -f .deps/unwind-ia64.Tpo .deps/unwind-ia64.Po
LIB_PATH=” /bin/bash ../../binutils-2.21/ld/genscripts.sh “../../binutils-2.21/ld” “/tools/lib” “/tools” “/tools” x86_64-unknown-linux-gnu x86_64-unknown-linux-gnu x86_64-unknown-linux-gnu “elf_x86_64 elf_i386″ “/usr/local/lib /lib /usr/lib” no i386linux “i386-unknown-linux-gnuaout”
gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.21/binutils  -I. -I../../binutils-2.21/binutils -I../bfd -I../../binutils-2.21/binutils/../bfd -I../../binutils-2.21/binutils/../include -DLOCALEDIR=”\”/tools/share/locale\”" -Dbin_dummy_emulation=bin_vanilla_emulation  -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -MT elfedit.o -MD -MP -MF .deps/elfedit.Tpo -c -o elfedit.o ../../binutils-2.21/binutils/elfedit.c
LIB_PATH=” /bin/bash ../../binutils-2.21/ld/genscripts.sh “../../binutils-2.21/ld” “/tools/lib” “/tools” “/tools” x86_64-unknown-linux-gnu x86_64-unknown-linux-gnu x86_64-unknown-linux-gnu “elf_x86_64 elf_i386″ “/usr/local/lib /lib /usr/lib” no elf_l1om “x86_64-unknown-linux-gnu”
mv -f .deps/elfedit.Tpo .deps/elfedit.Po
gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.21/binutils  -I. -I../../binutils-2.21/binutils -I../bfd -I../../binutils-2.21/binutils/../bfd -I../../binutils-2.21/binutils/../include -DLOCALEDIR=”\”/tools/share/locale\”" -Dbin_dummy_emulation=bin_vanilla_emulation  -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -MT nm.o -MD -MP -MF .deps/nm.Tpo -c -o nm.o ../../binutils-2.21/binutils/nm.c
mv -f .deps/nm.Tpo .deps/nm.Po
gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.21/binutils  -I. -I../../binutils-2.21/binutils -I../bfd -I../../binutils-2.21/binutils/../bfd -I../../binutils-2.21/binutils/../include -DLOCALEDIR=”\”/tools/share/locale\”" -Dbin_dummy_emulation=bin_vanilla_emulation  -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -MT is-strip.o -MD -MP -MF .deps/is-strip.Tpo -c -o is-strip.o ../../binutils-2.21/binutils/is-strip.c
mv -f .deps/is-strip.Tpo .deps/is-strip.Po
gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.21/binutils  -I. -I../../binutils-2.21/binutils -I../bfd -I../../binutils-2.21/binutils/../bfd -I../../binutils-2.21/binutils/../include -DLOCALEDIR=”\”/tools/share/locale\”" -Dbin_dummy_emulation=bin_vanilla_emulation  -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -MT cxxfilt.o -MD -MP -MF .deps/cxxfilt.Tpo -c -o cxxfilt.o ../../binutils-2.21/binutils/cxxfilt.c
gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.21/ld  -I. -I../../binutils-2.21/ld -I../bfd -I../../binutils-2.21/ld/../bfd -I../../binutils-2.21/ld/../include  -g -O2 -DENABLE_PLUGINS -DLOCALEDIR=”\”/tools/share/locale\”"  -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -MT eelf_x86_64.o -MD -MP -MF .deps/eelf_x86_64.Tpo -c -o eelf_x86_64.o eelf_x86_64.c
mv -f .deps/cxxfilt.Tpo .deps/cxxfilt.Po
gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.21/ld  -I. -I../../binutils-2.21/ld -I../bfd -I../../binutils-2.21/ld/../bfd -I../../binutils-2.21/ld/../include  -g -O2 -DENABLE_PLUGINS -DLOCALEDIR=”\”/tools/share/locale\”"  -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -MT eelf_i386.o -MD -MP -MF .deps/eelf_i386.Tpo -c -o eelf_i386.o eelf_i386.c
mv -f .deps/eelf_i386.Tpo .deps/eelf_i386.Po
/bin/bash ./libtool –tag=CC   –mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2   -o size size.o bucomm.o version.o filemode.o ../bfd/libbfd.la ../libiberty/libiberty.a  -lz
mv -f .deps/eelf_x86_64.Tpo .deps/eelf_x86_64.Po
gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.21/ld  -I. -I../../binutils-2.21/ld -I../bfd -I../../binutils-2.21/ld/../bfd -I../../binutils-2.21/ld/../include  -g -O2 -DENABLE_PLUGINS -DLOCALEDIR=”\”/tools/share/locale\”"  -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -MT ei386linux.o -MD -MP -MF .deps/ei386linux.Tpo -c -o ei386linux.o ei386linux.c
libtool: link: gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -o size size.o bucomm.o version.o filemode.o  ../bfd/.libs/libbfd.a ../libiberty/libiberty.a -lz
mv -f .deps/ei386linux.Tpo .deps/ei386linux.Po
gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.21/ld  -I. -I../../binutils-2.21/ld -I../bfd -I../../binutils-2.21/ld/../bfd -I../../binutils-2.21/ld/../include  -g -O2 -DENABLE_PLUGINS -DLOCALEDIR=”\”/tools/share/locale\”"  -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -MT eelf_l1om.o -MD -MP -MF .deps/eelf_l1om.Tpo -c -o eelf_l1om.o eelf_l1om.c
/bin/bash ./libtool –tag=CC   –mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2   -o objdump objdump.o dwarf.o prdbg.o rddbg.o debug.o stabs.o ieee.o rdcoff.o bucomm.o version.o filemode.o ../opcodes/libopcodes.la ../bfd/libbfd.la ../libiberty/libiberty.a  -lz
libtool: link: gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -o objdump objdump.o dwarf.o prdbg.o rddbg.o debug.o stabs.o ieee.o rdcoff.o bucomm.o version.o filemode.o  ../opcodes/.libs/libopcodes.a ../bfd/.libs/libbfd.a ../libiberty/libiberty.a -lz
/bin/bash ./libtool –tag=CC   –mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2   -o ar arparse.o arlex.o ar.o not-ranlib.o arsup.o rename.o binemul.o emul_vanilla.o bucomm.o version.o filemode.o ../bfd/libbfd.la ../libiberty/libiberty.a   -lz
mv -f .deps/eelf_l1om.Tpo .deps/eelf_l1om.Po
/bin/bash ./libtool –tag=CC   –mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2   -o ld-new ldgram.o ldlex-wrapper.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o ldfile.o ldcref.o plugin.o eelf_x86_64.o eelf_i386.o ei386linux.o eelf_l1om.o  ../bfd/libbfd.la ../libiberty/libiberty.a  -lz -ldl
libtool: link: gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -o ar arparse.o arlex.o ar.o not-ranlib.o arsup.o rename.o binemul.o emul_vanilla.o bucomm.o version.o filemode.o  ../bfd/.libs/libbfd.a ../libiberty/libiberty.a -lz
libtool: link: gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -o ld-new ldgram.o ldlex-wrapper.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o ldfile.o ldcref.o plugin.o eelf_x86_64.o eelf_i386.o ei386linux.o eelf_l1om.o  ../bfd/.libs/libbfd.a ../libiberty/libiberty.a -lz -ldl
/bin/bash ./libtool –tag=CC   –mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2   -o strings strings.o bucomm.o version.o filemode.o ../bfd/libbfd.la ../libiberty/libiberty.a  -lz
libtool: link: gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -o strings strings.o bucomm.o version.o filemode.o  ../bfd/.libs/libbfd.a ../libiberty/libiberty.a -lz
make[4]: Leaving directory `/mnt/lfs/sources/binutils-build/ld’
make[3]: Leaving directory `/mnt/lfs/sources/binutils-build/ld’
make[2]: Leaving directory `/mnt/lfs/sources/binutils-build/ld’
/bin/bash ./libtool –tag=CC   –mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2   -o ranlib ar.o is-ranlib.o arparse.o arlex.o arsup.o rename.o binemul.o emul_vanilla.o bucomm.o version.o filemode.o ../bfd/libbfd.la ../libiberty/libiberty.a   -lz
/bin/bash ./libtool –tag=CC   –mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2   -o objcopy objcopy.o not-strip.o rename.o rddbg.o debug.o stabs.o ieee.o rdcoff.o wrstabs.o bucomm.o version.o filemode.o ../bfd/libbfd.la ../libiberty/libiberty.a  -lz
libtool: link: gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -o ranlib ar.o is-ranlib.o arparse.o arlex.o arsup.o rename.o binemul.o emul_vanilla.o bucomm.o version.o filemode.o  ../bfd/.libs/libbfd.a ../libiberty/libiberty.a -lz
libtool: link: gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -o objcopy objcopy.o not-strip.o rename.o rddbg.o debug.o stabs.o ieee.o rdcoff.o wrstabs.o bucomm.o version.o filemode.o  ../bfd/.libs/libbfd.a ../libiberty/libiberty.a -lz
/bin/bash ./libtool –tag=CC   –mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2   -o addr2line addr2line.o bucomm.o version.o filemode.o ../bfd/libbfd.la ../libiberty/libiberty.a  -lz
libtool: link: gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -o addr2line addr2line.o bucomm.o version.o filemode.o  ../bfd/.libs/libbfd.a ../libiberty/libiberty.a -lz
/bin/bash ./libtool –tag=CC   –mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2   -o elfedit elfedit.o version.o  ../libiberty/libiberty.a -lz
/bin/bash ./libtool –tag=CC   –mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2   -o nm-new nm.o bucomm.o version.o filemode.o ../bfd/libbfd.la ../libiberty/libiberty.a  -lz
libtool: link: gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -o elfedit elfedit.o version.o  ../libiberty/libiberty.a -lz
/bin/bash ./libtool –tag=CC   –mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2   -o strip-new objcopy.o is-strip.o rename.o rddbg.o debug.o stabs.o ieee.o rdcoff.o wrstabs.o bucomm.o version.o filemode.o ../bfd/libbfd.la ../libiberty/libiberty.a  -lz
libtool: link: gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -o nm-new nm.o bucomm.o version.o filemode.o  ../bfd/.libs/libbfd.a ../libiberty/libiberty.a -lz
libtool: link: gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -o strip-new objcopy.o is-strip.o rename.o rddbg.o debug.o stabs.o ieee.o rdcoff.o wrstabs.o bucomm.o version.o filemode.o  ../bfd/.libs/libbfd.a ../libiberty/libiberty.a -lz
/bin/bash ./libtool –tag=CC   –mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2   -o cxxfilt cxxfilt.o bucomm.o version.o filemode.o ../bfd/libbfd.la ../libiberty/libiberty.a  -lz
libtool: link: gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -o cxxfilt cxxfilt.o bucomm.o version.o filemode.o  ../bfd/.libs/libbfd.a ../libiberty/libiberty.a -lz
mv -f .deps/readelf.Tpo .deps/readelf.Po
/bin/bash ./libtool –tag=CC   –mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2   -o readelf readelf.o version.o unwind-ia64.o dwarf.o  ../libiberty/libiberty.a -lz
libtool: link: gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -o readelf readelf.o version.o unwind-ia64.o dwarf.o  ../libiberty/libiberty.a -lz
make[4]: Leaving directory `/mnt/lfs/sources/binutils-build/binutils’
make[3]: Leaving directory `/mnt/lfs/sources/binutils-build/binutils’
make[2]: Leaving directory `/mnt/lfs/sources/binutils-build/binutils’
make[1]: Leaving directory `/mnt/lfs/sources/binutils-build’

编译binutils-2.21出错

Filed under: 操作系统 ; Tags: — freeyun @ 2011-05-27 00:26:06

Configuring in ./binutils

configure: loading cache ./config.cacheconfigure: error: `YACC’ has changed since the previous run:

configure:   former value:  `/home/heary/lfs/binutils-2.21/missing bison -y’

configure:   current value: `bison -y’

configure: error: in `/home/heary/lfs/binutils-2.21/binutils’:

configure: error: changes in the environment can compromise the build

configure: error: run `make distclean’ and/or `rm ./config.cache’ and start overmake[1]: *** [configure-binutils] Error 1make[1]: Leaving directory `/home/heary/lfs/binutils-2.21′make: *** [all] Error 2

只有记录报错信息

ubuntu grub boot freebsd 8.2

Filed under: 操作系统 ; Tags: , , — freeyun @ 2011-05-08 16:37:02

heary@heary-Inspiron-1464:~$ sudo -i
[sudo] password for heary:
root@heary-Inspiron-1464:~# fdisk -l

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0×90909090

Device Boot Start End Blocks Id System
/dev/sda1 * 1 2805 22528768+ a5 FreeBSD
Partition 1 does not end on cylinder boundary.
/dev/sda2 2805 9587 54476800 7 HPFS/NTFS
Partition 2 does not end on cylinder boundary.
/dev/sda3 9587 38914 235564033 f W95 Ext’d (LBA)
Partition 3 does not end on cylinder boundary.
/dev/sda5 9587 16369 54476800 7 HPFS/NTFS
/dev/sda6 16370 23152 54476800 7 HPFS/NTFS
/dev/sda7 23152 31183 64512000 7 HPFS/NTFS
/dev/sda8 31183 35008 30720000 7 HPFS/NTFS
/dev/sda9 35008 35254 1977344 82 Linux swap / Solaris
/dev/sda10 35254 36481 9858048 83 Linux
/dev/sda11 36482 36494 96256 83 Linux
(more…)

ubuntu 11.04修复gnome3 更改最大最小化

Filed under: 应用软件 ; Tags: — freeyun @ 2011-05-06 23:51:38

gconf-editor

更改:close
:minimize,maximize,close
最后ALT+F2,输入r
参考:

http://www.ubuntugeek.com/how-to-fix-common-gnome-3-issues-on-ubuntu-11-04-natty.html