[Nix-dev] libreoffice build is broken

Bjørn Forsman bjorn.forsman at gmail.com
Sun Jan 19 00:22:45 CET 2014


Hi all,

The libreoffice build is currently broken. From
http://hydra.nixos.org/build/7895542/nixlog/1/tail-reload:

checking for ant...
/nix/store/jafd3hj6rx5lkfsdvv695p7jhdg73h5g-ant-1.9.3/bin/ant
checking if /nix/store/jafd3hj6rx5lkfsdvv695p7jhdg73h5g-ant-1.9.3/bin/ant
works... configure: WARNING: Ant does not work - Some Java projects
will not build!
tput: No value for $TERM and no -T specified
./configure: line 4896: test: -ge: unary operator expected
checking whether Ant is >= 1.6.0... ./configure: line 35015: test:
tools: integer expression expected
./configure: line 35018: test: jar: integer expression expected
configure: error: no, you need at least Ant >= 1.6.0
Error running configure at ./autogen.sh line 192.
builder for
`/nix/store/9drm1rq6m2xxx9q6pjh86jzl996ilsvv-libreoffice-4.0.5.2.drv'
failed with exit code 25
error: build of
`/nix/store/9drm1rq6m2xxx9q6pjh86jzl996ilsvv-libreoffice-4.0.5.2.drv'
failed


I did a build on my local machine and here is a bit more info from config.log:

configure:34905: checking if
/nix/store/jafd3hj6rx5lkfsdvv695p7jhdg73h5g-ant-1.9.3/bin/ant works
configure:34930:
/nix/store/jafd3hj6rx5lkfsdvv695p7jhdg73h5g-ant-1.9.3/bin/ant
-buildfile conftest.xml 1>&2
Unable to locate tools.jar. Expected to find it in
/nix/store/fj90f1gagz2iyipbmzc78rz3aas88zaj-openjdk-7u40b43-jre/lib/openjdk/lib/tools.jar
Buildfile: /tmp/nix-build-libreoffice-4.0.5.2.drv-3/libreoffice-4.0.5.2/conftest.xml

conftest:
    [javac] /tmp/nix-build-libreoffice-4.0.5.2.drv-3/libreoffice-4.0.5.2/conftest.xml:3:
warning: 'includeantruntime' was not set, defaulting to
build.sysclasspath=last; set to false for repeatable builds

BUILD FAILED
/tmp/nix-build-libreoffice-4.0.5.2.drv-3/libreoffice-4.0.5.2/conftest.xml:3:
Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to
"/nix/store/fj90f1gagz2iyipbmzc78rz3aas88zaj-openjdk-7u40b43-jre/lib/openjdk/jre"

Total time: 1 second
configure:34933: $? = 1
configure: Ant test failed
        public class conftest {
            int testmethod(int a, int b) {
                    return a + b;
            }
        }
        <project name="conftest" default="conftest">
        <target name="conftest">
            <javac srcdir="." includes="conftest.java">
            </javac>
        </target>
        </project>
configure:34950: WARNING: Ant does not work - Some Java projects will not build!
configure:35007: checking whether Ant is >= 1.6.0
configure: ant_version tools.jar.
1.9.3
configure: ant_version_major tools
configure: ant_version_minor jar
configure:35022: error: no, you need at least Ant >= 1.6.0


I wonder if the issue has to do with "multiple outputs", as there was
recently some changes in openjdk regarding that. From the config.log
above I can see

  Unable to locate tools.jar. Expected to find it in
/nix/store/fj90f1gagz2iyipbmzc78rz3aas88zaj-openjdk-7u40b43-jre/lib/openjdk/lib/tools.jar

but on my machine tools.jar is not located in the "openjdk-jre"
output, but in the plain "openjdk" output.

And further:

  Perhaps JAVA_HOME does not point to the JDK.
  It is currently set to
"/nix/store/fj90f1gagz2iyipbmzc78rz3aas88zaj-openjdk-7u40b43-jre/lib/openjdk/jre"

So it seems that maybe libreoffice needs "jdk" and not "jre"? The only
weird part is that it *is* jdk that is in buildInput, not "jre"...

Best regards,
Bjørn Forsman


More information about the nix-dev mailing list