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 changing the mipsel.dat and rerunning demo-mipsel.sh ran for a while, then gave me:
/home/downloads/crosstool-0.28-rc5/build/mipsel-unknown-linux-uclibc/gcc-3.3 .3-glibc-2.3.2/glibc-2.3.2/configure --host=mipsel-unknown-linux-uclibc --prefix=/usr --build=i686-pc-linux-gnu --without-cvs --disable-sanity-checks --with-headers=/opt/crosstool/mipsel-unknown-linux-uclibc/gcc-3.3.3-glibc-2. 3.2/mipsel-unknown-linux-uclibc/include --enable-hacker-mode checking build system type... i686-pc-linux-gnu checking host system type... Invalid configuration `mipsel-unknown-linux-uclibc': machine `mipsel-unknown-linux' not recognized configure: error: /bin/sh /home/downloads/crosstool-0.28-rc5/build/mipsel-unknown-linux-uclibc/gcc-3.3 .3-glibc-2.3.2/glibc-2.3.2/scripts/config.sub mipsel-unknown-linux-uclibc failed
What else am I doing wrong?
Oh, who knows, there are so many little steps. Better to just give you a script that works here. To wit:
------------------ snip --------------- #!/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 mkdir -p $RESULT_TOP export TARBALLS_DIR RESULT_TOP GCC_LANGUAGES="c,c++" export GCC_LANGUAGES eval `cat gcc-3.3.3-uclibc-0.9.23.dat mipsel-uclibc.dat` sh all.sh
# The above command fails the "hello, world" test when linking non-static c++ programs, # with error # mipsel-unknown-linux-uclibc-g++ hello2.cc -o mipsel-unknown-linux-uclibc-hello2 # mipsel-unknown-linux-uclibc/lib/libstdc++.so: undefined reference to `sqrtf # but can link static ones ok. ------------------ snip ---------------
Run that as a normal user. You'll need perhaps to make the directory /opt/crosstool first, and make it owned and writable by you. - Dan
-- 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] |