Multilibs for arm-elf crossgcc (Part II)

Alexander Raimondi araimond@ee.ethz.ch
Fri Jan 25 04:25:00 GMT 2002


Hi

I could solve my recent problem (thanks Ken). But there is another one.


What i would like to do:

- Building gcc 3.0.3 with newlib as crosscompiler for target "arm-elf".
- Having all libs (newlib (libc), libgcc etc.) as arm, thumb, arm/interwork
and thumb/interwork


What i did:

- extracting gcc 3.0.2 to gcc-3.0.2.
- symbolic link to newlib in gcc
- mkdir build-gcc
- in build-gcc I executed following configure:

../gcc-3.0.2/configure --target=arm-elf --prefix=/usr/local --with-gnu-as --
with-gnu-ld --with-newlib --enable-languages=c,c++
--enable-multilib --enable-interwork --with-cpu=arm7tdmi

- make all

What i get:

- Building of interworking libs is nearly working. In build-gcc/arm-elf i
can find the subdir as expected.

The problem:

The build fails with following message:

----- snip ----------------------
make[7]: Leaving directory
`/xgcc-arm/build-gcc/arm-elf/interwork/libstdc++-v3/testsuite'
make[7]: Entering directory
`/xgcc-arm/build-gcc/arm-elf/interwork/libstdc++-v3'
true "AR_FLAGS=rc"  "CC_FOR_BUILD=gcc"
"CC_FOR_TARGET=/xgcc-arm/build-gcc/gcc/xgcc -B/xgcc-arm/build-gcc/gcc/ -nost
dinc -B/xgcc-arm/build-gcc/arm-elf/newlib/ -isystem
/xgcc-arm/build-gcc/arm-elf/newlib/targ-include -isystem
/xgcc-arm/gcc-3.0.2/newlib/libc/include -B/usr/local/arm-elf/bin/ -B/usr/loc
al/arm-elf/lib/ -isystem /usr/local/arm-elf/include"
"CFLAGS=-g -O2  -mthumb-interwork"  "CXXFLAGS=-g -O2  -mthumb-interwork"
"CFLAGS_FOR_BUILD="  "CFLAGS_FOR_TARGET=-g -O2"
 "INSTALL=/usr/bin/install -c"  "INSTALL_DATA=/usr/bin/install -c -m 644"
"INSTALL_PROGRAM=/usr/bin/install -c "  "INSTALL_SCRIPT=/usr/bin/install -c
"  "LDFLAGS=-mthumb-interwork"  "LIBCFLAGS=-g -O2  -mthumb-interwork"
"LIBCFLAGS_FOR_TARGET=-g -O2"  "MAKE=make"  "MAKEINFO=makeinfo   "
"PICFLAG="  "PICFLAG_FOR_TARGET="  "SHELL=/bin/sh"  "RUNTESTFLAGS="
"exec_prefix=/usr/local"  "infodir=/usr/local/info"  "libdir=/usr/local/lib"
"includedir=/usr/local/include"  "prefix=/usr/local"
"tooldir=/usr/local/arm-elf"  "AR=arm-elf-ar"
"AS=/usr/local/arm-elf/bin/as.exe"  "LD=/usr/local/arm-elf/bin/ld.exe"
"LIBCFLAGS=-g -O2  -mthumb-interwork"  "PICFLAG="  "RANLIB=arm-elf-ranlib"
"NM=/usr/local/arm-elf/bin/nm.exe"  "NM_FOR_BUILD="
"NM_FOR_TARGET=/usr/local/arm-elf/bin/nm.exe"  "DESTDIR="  "WERROR="  DO=all
multi-do
make[7]: Leaving directory
`/xgcc-arm/build-gcc/arm-elf/interwork/libstdc++-v3'
make[6]: Leaving directory
`/xgcc-arm/build-gcc/arm-elf/interwork/libstdc++-v3'
make[5]: Leaving directory
`/xgcc-arm/build-gcc/arm-elf/interwork/libstdc++-v3'
make[5]: Entering directory
`/xgcc-arm/build-gcc/arm-elf/thumb/interwork/libstdc++-v3'
make[5]: *** No rule to make target `all'.  Stop.
make[5]: Leaving directory
`/xgcc-arm/build-gcc/arm-elf/thumb/interwork/libstdc++-v3'
make[4]: *** [multi-do] Error 1
make[4]: Leaving directory `/xgcc-arm/build-gcc/arm-elf/libstdc++-v3'
make[3]: *** [all-multi] Error 2
make[3]: Leaving directory `/xgcc-arm/build-gcc/arm-elf/libstdc++-v3'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/xgcc-arm/build-gcc/arm-elf/libstdc++-v3'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/xgcc-arm/build-gcc/arm-elf/libstdc++-v3'
make: *** [all-target-libstdc++-v3] Error 2
----------------------- snap ----------------------

- In "build-gcc/arm-elf/thumb/interwork/libstdc++-v3" there is _NO_
Makefile. There are only to files:
       > confdefs.h and config.log <


What's wrong?

Thanks for any help!

Alex


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



More information about the crossgcc mailing list