unpack rpm found at
http://vinelinux.org/updates/3.0/RPMS/ppc/ (not found)
(
http://ftp.kddilabs.jp/pub/Linux/packages/Vine/Vine-4.1/ppc/Vine/RPMS/
?)
135 22:14 mkdir chroot
136 22:14 cd chroot
137 22:14 rpm2cpio /e/u/j/distfiles/glibc-2.3.3-3vl1.1.ppc.rpm | cpio --extract --make-directories
138 22:15 rpm2cpio /e/u/j/distfiles/glibc-devel-2.3.3-3vl1.1.ppc.rpm | cpio --extract --make-directories
139 22:15 cd ..
140 22:15 mkdir kernel
141 22:15 cd kernel/
142 22:15 rpm2cpio /e/u/j/distfiles/kernel-headers-2.4.26-0vl17.6.ppc.rpm | cpio --extract --make-directories
copy includes
ttypd:makoto@st4200 22:18:49/051010(/tmp/chroot)> sudo rsync -a usr/include/ /usr/local/powerpc-gnu-linux/include/
copy kernel includes
ttypd:makoto@st4200 22:19:34/051010(/tmp/kernel)> \
sudo rsync -a usr/src/linux-2.4.26/include/linux/ \
/usr/local/powerpc-gnu-linux/include/linux/
copy machine specific kernel headers
ttypd:makoto@st4200 22:21:47/051010(/tmp/kernel)> \
sudo rsync -a usr/src/linux-2.4.26/include/asm-ppc/ \
/usr/local/powerpc-gnu-linux/include/asm/
copy generic asm kernel headers
ttypd:makoto@st4200 22:21:50/051010(/tmp/kernel)> \
sudo rsync -a usr/src/linux-2.4.26/include/asm-generic/ \
/usr/local/powerpc-gnu-linux/include/asm-generic/
copy libraries
ttypd:makoto@st4200 22:28:09/051010(/tmp/chroot)> sudo rsync -a lib/ /usr/local/powerpc-gnu-linux/lib/
ttypd:makoto@st4200 22:28:22/051010(/tmp/chroot)> sudo rsync -a usr/lib/ /usr/local/powerpc-gnu-linux/lib/
fix symbolic link
ttypd:makoto@st4200 22:29:10/051010(...powerpc-gnu-linux/lib)> ls -l | grep "../../lib" | sed 's|../../lib/||' | \
awk '{ print "ln -sf", $11, $9 }' | tee fixit? awk '{ print "ln -sf", $11, $9 }' | tee fixit
ttypd:makoto@st4200 22:29:16/051010(...powerpc-gnu-linux/lib)> sudo sh fixit
ttypd:makoto@st4200 22:29:29/051010(...powerpc-gnu-linux/lib)> sudo rm fixit
fix libc.so
--- /usr/local/powerpc-gnu-linux/lib/libc.so-orig 2005-10-10 22:15:16.000000000 +0900
+++ /usr/local/powerpc-gnu-linux/lib/libc.so 2005-10-10 22:31:11.000000000 +0900
@@ -2,4 +2,4 @@
Use the shared library, but some functions are only in
the static library, so try that secondarily. */
OUTPUT_FORMAT(elf32-powerpc)
-GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a )
+GROUP ( libc.so.6 libc_nonshared.a )
ttypd:makoto@st4200 22:31:28/051010(...powerpc-gnu-linux/lib)>
gcc-3.4.4
../../gcc-3.4.4/gcc/gcc.c:1504: error: `NETBSD_CPP_SPEC' undeclared here (not in a function)
../../gcc-3.4.4/gcc/gcc.c:1504: error: initializer element is not constant
gcc-3.3.6
211 23:00 ../gcc-3.3.6/configure --target=powerpc-gnu-linux --host=powerpc--netbsd --with-gnu-ld --with-gnu-as
212 23:00 time gmake
...
/usr/local/powerpc-gnu-linux/bin/ld: cannot find /lib/libpthread.so.0
collect2: ld returned 1 exit status
gmake[2]: *** [libgcjgc.la] Error 1
gmake[2]: Leaving directory `/export/local-src/gcc-3.3.6-powerpc-gnu-linux/powerpc-gnu-linux/boehm-gc'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/export/local-src/gcc-3.3.6-powerpc-gnu-linux/powerpc-gnu-linux/boehm-gc'
gmake: *** [all-target-boehm-gc] Error 2
1323.699u 508.823s 30:52.34 98.9% 0+0k 65+39409io 233pf+18w
ttypd:makoto@st4200 23:31:31/051010(...local-src/gcc-3.3.6-powerpc-gnu-linux)>
232 23:52 sudo ln -s /usr/lib/libpthread.so /lib
235 23:52 sudo ln -s /usr/lib/libpthread.so.0 /lib
236 23:52 sudo ln -s /usr/lib/libpthread.so.0.6 /lib
240 23:54 sudo ln -s /usr/local/powerpc-gnu-linux/lib/libpthread_nonshared.a /lib
242 23:54 sudo ln -s /usr/local/powerpc-gnu-linux/lib/libpthread_nonshared.a /usr/lib
The error now:
libtool: compile: unable to infer tagged configuration
libtool: compile: specify a tag with `--tag'
*** Error code 1
OK, gcc may be just symbolic link if the architecture of the machine and the target are the same.