請問有關在 amd64 make buildworld的問題~ - BBS
By Genevieve
at 2007-10-05T08:20
at 2007-10-05T08:20
Table of Contents
HI, chinsan,
我試了一下你的做法,除第一步我是用 make cleanworld 之外
下了 make buildworld TARGET_ARCH=amd64 TARGET=amd64之後還,
會出現下面的 ERROR MESG
我也附上我的 make.conf 設定,謝謝你喔!
如果能再給我點建議的話! 當然,來自其它朋友也很感謝!
================ make.conf ========================
#CPUTYPE?=k8
#CFLAGS= -O -pipe
MAKE_IDEA= YES # IDEA (128 bit symmetric encryption)
MAKE_RSAINTL= YES # RSA (public key exchange)
COPTFLAGS= -O -pipe -s
USA_RESIDENT= YES
MASTER_SITE_BACKUP?= \
ftp://ftp.tw.freebsd.org/pub/distfiles/${DIST_SUBDIR}/ \
ftp://ftp2.tw.freebsd.org/pub/FreeBSD/distfiles/${DIST_SUBDIR}/ \
ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/
MASTER_SITE_OVERRIDE?= ${MASTER_SITE_BACKUP}
SUP_UPDATE= yes
INSTALL= install -C
KERNCONF= KERORO
SUP= /usr/bin/csup
SUPFLAGS= -g -L 2
#SUPHOST= cvsup6.tw.FreeBSD.org
SUPFILE= /usr/local/etc/cvsupfile-stable
PORTSSUPFILE= /usr/local/etc/cvsupfile-ports
NO_SENDMAIL= yes
MACHINE=amd64
MACHINE_ARCH=amd64
# added by use.perl 2007-10-03 10:14:39
PERL_VER=5.8.8
PERL_VERSION=5.8.8
================ ERROR MESG =======================
===> lib/libkvm (obj,depend,all,install)
rm -f .depend
CC='cc -m32 -march=k8 -mfancy-math-387 -DCOMPAT_32BIT -iprefix /usr/obj/usr/sr
c/lib32/usr/ -L/usr/obj/usr/src/lib32/usr/lib32 -B/usr/obj/usr/src/lib32/usr/
lib32' mkdep -f .depend -a -DLIBC_SCCS -I/usr/src/lib/libkvm /usr/src/lib/li
bkvm/kvm.c /usr/src/lib/libkvm/kvm_amd64.c /usr/src/lib/libkvm/kvm_file.c /usr/
src/lib/libkvm/kvm_getloadavg.c /usr/src/lib/libkvm/kvm_getswapinfo.c /usr/src/
lib/libkvm/kvm_proc.c /usr/src/lib/libkvm/kvm_minidump_amd64.c
cc -m32 -march=k8 -mfancy-math-387 -DCOMPAT_32BIT -iprefix /usr/obj/usr/src/li
b32/usr/ -L/usr/obj/usr/src/lib32/usr/lib32 -B/usr/obj/usr/src/lib32/usr/lib3
2 -O2 -fno-strict-aliasing -pipe -DLIBC_SCCS -I/usr/src/lib/libkvm -c /usr/src
/lib/libkvm/kvm.c
cc -m32 -march=k8 -mfancy-math-387 -DCOMPAT_32BIT -iprefix /usr/obj/usr/src/li
b32/usr/ -L/usr/obj/usr/src/lib32/usr/lib32 -B/usr/obj/usr/src/lib32/usr/lib3
2 -O2 -fno-strict-aliasing -pipe -DLIBC_SCCS -I/usr/src/lib/libkvm -c /usr/src
/lib/libkvm/kvm_amd64.c
/usr/src/lib/libkvm/kvm_amd64.c: In function `_kvm_vatop':
/usr/src/lib/libkvm/kvm_amd64.c:241: warning: right shift count >= width of type
/usr/src/lib/libkvm/kvm_amd64.c:249: warning: integer constant is too large for
"unsigned long" type
/usr/src/lib/libkvm/kvm_amd64.c:271: warning: integer constant is too large for
"unsigned long" type
/usr/src/lib/libkvm/kvm_amd64.c:308: warning: integer constant is too large for
"unsigned long" type
/usr/src/lib/libkvm/kvm_amd64.c:328: warning: integer constant is too large for
"unsigned long" type
cc -m32 -march=k8 -mfancy-math-387 -DCOMPAT_32BIT -iprefix /usr/obj/usr/src/li
b32/usr/ -L/usr/obj/usr/src/lib32/usr/lib32 -B/usr/obj/usr/src/lib32/usr/lib3
2 -O2 -fno-strict-aliasing -pipe -DLIBC_SCCS -I/usr/src/lib/libkvm -c /usr/src
/lib/libkvm/kvm_file.c
cc -m32 -march=k8 -mfancy-math-387 -DCOMPAT_32BIT -iprefix /usr/obj/usr/src/li
b32/usr/ -L/usr/obj/usr/src/lib32/usr/lib32 -B/usr/obj/usr/src/lib32/usr/lib3
2 -O2 -fno-strict-aliasing -pipe -DLIBC_SCCS -I/usr/src/lib/libkvm -c /usr/src
/lib/libkvm/kvm_getloadavg.c
cc -m32 -march=k8 -mfancy-math-387 -DCOMPAT_32BIT -iprefix /usr/obj/usr/src/li
b32/usr/ -L/usr/obj/usr/src/lib32/usr/lib32 -B/usr/obj/usr/src/lib32/usr/lib3
2 -O2 -fno-strict-aliasing -pipe -DLIBC_SCCS -I/usr/src/lib/libkvm -c /usr/src
/lib/libkvm/kvm_getswapinfo.c
cc -m32 -march=k8 -mfancy-math-387 -DCOMPAT_32BIT -iprefix /usr/obj/usr/src/li
b32/usr/ -L/usr/obj/usr/src/lib32/usr/lib32 -B/usr/obj/usr/src/lib32/usr/lib3
2 -O2 -fno-strict-aliasing -pipe -DLIBC_SCCS -I/usr/src/lib/libkvm -c /usr/src
/lib/libkvm/kvm_proc.c
/usr/src/lib/libkvm/kvm_proc.c: In function `kvm_argv':
/usr/src/lib/libkvm/kvm_proc.c:652: warning: left shift count >= width of type
/usr/src/lib/libkvm/kvm_proc.c: In function `kvm_doargv':
/usr/src/lib/libkvm/kvm_proc.c:873: warning: left shift count >= width of type
cc -m32 -march=k8 -mfancy-math-387 -DCOMPAT_32BIT -iprefix /usr/obj/usr/src/li
b32/usr/ -L/usr/obj/usr/src/lib32/usr/lib32 -B/usr/obj/usr/src/lib32/usr/lib3
2 -O2 -fno-strict-aliasing -pipe -DLIBC_SCCS -I/usr/src/lib/libkvm -c /usr/src
/lib/libkvm/kvm_minidump_amd64.c
/usr/src/lib/libkvm/kvm_minidump_amd64.c: In function `_kvm_minidump_vatop':
/usr/src/lib/libkvm/kvm_minidump_amd64.c:219: warning: integer constant is too
large for "unsigned long" type
{standard input}: Assembler messages:
{standard input}:241: Error: Incorrect register `%ecx' used with `q' suffix
*** Error code 1
Stop in /usr/src/lib/libkvm.
*** Error code 1
Stop in /usr/src.
*** Error code 1
Stop in /usr/src.
*** Error code 1
Stop in /usr/src.
*** Error code 1
Stop in /usr/src.
※ 引述《[email protected] (淡)》之銘言:
: ※ 引述《[email protected] (藏袍逢毅)》之銘言:
: > 小弟這幾天一直試著在 amd64 (AMD Sempron Processor 3400+) make buildworld,
: 你這是怎麼操作的? 在哪個目錄下執行?
: > 但一直在 lib/libkvm 這裡出錯!
: > 我試過改掉 make.conf 裡的設定(爬文章的答案),但並沒有解決。
: > 目前使用的設定如下
: > #CPUTYPE?=k8
: > #CFLAGS= -O -pipe
: > MACHINE=amd64
: > MACHINE_ARCH=amd64
: ...你這些設定是怎麼來的? 另外你的 /etc/make.conf 完整設定就這樣而已? @_@
: 順便貼一下 echo $PATH 結果
: 若你不熟這些設定的話,建議先別亂抄,先看看 /usr/share/examples/etc/make.conf
: 另外,amd64 應該是
: # cd /usr/src ; rm -rf /usr/obj
: # make buildworld TARGET_ARCH=amd64 TARGET=amd64
: # make buildkernel TARGET_ARCH=amd64 TARGET=amd64
: # make installkernel TARGET_ARCH=amd64 TARGET=amd64 DESTDIR=/
: # make install32 TARGET_ARCH=amd64 TARGET=amd64
: # make installworld TARGET_ARCH=amd64 DESTDIR=/
: > 然後試過直接到 src/lib/ 裡去 make 就 OK!
: > 覺得很怪的是 kvm_minidump_amd64.c 看來是用 64 bit 的方式宣告,但為什麼是用
: > -m32 (不好意思,我不是電資系的 所以不瞭解,蝦說的~) 我試過把 -m32 拿掉,
: > 就 OK (沒有加 -m64),可我不知道這樣編出來的 libkvm 會不會出錯。
: ....
: > b/libkvm/kvm_minidump_amd64.c
: > /usr/src/lib/libkvm/kvm_minidump_amd64.c: In function `_kvm_minidump_vatop':
: > /usr/src/lib/libkvm/kvm_minidump_amd64.c:219: warning: integer constant is too l
: > arge for "unsigned long" type
: > {standard input}: Assembler messages:
: > {standard input}:241: Error: Incorrect register `%ecx' used with `q' suffix
: > *** Error code 1
: > Stop in /usr/src/lib/libkvm.
--
Tags:
BBS
All Comments
Related Posts
初學者請問一個測不到網卡的問題
By Frederic
at 2007-10-05T02:15
at 2007-10-05T02:15
初學者請問一個測不到網卡的問題
By Ingrid
at 2007-10-04T01:38
at 2007-10-04T01:38
請問有關在 amd64 make buildworld的問題~
By Quintina
at 2007-10-03T09:22
at 2007-10-03T09:22
誰可以幫忙解釋這個錯誤訊息?
By Bethany
at 2007-10-01T19:18
at 2007-10-01T19:18
初學者請問一個測不到網卡的問題
By Rebecca
at 2007-09-22T00:25
at 2007-09-22T00:25