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: libstdc++-v3/libmath: cannot find math.h


I found that I have to build gcc with --enable-languages=c and install,
then build newlib and install, then build gcc with
--enable-languages=c++. Can this be done in one step without the
intervening installs?

Thanks,
Shaun


On Tue, 2003-08-19 at 09:50, Shaun Jackman wrote:
> Building gcc fails while building libstdc++-v3/libmath. What's gone
> wrong?
> 
> Thanks,
> Shaun
> 
> 
> $ ./config.guess
> i686-pc-linux-gnu
> $ ../gcc-3.3/configure \
>         --enable-languages=c++ \
>         --enable-multilib=no \
>         --with-cpu=strongarm1100 \
>         --with-newlib \
> 	--target=arm-wince-pe
> [clip]
> $ make
> [clip]
> Making all in libmath
> make[4]: Entering directory
> `/home/greimer/toolchain/pocketpc/gcc/build-gcc-3.3/arm-wince-pe/libstdc++-v3/libmath'
> /bin/sh ../libtool --tag CC --mode=compile
> /home/greimer/toolchain/pocketpc/gcc/build-gcc-3.3/gcc/xgcc
> -B/home/greimer/toolchain/pocketpc/gcc/build-gcc-3.3/gcc/
> -B/tools/pocketpc/arm-wince-pe/bin/ -B/tools/pocketpc/arm-wince-pe/lib/
> -isystem /tools/pocketpc/arm-wince-pe/include -DHAVE_CONFIG_H -I.
> -I../../../../gcc-3.3/libstdc++-v3/libmath -I..      -O2 -g -O2 -c
> ../../../../gcc-3.3/libstdc++-v3/libmath/stubs.c
> /home/greimer/toolchain/pocketpc/gcc/build-gcc-3.3/gcc/xgcc
> -B/home/greimer/toolchain/pocketpc/gcc/build-gcc-3.3/gcc/
> -B/tools/pocketpc/arm-wince-pe/bin/
> -B/tools/pocketpc/arm-wince-pe/lib/ -isystem
> /tools/pocketpc/arm-wince-pe/include -DHAVE_CONFIG_H -I.
> -I../../../../gcc-3.3/libstdc++-v3/libmath -I.. -O2
> -g -O2 -c ../../../../gcc-3.3/libstdc++-v3/libmath/stubs.c -o stubs.o
> ../../../../gcc-3.3/libstdc++-v3/libmath/stubs.c:30:18: math.h: No such file or directory
> make[4]: *** [stubs.lo] Error 1



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