一般論
組合せ
  gcc2 or gcc3
例題
  kuro-box
    binutils
    glibc
    gcc
    sample compile
      compile on Host
      open on target
  kernel
  NetBSD/macppc

Last Update: "2004/11/09 16:20:34 makoto"

例題

kuro-box

binutils

binutils-2.15
11 10:48 setenv LANG C 10 10:47 tar jxf ../distfiles/binutils-2.15.tar.bz2 12 10:48 cd binutils-2.15/ 15 10:50 ./configure --target=powerpc--linux --prefix=/usr/local 16 10:51 time make 17 11:07 sudo make install

glibc

glibc-2.2.3
cd /tmp mkdir glibc 65 12:08 cd glibc 67 12:08 tar zxf /export/distfiles/glibc-2.2.3.tar.gz 70 12:19 sudo rsync -a usr/include/ /usr/local/powerpc--linux/include/ 72 12:20 sudo rsync -a lib/ /usr/local/powerpc--linux/lib/ 73 12:20 sudo rsync -a usr/lib/ /usr/local/powerpc--linux/lib/ 74 12:20 cd /usr/local/powerpc--linux/lib/ 77 12:22 ls -l | grep "../../lib" | sed 's|../../lib/||' | awk '{print "ln -sf", $11, $9}' | & tee fixit 78 12:22 sudo sh fixit 79 12:22 rm fixit

gcc

gcc-3.3.2
pts/2:makoto@fedora 13:21:31/041109(...local-src/gcc-3.3.2-powerpc--linux)> \ ../gcc-3.3.2/configure \ --prefix=/usr/local \ --target=powerpc--linux \ --with-gnu-ld --with-gnu-as \ --enable-languages='c' /usr/local/powerpc--linux/include/bits/sigthread.h:36: error: storage class specified for parameter `type name'
--- include/bits/sigthread.h~	2002-04-30 09:50:07.000000000 +0900
+++ include/bits/sigthread.h	2004-11-09 13:22:43.000000000 +0900
@@ -33,6 +33,6 @@
 			    __sigset_t *__restrict __oldmask)__THROW;
 
 /* Send signal SIGNO to the given thread. */
-extern int pthread_kill (pthread_t __thread, int __signo) __THROW;
+extern int pthread_kill (pthread_t __threadid, int __signo) __THROW;
 
 #endif	/* bits/sigthread.h */
--- include/pthread.h~	2002-04-30 09:50:25.000000000 +0900
+++ include/pthread.h	2004-11-09 13:24:47.000000000 +0900
@@ -160,7 +160,7 @@
 /* Create a thread with given attributes ATTR (or default attributes
    if ATTR is NULL), and call function START_ROUTINE with given
    arguments ARG.  */
-extern int pthread_create (pthread_t *__restrict __thread,
+extern int pthread_create (pthread_t *__restrict __threadid,
 			   __const pthread_attr_t *__restrict __attr,
 			   void *(*__start_routine) (void *),
 			   void *__restrict __arg) __THROW;
@@ -588,7 +588,7 @@
 extern int pthread_setcanceltype (int __type, int *__oldtype) __THROW;
 
 /* Cancel THREAD immediately or at the next possibility.  */
-extern int pthread_cancel (pthread_t __thread) __THROW;
+extern int pthread_cancel (pthread_t __threadid) __THROW;
 
 /* Test for pending cancellation for the current thread and terminate
    the thread as per pthread_exit(PTHREAD_CANCELED) if it has been
sudo make install
Last Update: Sat, 07 Jun 2014 13:16:17 GMT 1.66 2008/03/08