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] | |
>On executing the make command, I get the following error
>
>In file included from ../../../../gcc-3.1/libstdc++-v3/libsupc++/eh_alloc.cc:34:
>/nfs/iadusr02/vsankara/xscale-gnu/build-gcc/xscale-elf/libstdc++-v3/include/cstdlib:86: `
> div_t' not declared
>/nfs/iadusr02/vsankara/xscale-gnu/build-gcc/xscale-elf/libstdc++-v3/include/cstdlib:87: `
> ldiv_t' not declared
>/nfs/iadusr02/vsankara/xscale-gnu/build-gcc/xscale-elf/libstdc++-v3/include/cstdlib:97: `
> div' not declared
>/nfs/iadusr02/vsankara/xscale-gnu/build-gcc/xscale-elf/libstdc++-v3/include/cstdlib:102: `
> ldiv' not declared
>
Ahh, the dreaded div_t undeclared error... Let me look around my
notes... Yes, see this message for a better explanation.
http://gcc.gnu.org/ml/gcc/2003-05/msg01998.html
The following is from my Makefile to build newlib systems:
#
# gcc-3.x is broken in that it fixinc's stdlib.h which is wrong since
# newlib already supplied a good stdlib.h See
# http://gcc.gnu.org/ml/gcc/2003-05/msg01998.html
#
fix-headers:
cd ${PREFIX}/${TARGET}/sys-include; \
ln -sf ../include/stdlib.h stdlib.h; \
ln -sf ../include/unistd.h unistd.h; \
ln -sf ../include/string.h string.h; \
ln -sf ../include/limits.h limits.h;
This is invoked after newlib is installed and *before* gcc is
configure for a C++ compiler. PREFIX and TARGET are defined from your
command line for the configures:
/path/to/gcc-x.x.x/configure --prefix=${PREFIX} --target=${PREFIX}
In your case, PREFIX=<bin-directory>/xscale-elf, and TARGET=xscale-elf
--
Peter Barada
peter@baradas.org
------
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] |