[xsde-users] Cross-compilation libxsde for PPC under vxWorks

Jaws jaws75 at tiscali.it
Fri Apr 30 11:07:19 EDT 2010


   Thanks,
   i resolved the issue related the compilation/link adding the option
   -fno-rtti -O2.
   Now I have a problem on the target. I have created an example that
   read an xml file make the parsing and generate some messages.
   Everithing works on Linux , but When I try to run on the target
   (PPC860 with vxWorks) from the command on the shell, I have received
   the following error:
   fp unavailable
   Machine Status Register: 0x00009032
   Data Access Register: 0xeeeeeeee
   Condition Register: 0x42004024
   Fp Control and Status Register: 0xeeeeeeee
   19b200 vxTaskEntry    +5c : ed580 ()
    ed630 shell          +b4 : ed2c0 ()
    ed3f8 execute        +26c: execute ()
    ed2a0 execute        +114: yyparse ()
    fff30 yyparse        +c94: fe2ec ()
    fe444 yystart        +d98: e970b8 ()
   e970c4 db_test(const char *)+10 : loadxmlFile(const char *) ()
   e97308 loadxmlFile(const char *)+20c:
   xsde::cxx::parser::expat::document_pimpl ()
   18b4f2c xsde::cxx::parser::expat::document_pimpl+ec : XML_Parse ()
   18b87a8 XML_ParseBuffer+78 : 18c057c ()
   18c05ec XML_ParserCreate+1b58: 18becdc ()
   18bfacc XML_ParserCreate+1038: 18c1908 ()
   18c1944 XML_ParserCreate+2eb0: 18c08fc ()
   18c13ec XML_ParserCreate+2958: 18b5a0c ()
   18b5a54 xsde::cxx::parser::expat::document_pimpl+4c :
   XML_GetParsingStatus ()
   shell restarted.
   Do you have any idea or suggestion?
   Thanks.
   Boris Kolpackov ha scritto:

Hi,

Jaws [1]<jaws75 at tiscali.it> writes:



   I am using gnu gcc 3.4.5 for ppc with the following option:
        -U_BIG_ENDIAN -fno-common -mno-sdata -pipe -Wno-invalid-offsetof
   -mcpu=860 -fno-branch-count-reg -ansi
   building the runtime library and the application the following error are
   reported by the linker:

     _ZnwjPv undefined
     _ZTVN10__cxxabiv117__class_type_infoE undefined
     _ZTVN10__cxxabiv120__si_class_type_infoE undefined
     _ZTVN10__cxxabiv121__vmi_class_type_infoE undefined


Looks like the runtime type information support is not available on this
target. Can you try to recompile the XSD/e runtime and your application
with the -fno-rtti and see if this helps?

You can do this by adding this option to the CXXFLAGS variable in your
config.make and then rebuilding the XSD/e runtime (make clean && make).
You will also need to use this option while compiling the generated code
and your application code.

Let us know how it goes.

Boris

References

   1. mailto:jaws75 at tiscali.it


More information about the xsde-users mailing list