Last Update: "2007/07/08 11:46:19 makoto"
20070420
TNF 20070420
macppc-070324.tar.gz
ps3-070420.tar.gz
All the changes are ad-hoc style, don't belive me.
(1) ./build.sh
build.sh-diff
(2) adbsys.h
missing adbsys.h and keyboard.h
160 18:21 ln sys/arch/macppc/include/adbsys.h sys/arch/ps3/include/adbsys.h
162 18:21 ln sys/arch/macppc/include/keyboard.h sys/arch/ps3/include/
(3) machine/include
# create powerpc64/crtbegin.d
CC=/export/20070420/checkout/src/tooldir.NetBSD-4.99.9-powerpc/bin/powerpc64--netbsd-gcc
/export/20070420/checkout/src/tooldir.NetBSD-4.99.9-powerpc/bin/nbmkdep
-f crtbegin.d --
-I/export/20070420/checkout/src/lib/csu/powerpc64 -DLIBC_SCCS
-DPIC -DDYNAMIC -DELFSIZE=32
-I/export/20070420/checkout/src/libexec/ld.elf_so
-I/export/20070420/checkout/src/lib/csu/powerpc64/../common_elf
-I/export/20070420/checkout/src/lib/libc/dlfcn -DDWARF2_EH
-DJCR -DDSO_HANDLE -nostdinc -isystem
/export/20070420/checkout/src/obj/destdir.ps3/usr/include
/export/20070420/checkout/src/lib/csu/powerpc64/../common_elf/crtbegin.c
In file included from /export/20070420/checkout/src/obj/destdir.ps3/usr/include/sys/cdefs.h:59,
from /export/20070420/checkout/src/obj/destdir.ps3/usr/include/sys/stdint.h:42,
from /export/20070420/checkout/src/obj/destdir.ps3/usr/include/sys/inttypes.h:46,
from /export/20070420/checkout/src/obj/destdir.ps3/usr/include/sys/param.h:88,
from /export/20070420/checkout/src/lib/csu/powerpc64/../common_elf/crtbegin.c:50:
/export/20070420/checkout/src/obj/destdir.ps3/usr/include/machine/cdefs.h:3:29: \
error: powerpc64/cdefs.h: No such file or directory
sudo rsync -a src/sys/arch/powerpc64/include/ src/obj/destdir.ps3/usr/include/powerpc64/
(4)@plt
____semctl13.S: Assembler messages:
____semctl13.S:2: Error: syntax error; found `@' but expected `,'
____semctl13.S:2: Error: junk at end of line: `@plt'
cp -p {/e/ml/20070115ps3/,}src/sys/arch/powerpc64/include/asm.h
sudo cp -p sys/arch/powerpc64/include/asm.h obj/destdir.ps3/usr/include/asm.h
cp -p ./sys/arch/powerpc64/include/asm.h obj/destdir.ps3/usr/include/powerpc64/
(5)`fdesc(__clone)'
/export/20070420/checkout/src/lib/libc/arch/powerpc64/sys/__clone.S:36: Error:
Unrecognized opcode: `fdesc(__clone)'
rsync -a {/e/ml/20070115ps3/src/lib/,}libc/arch/powerpc64/sys/
(6) #error PIC
/export/20070420/checkout/src/lib/libc/arch/powerpc64/sys/brk.S:19: error: #error PIC
time sudo env MKPIC=no ./build.sh -u -m ps3 -a powerpc64 -T /export/20070420/checkout/src/tooldir.NetBSD-4.99.9-powerpc release > & ../log-release-ps3
(7)zlib
src/common/dist/zlib/crc32.c:284: warning: cast from pointer to integer of different size
zlib (BYFOUR)
cvs diff common/dist/zlib/crc32.c
Index: common/dist/zlib/crc32.c
===================================================================
RCS file: /export/20070420/Repository/src/common/dist/zlib/crc32.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 crc32.c
--- common/dist/zlib/crc32.c 28 Apr 2007 11:37:06 -0000 1.1.1.1
+++ common/dist/zlib/crc32.c 1 May 2007 06:14:17 -0000
@@ -36,7 +36,8 @@
#define NOBYFOUR
#define DYNAMIC_CRC_TABLE
#endif
-
+#undef BYFOUR
+#define NOBYFOUR
/* Find a four-byte integer type for crc32_little() and crc32_big(). */
#ifndef NOBYFOUR
#if defined(__NetBSD__) && defined(_KERNEL)
(8) ptrdiff_t
src/gnu/dist/gcc4/libstdc++-v3/libsupc++/tinfo.cc:711: warning: overflow in implicit constant conversion
src/gnu/dist/gcc4/libstdc++-v3/libsupc++/tinfo.cc:
709 const vtable_prefix *prefix =
710 adjust_pointer <vtable_prefix> (vtable,
711 -offsetof (vtable_prefix, origin));
src/gnu/dist/gcc4/libstdc++-v3/libsupc++/tinfo.cc:
97 struct vtable_prefix
98 {
99 // Offset to most derived object.
100 ptrdiff_t whole_object;
101
102 // Additional padding if necessary.
103 #ifdef _GLIBCXX_VTABLE_PADDING
104 ptrdiff_t padding1;
105 #endif
106
107 // Pointer to most derived type_info.
108 const __class_type_info *whole_type;
109
110 // Additional padding if necessary.
111 #ifdef _GLIBCXX_VTABLE_PADDING
112 ptrdiff_t padding2;
113 #endif
114
115 // What a class's vptr points to.
116 const void *origin;
117 };
118
119 template <typename T>
120 inline const T *
121 adjust_pointer (const void *base, ptrdiff_t offset)
122 {
123 return reinterpret_cast <const T *>
124 (reinterpret_cast <const char *> (base) + offset);
125 }
src/bin/ksh/sh.h
197 #ifndef offsetof
198 # define offsetof(type,id) ((size_t)&((type*)NULL)->id)
199 #endif
src/include/stddef.h
55 #if __GNUC_PREREQ__(4, 0)
56 #define offsetof(type, member) __builtin_offsetof(type, member)
57 #elif !defined(__cplusplus)
58 #define offsetof(type, member) ((size_t)(unsigned long)(&((type *)0)->member))
59 #else
60 #if !__GNUC_PREREQ__(3, 4)
61 #define __offsetof__(a) a
62 #endif
63 #define offsetof(type, member) __offsetof__((reinterpret_cast<size_t> \
64 (&reinterpret_cast<const volatile char &>(static_cast<type *>(0)->member))))
65 #endif
ansi.h has to be reviewed.
--- /e/ml/20070115ps3/src/include/stddef.h 2007-01-21 15:33:50.000000000 +0900
+++ include/stddef.h 2007-07-01 09:51:18.000000000 +0900
@@ -53,7 +53,7 @@
#include
#if __GNUC_PREREQ__(4, 0)
-#define offsetof(type, member) __builtin_offsetof(type, member)
+#define offsetof(type, member) (ptrdiff_t) __builtin_offsetof(type, member)
#elif !defined(__cplusplus)
#define offsetof(type, member) ((size_t)(unsigned long)(&((type *)0)->member))
#else
|