[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[pbsd-mg2] Re: cache problem again
| % make -m ~/hpcmips/share/mk CC="cc -v"
| cc -v -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-uninitialized -Wpointer-arith -Wno-main -G 0 -mno-abicalls -mno-half-pic -I. -I../../../../arch -I../../../.. -nostdinc -DMIPS3_FLUSH -DMIPS3 -DNKMEMCLUSTERS=1024 -DHPCMIPS_L1CAHCE_DISABLE -DHPCMIPS_FLUSHCACHE_XXX -DHPCMIPS_PGSIZE_16K -DFIFO -DMULTICAST -D__NO_SOFT_SERIAL_INTERRUPT -DMAXUSERS=8 -D_KERNEL -Dhpcmips -D__hpcmips__ -c ../../../../netinet/ip_auth.c
| Using builtin specs.
| gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)
| /usr/obj/mipsel/sand/imp/FreeBSD/src/tmp/usr/libexec/cpp -lang-c -nostdinc -v -I. -I../../../../arch -I../../../.. -isystem /usr/obj/mipsel/sand/imp/FreeBSD/src/tmp/usr/libexec/include -isystem /usr/obj/mipsel/sand/imp/FreeBSD/src/tmp/usr/libexec/elf/include -undef -D__GNUC__=2 -D__GNUC_MINOR__=91 -D__ANSI_COMPAT -DMIPSEL -DR3000 -DSYSTYPE_BSD -D_SYSTYPE_BSD -D__ELF__ -Dmips -D__NO_LEADING_UNDERSCORES__ -D__GP_SUPPORT__ -D_R3000 -Dunix -D__FreeBSD__=4 -D__FreeBSD_cc_version=400002 -D__ANSI_COMPAT -D__MIPSEL__ -D__R3000__ -D__SYSTYPE_BSD__ -D_SYSTYPE_BSD -D__ELF__ -D__mips__ -D__NO_LEADING_UNDERSCORES__ -D__GP_SUPPORT__ -D_R3000 -D__unix__ -D__FreeBSD__=4 -D__FreeBSD_cc_version=400002 -D__MIPSEL -D__R3000 -D__SYSTYPE_BSD -D__mips -D__unix -Amachine(mips) -Asystem(unix) -Asystem(FreeBSD) -D__OPTIMIZE__ -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-uninitialized -Wpointer-arith -Wno-main -D__SIZE_TYPE__=unsigned int -D__PTRDIFF_TYPE__=int -DMIPS3_FLUSH -DMIPS3 -DNKMEMCL!
U!
| STERS=1024 -DHPCMIPS_L1CAHCE_DISABLE -DHPCMIPS_FLUSHCACHE_XXX -DHPCMIPS_PGSIZE_16K -DFIFO -DMULTICAST -D__NO_SOFT_SERIAL_INTERRUPT -DMAXUSERS=8 -D_KERNEL -Dhpcmips -D__hpcmips__ ../../../../netinet/ip_auth.c /tmp/ccb26741.i
| GNU CPP version egcs-2.91.66 19990314 (egcs-1.1.2 release) [AL 1.1, MM 40] BSD Mips
| #include "..." search starts here:
| #include <...> search starts here:
| .
| ../../../../arch
| ../../../..
| End of search list.
| ../../../../netinet/ip_auth.c:97: machine/cpufunc.h: No such file or directory
コンパイラのpredefineで__FreeBSD__がついているのが問題だと思います。
gnu/dist/gcc/config/mips/netbsd.hを参考に、specsファイルを修正したものに
してみてください。
cc -dumpspec > hpcmips.specs
Edit hpcmips.specs
*predefines:
-D__ANSI_COMPAT -DMIPSEL -DR3000 -DSYSTYPE_BSD -D_SYSTYPE_BSD -D__NetBSD__ -Dmips -D__NO_LEADING_UNDERSCORES__ -D__GP_SUPPORT__ -Dunix -D_R3000 -Asystem(unix) -Asystem(NetBSD) -Amachine(mips)
cc -specs=hpcmips.specs
(or put this file to specs search directory)
---
UCHIYAMA Yasushi
uch@nop.or.jp