-
Notifications
You must be signed in to change notification settings - Fork 252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
problems with LZ4Block{Input,Output}Stream #11
Comments
Very good point, thanks Brian, the bug is in LZ4BlockOutputStream.write(int). I'll fix it... |
Brian, can you confirm the bug is fixed? |
I can't, because I can't build; both 'ant' and 'ant jar' fail in the same place. Please see below.Sorry,b$ ant jarPicked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 -Xmx32gBuildfile: /Users/mooreb/git/lz4-java/build.xmlinit:[ivy:resolve] :: Ivy 2.2.0 - 20100923230623 :: http://ant.apache.org/ivy/ ::[ivy:resolve] :: loading settings :: url = jar:file:/Users/mooreb/.ant/lib/ivy-2.2.0.jar!/org/apache/ivy/core/settings/ivysettings.xml[ivy:resolve] :: resolving dependencies :: net.jpountz.lz4#lz4;1.1-SNAPSHOT[ivy:resolve] confs: [test][ivy:resolve] found com.carrotsearch.randomizedtesting#junit4-ant;1.6.0 in public[ivy:resolve] found org.apache.ant#ant;1.8.2 in public[ivy:resolve] found org.apache.ant#ant-launcher;1.8.2 in public[ivy:resolve] found org.apache.ant#ant-junit;1.8.2 in public[ivy:resolve] found junit#junit;4.10 in public[ivy:resolve] found org.hamcrest#hamcrest-core;1.1 in public[ivy:resolve] found com.google.guava#guava;10.0.1 in public[ivy:resolve] found com.google.guava#guava-bootstrap;10.0.1 in public[ivy:resolve] found asm#asm;3.3.1 in public[ivy:resolve] found commons-io#commons-io;2.1 in public[ivy:resolve] found com.google.code.gson#gson;2.0 in public[ivy:resolve] found org.simpleframework#simple-xml;2.6.2 in public[ivy:resolve] found stax#stax-api;1.0.1 in public[ivy:resolve] found stax#stax;1.2.0 in public[ivy:resolve] found xpp3#xpp3;1.1.3.3 in public[ivy:resolve] found com.carrotsearch.randomizedtesting#randomizedtesting-runner;1.6.0 in public[ivy:resolve] :: resolution report :: resolve 506ms :: artifacts dl 23ms[ivy:resolve] :: evicted modules:[ivy:resolve] junit#junit;3.8.2 by [junit#junit;4.10] in [test] --------------------------------------------------------------------- | | modules || artifacts | | conf | number| search|dwnlded|evicted|| number|dwnlded| --------------------------------------------------------------------- | test | 17 | 0 | 0 | 1 || 16 | 0 | ---------------------------------------------------------------------[ivy:retrieve] :: retrieving :: net.jpountz.lz4#lz4[ivy:retrieve] confs: [test][ivy:retrieve] 0 artifacts copied, 16 already retrieved (0kB/12ms)compile-java:install-cpptasks:[ivy:cachepath] :: resolving dependencies :: ant-contrib#cpptasks-caller;working[ivy:cachepath] confs: [default][ivy:cachepath] found ant-contrib#cpptasks;1.0b5 in public[ivy:cachepath] found ant#ant;1.6.5 in public[ivy:cachepath] found xerces#xercesImpl;2.8.1 in public[ivy:cachepath] found xml-apis#xml-apis;1.3.03 in public[ivy:cachepath] :: resolution report :: resolve 66ms :: artifacts dl 4ms --------------------------------------------------------------------- | | modules || artifacts | | conf | number| search|dwnlded|evicted|| number|dwnlded| --------------------------------------------------------------------- | default | 4 | 0 | 0 | 0 || 4 | 0 | ---------------------------------------------------------------------generate-headers: [javah] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 -Xmx32gcompile-jni:[cpptasks:cc] Starting dependency analysis for 3 files.[cpptasks:cc] 3 files are up to date.[cpptasks:cc] 0 files to be recompiled from dependency analysis.[cpptasks:cc] 2 total files to be compiled.[cpptasks:cc] In file included from /Users/mooreb/git/lz4-java/src/jni/net_jpountz_lz4_LZ4JNI.c:16:[cpptasks:cc] /Users/mooreb/git/lz4-java/build/jni-headers/net_jpountz_lz4_LZ4JNI.h:2:17: error: jni.h: No such file or directory[cpptasks:cc] In file included from /Users/mooreb/git/lz4-java/src/jni/net_jpountz_lz4_LZ4JNI.c:16:[cpptasks:cc] /Users/mooreb/git/lz4-java/build/jni-headers/net_jpountz_lz4_LZ4JNI.h:16: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘void’[cpptasks:cc] /Users/mooreb/git/lz4-java/build/jni-headers/net_jpountz_lz4_LZ4JNI.h:24: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘jint’[cpptasks:cc] /Users/mooreb/git/lz4-java/build/jni-headers/net_jpountz_lz4_LZ4JNI.h:32: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘jint’[cpptasks:cc] /Users/mooreb/git/lz4-java/build/jni-headers/net_jpountz_lz4_LZ4JNI.h:40: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘jint’[cpptasks:cc] /Users/mooreb/git/lz4-java/build/jni-headers/net_jpountz_lz4_LZ4JNI.h:48: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘jint’[cpptasks:cc] /Users/mooreb/git/lz4-java/build/jni-headers/net_jpountz_lz4_LZ4JNI.h:56: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘jint’[cpptasks:cc] /Users/mooreb/git/lz4-java/src/jni/net_jpountz_lz4_LZ4JNI.c:18: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OutOfMemoryError’[cpptasks:cc] /Users/mooreb/git/lz4-java/src/jni/net_jpountz_lz4_LZ4JNI.c:25: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘void’[cpptasks:cc] /Users/mooreb/git/lz4-java/src/jni/net_jpountz_lz4_LZ4JNI.c:30: error: expected ‘)’ before ‘*’ token[cpptasks:cc] /Users/mooreb/git/lz4-java/src/jni/net_jpountz_lz4_LZ4JNI.c:39: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘jint’[cpptasks:cc] /Users/mooreb/git/lz4-java/src/jni/net_jpountz_lz4_LZ4JNI.c:67: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘jint’[cpptasks:cc] /Users/mooreb/git/lz4-java/src/jni/net_jpountz_lz4_LZ4JNI.c:95: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘jint’[cpptasks:cc] /Users/mooreb/git/lz4-java/src/jni/net_jpountz_lz4_LZ4JNI.c:123: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘jint’[cpptasks:cc] /Users/mooreb/git/lz4-java/src/jni/net_jpountz_lz4_LZ4JNI.c:151: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘jint’[cpptasks:cc] In file included from /Users/mooreb/git/lz4-java/src/jni/net_jpountz_xxhash_XXHashJNI.c:17:[cpptasks:cc] /Users/mooreb/git/lz4-java/build/jni-headers/net_jpountz_xxhash_XXHashJNI.h:2:17: error: jni.h: No such file or directory[cpptasks:cc] In file included from /Users/mooreb/git/lz4-java/src/jni/net_jpountz_xxhash_XXHashJNI.c:17:[cpptasks:cc] /Users/mooreb/git/lz4-java/build/jni-headers/net_jpountz_xxhash_XXHashJNI.h:16: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘void’[cpptasks:cc] /Users/mooreb/git/lz4-java/build/jni-headers/net_jpountz_xxhash_XXHashJNI.h:24: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘jint’[cpptasks:cc] /Users/mooreb/git/lz4-java/build/jni-headers/net_jpountz_xxhash_XXHashJNI.h:32: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘jlong’[cpptasks:cc] /Users/mooreb/git/lz4-java/build/jni-headers/net_jpountz_xxhash_XXHashJNI.h:40: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘void’[cpptasks:cc] /Users/mooreb/git/lz4-java/build/jni-headers/net_jpountz_xxhash_XXHashJNI.h:48: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘jint’[cpptasks:cc] /Users/mooreb/git/lz4-java/build/jni-headers/net_jpountz_xxhash_XXHashJNI.h:56: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘jint’[cpptasks:cc] /Users/mooreb/git/lz4-java/build/jni-headers/net_jpountz_xxhash_XXHashJNI.h:64: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘void’[cpptasks:cc] /Users/mooreb/git/lz4-java/src/jni/net_jpountz_xxhash_XXHashJNI.c:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OutOfMemoryError’[cpptasks:cc] /Users/mooreb/git/lz4-java/src/jni/net_jpountz_xxhash_XXHashJNI.c:26: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘void’[cpptasks:cc] /Users/mooreb/git/lz4-java/src/jni/net_jpountz_xxhash_XXHashJNI.c:31: error: expected ‘)’ before ‘*’ token[cpptasks:cc] /Users/mooreb/git/lz4-java/src/jni/net_jpountz_xxhash_XXHashJNI.c:40: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘jint’[cpptasks:cc] /Users/mooreb/git/lz4-java/src/jni/net_jpountz_xxhash_XXHashJNI.c:61: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘jlong’[cpptasks:cc] /Users/mooreb/git/lz4-java/src/jni/net_jpountz_xxhash_XXHashJNI.c:73: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘void’[cpptasks:cc] /Users/mooreb/git/lz4-java/src/jni/net_jpountz_xxhash_XXHashJNI.c:93: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘jint’[cpptasks:cc] /Users/mooreb/git/lz4-java/src/jni/net_jpountz_xxhash_XXHashJNI.c:105: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘jint’[cpptasks:cc] /Users/mooreb/git/lz4-java/src/jni/net_jpountz_xxhash_XXHashJNI.c:117: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘void’BUILD FAILED/Users/mooreb/git/lz4-java/build.xml:141: gcc failed with return code 1Total time: 2 seconds |
Strange, the changes I performed seem to be unrelated. Can you try with this JAR? http://oss.sonatype.org/content/repositories/snapshots/net/jpountz/lz4/lz4/1.1-SNAPSHOT/lz4-1.1-20130211.233145-3.jar |
I can confirm that my test now passes with the snapshot your provided. b |
Thank you. I'll release a new artifact soon (likely 1.1.1). |
I look forward to it. Thanks,b -------- Original Message -------- |
Thanks Adrien. This release has passed my initial testing. I'll let you know if I have any subsequent problems with it.Hoping this finds you well,b -------- Original Message -------- |
Hi Adrien,
I tried your new LZ4Block{Input,Output}Stream as published in:
http://search.maven.org/#artifactdetails|net.jpountz.lz4|lz4|1.1.0|jar
and unfortunately I had problems.
I have committed the passing and failing tests into:
https://github.com/mooreb/lz4-java-stream/tree/master/tests-2013-02-11/for-jpountz
The error I am experiencing is:
The difference between the passing and failing tests is below:
Hoping this helps and finds you well,
b
The text was updated successfully, but these errors were encountered: