This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Tutorial 4


Hi all GCC Gurus out there !!

The saga continues... Here's the latest news:
- I am quite convinced that I know what I am doing and have writen a script
especially for my favorite target (the Motorola mcore). I have posted it
seperately (for anyone interested to use or test) so as not to make this
mail too much longer that it already is.
- The script is based on information received from several sources (many
thanks to those who have been giving tips over the previous weeks
(months?))
- The script seems to work fine up to the point where the build of the full
gcc fails to compile *.cc library files
- At the point where it fails, all binutil files for the target are in
/usr/local/bin, including the (simple)gcc for the target
- Newlib has been successfully built and is in /usr/local/mcore
(lib/crt0.o, libc.a etc)

- But something goes wrong in libstdc++ when trying to compile c++ sources
as shown in this extract below

*******************(first part ok to show that things are working as
expected up to the failure)**********************************************
make[3]: Entering directory
`/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/libio'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory
`/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/libio'
Making all in libmath
make[3]: Entering directory
`/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/libmath'
/bin/sh ../libtool --mode=compile /usr/local/src/gnu/BUILD/gcc/gcc/xgcc
-B/usr/local/src/gnu/BUILD/gcc/gcc/ -nostdinc
-B/usr/local/src/gnu/BUILD/gcc/mcore-elf/newlib/ -isystem
/usr/local/src/gnu/BUILD/gcc/mcore-elf/newlib/targ-include -isystem
/usr/local/src/gnu/gcc-3.1/newlib/libc/include -B/usr/local/mcore-elf/bin/
-B/usr/local/mcore-elf/lib/ -isystem /usr/local/mcore-elf/include
-DHAVE_CONFIG_H -I. -I/usr/local/src/gnu/gcc-3.1/libstdc++-v3/libmath -I.. 
    -g -O2 -c /usr/local/src/gnu/gcc-3.1/libstdc++-v3/libmath/stubs.c
/usr/local/src/gnu/BUILD/gcc/gcc/xgcc -B/usr/local/src/gnu/BUILD/gcc/gcc/
-nostdinc -B/usr/local/src/gnu/BUILD/gcc/mcore-elf/newlib/ -isystem
/usr/local/src/gnu/BUILD/gcc/mcore-elf/newlib/targ-include -isystem
/usr/local/src/gnu/gcc-3.1/newlib/libc/include -B/usr/local/mcore-elf/bin/
-B/usr/local/mcore-elf/lib/ -isystem /usr/local/mcore-elf/include
-DHAVE_CONFIG_H -I. -I/usr/local/src/gnu/gcc-3.1/libstdc++-v3/libmath -I..
-g -O2 -c /usr/local/src/gnu/gcc-3.1/libstdc++-v3/libmath/stubs.c -o
stubs.o
/bin/sh ../libtool --tag CC --mode=link
"/usr/local/src/gnu/BUILD/gcc/gcc/xgcc -B/usr/local/src/gnu/BUILD/gcc/gcc/
-nostdinc -B/usr/local/src/gnu/BUILD/gcc/mcore-elf/newlib/ -isystem
/usr/local/src/gnu/BUILD/gcc/mcore-elf/newlib/targ-include -isystem
/usr/local/src/gnu/gcc-3.1/newlib/libc/include -B/usr/local/mcore-elf/bin/
-B/usr/local/mcore-elf/lib/ -isystem /usr/local/mcore-elf/include"  -g -O2 
-o libmath.la   stubs.lo  
mkdir .libs
mcore-elf-ar cru .libs/libmath.a  stubs.o
mcore-elf-ranlib .libs/libmath.a
creating libmath.la
(cd .libs && rm -f libmath.la && ln -s ../libmath.la libmath.la)
make[3]: Leaving directory
`/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/libmath'
Making all in libsupc++
make[3]: Entering directory
`/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/libsupc++'
rm -f cxa_demangle.c
ln -s /usr/local/src/gnu/gcc-3.1/libstdc++-v3/../libiberty/cp-demangle.c
cxa_demangle.c
/bin/sh ../libtool --tag CC --tag disable-shared --mode=compile
/usr/local/src/gnu/BUILD/gcc/gcc/xgcc -B/usr/local/src/gnu/BUILD/gcc/gcc/
-nostdinc -B/usr/local/src/gnu/BUILD/gcc/mcore-elf/newlib/ -isystem
/usr/local/src/gnu/BUILD/gcc/mcore-elf/newlib/targ-include -isystem
/usr/local/src/gnu/gcc-3.1/newlib/libc/include -B/usr/local/mcore-elf/bin/
-B/usr/local/mcore-elf/lib/ -isystem /usr/local/mcore-elf/include
-I/usr/local/src/gnu/gcc-3.1/libstdc++-v3/../gcc
-I/usr/local/src/gnu/gcc-3.1/libstdc++-v3/../include
-I/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/include/mcore-elf
-I/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/include
-I/usr/local/src/gnu/gcc-3.1/libstdc++-v3/libsupc++   -g -O2
-fno-implicit-templates  -Wall -Wno-format -W -Wwrite-strings -Winline 
-fdiagnostics-show-location=once  -g    -DIN_GLIBCPP_V3 -Wno-error -c
cxa_demangle.c
/usr/local/src/gnu/BUILD/gcc/gcc/xgcc -B/usr/local/src/gnu/BUILD/gcc/gcc/
-nostdinc -B/usr/local/src/gnu/BUILD/gcc/mcore-elf/newlib/ -isystem
/usr/local/src/gnu/BUILD/gcc/mcore-elf/newlib/targ-include -isystem
/usr/local/src/gnu/gcc-3.1/newlib/libc/include -B/usr/local/mcore-elf/bin/
-B/usr/local/mcore-elf/lib/ -isystem /usr/local/mcore-elf/include
-I/usr/local/src/gnu/gcc-3.1/libstdc++-v3/../gcc
-I/usr/local/src/gnu/gcc-3.1/libstdc++-v3/../include
-I/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/include/mcore-elf
-I/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/include
-I/usr/local/src/gnu/gcc-3.1/libstdc++-v3/libsupc++ -g -O2
-fno-implicit-templates -Wall -Wno-format -W -Wwrite-strings -Winline
-fdiagnostics-show-location=once -g -DIN_GLIBCPP_V3 -Wno-error -c
cxa_demangle.c -o cxa_demangle.o
cc1.exe: warning: ignoring command line option '-fno-implicit-templates'
cc1.exe: warning: (it is valid for C++ but not the selected language)
cxa_demangle.c: In function `string_list_new':
cxa_demangle.c:418: warning: implicit declaration of function `malloc'
cxa_demangle.c: In function `substitution_add':
cxa_demangle.c:589: warning: implicit declaration of function `realloc'
cxa_demangle.c: In function `template_arg_list_delete':
cxa_demangle.c:688: warning: implicit declaration of function `free'
cxa_demangle.c: In function `demangle_char':
cxa_demangle.c:975: warning: implicit declaration of function `strdup'
cxa_demangle.c:975: warning: assignment makes pointer from integer without
a cast
cxa_demangle.c: In function `demangle_number':
cxa_demangle.c:1397: warning: implicit declaration of function `strtol'
cxa_demangle.c: In function `demangle_identifier':
cxa_demangle.c:1481: warning: implicit declaration of function `strlen'
cxa_demangle.c:1484: warning: implicit declaration of function `strncmp'
cxa_demangle.c: In function `demangle_v3_with_details':
cxa_demangle.c:3877: warning: implicit declaration of function `abort'
cxa_demangle.c: At top level:
cxa_demangle.c:3866: warning: `demangle_v3_with_details' defined but not
used
/bin/sh ../libtool --tag CXX --tag disable-shared --mode=compile
/usr/local/src/gnu/BUILD/gcc/gcc/xgcc -shared-libgcc
-B/usr/local/src/gnu/BUILD/gcc/gcc/ -nostdinc++ 
-L/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/src
-L/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/src/.libs -nostdinc
-B/usr/local/src/gnu/BUILD/gcc/mcore-elf/newlib/ -isystem
/usr/local/src/gnu/BUILD/gcc/mcore-elf/newlib/targ-include -isystem
/usr/local/src/gnu/gcc-3.1/newlib/libc/include -B/usr/local/mcore-elf/bin/
-B/usr/local/mcore-elf/lib/ -isystem /usr/local/mcore-elf/include
-I/usr/local/src/gnu/gcc-3.1/libstdc++-v3/../gcc
-I/usr/local/src/gnu/gcc-3.1/libstdc++-v3/../include
-I/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/include/mcore-elf
-I/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/include
-I/usr/local/src/gnu/gcc-3.1/libstdc++-v3/libsupc++   -g -O2
-fno-implicit-templates  -Wall -Wno-format -W -Wwrite-strings -Winline 
-fdiagnostics-show-location=once  -g    -c
/usr/local/src/gnu/gcc-3.1/libstdc++-v3/libsupc++/del_op.cc
/usr/local/src/gnu/BUILD/gcc/gcc/xgcc -shared-libgcc
-B/usr/local/src/gnu/BUILD/gcc/gcc/ -nostdinc++
-L/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/src
-L/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/src/.libs -nostdinc
-B/usr/local/src/gnu/BUILD/gcc/mcore-elf/newlib/ -isystem
/usr/local/src/gnu/BUILD/gcc/mcore-elf/newlib/targ-include -isystem
/usr/local/src/gnu/gcc-3.1/newlib/libc/include -B/usr/local/mcore-elf/bin/
-B/usr/local/mcore-elf/lib/ -isystem /usr/local/mcore-elf/include
-I/usr/local/src/gnu/gcc-3.1/libstdc++-v3/../gcc
-I/usr/local/src/gnu/gcc-3.1/libstdc++-v3/../include
-I/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/include/mcore-elf
-I/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/include
-I/usr/local/src/gnu/gcc-3.1/libstdc++-v3/libsupc++ -g -O2
-fno-implicit-templates -Wall -Wno-format -W -Wwrite-strings -Winline
-fdiagnostics-show-location=once -g -c
/usr/local/src/gnu/gcc-3.1/libstdc++-v3/libsupc++/del_op.cc -o del_op.o
/bin/sh ../libtool --tag CXX --tag disable-shared --mode=compile
/usr/local/src/gnu/BUILD/gcc/gcc/xgcc -shared-libgcc
-B/usr/local/src/gnu/BUILD/gcc/gcc/ -nostdinc++ 
-L/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/src
-L/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/src/.libs -nostdinc
-B/usr/local/src/gnu/BUILD/gcc/mcore-elf/newlib/ -isystem
/usr/local/src/gnu/BUILD/gcc/mcore-elf/newlib/targ-include -isystem
/usr/local/src/gnu/gcc-3.1/newlib/libc/include -B/usr/local/mcore-elf/bin/
-B/usr/local/mcore-elf/lib/ -isystem /usr/local/mcore-elf/include
-I/usr/local/src/gnu/gcc-3.1/libstdc++-v3/../gcc
-I/usr/local/src/gnu/gcc-3.1/libstdc++-v3/../include
-I/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/include/mcore-elf
-I/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/include
-I/usr/local/src/gnu/gcc-3.1/libstdc++-v3/libsupc++   -g -O2
-fno-implicit-templates  -Wall -Wno-format -W -Wwrite-strings -Winline 
-fdiagnostics-show-location=once  -g    -c
/usr/local/src/gnu/gcc-3.1/libstdc++-v3/libsupc++/del_opnt.cc
/usr/local/src/gnu/BUILD/gcc/gcc/xgcc -shared-libgcc
-B/usr/local/src/gnu/BUILD/gcc/gcc/ -nostdinc++
-L/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/src
-L/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/src/.libs -nostdinc
-B/usr/local/src/gnu/BUILD/gcc/mcore-elf/newlib/ -isystem
/usr/local/src/gnu/BUILD/gcc/mcore-elf/newlib/targ-include -isystem
/usr/local/src/gnu/gcc-3.1/newlib/libc/include -B/usr/local/mcore-elf/bin/
-B/usr/local/mcore-elf/lib/ -isystem /usr/local/mcore-elf/include
-I/usr/local/src/gnu/gcc-3.1/libstdc++-v3/../gcc
-I/usr/local/src/gnu/gcc-3.1/libstdc++-v3/../include
-I/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/include/mcore-elf
-I/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/include
-I/usr/local/src/gnu/gcc-3.1/libstdc++-v3/libsupc++ -g -O2
-fno-implicit-templates -Wall -Wno-format -W -Wwrite-strings -Winline
-fdiagnostics-show-location=once -g -c
/usr/local/src/gnu/gcc-3.1/libstdc++-v3/libsupc++/del_opnt.cc -o del_opnt.o
/bin/sh ../libtool --tag CXX --tag disable-shared --mode=compile
/usr/local/src/gnu/BUILD/gcc/gcc/xgcc -shared-libgcc
-B/usr/local/src/gnu/BUILD/gcc/gcc/ -nostdinc++ 
-L/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/src
-L/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/src/.libs -nostdinc
-B/usr/local/src/gnu/BUILD/gcc/mcore-elf/newlib/ -isystem
/usr/local/src/gnu/BUILD/gcc/mcore-elf/newlib/targ-include -isystem
/usr/local/src/gnu/gcc-3.1/newlib/libc/include -B/usr/local/mcore-elf/bin/
-B/usr/local/mcore-elf/lib/ -isystem /usr/local/mcore-elf/include
-I/usr/local/src/gnu/gcc-3.1/libstdc++-v3/../gcc
-I/usr/local/src/gnu/gcc-3.1/libstdc++-v3/../include
-I/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/include/mcore-elf
-I/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/include
-I/usr/local/src/gnu/gcc-3.1/libstdc++-v3/libsupc++   -g -O2
-fno-implicit-templates  -Wall -Wno-format -W -Wwrite-strings -Winline 
-fdiagnostics-show-location=once  -g    -c
/usr/local/src/gnu/gcc-3.1/libstdc++-v3/libsupc++/del_opv.cc
/usr/local/src/gnu/BUILD/gcc/gcc/xgcc -shared-libgcc
-B/usr/local/src/gnu/BUILD/gcc/gcc/ -nostdinc++
-L/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/src
-L/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/src/.libs -nostdinc
-B/usr/local/src/gnu/BUILD/gcc/mcore-elf/newlib/ -isystem
/usr/local/src/gnu/BUILD/gcc/mcore-elf/newlib/targ-include -isystem
/usr/local/src/gnu/gcc-3.1/newlib/libc/include -B/usr/local/mcore-elf/bin/
-B/usr/local/mcore-elf/lib/ -isystem /usr/local/mcore-elf/include
-I/usr/local/src/gnu/gcc-3.1/libstdc++-v3/../gcc
-I/usr/local/src/gnu/gcc-3.1/libstdc++-v3/../include
-I/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/include/mcore-elf
-I/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/include
-I/usr/local/src/gnu/gcc-3.1/libstdc++-v3/libsupc++ -g -O2
-fno-implicit-templates -Wall -Wno-format -W -Wwrite-strings -Winline
-fdiagnostics-show-location=once -g -c
/usr/local/src/gnu/gcc-3.1/libstdc++-v3/libsupc++/del_opv.cc -o del_opv.o
/bin/sh ../libtool --tag CXX --tag disable-shared --mode=compile
/usr/local/src/gnu/BUILD/gcc/gcc/xgcc -shared-libgcc
-B/usr/local/src/gnu/BUILD/gcc/gcc/ -nostdinc++ 
-L/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/src
-L/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/src/.libs -nostdinc
-B/usr/local/src/gnu/BUILD/gcc/mcore-elf/newlib/ -isystem
/usr/local/src/gnu/BUILD/gcc/mcore-elf/newlib/targ-include -isystem
/usr/local/src/gnu/gcc-3.1/newlib/libc/include -B/usr/local/mcore-elf/bin/
-B/usr/local/mcore-elf/lib/ -isystem /usr/local/mcore-elf/include
-I/usr/local/src/gnu/gcc-3.1/libstdc++-v3/../gcc
-I/usr/local/src/gnu/gcc-3.1/libstdc++-v3/../include
-I/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/include/mcore-elf
-I/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/include
-I/usr/local/src/gnu/gcc-3.1/libstdc++-v3/libsupc++   -g -O2
-fno-implicit-templates  -Wall -Wno-format -W -Wwrite-strings -Winline 
-fdiagnostics-show-location=once  -g    -c
/usr/local/src/gnu/gcc-3.1/libstdc++-v3/libsupc++/del_opvnt.cc
/usr/local/src/gnu/BUILD/gcc/gcc/xgcc -shared-libgcc
-B/usr/local/src/gnu/BUILD/gcc/gcc/ -nostdinc++
-L/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/src
-L/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/src/.libs -nostdinc
-B/usr/local/src/gnu/BUILD/gcc/mcore-elf/newlib/ -isystem
/usr/local/src/gnu/BUILD/gcc/mcore-elf/newlib/targ-include -isystem
/usr/local/src/gnu/gcc-3.1/newlib/libc/include -B/usr/local/mcore-elf/bin/
-B/usr/local/mcore-elf/lib/ -isystem /usr/local/mcore-elf/include
-I/usr/local/src/gnu/gcc-3.1/libstdc++-v3/../gcc
-I/usr/local/src/gnu/gcc-3.1/libstdc++-v3/../include
-I/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/include/mcore-elf
-I/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/include
-I/usr/local/src/gnu/gcc-3.1/libstdc++-v3/libsupc++ -g -O2
-fno-implicit-templates -Wall -Wno-format -W -Wwrite-strings -Winline
-fdiagnostics-show-location=once -g -c
/usr/local/src/gnu/gcc-3.1/libstdc++-v3/libsupc++/del_opvnt.cc -o
del_opvnt.o
rm -f dyn-string.c
ln -s /usr/local/src/gnu/gcc-3.1/libstdc++-v3/../libiberty/dyn-string.c
dyn-string.c
/bin/sh ../libtool --tag CC --tag disable-shared --mode=compile
/usr/local/src/gnu/BUILD/gcc/gcc/xgcc -B/usr/local/src/gnu/BUILD/gcc/gcc/
-nostdinc -B/usr/local/src/gnu/BUILD/gcc/mcore-elf/newlib/ -isystem
/usr/local/src/gnu/BUILD/gcc/mcore-elf/newlib/targ-include -isystem
/usr/local/src/gnu/gcc-3.1/newlib/libc/include -B/usr/local/mcore-elf/bin/
-B/usr/local/mcore-elf/lib/ -isystem /usr/local/mcore-elf/include
-I/usr/local/src/gnu/gcc-3.1/libstdc++-v3/../gcc
-I/usr/local/src/gnu/gcc-3.1/libstdc++-v3/../include
-I/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/include/mcore-elf
-I/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/include
-I/usr/local/src/gnu/gcc-3.1/libstdc++-v3/libsupc++   -g -O2
-fno-implicit-templates  -Wall -Wno-format -W -Wwrite-strings -Winline 
-fdiagnostics-show-location=once  -g    -DIN_GLIBCPP_V3 -Wno-error -c
dyn-string.c
/usr/local/src/gnu/BUILD/gcc/gcc/xgcc -B/usr/local/src/gnu/BUILD/gcc/gcc/
-nostdinc -B/usr/local/src/gnu/BUILD/gcc/mcore-elf/newlib/ -isystem
/usr/local/src/gnu/BUILD/gcc/mcore-elf/newlib/targ-include -isystem
/usr/local/src/gnu/gcc-3.1/newlib/libc/include -B/usr/local/mcore-elf/bin/
-B/usr/local/mcore-elf/lib/ -isystem /usr/local/mcore-elf/include
-I/usr/local/src/gnu/gcc-3.1/libstdc++-v3/../gcc
-I/usr/local/src/gnu/gcc-3.1/libstdc++-v3/../include
-I/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/include/mcore-elf
-I/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/include
-I/usr/local/src/gnu/gcc-3.1/libstdc++-v3/libsupc++ -g -O2
-fno-implicit-templates -Wall -Wno-format -W -Wwrite-strings -Winline
-fdiagnostics-show-location=once -g -DIN_GLIBCPP_V3 -Wno-error -c
dyn-string.c -o dyn-string.o
cc1.exe: warning: ignoring command line option '-fno-implicit-templates'
cc1.exe: warning: (it is valid for C++ but not the selected language)
dyn-string.c: In function `__cxa_dyn_string_init':
dyn-string.c:77: warning: implicit declaration of function `malloc'
dyn-string.c: In function `__cxa_dyn_string_new':
dyn-string.c:107: warning: implicit declaration of function `free'
dyn-string.c: In function `__cxa_dyn_string_resize':
dyn-string.c:171: warning: implicit declaration of function `realloc'
dyn-string.c: In function `__cxa_dyn_string_copy':
dyn-string.c:206: warning: implicit declaration of function `abort'
dyn-string.c:212: warning: implicit declaration of function `strcpy'
dyn-string.c: In function `__cxa_dyn_string_copy_cstr':
dyn-string.c:227: warning: implicit declaration of function `strlen'
dyn-string.c: In function `__cxa_dyn_string_insert':
dyn-string.c:285: warning: implicit declaration of function `strncpy'
dyn-string.c: In function `__cxa_dyn_string_eq':
dyn-string.c:441: warning: implicit declaration of function `strcmp'
/bin/sh ../libtool --tag CXX --tag disable-shared --mode=compile
/usr/local/src/gnu/BUILD/gcc/gcc/xgcc -shared-libgcc
-B/usr/local/src/gnu/BUILD/gcc/gcc/ -nostdinc++ 
-L/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/src
-L/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/src/.libs -nostdinc
-B/usr/local/src/gnu/BUILD/gcc/mcore-elf/newlib/ -isystem
/usr/local/src/gnu/BUILD/gcc/mcore-elf/newlib/targ-include -isystem
/usr/local/src/gnu/gcc-3.1/newlib/libc/include -B/usr/local/mcore-elf/bin/
-B/usr/local/mcore-elf/lib/ -isystem /usr/local/mcore-elf/include
-I/usr/local/src/gnu/gcc-3.1/libstdc++-v3/../gcc
-I/usr/local/src/gnu/gcc-3.1/libstdc++-v3/../include
-I/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/include/mcore-elf
-I/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/include
-I/usr/local/src/gnu/gcc-3.1/libstdc++-v3/libsupc++   -g -O2
-fno-implicit-templates  -Wall -Wno-format -W -Wwrite-strings -Winline 
-fdiagnostics-show-location=once  -g    -c
/usr/local/src/gnu/gcc-3.1/libstdc++-v3/libsupc++/eh_alloc.cc
/usr/local/src/gnu/BUILD/gcc/gcc/xgcc -shared-libgcc
-B/usr/local/src/gnu/BUILD/gcc/gcc/ -nostdinc++
-L/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/src
-L/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/src/.libs -nostdinc
-B/usr/local/src/gnu/BUILD/gcc/mcore-elf/newlib/ -isystem
/usr/local/src/gnu/BUILD/gcc/mcore-elf/newlib/targ-include -isystem
/usr/local/src/gnu/gcc-3.1/newlib/libc/include -B/usr/local/mcore-elf/bin/
-B/usr/local/mcore-elf/lib/ -isystem /usr/local/mcore-elf/include
-I/usr/local/src/gnu/gcc-3.1/libstdc++-v3/../gcc
-I/usr/local/src/gnu/gcc-3.1/libstdc++-v3/../include
-I/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/include/mcore-elf
-I/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/include
-I/usr/local/src/gnu/gcc-3.1/libstdc++-v3/libsupc++ -g -O2
-fno-implicit-templates -Wall -Wno-format -W -Wwrite-strings -Winline
-fdiagnostics-show-location=once -g -c
/usr/local/src/gnu/gcc-3.1/libstdc++-v3/libsupc++/eh_alloc.cc -o eh_alloc.o
In file included from
/usr/local/src/gnu/gcc-3.1/libstdc++-v3/libsupc++/eh_alloc.cc:34:
/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/include/cstdlib:86:
`div_t' 
   not declared
/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/include/cstdlib:87:
`ldiv_t
   ' not declared
/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/include/cstdlib:97:
`div' 
   not declared
/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/include/cstdlib:102:
`ldiv' 
   not declared
/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/include/cstdlib:104:
`mblen
   ' not declared
/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/include/cstdlib:105: `
   mbstowcs' not declared
/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/include/cstdlib:106: `
   mbtowc' not declared
/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/include/cstdlib:115: `
   wcstombs' not declared
/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/include/cstdlib:116: `
   wctomb' not declared
/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/include/cstdlib:122:
syntax 
   error before `(' token
make[3]: *** [eh_alloc.lo] Error 1
make[3]: Leaving directory
`/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/libsupc++'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory
`/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3'
make: *** [all-target-libstdc++-v3] Error 2
***************************************************************************
***************


Now..
/usr/local/src/gnu/BUILD/gcc/mcore-elf/libstdc++-v3/include/cstdlib is a
shortcut to 
C:\cygwin\usr\local\src\gnu\gcc-3.1\libstdc++-v3\include\c_std\std_cstdlib.
h in which the problems are found.

Here is an extract around where it is failing:

************************************ extract from -
gcc-3.1\libstdc++-v3\include\c_std\std_cstdlib.h **************
...
#include <stdlib.h>

// Get rid of those macros defined in <stdlib.h> in lieu of real functions.
#undef abort
#undef abs
#undef atexit
#undef atof
#undef atoi
#undef atol
#undef bsearch
#undef calloc
#undef div
#undef exit
#undef free
#undef getenv
#undef labs
#undef ldiv
#undef malloc
#undef mblen
#undef mbstowcs
#undef mbtowc
#undef qsort
#undef rand
#undef realloc
#undef srand
#undef strtod
#undef strtol
#undef strtoul
#undef system
#undef wcstombs
#undef wctomb

namespace std 
{
  using ::div_t;     /* line 86 */
  using ::ldiv_t;    /* line 87 */

  using ::abort;
  using ::abs;
  using ::atexit;
  using ::atof;
  using ::atoi;
  using ::atol;
  using ::bsearch;
  using ::calloc;
  using ::div;       /* line 97 */
  using ::exit;
  using ::free;
  using ::getenv;
  using ::labs;
  using ::ldiv;      /* line 102 */
  using ::malloc;
  using ::mblen;
  using ::mbstowcs;
  using ::mbtowc;
  using ::qsort;
  using ::rand;
  using ::realloc;
  using ::srand;
  using ::strtod;
  using ::strtol;
  using ::strtoul;
  using ::system;
  using ::wcstombs;
  using ::wctomb;

  inline long 
  abs(long __i) { return labs(__i); }

  inline ldiv_t
  div(long __i, long __j) { return ldiv(__i, __j); }   /* line 122 */
} 
...
***************************************************************************
************


So all seems to be working fine up to this point and I can see no obvious
set up errors (for example libraries or headers not being found).
This leads me to ask a few of questions:
1. Is there some other setting which I have missed (all settings are
visible in mcore build script - in seperate mail) ?
2. Is there really a problem with the source files (I don't really
understand the compilation error at the moment)
3. Is the failing library only needed when compiling c++ programs ?
4. If only the c functionality (not c++) is required, could this library be
simply ignored, or would it be best to compile with only c language option
?

I will try the build process with another target tomorrow (with build times
of 8 hours on the home PC, experimentation is quite slow..)

Any comments from the wise ??

Regards

Mark in Switzerland


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]