|
|
CPU:CR2.4超到2.8
Mem: 768M
OS: Deiban Sarge/Testing
GCC:
[0 No.515 apps $ ] dpkg -l | grep gcc-
ii gcc-3.3 3.3.6-10 The GNU C compiler
ii gcc-3.3-base 3.3.6-10 The GNU Compiler Collection (base package)
ii gcc-4.0 4.0.2-9 The GNU C compiler
ii gcc-4.0-base 4.0.2-9 The GNU Compiler Collection (base package)
一
- [0 No.505 ~ $ ] cat lfs_err_note
- 1
- huan:/mnt/lfs/sources/glibc-build
- Q:
- /mnt/lfs/sources/glibc-build/csu/version-info.h:2: error: missing terminating " charact er
- /mnt/lfs/sources/glibc-build/csu/version-info.h:3: error: missing terminating " charact er
- version.c:40: error: parse error before string constant
- make[2]: *** [/mnt/lfs/sources/glibc-build/csu/version.o] Error 1
- make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.3.6/csu'
- make[1]: *** [csu/subdir_lib] Error 2
- make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.3.6'
- make: *** [all] Error 2
- lfs@huan:/mnt/lfs/sources/glibc-build$ cat /mnt/lfs/sources/glibc-build/csu/version-info.h "Compiled on a Linux 2.6.11 system on 2006-03-17.\n"
- [b]"Available extensions:
- "[/b]
- " GNU libio by Per Bothner\n"
- " crypt add-on version 2.1 by Michael Glad and others\n"
- " Native POSIX Threads Library by Ulrich Drepper et al\n"
- " BIND-8.2.3-T5B\n"
- " NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk\n"
- lfs@huan:/mnt/lfs/sources/glibc-build$
复制代码
如加粗行所示
问题出于引号换行了
挪上去问题解决
这个问题不知有人没遇见过
我在VM里用lfs-livecd没发现
但Debian下几字编译都出这个问题
二
- [0 /sources/hotplug-2004_09_23 #] make install
- /usr/bin/install -c -D sbin/hotplug /sbin/hotplug
- make: /usr/bin/install: Command not found
- make: *** [install] Error 127
- [2 /sources/hotplug-2004_09_23 #] ln -s /bin/install /usr/bin/
- [0 /sources/hotplug-2004_09_23 #] make install
- /usr/bin/install -c -D sbin/hotplug /sbin/hotplug
- /usr/bin/install -c -d /etc/hotplug/{usb,pci}
- /usr/bin/install -c -D etc/hotplug.d/default/default.hotplug /etc/hotplug.d/default/default.hotplug
- for F in etc/hotplug/{*.{agent,rc},hotplug.functions} ; do \
- /usr/bin/install -c $F /etc/hotplug ; \
- done
- for F in etc/hotplug/{blacklist,usb.{user,hand,dist}map} ; do \
- /usr/bin/install -c -m 644 $F /etc/hotplug ; \
- done
- /usr/bin/install -c -D etc/rc.d/init.d/hotplug /etc/init.d/hotplug
- /usr/bin/install -c -m 644 -D hotplug.8 /usr/share/man/man8/hotplug.8
- /usr/bin/install -c -d /var/log/hotplug /var/run
- /usr/bin/install -c -d -m 700 /var/run/usb
- [0 /sources/hotplug-2004_09_23 #]
复制代码
觉得这种问题好傻
三
- [0 /sources/udev-056 #] make udevdir=/dev
- [0 /sources/udev-056 #] make udevdir=/dev install
- /usr/bin/install -c -d /etc/udev/rules.d
- /usr/bin/install -c -m 644 -D udev.8 /usr/share/man/man8/udev.8
- /usr/bin/install -c -m 644 -D udevinfo.8 /usr/share/man/man8/udevinfo.8
- /usr/bin/install -c -m 644 -D udevtest.8 /usr/share/man/man8/udevtest.8
- /usr/bin/install -c -m 644 -D udevstart.8 /usr/share/man/man8/udevstart.8
- /usr/bin/install -c -m 644 -D udevd.8 /usr/share/man/man8/udevd.8
- ln -f -s udevd.8 /usr/share/man/man8/udevsend.8
- /usr/bin/install -c -d /etc/dev.d/default
- /usr/bin/install -c -D etc/dev.d/net/hotplug.dev /etc/dev.d/net/hotplug.dev
- /usr/bin/install -c -d /dev
- /usr/bin/install -c -d /etc/hotplug.d/default
- /usr/bin/install -c -D udev /sbin/udev
- /usr/bin/install -c -D udevd /sbin/udevd
- /usr/bin/install -c -D udevsend /sbin/udevsend
- /usr/bin/install -c -D udevinfo /usr/bin/udevinfo
- /usr/bin/install -c -D udevtest /usr/bin/udevtest
- /usr/bin/install -c -D udevstart /sbin/udevstart
- ln -f -s /sbin/udevsend /etc/hotplug.d/default/10-udev.hotplug
- killall udevd
- udevd: no process killed
- make: [install] Error 1 (ignored)
- rm -rf /dev/.udevdb
- [b][0 /sources/udev-056 #] cp ../udev-config-3.rules /etc/udev/rules.d/25-lfs.rules
- cp: cannot stat `../udev-config-3.rules': No such file or directory
- [1 /sources/udev-056 #][/b]
- [0 No.506 ~ $ ]
复制代码Udev 的默认配置很不完美,所以请在这里安装配置文件:
cp ../udev-config-3.rules /etc/udev/rules.d/25-lfs.rules
并没提到这点
而
-
- 置顶的主题 [精] [置顶] [原创]手把手教你如何建立自己的Linux系统(LFS速成手册) ( 多页主题 1 2 3 )
- http://linuxsir.cn/bbs/showthread.php?t=244052
- 代码:
- make DESTDIR=/ udevdir=/dev install cp -v $LFS/udev-config-4.rules /etc/udev/rules.d/25-lfs.rules /sbin/udevstart cd .. rm -rf udev-056
复制代码
也是没提到
最终是用GCC3编译成功的
内核直接把Debian里自己编译过的2.6.15.6版本与config复制进去编译了。。。。。。
一个错都没有
从第一次在VM里尝试到最终启动成功
到可以在真实硬盘上启动
用了三个晚上两个白天
收益最大的
莫过于tar,patch,configure, make && make install
这几个命令的输入速度 |
|