- 论坛徽章:
- 0
|
我在试图编译/usr/src/sys/i386/conf/PAE时总是出现编译错误,总是说那个entry.c指针错误:
------------------------------------------------
I/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm -I/usr/src/sys/dev/twa -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -ffreestanding -Werror /usr/src/sys/dev/fdc/fdc_pccard.c
cc -c -O -pipe -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -g -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/contrib/dev/acpica -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/pf -I/usr/src/sys/contrib/dev/ath -I/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm -I/usr/src/sys/dev/twa -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -ffreestanding -Werror /usr/src/sys/dev/hptmv/entry.c
/usr/src/sys/dev/hptmv/entry.c: In function `fOsBuildSgl':
/usr/src/sys/dev/hptmv/entry.c:2476: warning: cast to pointer from integer of different size
/usr/src/sys/dev/hptmv/entry.c: In function `hpt_io_dmamap_callback':
/usr/src/sys/dev/hptmv/entry.c:2606: warning: cast to pointer from integer of different size
/usr/src/sys/dev/hptmv/entry.c: In function `OsSendCommand':
/usr/src/sys/dev/hptmv/entry.c:2758: warning: cast to pointer from integer of different size
*** Error code 1
Stop in /usr/obj/usr/src/sys/PAE.
*** Error code 1
Stop in /usr/src.
*** Error code 1
Stop in /usr/src.
--------------------------------------------
我的机器配置:Opteron 246 * 2, Tyan S2895 K8WE, 4G DDR400 ECC-R 8*512M
奇怪的是,尽管我的内存没有超4G,但dmesg | grep real只认出3.5G左右的内存,而且启动的时候也有提示有一部分内存会被忽略。但编译SMP和GENERIC的时候没有任何问题, sysctl hw.ncpu也能认出2 CPUs。
还有,如果我要同时把GENERIC, PAE和SMP都编译进去,也会出现一样的错误信息。
各位大虾帮我看一下问题,谢过了 |
|