This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

ok, finally trying out the uclibc patch for crosstool...


It failed with
+ test -f /home/dank/test/crosstool-0.28-rc5/patches/uClibc-0.9.23/Makefiles-relocate.patch
+ patch -g0 --fuzz=1 -p1 -f
+ cat patch30786.log
patching file Makefile
Hunk #7 FAILED at 258.
1 out of 10 hunks FAILED -- saving rejects to file Makefile.rej

It failed later with
+ sed -i -f munge-defconfig.sed .config
sed: file munge-defconfig.sed line 2: Invalid reference \1 on `s' command's RHS
because of missing \ on the ('s and )'s on lines 1 and 4 of munge-defconfig.sed.
(I'm on Red Hat 9; sed here is GNU sed version 4.0.5.)

So I put a fixed version up at http://kegel.com/crosstool/crosstool-uclibc-0.28-rc5-ter.patch

Sadly, that crashed when building C++, with error

In file included from /home/dank/test3/crosstool-0.28-rc5/build/mipsel-unknown-linux-gnu/gcc-3.3.3-uClibc-0.9.23/gcc-3.3.3/libstdc++-v3/src/ctype.cc:36:
/home/dank/test3/crosstool-0.28-rc5/build/mipsel-unknown-linux-gnu/gcc-3.3.3-uClibc-0.9.23/build-gcc/mipsel-unknown-linux-gnu/libstdc++-v3/include/mipsel-unknown-linux-gnu/bits/ctype_noninline.h: In
   constructor `std::ctype<char>::ctype(int*, const short unsigned int*, bool,
   unsigned int)':
/home/dank/test3/crosstool-0.28-rc5/build/mipsel-unknown-linux-gnu/gcc-3.3.3-uClibc-0.9.23/build-gcc/mipsel-unknown-linux-gnu/libstdc++-v3/include/mipsel-unknown-linux-gnu/bits/ctype_noninline.h:84: error: cannot
   convert `const __ctype_touplow_t*' to `const int*' in assignment
/home/dank/test3/crosstool-0.28-rc5/build/mipsel-unknown-linux-gnu/gcc-3.3.3-uClibc-0.9.23/build-gcc/mipsel-unknown-linux-gnu/libstdc++-v3/include/mipsel-unknown-linux-gnu/bits/ctype_noninline.h:85: error: cannot
   convert `const __ctype_touplow_t*' to `const int*' in assignment
In file included from /home/dank/test3/crosstool-0.28-rc5/build/mipsel-unknown-linux-gnu/gcc-3.3.3-uClibc-0.9.23/gcc-3.3.3/libstdc++-v3/src/ctype.cc:36:
/home/dank/test3/crosstool-0.28-rc5/build/mipsel-unknown-linux-gnu/gcc-3.3.3-uClibc-0.9.23/build-gcc/mipsel-unknown-linux-gnu/libstdc++-v3/include/mipsel-unknown-linux-gnu/bits/ctype_noninline.h: In
   constructor `std::ctype<char>::ctype(const short unsigned int*, bool,
   unsigned int)':
/home/dank/test3/crosstool-0.28-rc5/build/mipsel-unknown-linux-gnu/gcc-3.3.3-uClibc-0.9.23/build-gcc/mipsel-unknown-linux-gnu/libstdc++-v3/include/mipsel-unknown-linux-gnu/bits/ctype_noninline.h:114: error: cannot
   convert `const __ctype_touplow_t*' to `const int*' in assignment
/home/dank/test3/crosstool-0.28-rc5/build/mipsel-unknown-linux-gnu/gcc-3.3.3-uClibc-0.9.23/build-gcc/mipsel-unknown-linux-gnu/libstdc++-v3/include/mipsel-unknown-linux-gnu/bits/ctype_noninline.h:115: error: cannot
   convert `const __ctype_touplow_t*' to `const int*' in assignment
make[3]: *** [ctype.lo] Error 1
make[3]: Leaving directory `/home/dank/test3/crosstool-0.28-rc5/build/mipsel-unknown-linux-gnu/gcc-3.3.3-uClibc-0.9.23/build-gcc/mipsel-unknown-linux-gnu/libstdc++-v3/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/dank/test3/crosstool-0.28-rc5/build/mipsel-unknown-linux-gnu/gcc-3.3.3-uClibc-0.9.23/build-gcc/mipsel-unknown-linux-gnu/libstdc++-v3'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/home/dank/test3/crosstool-0.28-rc5/build/mipsel-unknown-linux-gnu/gcc-3.3.3-uClibc-0.9.23/build-gcc/mipsel-unknown-linux-gnu/libstdc++-v3'
make: *** [all-target-libstdc++-v3] Error 2

so I gave up on C++ and just built C.  Well, I would, but I
have to go play with my son for a while.  Anyway, here's what
I have so far.

Here's a script that downloads and builds
everything.  Save this as x.sh, then do
  sh x.sh > x.log 2>&1 &
and watch its progress with
  tail -f x.log


#!/bin/sh set -ex TARBALLS_DIR=$HOME/downloads mkdir -p $TARBALLS_DIR wget -c -P $TARBALLS_DIR kegel.com/crosstool/crosstool-0.28-rc5.tar.gz wget -c -P $TARBALLS_DIR http://kegel.com/crosstool/crosstool-uclibc-0.28-rc5-ter.patch rm -rf crosstool-0.28-rc5 tar -xzf $TARBALLS_DIR/crosstool-0.28-rc5.tar.gz cd crosstool-0.28-rc5 patch -p1 < $TARBALLS_DIR/crosstool-uclibc-0.28-rc5-ter.patch

RESULT_TOP=/opt/crosstool
export TARBALLS_DIR RESULT_TOP
GCC_LANGUAGES="c"
export GCC_LANGUAGES
eval `cat gcc-3.3.3-uclibc-0.9.23.dat mipsel.dat` sh all.sh


-- My technical stuff: http://kegel.com My politics: see http://www.misleader.org for examples of why I'm for regime change

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]