This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SAXParseException after clean install

Hello everyone,

I had some problems with building included projects and was missing my current used processor, so i decided to do a clean installation of code composer studio, with the dvd included with the evaluation kit(TMDXEVM6678L). From now on I can build normal ccs projects, but when I try to build any RTSC project, even clean ones I get the following Error.

org.xml.sax.SAXParseException: The reference to entity "r-000" must end with the ';' delimiter.


-----------------------------------------------------------------------------------------------

C:\ti\ccsv5\utils\bin\gmake -k all 
'Building file: ../testje.cfg'
'Invoking: XDCtools'
"C:/ti/xdctools_3_23_04_60/xs" --xdcpath="C:/ti/ctoolslib_1_0_0_2/packages/ti;C:/ti/dsplib_c66x_3_2_0_1/packages;C:/ti/edma3_lld_02_11_05_02/packages;C:/ti/grace_1_10_04_36/packages;C:/ti/imglib_c66x_3_1_1_0/packages;C:/ti/ipc_1_24_03_32/packages;C:/ti/mathlib_c66x_3_1_0_0/packages;C:/ti/mcsdk_2_01_02_06/demos;C:/ti/pdk_C6657_1_1_2_6/packages;C:/ti/pdk_C6670_1_1_2_6/packages;C:/ti/pdk_C6678_1_1_2_6/packages;C:/ti/ndk_2_21_02_43/packages;C:/ti/nsp_1_10_02_09/packages;C:/ti/openem_1_0_0_2/packages;C:/ti/omp_1_01_03_02/packages;C:/ti/bios_6_33_06_50/packages;C:/ti/uia_1_01_00_04/packages;C:/ti/xdais_7_21_01_07/packages;C:/ti/xdais_7_21_01_07/examples;C:/ti/ccsv5/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.elf.C674 -r debug -c "C:/ti/ccsv5/tools/compiler/c6000_7.3.4" "../testje.cfg"
making package.mak (because of package.bld) ...
generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
[Fatal Error] package.bld.xml:10:42: The reference to entity "r-000" must end with the ';' delimiter.
org.xml.sax.SAXParseException: The reference to entity "r-000" must end with the ';' delimiter.
	at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:264)
	at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:292)
	at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:146)
	at xdc.services.intern.gen.JClass.genPkgBuild(JClass.java:864)
	at xdc.services.intern.gen.JClass.genPkgValues(JClass.java:1014)
	at xdc.services.intern.gen.JClass.gen(JClass.java:197)
	at xdc.services.intern.cmd.Builder.gen(Builder.java:245)
	at xdc.services.intern.cmd.Builder.main(Builder.java:149)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:592)
	at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:161)
	at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:247)
	at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3330)
	at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2487)
	at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:178)
	at org.mozilla.javascript.Context.evaluateReader(Context.java:1135)
	at config.Shell.evaluateLoad(Shell.java:796)
	at config.Shell.processLoad(Shell.java:678)
	at config.Shell.load(Shell.java:1214)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:592)
	at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:161)
	at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:413)
	at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3330)
	at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2487)
	at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
	at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:398)
	at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3065)
	at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)
	at org.mozilla.javascript.Context.evaluateReader(Context.java:1135)
	at config.Shell.evaluateReader(Shell.java:846)
	at config.Shell.processReader(Shell.java:511)
	at config.Shell.processFile(Shell.java:570)
	at config.Shell.exec(Shell.java:780)
	at config.Shell.main(Shell.java:1413)
js: "C:/ti/xdctools_3_23_04_60/packages/xdc/services/intern/cmd/build.xs", line 22: org.xml.sax.SAXParseException: The reference to entity "r-000" must end with the ';' delimiter.
org.mozilla.javascript.WrappedException: Wrapped java.lang.RuntimeException: org.xml.sax.SAXParseException: The reference to entity "r-000" must end with the ';' delimiter. (C:/ti/xdctools_3_23_04_60/packages/xdc/services/intern/cmd/build.xs#22)
	at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1773)
	at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:183)
	at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:247)
	at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3330)
	at script(C:/ti/xdctools_3_23_04_60/packages/xdc/services/intern/cmd/build.xs:22)
	at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2487)
	at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:178)
	at org.mozilla.javascript.Context.evaluateReader(Context.java:1135)
	at config.Shell.evaluateLoad(Shell.java:796)
	at config.Shell.processLoad(Shell.java:678)
	at config.Shell.load(Shell.java:1214)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:592)
	at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:161)
	at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:413)
	at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3330)
	at script(C:/ti/xdctools_3_23_04_60/include/utils.tci:662)
	at script(C:/ti/xdctools_3_23_04_60/packages/xdc/xs.js:151)
	at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2487)
	at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
	at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:398)
	at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3065)
	at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)
	at org.mozilla.javascript.Context.evaluateReader(Context.java:1135)
	at config.Shell.evaluateReader(Shell.java:846)
	at config.Shell.processReader(Shell.java:511)
	at config.Shell.processFile(Shell.java:570)
	at config.Shell.exec(Shell.java:780)
	at config.Shell.main(Shell.java:1413)
Caused by: java.lang.RuntimeException: org.xml.sax.SAXParseException: The reference to entity "r-000" must end with the ';' delimiter.
	at xdc.services.intern.gen.JClass.genPkgBuild(JClass.java:896)
	at xdc.services.intern.gen.JClass.genPkgValues(JClass.java:1014)
	at xdc.services.intern.gen.JClass.gen(JClass.java:197)
	at xdc.services.intern.cmd.Builder.gen(Builder.java:245)
	at xdc.services.intern.cmd.Builder.main(Builder.java:149)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:592)
	at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:161)
	... 26 more
Caused by: org.xml.sax.SAXParseException: The reference to entity "r-000" must end with the ';' delimiter.
	at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:264)
	at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:292)
	at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:146)
	at xdc.services.intern.gen.JClass.genPkgBuild(JClass.java:864)
	... 35 more
gmake.exe: *** [package/package.xdc.inc] Error 1
js: "C:/ti/xdctools_3_23_04_60/packages/xdc/tools/Cmdr.xs", line 51: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
gmake: *** [configPkg/compiler.opt] Error 1
gmake: Target `all' not remade because of errors.

**** Build Finished ****
-----------------------------------------------------------------------------------------------
This error comes after a clean RTSC project
  • Marthijn,
    in your project's Debug or Release directory, there will be a file configPkg/package/package.bld.xml, after the build fails. Can you attach that file? The error is coming from the XML parser, so it seems that XDCtools is generating an invalid XML file.

  • Thanks for your reply Sasha,


    Here is the file you needed, I hope you can find the solution.

    <?xml version="1.0" encoding="windows-1252"?>
    <!--  This file conforms to the DTD xdc/bld/build.dtd -->
    <package name="configPkg" version="" producerId="undefined">
        <units>
        </units>
        <sources>
            <srcFile name="package/cfg/testje_pe674.c"/>
        </sources>
        <configscripts>
            <srcFile name="D:/Klanten/H&r-000/R015-Meetkast-2014/Nieuwe DSP/testje/testje.cfg"/>
        </configscripts>
        <makefiles>
            <srcFile name="package.mak" src="package.bld"/>
            <srcFile name="package/package.xdc.dep" src="package.xdc"/>
            <srcFile name="package/cfg/testje_pe674.mak" src="package.bld"/>
            <srcFile name="package/cfg/testje_pe674.oe674.dep" src="package/cfg/testje_pe674.c"/>
            <srcFile name="package/cfg/testje_pe674.dep" src="package/cfg/testje_pe674.cfg"/>
            <srcFile name="package/cfg/testje.xe674.mak" src="package.bld"/>
            <srcFile name="package/rel/configPkg.tar.dep" src="package/rel/configPkg.xdc.inc"/>
        </makefiles>
        <targets>
            <target name="ti.targets.elf.C674"
                version="ti.targets.elf.C674{1,0,7.3,4"
                platform="ti.platforms.evmDA830"
                isa="674"
                suffix="e674"
                rootDir="C:/ti/ccsv5/tools/compiler/c6000_7.3.4"
                os="undefined"
                rts="ti.targets.rts6000">
                <model endian="little"
                    codeModel="undefined"
                    dataModel="undefined"/>
            </target>
        </targets>
        <libraries>
        </libraries>
        <configurations>
        <configuration name="testje"
            pname="testje.pe674"
            target="ti.targets.elf.C674"
            platform="ti.platforms.evmDA830"
            profile="debug"
            isPartial="false"
            xCfgScript="package/cfg/testje_pe674.cfg"
            xCfgPrefix="package/cfg/testje_pe674"
            cfgScript="D:/Klanten/H&r-000/R015-Meetkast-2014/Nieuwe DSP/testje/testje.cfg"
            cfgArgs="null"
            />
        </configurations>
        <executables>
        <executable name="testje"
            pname="testje.xe674"
            target="ti.targets.elf.C674"
            platform="ti.platforms.evmDA830"
            profile="debug"
            xCfgScript="package/cfg/testje_pe674.cfg"
            xCfgPrefix="package/cfg/testje_pe674"
            cfgScript="D:/Klanten/H&r-000/R015-Meetkast-2014/Nieuwe DSP/testje/testje.cfg"
            cfgArgs="null"
            />
        </executables>
        <tests>
        <test exeName="testje.xe674"
            args=""
            groupName="testje.xe674"
            refOutput="undefined"
            refExitCode="0"
            execArgs=""
            />
        </tests>
        <releases relDir="package/rel/">
        <release name="configPkg"
            pname="configPkg.tar"
            label="default"
        >
            <file name="package/package.bld.xml"/>
            <file name="package/package.ext.xml"/>
            <file name="package/package.rel.dot"/>
            <file name="package/build.cfg"/>
            <file name="package/package.xdc.inc"/>
        </release>
        </releases>
        <repositories>
        </repositories>
    </package>
    

  • I think the parser is choking on the '&' character in the path to your build directory. Can you try renaming the directory 'H&r-000' to something else without '&' and try again?