Closed javajivejoe closed 10 years ago
I had this problem occur as well before. Try a new clean clone and see what happens now.
Actually, now I remember what it was. It was an old version of WinAnt on Windows.
Are you using Windows and WinAnt? If so, try using a more up to date version of ant on Windows (not WinAnt which is 1.8).
Thanks for your response. I don't think that's it as I'm on linux.
joe@fr-dev9:~/update/tmp/simple-binary-encoding$ ant -version Apache Ant(TM) version 1.8.4 compiled on May 22 2012
I tried again with a clean clone and didn't seem to help.
Here's a link to pastebin with a verbose run of ant. It seems like things are fine until it's trying to parse the xml files.
Could you try with Ant 1.9.4?
Well that did it, thanks.
Boo on ant!
Running into some problems with a clean build. I think it's unhappy with one of the XML files. Any thoughts on what this means?
Buildfile: /home/joe/update/tmp/sbe/build.xml
init: [mkdir] Created dir: /home/joe/update/tmp/sbe/target/main/java/classes [mkdir] Created dir: /home/joe/update/tmp/sbe/target/test/java/classes [mkdir] Created dir: /home/joe/update/tmp/sbe/target/dist [mkdir] Created dir: /home/joe/update/tmp/sbe/target/docs/java [mkdir] Created dir: /home/joe/update/tmp/sbe/target/docs/cpp [mkdir] Created dir: /home/joe/update/tmp/sbe/target/reports [mkdir] Created dir: /home/joe/update/tmp/sbe/target/reports/unit [mkdir] Created dir: /home/joe/update/tmp/sbe/target/reports/checkstyle [mkdir] Created dir: /home/joe/update/tmp/sbe/target/main/cpp/obj [mkdir] Created dir: /home/joe/update/tmp/sbe/target/test/cpp/gtest/obj
cpp:compile: [cc] 2 total files to be compiled. [cc] In file included from /home/joe/update/tmp/sbe/main/cpp/uk_co_real_logic_sbe_ir_generated/FrameCodec.hpp:17:0, [cc] from /home/joe/update/tmp/sbe/main/cpp/otf_api/Ir.cpp:22: [cc] /home/joe/update/tmp/sbe/main/cpp/uk_co_real_logic_sbe_ir_generated/FrameCodec.hpp: In member function ‘void uk_co_real_logic_sbe_ir_generated::FrameCodec::position(sbe_uint64_t)’: [cc] /home/joe/update/tmp/sbe/main/cpp/uk_co_real_logic_sbe_ir_generated/FrameCodec.hpp:108:49: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] [cc] if (SBE_BOUNDS_CHECKEXPECT((position > bufferLength), 0)) [cc] ^ [cc] /home/joe/update/tmp/sbe/main/cpp/sbe/sbe.hpp:72:62: note: in definition of macro ‘SBE_BOUNDS_CHECK_EXPECT’ [cc] #define SBE_BOUNDS_CHECK_EXPECT(exp,c) (__builtin_expect(exp,c)) [cc] ^ [cc] /home/joe/update/tmp/sbe/main/cpp/uk_co_real_logic_sbe_ir_generated/TokenCodec.hpp: In member function ‘void uk_co_real_logic_sbe_ir_generated::TokenCodec::position(sbe_uint64_t)’: [cc] /home/joe/update/tmp/sbe/main/cpp/uk_co_real_logic_sbe_ir_generated/TokenCodec.hpp:108:49: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] [cc] if (SBE_BOUNDS_CHECKEXPECT((position > bufferLength), 0)) [cc] ^ [cc] /home/joe/update/tmp/sbe/main/cpp/sbe/sbe.hpp:72:62: note: in definition of macro ‘SBE_BOUNDS_CHECK_EXPECT’ [cc] #define SBE_BOUNDS_CHECK_EXPECT(exp,c) (__builtin_expect(exp,c)) [cc] ^
gtest:unzip: [unzip] Expanding: /home/joe/update/tmp/sbe/test/lib/gtest-1.7.0.zip into /home/joe/update/tmp/sbe/target/test/cpp
gtest:compile: [cc] 2 total files to be compiled.
build: [javac] Compiling 59 source files to /home/joe/update/tmp/sbe/target/main/java/classes
javadoc: [javadoc] Generating Javadoc [javadoc] Javadoc execution [javadoc] Loading source files for package uk.co.real_logic.sbe... [javadoc] Loading source files for package uk.co.real_logic.sbe.codec.java... [javadoc] Loading source files for package uk.co.real_logic.sbe.generation... [javadoc] Loading source files for package uk.co.real_logic.sbe.generation.cpp98... [javadoc] Loading source files for package uk.co.real_logic.sbe.generation.csharp... [javadoc] Loading source files for package uk.co.real_logic.sbe.generation.java... [javadoc] Loading source files for package uk.co.real_logic.sbe.generation.python... [javadoc] Loading source files for package uk.co.real_logic.sbe.ir... [javadoc] Loading source files for package uk.co.real_logic.sbe.ir.generated... [javadoc] Loading source files for package uk.co.real_logic.sbe.otf... [javadoc] Loading source files for package uk.co.real_logic.sbe.util... [javadoc] Loading source files for package uk.co.real_logic.sbe.xml... [javadoc] Constructing Javadoc information... [javadoc] Standard Doclet version 1.7.0_17 [javadoc] Building tree for all the packages and classes... [javadoc] /home/joe/update/tmp/sbe/main/java/uk/co/real_logic/sbe/util/ValidationUtil.java:131: warning - Tag @see: reference not found: javax.lang.model.SourceVersion#isName(CharSequence) [javadoc] Building index for all the packages and classes... [javadoc] Building index for all classes... [javadoc] Generating /home/joe/update/tmp/sbe/target/docs/java/help-doc.html... [javadoc] 1 warning
dist: [jar] Building jar: /home/joe/update/tmp/sbe/target/dist/sbe-1.0.4-RC2-SNAPSHOT.jar [jar] Building jar: /home/joe/update/tmp/sbe/target/dist/sbe-1.0.4-RC2-SNAPSHOT-javadoc.jar [jar] Building jar: /home/joe/update/tmp/sbe/target/dist/sbe-1.0.4-RC2-SNAPSHOT-sources.jar [copy] Copying 1 file to /home/joe/update/tmp/sbe/target/dist
cpp:test:codegen: [mkdir] Created dir: /home/joe/update/tmp/sbe/target/gen/cpp98 [java] Exception in thread "main" org.xml.sax.SAXParseException; systemId: file:/home/joe/update/tmp/sbe/; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog. [java] at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:198) [java] at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:177) [java] at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:441) [java] at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:368) [java] at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1388) [java] at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:998) [java] at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:607) [java] at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:116) [java] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:489) [java] at com.sun.org.apache.xerces.internal.impl.xs.opti.SchemaParsingConfig.parse(SchemaParsingConfig.java:629) [java] at com.sun.org.apache.xerces.internal.impl.xs.opti.SchemaParsingConfig.parse(SchemaParsingConfig.java:685) [java] at com.sun.org.apache.xerces.internal.impl.xs.opti.SchemaDOMParser.parse(SchemaDOMParser.java:530) [java] at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getSchemaDocument(XSDHandler.java:2155) [java] at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.parseSchema(XSDHandler.java:562) [java] at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:588) [java] at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadGrammar(XMLSchemaLoader.java:555) [java] at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadGrammar(XMLSchemaLoader.java:521) [java] at com.sun.org.apache.xerces.internal.jaxp.validation.XMLSchemaFactory.newSchema(XMLSchemaFactory.java:240) [java] at javax.xml.validation.SchemaFactory.newSchema(SchemaFactory.java:591) [java] at javax.xml.validation.SchemaFactory.newSchema(SchemaFactory.java:607) [java] at uk.co.real_logic.sbe.xml.XmlSchemaParser.validate(XmlSchemaParser.java:71) [java] at uk.co.real_logic.sbe.SbeTool.validateAgainstSchema(SbeTool.java:179) [java] at uk.co.real_logic.sbe.SbeTool.main(SbeTool.java:124)
BUILD FAILED /home/joe/update/tmp/sbe/build.xml:858: The following error occurred while executing this line: /home/joe/update/tmp/sbe/build.xml:621: Java returned: 1
Total time: 10 seconds