From rajesh.n at thalesgroup.com Tue Oct 29 07:26:06 2024 From: rajesh.n at thalesgroup.com (N. Rajesh) Date: Wed Oct 30 06:32:28 2024 Subject: [xsde-users] XSDE Error while compiling the VxWorks project. Message-ID: <93c5dad429954f309328cc33a0d8ff85@thalesgroup.com> Classified as: {THALES GROUP LIMITED DISTRIBUTION} Hello, I am from Trixell project, Thales India PVT LTD. We are using xsde to generate source code from xml files in our software. This xsde is used in VxWorks 7 platform for ARMv8A and our software uses LLVM as toolchain. So, the VxWorks Windriver Workbench uses ldarm64 tool for linking and generate the VxWorks image output. When I build the software project in windriver workbench I face below errors, C:/WindRiver/compilers/llvm-16.0.0.1/WIN64/bin/ldarm64: C:/rajesh_workspace/PLE64BIT/Gen3EmbeddedSoftware/VSB_ARMARCH8Allvm_LP64_LARGE_SMP/Gen3EmbeddedSoftware_partialImage/NonDebug/Gen3EmbeddedSoftware_partialImage.o: in function `xsde::cxx::parser::parser_base::_pre_impl(xsde::cxx::parser::context&)': (.text+0x1df214): undefined reference to `__assert' (.text+0x1df214): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `__assert' C:/WindRiver/compilers/llvm-16.0.0.1/WIN64/bin/ldarm64: C:/rajesh_workspace/PLE64BIT/Gen3EmbeddedSoftware/VSB_ARMARCH8Allvm_LP64_LARGE_SMP/Gen3EmbeddedSoftware_partialImage/NonDebug/Gen3EmbeddedSoftware_partialImage.o: in function `xsde::cxx::parser::expat::document_pimpl::parse_begin(XML_ParserStruct*)': (.text+0x1dfd34): undefined reference to `__assert' (.text+0x1dfd34): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `__assert' C:/WindRiver/compilers/llvm-16.0.0.1/WIN64/bin/ldarm64: C:/rajesh_workspace/PLE64BIT/Gen3EmbeddedSoftware/VSB_ARMARCH8Allvm_LP64_LARGE_SMP/Gen3EmbeddedSoftware_partialImage/NonDebug/Gen3EmbeddedSoftware_partialImage.o:(.text+0x1dffa8): more undefined references to `__assert' follow C:/rajesh_workspace/PLE64BIT/Gen3EmbeddedSoftware/VSB_ARMARCH8Allvm_LP64_LARGE_SMP/Gen3EmbeddedSoftware_partialImage/NonDebug/Gen3EmbeddedSoftware_partialImage.o: in function `xsde::cxx::parser::expat::document_pimpl::clear()': (.text+0x1dffa8): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `__assert' We have the libxsde.a file which was built long back around 10 years ago*. The xsde version is xsde-3.0.0-i686-windows and we generate "libxsde.a" as output when build for VxWorks. After having a discussion with my team, I got to know that the build configurations for xsde specific to trixell project is provided by CodeSynthesis. Could you have a look and help me to solve this issue? Please let me know if any more information is needed. Thanks & Regards, Rajesh N [B521763] TRIXELL ECC, Bengaluru {THALES GROUP LIMITED DISTRIBUTION} -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 3105 bytes Desc: image001.png Url : https://codesynthesis.com/pipermail/xsde-users/attachments/20241029/1a2c9c0b/image001.png From boris at codesynthesis.com Wed Oct 30 06:39:16 2024 From: boris at codesynthesis.com (Boris Kolpackov) Date: Wed Oct 30 06:38:24 2024 Subject: [xsde-users] XSDE Error while compiling the VxWorks project. In-Reply-To: <93c5dad429954f309328cc33a0d8ff85@thalesgroup.com> References: <93c5dad429954f309328cc33a0d8ff85@thalesgroup.com> Message-ID: N. Rajesh writes: > We have the libxsde.a file which was built long back around 10 years ago*. > The xsde version is xsde-3.0.0-i686-windows and we generate "libxsde.a" > as output when build for VxWorks. I would suggest that you rebuild libxsde.a from scratch using your current LLVM toolchain. It's virtually guaranteed that the version you have from 10 years ago was build with some older version and which is the most likely reason for the errors you are seeing. > After having a discussion with my team, I got to know that the build > configurations for xsde specific to trixell project is provided by > CodeSynthesis. Hm, I don't believe this is the case, unless you are referring to one of the example configurations found in the etc/ directory of the XSD/e distribution. But, either way, I think your first step should be to attempt to rebuild libxsde.a using the configuration that you already have. From rajesh.n at thalesgroup.com Wed Oct 30 06:52:53 2024 From: rajesh.n at thalesgroup.com (N. Rajesh) Date: Thu Oct 31 05:42:25 2024 Subject: [xsde-users] XSDE Error while compiling the VxWorks project. In-Reply-To: References: <93c5dad429954f309328cc33a0d8ff85@thalesgroup.com> Message-ID: Classified as: {THALES GROUP LIMITED DISTRIBUTION} Hi, Thank you for replying. I have actually updated the config.make based on my requirement which is to have libxsde.a for ARMv8 on VxWorks 7. Update was to add the llvm as compiler and updated the Archiever to llvm-ar. Build is success and I got the libxsde.a file. But the size of it is more than I expected. Maybe I will see this myself first. BR, Rajesh {THALES GROUP LIMITED DISTRIBUTION} -----Original Message----- From: Boris Kolpackov Sent: Wednesday, October 30, 2024 4:09 PM To: N. Rajesh Cc: xsde-users@codesynthesis.com Subject: Re: [xsde-users] XSDE Error while compiling the VxWorks project. N. Rajesh writes: > We have the libxsde.a file which was built long back around 10 years ago*. > The xsde version is xsde-3.0.0-i686-windows and we generate "libxsde.a" > as output when build for VxWorks. I would suggest that you rebuild libxsde.a from scratch using your current LLVM toolchain. It's virtually guaranteed that the version you have from 10 years ago was build with some older version and which is the most likely reason for the errors you are seeing. > After having a discussion with my team, I got to know that the build > configurations for xsde specific to trixell project is provided by > CodeSynthesis. Hm, I don't believe this is the case, unless you are referring to one of the example configurations found in the etc/ directory of the XSD/e distribution. But, either way, I think your first step should be to attempt to rebuild libxsde.a using the configuration that you already have. From boris at codesynthesis.com Thu Oct 31 06:10:49 2024 From: boris at codesynthesis.com (Boris Kolpackov) Date: Thu Oct 31 06:09:55 2024 Subject: [xsde-users] XSDE Error while compiling the VxWorks project. In-Reply-To: References: <93c5dad429954f309328cc33a0d8ff85@thalesgroup.com> Message-ID: N. Rajesh writes: > Build is success and I got the libxsde.a file. But the size of it > is more than I expected. I would worry too much about the size of the static library: not all of its object files will end up in the final image and the object files that do may contain duplicate symbols (due to C++ template instantiations) which will be weeded out during linking of the image.