請問有關在 amd64 make buildworld的問題~ - BBS
By Quintina
at 2007-10-03T09:22
at 2007-10-03T09:22
Table of Contents
各位先進
小弟這幾天一直試著在 amd64 (AMD Sempron Processor 3400+) make buildworld,
但一直在 lib/libkvm 這裡出錯!
我試過改掉 make.conf 裡的設定(爬文章的答案),但並沒有解決。
目前使用的設定如下
#CPUTYPE?=k8
#CFLAGS= -O -pipe
MACHINE=amd64
MACHINE_ARCH=amd64
然後試過直接到 src/lib/ 裡去 make 就 OK!
覺得很怪的是 kvm_minidump_amd64.c 看來是用 64 bit 的方式宣告,但為什麼是用
-m32 (不好意思,我不是電資系的 所以不瞭解,蝦說的~) 我試過把 -m32 拿掉,
就 OK (沒有加 -m64),可我不知道這樣編出來的 libkvm 會不會出錯。
不知道有沒有前進有解法? 或是能指點一二!
任何幫助都十分感謝!
============ ERROR MESG ==============
... skip ...
CC='cc -m32 -march=k8 -mfancy-math-387 -DCOMPAT_32BIT -iprefix /usr/obj/usr/src
/lib32/usr/ -L/usr/obj/usr/src/lib32/usr/lib32 -B/usr/obj/usr/src/lib32/usr/li
b32' mkdep -f .depend -a -DLIBC_SCCS -I/usr/src/lib/libkvm /usr/src/lib/libkv
m/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/l
ibkvm/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/lib
32/usr/ -L/usr/obj/usr/src/lib32/usr/lib32 -B/usr/obj/usr/src/lib32/usr/lib32
-O2 -fno-strict-aliasing -pipe -DLIBC_SCCS -I/usr/src/lib/libkvm -c /usr/src/l
ib/libkvm/kvm.c
cc -m32 -march=k8 -mfancy-math-387 -DCOMPAT_32BIT -iprefix /usr/obj/usr/src/lib
32/usr/ -L/usr/obj/usr/src/lib32/usr/lib32 -B/usr/obj/usr/src/lib32/usr/lib32
-O2 -fno-strict-aliasing -pipe -DLIBC_SCCS -I/usr/src/lib/libkvm -c /usr/src/li
b/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/lib
32/usr/ -L/usr/obj/usr/src/lib32/usr/lib32 -B/usr/obj/usr/src/lib32/usr/lib32
-O2 -fno-strict-aliasing -pipe -DLIBC_SCCS -I/usr/src/lib/libkvm -c /usr/src/li
b/libkvm/kvm_file.c
cc -m32 -march=k8 -mfancy-math-387 -DCOMPAT_32BIT -iprefix /usr/obj/usr/src/lib
32/usr/ -L/usr/obj/usr/src/lib32/usr/lib32 -B/usr/obj/usr/src/lib32/usr/lib32
-O2 -fno-strict-aliasing -pipe -DLIBC_SCCS -I/usr/src/lib/libkvm -c /usr/src/li
b/libkvm/kvm_getloadavg.c
cc -m32 -march=k8 -mfancy-math-387 -DCOMPAT_32BIT -iprefix /usr/obj/usr/src/lib
32/usr/ -L/usr/obj/usr/src/lib32/usr/lib32 -B/usr/obj/usr/src/lib32/usr/lib32
-O2 -fno-strict-aliasing -pipe -DLIBC_SCCS -I/usr/src/lib/libkvm -c /usr/src/li
b/libkvm/kvm_getswapinfo.c
cc -m32 -march=k8 -mfancy-math-387 -DCOMPAT_32BIT -iprefix /usr/obj/usr/src/lib
32/usr/ -L/usr/obj/usr/src/lib32/usr/lib32 -B/usr/obj/usr/src/lib32/usr/lib32
-O2 -fno-strict-aliasing -pipe -DLIBC_SCCS -I/usr/src/lib/libkvm -c /usr/src/li
b/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/lib
32/usr/ -L/usr/obj/usr/src/lib32/usr/lib32 -B/usr/obj/usr/src/lib32/usr/lib32
-O2 -fno-strict-aliasing -pipe -DLIBC_SCCS -I/usr/src/lib/libkvm -c /usr/src/li
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.
*** 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.
--
小弟這幾天一直試著在 amd64 (AMD Sempron Processor 3400+) make buildworld,
但一直在 lib/libkvm 這裡出錯!
我試過改掉 make.conf 裡的設定(爬文章的答案),但並沒有解決。
目前使用的設定如下
#CPUTYPE?=k8
#CFLAGS= -O -pipe
MACHINE=amd64
MACHINE_ARCH=amd64
然後試過直接到 src/lib/ 裡去 make 就 OK!
覺得很怪的是 kvm_minidump_amd64.c 看來是用 64 bit 的方式宣告,但為什麼是用
-m32 (不好意思,我不是電資系的 所以不瞭解,蝦說的~) 我試過把 -m32 拿掉,
就 OK (沒有加 -m64),可我不知道這樣編出來的 libkvm 會不會出錯。
不知道有沒有前進有解法? 或是能指點一二!
任何幫助都十分感謝!
============ ERROR MESG ==============
... skip ...
CC='cc -m32 -march=k8 -mfancy-math-387 -DCOMPAT_32BIT -iprefix /usr/obj/usr/src
/lib32/usr/ -L/usr/obj/usr/src/lib32/usr/lib32 -B/usr/obj/usr/src/lib32/usr/li
b32' mkdep -f .depend -a -DLIBC_SCCS -I/usr/src/lib/libkvm /usr/src/lib/libkv
m/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/l
ibkvm/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/lib
32/usr/ -L/usr/obj/usr/src/lib32/usr/lib32 -B/usr/obj/usr/src/lib32/usr/lib32
-O2 -fno-strict-aliasing -pipe -DLIBC_SCCS -I/usr/src/lib/libkvm -c /usr/src/l
ib/libkvm/kvm.c
cc -m32 -march=k8 -mfancy-math-387 -DCOMPAT_32BIT -iprefix /usr/obj/usr/src/lib
32/usr/ -L/usr/obj/usr/src/lib32/usr/lib32 -B/usr/obj/usr/src/lib32/usr/lib32
-O2 -fno-strict-aliasing -pipe -DLIBC_SCCS -I/usr/src/lib/libkvm -c /usr/src/li
b/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/lib
32/usr/ -L/usr/obj/usr/src/lib32/usr/lib32 -B/usr/obj/usr/src/lib32/usr/lib32
-O2 -fno-strict-aliasing -pipe -DLIBC_SCCS -I/usr/src/lib/libkvm -c /usr/src/li
b/libkvm/kvm_file.c
cc -m32 -march=k8 -mfancy-math-387 -DCOMPAT_32BIT -iprefix /usr/obj/usr/src/lib
32/usr/ -L/usr/obj/usr/src/lib32/usr/lib32 -B/usr/obj/usr/src/lib32/usr/lib32
-O2 -fno-strict-aliasing -pipe -DLIBC_SCCS -I/usr/src/lib/libkvm -c /usr/src/li
b/libkvm/kvm_getloadavg.c
cc -m32 -march=k8 -mfancy-math-387 -DCOMPAT_32BIT -iprefix /usr/obj/usr/src/lib
32/usr/ -L/usr/obj/usr/src/lib32/usr/lib32 -B/usr/obj/usr/src/lib32/usr/lib32
-O2 -fno-strict-aliasing -pipe -DLIBC_SCCS -I/usr/src/lib/libkvm -c /usr/src/li
b/libkvm/kvm_getswapinfo.c
cc -m32 -march=k8 -mfancy-math-387 -DCOMPAT_32BIT -iprefix /usr/obj/usr/src/lib
32/usr/ -L/usr/obj/usr/src/lib32/usr/lib32 -B/usr/obj/usr/src/lib32/usr/lib32
-O2 -fno-strict-aliasing -pipe -DLIBC_SCCS -I/usr/src/lib/libkvm -c /usr/src/li
b/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/lib
32/usr/ -L/usr/obj/usr/src/lib32/usr/lib32 -B/usr/obj/usr/src/lib32/usr/lib32
-O2 -fno-strict-aliasing -pipe -DLIBC_SCCS -I/usr/src/lib/libkvm -c /usr/src/li
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.
*** 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.
--
Tags:
BBS
All Comments
Related Posts
誰可以幫忙解釋這個錯誤訊息?
By Bethany
at 2007-10-01T19:18
at 2007-10-01T19:18
初學者請問一個測不到網卡的問題
By Rebecca
at 2007-09-22T00:25
at 2007-09-22T00:25
初學者請問一個測不到網卡的問題
By Frederica
at 2007-09-21T21:37
at 2007-09-21T21:37
初學者請問一個測不到網卡的問題
By Hedda
at 2007-09-21T16:19
at 2007-09-21T16:19
安裝FreeBSD 6.2R的問題-write on fail …
By Rae
at 2007-09-21T12:48
at 2007-09-21T12:48