超越自我

fedora 16 无线bcm4312及登录进去界面log out

Filed under: 操作系统 ; Tags: — freeyun @ 2012-02-11 22:05:20

直接命令式:

#1. su -c ‘rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm’

#2. yum update

#3. yum install kmod-wl

这个是最简单的方法了,还有自己编译到内核的!

登录出现:Oh no! Something has gone wrong. A problem occured and the system can’t recover. Please log out and try again.

执行

$ restorecon -r ~/.local/share/icc

gcc: error: unrecognized option ‘-mtune=generic’

Filed under: 操作系统 ; Tags: — freeyun @ 2011-07-03 10:38:05

III. Building the LFS System

6. Installing Basic System Software

6.9. Glibc-2.14

执行 :cd glibc-2.14 case `uname -m` in i?86) echo "CFLAGS += -march=i486 -mtune=native -O3 -pipe" > configparms ;; esac

configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES config.log

Filed under: 操作系统 ; Tags: — freeyun @ 2011-07-01 23:54:49

给我参考用的:

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

## ——— ##
## Platform. ##
## ——— ##

hostname = heary-Inspiron-1464
uname -m = x86_64
uname -r = 2.6.38-8-generic
uname -s = Linux
uname -v = #42-Ubuntu SMP Mon Apr 11 03:31:24 UTC 2011

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/local/games
PATH: /usr/games

## ———– ##
## Core tests. ##
## ———– ##

(more…)

gcc 4.6.0 error

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

make[4]: Entering directory `/mnt/lfs/sources/gcc-build/prev-gcc’
make[4]: *** No rule to make target `real-install-headers-tar’.  Stop.
make[4]: Leaving directory `/mnt/lfs/sources/gcc-build/prev-gcc’
make[3]: *** [stmp-fixinc] Error 2
rm gcc.pod
make[3]: Leaving directory `/mnt/lfs/sources/gcc-build/gcc’
make[2]: *** [all-stage1-gcc] 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

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