You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openoffice.apache.org by Lucas Burson <lj...@gmail.com> on 2012/12/16 20:52:49 UTC
AOO trunk build fails with HSQLDB
Hi,
I cannot build AOO from source. I use Ubuntu 64bit. I have never been
able to build correctly; I switched from jdk7 to jdk6 and that didn't
change anything.
I used these instructions, [1], to get things started but I use a
different svn url. (off topic: I tried svn-git but it stops responding
after a while).
These are the commands that I run to get the build going:
svn co https://svn-master.apache.org/repos/asf/openoffice/trunk ~/aoo/trunk
cd ~/aoo/trunk/main/
autoconf
~/aoo/trunk/main/configure
--with-dmake-url=http://dmake.apache-extras.org.codespot.com/files/dmake-4.12.tar.bz2
--with-epm-url=http://ftp.easysw.com/pub/epm/3.7/epm-3.7-source.tar.gz
--disable-odk --disable-binfilter
~/aoo/trunk/main/bootstrap
source ~/aoo/trunk/main/LinuxX86-64Env.Set.sh
cd ~/aoo/trunk/main/instsetoo_native/
build --all -P4 -- -P4
It fails. I get a bunch of compiler errors about abstract methods not
being overridden:
"
[javac] /home/ljdelight/aoo/trunk/main/hsqldb/unxlngx6.pro/misc/build/hsqldb/src/org/hsqldb/jdbc/jdbcStatement.java:127:
error: jdbcStatement is not abstract and does not override abstract
method isCloseOnCompletion() in Statement
[javac] public class jdbcStatement implements Statement {
[javac] ^
ERROR: error 65280 occurred while making /home/ljdelight/aoo/trunk/main/hsqldb
When you have fixed the errors in that module you can resume the build
by running:
build --from hsqldb
"
Thanks for the help,
Lucas
[1] http://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO
Re: AOO trunk build fails with HSQLDB
Posted by janI <ja...@apache.org>.
I use ubuntu (12.04 server and 12.10 desktop) and have no problem building
trunk, branches/l10n.
I use the following conf call:
./configure \
--with-dmake-url=
http://dmake.apache-extras.org.codespot.com/files/dmake-4.12.tar.bz2 \
--with-epm-url=http://ftp.easysw.com/pub/epm/3.7/epm-3.7-source.tar.gz\
--disable-odk \
--disable-binfilter \
--enable-wiki-publisher \
--with-lang="da"
(also with --with-lang).
I have not changed any java setup, actually I just installed the 12.10
yesterday, so it is fresh out of the box.
I had a problem with sysui and permission,but I committed a change to build
a while ago.
java is version 1.7.0_09
OpenJDK runtime (IcedTea 2.3.3)
OpenJDK 64bit server build 23-2-b09
I just had another build all this evening which just completed.
On 16 December 2012 20:52, Lucas Burson <lj...@gmail.com> wrote:
> Hi,
>
> I cannot build AOO from source. I use Ubuntu 64bit. I have never been
> able to build correctly; I switched from jdk7 to jdk6 and that didn't
> change anything.
> I used these instructions, [1], to get things started but I use a
> different svn url. (off topic: I tried svn-git but it stops responding
> after a while).
>
>
> These are the commands that I run to get the build going:
> svn co https://svn-master.apache.org/repos/asf/openoffice/trunk~/aoo/trunk
> cd ~/aoo/trunk/main/
> autoconf
> ~/aoo/trunk/main/configure
> --with-dmake-url=
> http://dmake.apache-extras.org.codespot.com/files/dmake-4.12.tar.bz2
> --with-epm-url=http://ftp.easysw.com/pub/epm/3.7/epm-3.7-source.tar.gz
> --disable-odk --disable-binfilter
> ~/aoo/trunk/main/bootstrap
> source ~/aoo/trunk/main/LinuxX86-64Env.Set.sh
> cd ~/aoo/trunk/main/instsetoo_native/
> build --all -P4 -- -P4
>
I do the same...and when I run into problems I restart build without the P4
(solely: build --all)
hope it helps.
Jan.
>
>
> It fails. I get a bunch of compiler errors about abstract methods not
> being overridden:
> "
> [javac] /home/ljdelight/aoo/trunk/main/hsqldb/
> unxlngx6.pro/misc/build/hsqldb/src/org/hsqldb/jdbc/jdbcStatement.java:127:
> error: jdbcStatement is not abstract and does not override abstract
> method isCloseOnCompletion() in Statement
> [javac] public class jdbcStatement implements Statement {
> [javac] ^
> ERROR: error 65280 occurred while making
> /home/ljdelight/aoo/trunk/main/hsqldb
> When you have fixed the errors in that module you can resume the build
> by running:
> build --from hsqldb
> "
>
> Thanks for the help,
> Lucas
>
> [1] http://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO
>
Re: AOO trunk build fails with HSQLDB
Posted by Kay Schenk <ka...@gmail.com>.
On Sun, Dec 16, 2012 at 12:13 PM, Pedro Giffuni <pf...@apache.org> wrote:
>
>
>
>
> ----- Original Message -----
>> From: Ariel Constenla-Haile
>
>>
>> Hi Lucas,
>>
>> On Sun, Dec 16, 2012 at 01:52:49PM -0600, Lucas Burson wrote:
>>> Hi,
>>>
> ...
>
>>> It fails. I get a bunch of compiler errors about abstract methods not
>>> being overridden:
>>> "
>>> [javac]
>> /home/ljdelight/aoo/trunk/main/hsqldb/unxlngx6.pro/misc/build/hsqldb/src/org/hsqldb/jdbc/jdbcStatement.java:127:
>>> error: jdbcStatement is not abstract and does not override abstract
>>> method isCloseOnCompletion() in Statement
>>> [javac] public class jdbcStatement implements Statement {
>>> [javac] ^
>>
>> This method was added on Java 7, see
>> http://docs.oracle.com/javase/7/docs/api/java/sql/Statement.html#isCloseOnCompletion%28%29
>>
>
> There is a patch in debian that adds some stubs for this. The real solution is updating hsqldb
> though.
>
> On the subject of Java 7, someone should look at
> https://issues.apache.org/ooo/show_bug.cgi?id=121098
>
>
> The fix is rather trivial.
>
> Pedro.
Pedro --
I took a look at this issues. Would this allow us to build with java 7?
I'm wondering about this because our buildbots are configured with
java 6 and I *really* think we should go onto 7 if at all possible.
--
----------------------------------------------------------------------------------------
MzK
"No act of kindness, no matter how small, is ever wasted."
-- Aesop
Re: AOO trunk build fails with HSQLDB
Posted by Pedro Giffuni <pf...@apache.org>.
----- Original Message -----
> From: Ariel Constenla-Haile
>
> Hi Lucas,
>
> On Sun, Dec 16, 2012 at 01:52:49PM -0600, Lucas Burson wrote:
>> Hi,
>>
...
>> It fails. I get a bunch of compiler errors about abstract methods not
>> being overridden:
>> "
>> [javac]
> /home/ljdelight/aoo/trunk/main/hsqldb/unxlngx6.pro/misc/build/hsqldb/src/org/hsqldb/jdbc/jdbcStatement.java:127:
>> error: jdbcStatement is not abstract and does not override abstract
>> method isCloseOnCompletion() in Statement
>> [javac] public class jdbcStatement implements Statement {
>> [javac] ^
>
> This method was added on Java 7, see
> http://docs.oracle.com/javase/7/docs/api/java/sql/Statement.html#isCloseOnCompletion%28%29
>
There is a patch in debian that adds some stubs for this. The real solution is updating hsqldb
though.
On the subject of Java 7, someone should look at
https://issues.apache.org/ooo/show_bug.cgi?id=121098
The fix is rather trivial.
Pedro.
Re: AOO trunk build fails with HSQLDB
Posted by Ariel Constenla-Haile <ar...@apache.org>.
Hi Lucas,
On Sun, Dec 16, 2012 at 02:53:58PM -0600, Lucas Burson wrote:
> Ariel, removing all JDK7 worked! Heck yes.
ups I didn't suggest that! This may break your system, at least it does
in Fedora, where all java stuff is built with Java 7, targeted to a JVM
7. The best thing is to download a JDK 6 from Oracle, install it in /opt
and configure --with-jdk-home, this way you don't break your system.
> This time it failed at VCL:
> make: *** No rule to make target
> `/usr/lib/jvm/java-7-openjdk-amd64/include/jni.h', needed by
the build system is still looking for stuff from the JDK 7, as the path
suggests: java-7-openjdk-amd64
I guess LinuxX86-64Env.Set.sh has some old variables, look at JAVA_HOME
because the includes are generated from that variable, see SOLARINC
SOLARINC=-I$JAVA_HOME/include -I$JAVA_HOME/include/linux -I$JAVA_HOME/include/native_threads/include
> `/home/ljdelight/aoo/trunk/main/solver/350/unxlngx6.pro/workdir/CxxObject/vcl/source/window/syschild.o'.
> Stop.
>
> I'll double check my dirs are clear, java_home is set, and double
> check I destroyed all jdk7 in synaptic.
If you removed everything from JDK7, then run ./configure again so that
it updates LinuxX86-64Env.Set.sh
If it still fails, make sure to explicitly point to the JDK directory
configuring with --with-jdk-home
Regards
--
Ariel Constenla-Haile
La Plata, Argentina
Re: AOO trunk build fails with HSQLDB
Posted by Lucas Burson <lj...@gmail.com>.
Ariel, removing all JDK7 worked! Heck yes.
This time it failed at VCL:
make: *** No rule to make target
`/usr/lib/jvm/java-7-openjdk-amd64/include/jni.h', needed by
`/home/ljdelight/aoo/trunk/main/solver/350/unxlngx6.pro/workdir/CxxObject/vcl/source/window/syschild.o'.
Stop.
I'll double check my dirs are clear, java_home is set, and double
check I destroyed all jdk7 in synaptic.
Thanks a bunch.
Lucas
On Sun, Dec 16, 2012 at 2:26 PM, Ariel Constenla-Haile
<ar...@apache.org> wrote:
> On Sun, Dec 16, 2012 at 09:07:42PM +0100, janI wrote:
>> Why does that work on my system...I am just wondering ??
>
> I've no idea. In theory you can use javac from JDF 7 to compile old
> code, and even target to an older JVM, as javac has the -source and
> -target options, but I've no idea if the HSQLDB ant scripts has this
> options set (ant's javac task supports both source and target
> attributes).
>
>
> Regards
> --
> Ariel Constenla-Haile
> La Plata, Argentina
Re: AOO trunk build fails with HSQLDB
Posted by Ariel Constenla-Haile <ar...@apache.org>.
On Sun, Dec 16, 2012 at 09:07:42PM +0100, janI wrote:
> Why does that work on my system...I am just wondering ??
I've no idea. In theory you can use javac from JDF 7 to compile old
code, and even target to an older JVM, as javac has the -source and
-target options, but I've no idea if the HSQLDB ant scripts has this
options set (ant's javac task supports both source and target
attributes).
Regards
--
Ariel Constenla-Haile
La Plata, Argentina
Re: AOO trunk build fails with HSQLDB
Posted by janI <ja...@apache.org>.
Why does that work on my system...I am just wondering ??
Jan.
On 16 December 2012 21:03, Ariel Constenla-Haile <ar...@apache.org> wrote:
> Hi Lucas,
>
> On Sun, Dec 16, 2012 at 01:52:49PM -0600, Lucas Burson wrote:
> > Hi,
> >
> > I cannot build AOO from source. I use Ubuntu 64bit. I have never been
> > able to build correctly; I switched from jdk7 to jdk6 and that didn't
> > change anything.
>
> The error seems to tell your system is on Java 7, see bellow.
>
> > I used these instructions, [1], to get things started but I use a
> > different svn url. (off topic: I tried svn-git but it stops responding
> > after a while).
> >
> > These are the commands that I run to get the build going:
> > svn co https://svn-master.apache.org/repos/asf/openoffice/trunk~/aoo/trunk
> > cd ~/aoo/trunk/main/
> > autoconf
> > ~/aoo/trunk/main/configure
> > --with-dmake-url=
> http://dmake.apache-extras.org.codespot.com/files/dmake-4.12.tar.bz2
> > --with-epm-url=http://ftp.easysw.com/pub/epm/3.7/epm-3.7-source.tar.gz
> > --disable-odk --disable-binfilter
> > ~/aoo/trunk/main/bootstrap
> > source ~/aoo/trunk/main/LinuxX86-64Env.Set.sh
> > cd ~/aoo/trunk/main/instsetoo_native/
> > build --all -P4 -- -P4
> >
> >
> > It fails. I get a bunch of compiler errors about abstract methods not
> > being overridden:
> > "
> > [javac] /home/ljdelight/aoo/trunk/main/hsqldb/
> unxlngx6.pro/misc/build/hsqldb/src/org/hsqldb/jdbc/jdbcStatement.java:127:
> > error: jdbcStatement is not abstract and does not override abstract
> > method isCloseOnCompletion() in Statement
> > [javac] public class jdbcStatement implements Statement {
> > [javac] ^
>
> This method was added on Java 7, see
>
> http://docs.oracle.com/javase/7/docs/api/java/sql/Statement.html#isCloseOnCompletion%28%29
>
> Either use alternatives to switch to Java 6, or better install Java
> 6 from your distros repo, leaving your system's default, and pointing
> the build system to the right JDK 6, configuring with --with-jdk-home
> for example:
>
> --with-jdk-home=/opt/jdk1.6
>
> here JDK 6 is in /opt/jdk1.6
>
>
> Regards
> --
> Ariel Constenla-Haile
> La Plata, Argentina
>
Re: AOO trunk build fails with HSQLDB
Posted by Ariel Constenla-Haile <ar...@apache.org>.
Hi Lucas,
On Sun, Dec 16, 2012 at 01:52:49PM -0600, Lucas Burson wrote:
> Hi,
>
> I cannot build AOO from source. I use Ubuntu 64bit. I have never been
> able to build correctly; I switched from jdk7 to jdk6 and that didn't
> change anything.
The error seems to tell your system is on Java 7, see bellow.
> I used these instructions, [1], to get things started but I use a
> different svn url. (off topic: I tried svn-git but it stops responding
> after a while).
>
> These are the commands that I run to get the build going:
> svn co https://svn-master.apache.org/repos/asf/openoffice/trunk ~/aoo/trunk
> cd ~/aoo/trunk/main/
> autoconf
> ~/aoo/trunk/main/configure
> --with-dmake-url=http://dmake.apache-extras.org.codespot.com/files/dmake-4.12.tar.bz2
> --with-epm-url=http://ftp.easysw.com/pub/epm/3.7/epm-3.7-source.tar.gz
> --disable-odk --disable-binfilter
> ~/aoo/trunk/main/bootstrap
> source ~/aoo/trunk/main/LinuxX86-64Env.Set.sh
> cd ~/aoo/trunk/main/instsetoo_native/
> build --all -P4 -- -P4
>
>
> It fails. I get a bunch of compiler errors about abstract methods not
> being overridden:
> "
> [javac] /home/ljdelight/aoo/trunk/main/hsqldb/unxlngx6.pro/misc/build/hsqldb/src/org/hsqldb/jdbc/jdbcStatement.java:127:
> error: jdbcStatement is not abstract and does not override abstract
> method isCloseOnCompletion() in Statement
> [javac] public class jdbcStatement implements Statement {
> [javac] ^
This method was added on Java 7, see
http://docs.oracle.com/javase/7/docs/api/java/sql/Statement.html#isCloseOnCompletion%28%29
Either use alternatives to switch to Java 6, or better install Java
6 from your distros repo, leaving your system's default, and pointing
the build system to the right JDK 6, configuring with --with-jdk-home
for example:
--with-jdk-home=/opt/jdk1.6
here JDK 6 is in /opt/jdk1.6
Regards
--
Ariel Constenla-Haile
La Plata, Argentina