h8300-elf-g++
praveena@netindial.com
praveena@netindial.com
Thu Jun 12 09:20:00 GMT 2003
Hi There,
I have successfully build the crossgcc toolchain for h8300-elf. I could
compile the c programs and get the output successfully.
But when I try the same for c++, I am stuck up with the below attached
messages and the program exits with error. I am using linux 6.2 as my host
system.
Command: h8300-elf-g++ -mh -mint32 test.cc -nostdlib
test.cc:
#include <iostream.h>
main(){
std::cout << "Hello g++";
return 0;
}
Output : file attached
Reading specs from ./../lib/gcc-lib/h8300-elf/3.2.1/specs
Configured with: /opt/eCos/gcc-3.2.1/configure --target=h8300-elf
--prefix=/opt/eCos/elftools --enable-languages=c,c++ --with-gnu-as
--with-gnu-ld --with-newlib
--with-headers=/opt/eCos/gcc-3.2.1/newlib/libc/include -v : (reconfigured)
/opt/eCos/gcc-3.2.1/configure --target=h8300-elf
--prefix=/opt/eCos/elftools --enable-languages=c,c++ --with-gnu-as
--with-gnu-ld --with-newlib
--with-headers=/opt/eCos/gcc-3.2.1/newlib/libc/include
--enable-version-specific-runtime-libs -v
Thread model: single
gcc version 3.2.1
./../lib/gcc-lib/h8300-elf/3.2.1/cc1plus -v -iprefix
./../lib/gcc-lib/h8300-elf/3.2.1/ -D__GNUC__=3 -D__GNUC_MINOR__=2
-D__GNUC_PATCHLEVEL__=1 -D__GXX_ABI_VERSION=102
-D__LONG_MAX__=2147483647L -D__LONG_MAX__=2147483647L -D__NO_INLINE__
-D__STDC_HOSTED__=1 -D__H8300H__ -D__SIZE_TYPE__=unsigned long
-D__PTRDIFF_TYPE__=long -Acpu=h8300h -Amachine=h8300h
-D__INT_MAX__=2147483647 -D__LONG_LONG_MAX__=9223372036854775807LL
-D__ELF__ test.cc -D__GNUG__=3 -D__DEPRECATED -D__EXCEPTIONS -quiet
-dumpbase test.cc -mh -mint32 -version -o /tmp/cceZKH8W.s
GNU CPP version 3.2.1 (cpplib) (Hitachi H8/300)
GNU C++ version 3.2.1 (h8300-elf)
compiled by GNU C version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release).
ignoring duplicate directory
"/opt/eCos/elftools/lib/gcc-lib/h8300-elf/3.2.1/include/c++"
ignoring duplicate directory
"/opt/eCos/elftools/lib/gcc-lib/h8300-elf/3.2.1/include/c++/h8300-elf"
ignoring duplicate directory
"/opt/eCos/elftools/lib/gcc-lib/h8300-elf/3.2.1/include/c++/backward"
ignoring duplicate directory
"/opt/eCos/elftools/lib/gcc-lib/h8300-elf/3.2.1/include"
ignoring duplicate directory "/opt/eCos/elftools/h8300-elf/sys-include"
ignoring duplicate directory "/opt/eCos/elftools/h8300-elf/include"
#include "..." search starts here:
#include <...> search starts here:
../lib/gcc-lib/h8300-elf/3.2.1/include/c++
../lib/gcc-lib/h8300-elf/3.2.1/include/c++/h8300-elf
../lib/gcc-lib/h8300-elf/3.2.1/include/c++/backward
../lib/gcc-lib/h8300-elf/3.2.1/include
../h8300-elf/sys-include
../h8300-elf/include
/opt/eCos/elftools/include
End of search list.
In file included from
../lib/gcc-lib/h8300-elf/3.2.1/include/c++/backward/iostream.h:31,
from test.cc:1:
../lib/gcc-lib/h8300-elf/3.2.1/include/c++/backward/backward_warning.h:32:2:
warning: #warning This file includes at least one deprecated or antiquated
header. Please consider using one of the 32 headers found in section
17.4.1.2 of the C++ standard. Examples include substituting the <X> header
for the <X.h> header for C++ includes, or <sstream> instead of the
deprecated header <strstream.h>. To disable this warning use
-Wno-deprecated.
./../lib/gcc-lib/h8300-elf/3.2.1/../../../../h8300-elf/bin/as
--traditional-format -o /tmp/ccCVyxCN.o /tmp/cceZKH8W.s
./../lib/gcc-lib/h8300-elf/3.2.1/collect2 -m h8300helf
./../lib/gcc-lib/h8300-elf/3.2.1/../../../../h8300-elf/lib/h8300h/int32/crt0.o
./../lib/gcc-lib/h8300-elf/3.2.1/h8300h/int32/crti.o
./../lib/gcc-lib/h8300-elf/3.2.1/h8300h/int32/crtbegin.o
-L./../lib/gcc-lib/h8300-elf/3.2.1/h8300h/int32
-L./../lib/gcc-lib/h8300-elf/3.2.1 -L./../lib/gcc-lib
-L/opt/eCos/elftools/lib/gcc-lib/h8300-elf/3.2.1/h8300h/int32
-L/opt/eCos/elftools/lib/gcc-lib/h8300-elf/3.2.1
-L./../lib/gcc-lib/h8300-elf/3.2.1/../../../../h8300-elf/lib/h8300h/int32
-L./../lib/gcc-lib/h8300-elf/3.2.1/../../../../h8300-elf/lib
-L/opt/eCos/elftools/lib/gcc-lib/h8300-elf/3.2.1/../../../../h8300-elf/lib/h8300h/int32
-L/opt/eCos/elftools/lib/gcc-lib/h8300-elf/3.2.1/../../../../h8300-elf/lib
-L./../lib/gcc-lib/h8300-elf/3.2.1/../../.. /tmp/ccCVyxCN.o -lstdc++ -lm
-lgcc -lc -lgcc -lc -lgcc
./../lib/gcc-lib/h8300-elf/3.2.1/h8300h/int32/crtend.o
./../lib/gcc-lib/h8300-elf/3.2.1/h8300h/int32/crtn.o
./../lib/gcc-lib/h8300-elf/3.2.1/../../../../h8300-elf/lib/h8300h/int32/libc.a(strtod.o):
In function `.LM29':
strtod.o(.text+0x204): undefined reference to `_target_flags'
./../lib/gcc-lib/h8300-elf/3.2.1/../../../../h8300-elf/lib/h8300h/int32/libc.a(strtod.o):
In function `.LM32':
strtod.o(.text+0x272): undefined reference to `_target_flags'
./../lib/gcc-lib/h8300-elf/3.2.1/../../../../h8300-elf/lib/h8300h/int32/libc.a(strtod.o):
In function `.LM37':
strtod.o(.text+0x2c2): undefined reference to `_target_flags'
./../lib/gcc-lib/h8300-elf/3.2.1/../../../../h8300-elf/lib/h8300h/int32/libc.a(strtod.o):
In function `.LM44':
strtod.o(.text+0x378): undefined reference to `_target_flags'
./../lib/gcc-lib/h8300-elf/3.2.1/../../../../h8300-elf/lib/h8300h/int32/libc.a(strtod.o):
In function `.LM95':
strtod.o(.text+0x6ae): undefined reference to `_target_flags'
./../lib/gcc-lib/h8300-elf/3.2.1/../../../../h8300-elf/lib/h8300h/int32/libc.a(strtod.o)(.text+0xa84):
more undefined references to `_target_flags' follow
collect2: ld returned 1 exit status
Thanks,
Praveena
"HAKUNA MATATA"
------
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