[ 
https://issues.apache.org/jira/browse/COMPRESS-453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16476890#comment-16476890
 ] 

Stefan Bodewig commented on COMPRESS-453:
-----------------------------------------

Works just fine for me

{code}
$ cat Test.java 
import org.apache.commons.compress.compressors.bzip2.BZip2CompressorInputStream;
import org.apache.commons.compress.utils.IOUtils;
import java.io.*;

public class Test {
    public static void main(String[] args) throws Exception {
        try (InputStream f = new FileInputStream("nasm-2.12.02.tar.bz2");
             InputStream b = new BufferedInputStream(f);
             InputStream c = new BZip2CompressorInputStream(b);
             OutputStream o = new FileOutputStream("nasm-2.12.02.tar")) {
            IOUtils.copy(c, o);
        }
    }
}
$ javac -cp 
~/.m2/repository/org/apache/commons/commons-compress/1.16.1/commons-compress-1.16.1.jar
 Test.java 
$ java -cp 
~/.m2/repository/org/apache/commons/commons-compress/1.16.1/commons-compress-1.16.1.jar:.
 Test
$ java -fullversion
java full version "1.8.0_171-b11"
{code}

Can you please run the same test and paste the stack trace you see? Inside of 
the github issue I see many people who don't have any problem with the file, so 
maybe it is your JVM or another local issue.

For reference I used the second link to obtain nasm-2.12.02.tar.bz2 and I get

{code}
$ sha1sum nasm-2.12.02.tar.bz2 
a166e8d0fa567855053ebb8d0ed3ee22f1deb30f  nasm-2.12.02.tar.bz2
{code}


> Facing block overrun error while building TensorFlow
> ----------------------------------------------------
>
>                 Key: COMPRESS-453
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-453
>             Project: Commons Compress
>          Issue Type: Bug
>          Components: Compressors
>    Affects Versions: 1.9, 1.16.1
>         Environment: Linux Ubuntu 16.04 s390x
>            Reporter: Namrata Bhave
>            Priority: Major
>
> Building TensorFlow master using Bazel v0.12.0.
> Facing build issue immediately with error:
> {{ERROR: /home/jenkins/tensorflow/tensorflow/tools/pip_package/BUILD:117:1: 
> no such package '@nasm//': java.io.IOException: block overrun and referenced 
> by '//tensorflow/tools/pip_package:licenses'}}
> {{ ERROR: Analysis of target 
> '//tensorflow/tools/pip_package:build_pip_package' failed; build aborted: no 
> such package '@nasm//': java.io.IOException: block overrun}}
> This is intermittent. Sometimes the build goes ahead. Also observed this 
> error once:
> {{ERROR: /home/test/tensorflow/tensorflow/tools/pip_package/BUILD:117:1: no 
> such package '@nasm//': java.io.IOException: Error detected parsing the 
> header and referenced by '//tensorflow/tools/pip_package:licenses'ERROR: 
> Analysis of target '//tensorflow/tools/pip_package:build_pip_package' failed; 
> build aborted: no such package '@nasm//': java.io.IOException: Error detected 
> parsing the header}}
> Can someone please help in resolving this?
> Getting this error with AdoptJDK 8.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to