This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos 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]

Problem with 'make tests' for synthetic linux target


Hi,

I am just getting started with eCos and have been having problems successfully building a eCos test-case under the synthetic i386-linux target using the instructions in the User Guide.

The kernel appears to build successfully using 'make' however when I try to run 'make tests' I get an number of undefined reference errors to '_Unwind_xxxxx' functions when building 'tests/cxxsupp' (see details below).

I am running a clean install of eCos 2.0 on Slackware9 and created the project with the command line ecosconfig tool using the i386linux target (ie. 'ecosconfig new i386linux' / 'ecosconfig tree' etc.)

Any hints would be greatly appreciated.

Regards,
Paul Chakravarti


SYSTEM CONFIG


# uname -a
Linux slackware 2.4.20 #2 Mon Mar 17 22:02:15 PST 2003 i686 unknown

# gcc -v
Reading specs from /usr/lib/gcc-lib/i386-slackware-linux/3.2.2/specs
Configured with: ../gcc-3.2.2/configure --prefix=/usr --enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --target=i386-slackware-linux --host=i386-slackware-linux
Thread model: posix
gcc version 3.2.2


# ld -v
GNU ld version 2.13.90.0.18 20030121

# ecosconfig --version
ecosconfig 2.0 (May  9 2003 09:45:47)
Copyright (c) 2002 Red Hat, Inc.

ERROR

# make tests
....
make -r -C infra/v2_0 tests
make[1]: Entering directory `/root/ecos/infra/v2_0'
gcc -g -nostdlib -Wl,-static -Wl,--fatal-warnings -L/root/ecos/install/lib -Ttarget.ld -o /root/ecos/install/tests/infra/v2_0/tests/cxxsupp tests/cxxsupp.o
/usr/lib/gcc-lib/i386-slackware-linux/3.2.2/../../../ libsupc++.a(new_op.o)(.text._Znwj+0xb7): In function `operator new(unsigned)':
/gcc/gcc.build.lnx/i386-slackware-linux/libstdc++-v3/libsupc++/../../ ../../gcc-3.2.2/libstdc++-v3/libsupc++/new_op.cc:54: undefined reference to `_Unwind_Resume'
/usr/lib/gcc-lib/i386-slackware-linux/3.2.2/../../../ libsupc++.a(eh_personality.o)(.text._Z21base_of_encoded_valuehP15_Unwind _Context+0x63): In function `__cxa_call_unexpected':
/gcc/gcc.build.lnx/i386-slackware-linux/libstdc++-v3/libsupc++/../../ ../../gcc-3.2.2/gcc/unwind-pe.h:246: undefined reference to `_Unwind_GetDataRelBase'
/usr/lib/gcc-lib/i386-slackware-linux/3.2.2/../../../ libsupc++.a(eh_personality.o)(.text._Z21base_of_encoded_valuehP15_Unwind _Context+0x79):/gcc/gcc.build.lnx/i386-slackware-linux/libstdc++-v3/ libsupc++/../../../../gcc-3.2.2/gcc/unwind-pe.h:251: undefined reference to `_Unwind_GetRegionStart'
/usr/lib/gcc-lib/i386-slackware-linux/3.2.2/../../../ libsupc++.a(eh_personality.o)(.text._Z21base_of_encoded_valuehP15_Unwind _Context+0x84):/gcc/gcc.build.lnx/i386-slackware-linux/libstdc++-v3/ libsupc++/../../../../gcc-3.2.2/gcc/unwind-pe.h:100: undefined reference to `_Unwind_GetTextRelBase'
/usr/lib/gcc-lib/i386-slackware-linux/3.2.2/../../../ libsupc++.a(eh_personality.o)(.text._Z17parse_lsda_headerP15_Unwind_Cont extPKhP16lsda_header_info+0x26):/gcc/gcc.build.lnx/i386-slackware- linux/libstdc++-v3/libsupc++/../../../../gcc-3.2.2/gcc/unwind-pe.h:169: undefined reference to `_Unwind_GetRegionStart'
/usr/lib/gcc-lib/i386-slackware-linux/3.2.2/../../../ libsupc++.a(eh_personality.o)(.text.__gxx_personality_v0+0x59):/gcc/ gcc.build.lnx/i386-slackware-linux/libstdc++-v3/libsupc++/../../../../ gcc-3.2.2/gcc/unwind-pe.h:160: undefined reference to `_Unwind_GetLanguageSpecificData'
/usr/lib/gcc-lib/i386-slackware-linux/3.2.2/../../../ libsupc++.a(eh_personality.o)(.text.__gxx_personality_v0+0xa7):/gcc/ gcc.build.lnx/i386-slackware-linux/libstdc++-v3/libsupc++/../../../../ gcc-3.2.2/gcc/unwind-pe.h:211: undefined reference to `_Unwind_GetIP'
/usr/lib/gcc-lib/i386-slackware-linux/3.2.2/../../../ libsupc++.a(eh_personality.o)(.text.__gxx_personality_v0+0x25d): In function `__gxx_personality_v0':
/gcc/gcc.build.lnx/i386-slackware-linux/libstdc++-v3/libsupc++/../../ ../../gcc-3.2.2/libstdc++-v3/libsupc++/eh_personality.cc:418: undefined reference to `_Unwind_SetGR'
/usr/lib/gcc-lib/i386-slackware-linux/3.2.2/../../../ libsupc++.a(eh_personality.o)(.text.__gxx_personality_v0+0x277):/gcc/ gcc.build.lnx/i386-slackware-linux/libstdc++-v3/libsupc++/../../../../ gcc-3.2.2/libstdc++-v3/libsupc++/eh_personality.cc:420: undefined reference to `_Unwind_SetGR'
/usr/lib/gcc-lib/i386-slackware-linux/3.2.2/../../../ libsupc++.a(eh_personality.o)(.text.__gxx_personality_v0+0x289):/gcc/ gcc.build.lnx/i386-slackware-linux/libstdc++-v3/libsupc++/../../../../ gcc-3.2.2/libstdc++-v3/libsupc++/eh_personality.cc:422: undefined reference to `_Unwind_SetIP'
/usr/lib/gcc-lib/i386-slackware-linux/3.2.2/../../../ libsupc++.a(eh_personality.o)(.text.__cxa_call_unexpected+0x122): In function `__cxa_call_unexpected':
/gcc/gcc.build.lnx/i386-slackware-linux/libstdc++-v3/libsupc++/../../ ../../gcc-3.2.2/libstdc++-v3/libsupc++/eh_personality.cc:439: undefined reference to `_Unwind_Resume'
/usr/lib/gcc-lib/i386-slackware-linux/3.2.2/../../../ libsupc++.a(eh_throw.o)(.text.__cxa_throw+0x65): In function `__cxa_throw':
/gcc/gcc.build.lnx/i386-slackware-linux/libstdc++-v3/libsupc++/../../ ../../gcc-3.2.2/libstdc++-v3/libsupc++/eh_throw.cc:72: undefined reference to `_Unwind_RaiseException'
/usr/lib/gcc-lib/i386-slackware-linux/3.2.2/../../../ libsupc++.a(eh_throw.o)(.text.__cxa_rethrow+0x2c): In function `__cxa_rethrow':
/gcc/gcc.build.lnx/i386-slackware-linux/libstdc++-v3/libsupc++/../../ ../../gcc-3.2.2/libstdc++-v3/libsupc++/eh_throw.cc:61: undefined reference to `_Unwind_RaiseException'
/usr/lib/gcc-lib/i386-slackware-linux/3.2.2/../../../ libsupc++.a(eh_catch.o)(.text.__cxa_end_catch+0x54): In function `__cxa_end_catch':
/gcc/gcc.build.lnx/i386-slackware-linux/libstdc++-v3/libsupc++/../../ ../../gcc-3.2.2/libstdc++-v3/libsupc++/eh_catch.cc:53: undefined reference to `_Unwind_DeleteException'
collect2: ld returned 1 exit status
make[1]: *** [/root/ecos/install/tests/infra/v2_0/tests/cxxsupp] Error 1
make[1]: Leaving directory `/root/ecos/infra/v2_0'
make: *** [tests] Error 2



-- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss


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