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]

Re: Multilibs for arm-elf crossgcc (Part II)


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

My guess is that the configure of libstdc++-v3 failed because you haven't 
got newlib installed yet.

Do you have a unified tree? or separate gcc and newlib trees.

Assuming the latter (most common case), then what you need to do when 
building the compiler is

cd [gcc-build]
.../configure --target=arm-elf ...
gnumake all-gcc
gnumake install-gcc
cd [newlib-build]
.../configure --target=arm-elf ...
gnumake all-newlib
gnumake install-newlib
cd [gcc-build]
gnumake all
gnumake install

Sounds a bit convoluted but you can't build newlib until you have a 
comiler, and you can't build the compiler libraries until you have 
newlib...

R.



------
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]