Dear all,
I am a very newbie and I would like to ask help concerning the compilation of
tslib: I have downloaded the toolchain but apparently I am missing something...
cd ~/
mkdir toolchaindownload
cd toolchaindownload/
wget
ftp://ftp.embeddedarm.com/ts-arm-sbc/ts-7390-linux/cross-toolchains/crosstool-linux-gcc-3.3.4-glibc-2.3.2-0.28rc39.tar.bz2
tar xvjf crosstool-linux-gcc-3.3.4-glibc-2.3.2-0.28rc39.tar.bz2
cd
crosstool-linux-gcc-3.3.4-glibc-2.3.2-0.28rc39/usr/local/opt/crosstool/arm-linux/gcc-3.3.4-glibc-2.3.2/
cd usr/local/opt/crosstool/arm-linux/gcc-3.3.4-glibc-2.3.2/
sudo mkdir -p /usr/local/opt/crosstool/arm-linux/
sudo cp -r bin/ /usr/local/opt/crosstool/arm-linux/
sudo mkdir -p /usr/local/opt/crosstool/gcc-lib/arm-linux/
sudo cp -r lib/gcc-lib/arm-linux/3.3.4/
/usr/local/opt/crosstool/gcc-lib/arm-linux/
export
PATH=$PATH:/usr/local/opt/crosstool/arm-linux/bin:/usr/local/opt/crosstool/gcc-lib/arm-linux/
This should set up the cross compiler, then I install all the packages and
execute
sudo ./autogen.sh
./configure CC=arm-linux-gcc CXX=arm-linux-g++
PLUGIN_DIR=/usr/local/linux-arm/plugins prefix=/usr/local/linux-arm
-host=arm-linux
What I obtain is an error in cc1plus :
## --------- ##
## Platform. ##
## --------- ##
hostname = edmondo-laptop
uname -m = i686
uname -r = 2.6.24-23-generic
uname -s = Linux
uname -v = #1 SMP Wed Apr 1 21:47:28 UTC 2009
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games
PATH: /usr/local/opt/crosstool/arm-linux/bin
PATH: /usr/local/opt/crosstool/gcc-lib/arm-linux/3.3.4
PATH: /usr/local/opt/crosstool/arm-linux/bin
PATH: /usr/lib/gcc/i486-linux-gnu/4.2
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1997: loading site script arm-linux.autogen
| ac_cv_func_malloc_0_nonnull=yes
configure:2160: checking for a BSD-compatible install
configure:2228: result: /usr/bin/install -c
configure:2239: checking whether build environment is sane
configure:2282: result: yes
configure:2307: checking for a thread-safe mkdir -p
configure:2346: result: /bin/mkdir -p
configure:2359: checking for gawk
configure:2389: result: no
configure:2359: checking for mawk
configure:2375: found /usr/bin/mawk
configure:2386: result: mawk
configure:2397: checking whether make sets $(MAKE)
configure:2419: result: yes
configure:2499: checking for arm-linux-strip
configure:2515: found /usr/local/opt/crosstool/arm-linux/bin/arm-linux-strip
configure:2526: result: arm-linux-strip
configure:2730: checking for C++ compiler version
configure:2738: arm-linux-g++ --version >&5
arm-linux-g++ (GCC) 3.3.4
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:2742: $? = 0
configure:2749: arm-linux-g++ -v >&5
Using built-in specs.
Configured with:
/home/liberty/work_stuff/xtool/crosstool-0.28-rc37/build/arm-linux/gcc-3.3.4-glibc-2.3.2/gcc-3.3.4/configure
--target=arm-linux --host=i686-host_pc-linux-gnu
--prefix=/usr/local/opt/crosstool/arm-linux/gcc-3.3.4-glibc-2.3.2
--with-headers=/usr/local/opt/crosstool/arm-linux/gcc-3.3.4-glibc-2.3.2/arm-linux/include
--with-local-prefix=/usr/local/opt/crosstool/arm-linux/gcc-3.3.4-glibc-2.3.2/arm-linux
--disable-nls --enable-threads=posix --enable-symvers=gnu
--enable-__cxa_atexit --enable-languages=c,c++ --enable-shared --enable-c99
--enable-long-long
Thread model: posix
gcc version 3.3.4
configure:2753: $? = 0
configure:2760: arm-linux-g++ -V >&5
arm-linux-g++: `-V' option must have argument
configure:2764: $? = 1
configure:2787: checking for C++ compiler default output file name
configure:2809: arm-linux-g++ conftest.cpp >&5
/tmp/ccQ80vGt.s: Assembler messages:
/tmp/ccQ80vGt.s:7: Error: junk at end of line, first unrecognized character is
/tmp/ccQ80vGt.s:8: Error: junk at end of line, first unrecognized character is
/tmp/ccQ80vGt.s:9: Error: too many memory references for `mov'
/tmp/ccQ80vGt.s:10: Error: no such instruction: `stmfd sp!,{fp,ip,lr,pc}'
/tmp/ccQ80vGt.s:11: Error: too many memory references for `sub'
/tmp/ccQ80vGt.s:12: Error: expecting operand after ','; got nothing
/tmp/ccQ80vGt.s:13: Error: too many memory references for `mov'
/tmp/ccQ80vGt.s:14: Error: no such instruction: `ldmea fp,{fp,sp,pc}'
configure:2813: $? = 1
configure:2851: result:
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "tslib"
| #define PACKAGE_TARNAME "tslib"
| #define PACKAGE_VERSION "0.0.2"
| #define PACKAGE_STRING "tslib 0.0.2"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "tslib"
| #define VERSION "0.0.2"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2857: error: in `/home/edmondo/project/sysapps/tslib/tslib-1.0':
configure:2860: error: C++ compiler cannot create executables
See `config.log' for more details.
What's wrong?Please help me
Best REgards
Edmondo
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|