Quantcast

Possible change to the "Native Build" page?

classic Classic list List threaded Threaded
15 messages Options
Phil Hart Phil Hart
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Possible change to the "Native Build" page?

Hello.

I have found (and solved) an annoyance when it comes to native build on
openSUSE 12.1 . It is this: openSUSE 12.1 ships with Java 1.5, but the
current version of LibreOffice needs Java 1.6.

This can be resolved by installing Java-1_6_0-openjdk-devel before the
./autogen.sh step.

Should this be documented in
http://wiki.documentfoundation.org/Development/Native_Build ? Should it
also be put into http://www.libreoffice.org/developers-2/ ?

If so, is it something that I should do? (As a newbie to this forum, I
wondered if I should leave it to more experienced people.)

Regards,
philhart

_______________________________________________
LibreOffice mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/libreoffice
Caolán McNamara Caolán McNamara
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Possible change to the "Native Build" page?

On Tue, 2012-06-19 at 06:06 +0800, Phil Hart wrote:
> Hello.
>
> I have found (and solved) an annoyance when it comes to native build on
> openSUSE 12.1 . It is this: openSUSE 12.1 ships with Java 1.5, but the
> current version of LibreOffice needs Java 1.6.

Does it ?, I thought we were still ok with 1.5. What sort of
error/problem happened when you tried to build with your default 1.5
providing java stack ?

C.

_______________________________________________
LibreOffice mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/libreoffice
Phil Hart Phil Hart
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Possible change to the "Native Build" page?

On 20/06/2012 7:02 AM, Caolán McNamara wrote:

> On Tue, 2012-06-19 at 06:06 +0800, Phil Hart wrote:
>> Hello.
>>
>> I have found (and solved) an annoyance when it comes to native build on
>> openSUSE 12.1 . It is this: openSUSE 12.1 ships with Java 1.5, but the
>> current version of LibreOffice needs Java 1.6.
> Does it ?, I thought we were still ok with 1.5. What sort of
> error/problem happened when you tried to build with your default 1.5
> providing java stack ?
>
> C.
>
> _______________________________________________
> LibreOffice mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/libreoffice
Hello Caolán,

The following is an extract from the build log.

The build error is evident about 10 lines from the bottom.

(Sorry about the duplicate: I forgot to add the LibreOffice list to the
CC line :( )

Best regards,
philhart

=============
(15/158) Building module stax
=============

<<<lines deleted>>>

Entering /home/phil/git/libo/tomcat

Buildfile:
/home/phil/git/libo/hsqldb/unxlngx6.pro/misc/build/hsqldb/build/build.xml
Buildfile:
/home/phil/git/libo/tomcat/unxlngx6.pro/misc/build/jakarta-tomcat-5.0.30-src/jakarta-servletapi-5/build.xml

debuild:
      [echo] Building Servlet 2.4 API

prepare:

init:

javaversion6:

javaversion4:

javaversion2:

-prepare:

codeswitcher:
     [javac]
/home/phil/git/libo/hsqldb/unxlngx6.pro/misc/build/hsqldb/build/build.xml:135:
warning: 'includeantruntime' was not set, defaulting to
build.sysclasspath=last; set to false for repeatable builds

static:

compile:
     [javac]
/home/phil/git/libo/tomcat/unxlngx6.pro/misc/build/jakarta-tomcat-5.0.30-src/jakarta-servletapi-5/jsr154/build.xml:67:
warning: 'includeantruntime' was not set, defaulting to
build.sysclasspath=last; set to false for repeatable builds
     [javac] Compiling 1 source file to
/home/phil/git/libo/hsqldb/unxlngx6.pro/misc/build/hsqldb/classes
     [javac] Compiling 40 source files to
/home/phil/git/libo/tomcat/unxlngx6.pro/misc/build/jakarta-tomcat-5.0.30-src/jakarta-servletapi-5/jsr154/build/classes
     [javac] Compliance level '1.5' is incompatible with source level
'1.6'. A compliance level '1.6' or better is required
     [javac] Compliance level '1.5' is incompatible with source level
'1.6'. A compliance level '1.6' or better is required

BUILD FAILED
/home/phil/git/libo/tomcat/unxlngx6.pro/misc/build/jakarta-tomcat-5.0.30-src/jakarta-servletapi-5/build.xml:9:
The following error occurred while executing this line:
/home/phil/git/libo/tomcat/unxlngx6.pro/misc/build/jakarta-tomcat-5.0.30-src/jakarta-servletapi-5/jsr154/build.xml:67:
Compile failed; see the compiler error output for details.

Total time: 4 seconds
dmake:  Error code 1, while making
'./unxlngx6.pro/misc/build/so_built_servlet'
Entering /home/phil/git/libo/unixODBC/prj



_______________________________________________
LibreOffice mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/libreoffice
Caolán McNamara Caolán McNamara
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Possible change to the "Native Build" page?

On Wed, 2012-06-20 at 08:11 +0800, Phil Hart wrote:

> compile:
>      [javac]
> /home/phil/git/libo/tomcat/unxlngx6.pro/misc/build/jakarta-tomcat-5.0.30-src/jakarta-servletapi-5/jsr154/build.xml:67:
> warning: 'includeantruntime' was not set, defaulting to
> build.sysclasspath=last; set to false for repeatable builds
>      [javac] Compiling 1 source file to
> /home/phil/git/libo/hsqldb/unxlngx6.pro/misc/build/hsqldb/classes
>      [javac] Compiling 40 source files to
> /home/phil/git/libo/tomcat/unxlngx6.pro/misc/build/jakarta-tomcat-5.0.30-src/jakarta-servletapi-5/jsr154/build/classes
>      [javac] Compliance level '1.5' is incompatible with source level
> '1.6'. A compliance level '1.6' or better is required
>      [javac] Compliance level '1.5' is incompatible with source level
> '1.6'. A compliance level '1.6' or better is required
>
> BUILD FAILED
> /home/phil/git/libo/tomcat/unxlngx6.pro/misc/build/jakarta-tomcat-5.0.30-src/jakarta-servletapi-5/build.xml:9:
> The following error occurred while executing this line:
> /home/phil/git/libo/tomcat/unxlngx6.pro/misc/build/jakarta-tomcat-5.0.30-src/jakarta-servletapi-5/jsr154/build.xml:67:
> Compile failed; see the compiler error output for details.

can we get the output of

grep JAVA config_host.mk

and

rpm -q ant.

https://issues.apache.org/bugzilla/show_bug.cgi?id=50256 might be
relevant.

C.

_______________________________________________
LibreOffice mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/libreoffice
Phil Hart Phil Hart
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Possible change to the "Native Build" page?

On 20/06/2012 2:57 PM, Caolán McNamara wrote:

> On Wed, 2012-06-20 at 08:11 +0800, Phil Hart wrote:
>> compile:
>>       [javac]
>> /home/phil/git/libo/tomcat/unxlngx6.pro/misc/build/jakarta-tomcat-5.0.30-src/jakarta-servletapi-5/jsr154/build.xml:67:
>> warning: 'includeantruntime' was not set, defaulting to
>> build.sysclasspath=last; set to false for repeatable builds
>>       [javac] Compiling 1 source file to
>> /home/phil/git/libo/hsqldb/unxlngx6.pro/misc/build/hsqldb/classes
>>       [javac] Compiling 40 source files to
>> /home/phil/git/libo/tomcat/unxlngx6.pro/misc/build/jakarta-tomcat-5.0.30-src/jakarta-servletapi-5/jsr154/build/classes
>>       [javac] Compliance level '1.5' is incompatible with source level
>> '1.6'. A compliance level '1.6' or better is required
>>       [javac] Compliance level '1.5' is incompatible with source level
>> '1.6'. A compliance level '1.6' or better is required
>>
>> BUILD FAILED
>> /home/phil/git/libo/tomcat/unxlngx6.pro/misc/build/jakarta-tomcat-5.0.30-src/jakarta-servletapi-5/build.xml:9:
>> The following error occurred while executing this line:
>> /home/phil/git/libo/tomcat/unxlngx6.pro/misc/build/jakarta-tomcat-5.0.30-src/jakarta-servletapi-5/jsr154/build.xml:67:
>> Compile failed; see the compiler error output for details.
> can we get the output of
>
> grep JAVA config_host.mk
>
> and
>
> rpm -q ant.
>
> https://issues.apache.org/bugzilla/show_bug.cgi?id=50256 might be
> relevant.
>
> C.
>
> _______________________________________________
> LibreOffice mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/libreoffice
Answers:

phil@linux-012k:~/Downloads/libreoffice-core-3.5.99.1> grep JAVA config_host.mk
export ENABLE_SCRIPTING_JAVASCRIPT=NO
export JAVAFLAGS=
export JAVAIFLAGS=
export JAVAINTERPRETER=/usr/bin/java
export JAVACISGCJ=
export JAVACISKAFFE=
export JAVACOMPILER=/usr/bin/javac
export JAVADOC=/usr/bin/javadoc
  export JAVALIB=-L/usr/lib64/jvm/java-1.5.0-gcj/lib64
export JAVA_HOME=/usr/lib64/jvm/java-1.5.0-gcj
export JAVA_SOURCE_VER=1.6
export JAVA_TARGET_VER=1.6
export SCPDEFS= -DWITH_HELP -DWITH_POSTGRESQL_SDBC -DWITHOUT_EXTENSION_MEDIAWIKI -DWITHOUT_EXTENSION_SCRIPTING_BEANSHELL -DWITHOUT_EXTENSION_SCRIPTING_JAVASCRIPT -DWITHOUT_MATHMLDTD -DTHEME_CRYSTAL -DTHEME_DEFAULT -DTHEME_HICONTRAST -DTHEME_OXYGEN -DTHEME_TANGO -DWITH_HELPPACK_INTEGRATION -DWITH_EXTENSION_INTEGRATION
export SOLAR_JAVA=TRUE
phil@linux-012k:~/Downloads/libreoffice-core-3.5.99.1> rpm -q ant
ant-1.8.2-4.1.1.noarch

When it comes to bug 50256, I lack the background knowledge to assess its relevance, but thanks for pointing me to it anyway.

philhart

_______________________________________________
LibreOffice mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/libreoffice
Noel Grandin Noel Grandin
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Possible change to the "Native Build" page?

It's look like you're using GCJ instead of a regular java VM, which is
probably the cause of your problems.

On 2012-06-20 09:37, Phil Hart wrote:
>  export JAVALIB=-L/usr/lib64/jvm/java-1.5.0-gcj/lib64
> export JAVA_HOME=/usr/lib64/jvm/java-1.5.0-gcj
>

Disclaimer: http://www.peralex.com/disclaimer.html


_______________________________________________
LibreOffice mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/libreoffice
Phil Hart Phil Hart
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Possible change to the "Native Build" page?

On 20/06/2012 5:47 PM, Noel Grandin wrote:

> It's look like you're using GCJ instead of a regular java VM, which is
> probably the cause of your problems.
>
> On 2012-06-20 09:37, Phil Hart wrote:
>>  export JAVALIB=-L/usr/lib64/jvm/java-1.5.0-gcj/lib64
>> export JAVA_HOME=/usr/lib64/jvm/java-1.5.0-gcj
>>
>
> Disclaimer: http://www.peralex.com/disclaimer.html
>
>
> _______________________________________________
> LibreOffice mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/libreoffice
Does that mean that it might be useful to other newbies (I am one!) to
advise them that openSUSE 12.1 has this issue, and to use the
work-around as per the start of this thread?

philhart


_______________________________________________
LibreOffice mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/libreoffice
Miklos Vajna-2 Miklos Vajna-2
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Possible change to the "Native Build" page?

On Wed, Jun 20, 2012 at 05:57:45PM +0800, Phil Hart <[hidden email]> wrote:
> Does that mean that it might be useful to other newbies (I am one!)
> to advise them that openSUSE 12.1 has this issue, and to use the
> work-around as per the start of this thread?

http://wiki.documentfoundation.org/Development/Linux_Build_Dependencies#OpenSUSE

already mentions to install a non-gcj JDK on openSUSE, please follow
that.
_______________________________________________
LibreOffice mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/libreoffice
Caolán McNamara Caolán McNamara
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Possible change to the "Native Build" page?

In reply to this post by Phil Hart
On Wed, 2012-06-20 at 15:37 +0800, Phil Hart wrote:
> Answers:
>
> phil@linux-012k:~/Downloads/libreoffice-core-3.5.99.1> grep JAVA config_host.mk
> export JAVALIB=-L/usr/lib64/jvm/java-1.5.0-gcj/lib64
> export JAVA_HOME=/usr/lib64/jvm/java-1.5.0-gcj
> export JAVA_SOURCE_VER=1.6
> export JAVA_TARGET_VER=1.6

odd, I wonder why it ended up as 1.6 here. I'd have expected 1.5. Can I
get the output of...

java -version
and
javac -version
and
grep JDK config_host.mk

I mean, gcj should work, and should work out of the box (though from the
above a hackaround of --with-java-target-version=1.5

C.

_______________________________________________
LibreOffice mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/libreoffice
Phil Hart Phil Hart
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Possible change to the "Native Build" page?

In reply to this post by Miklos Vajna-2
On 20/06/2012 6:29 PM, Miklos Vajna wrote:

> On Wed, Jun 20, 2012 at 05:57:45PM +0800, Phil Hart <[hidden email]> wrote:
>> Does that mean that it might be useful to other newbies (I am one!)
>> to advise them that openSUSE 12.1 has this issue, and to use the
>> work-around as per the start of this thread?
> http://wiki.documentfoundation.org/Development/Linux_Build_Dependencies#OpenSUSE
>
> already mentions to install a non-gcj JDK on openSUSE, please follow
> that.
> _______________________________________________
> LibreOffice mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/libreoffice
Aha! Thanks for that. :)

_______________________________________________
LibreOffice mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/libreoffice
Phil Hart Phil Hart
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Possible change to the "Native Build" page?

In reply to this post by Caolán McNamara
On 20/06/2012 8:21 PM, Caolán McNamara wrote:

> On Wed, 2012-06-20 at 15:37 +0800, Phil Hart wrote:
>> Answers:
>>
>> phil@linux-012k:~/Downloads/libreoffice-core-3.5.99.1> grep JAVA config_host.mk
>> export JAVALIB=-L/usr/lib64/jvm/java-1.5.0-gcj/lib64
>> export JAVA_HOME=/usr/lib64/jvm/java-1.5.0-gcj
>> export JAVA_SOURCE_VER=1.6
>> export JAVA_TARGET_VER=1.6
> odd, I wonder why it ended up as 1.6 here. I'd have expected 1.5. Can I
> get the output of...
>
> java -version
> and
> javac -version
> and
> grep JDK config_host.mk
>
> I mean, gcj should work, and should work out of the box (though from the
> above a hackaround of --with-java-target-version=1.5
>
> C.
>
> _______________________________________________
> LibreOffice mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/libreoffice
Answers:

phil@linux-012k:~/Downloads/libreoffice-core-3.5.99.1> java -version
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.1) (suse-3.1-x86_64)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
phil@linux-012k:~/Downloads/libreoffice-core-3.5.99.1> javac -version
javac 1.6.0_24
phil@linux-012k:~/Downloads/libreoffice-core-3.5.99.1> grep JDK config_host.mk
export JDK=sun
# export JDKLIB=

Question: Might these values have been affected by the install of Java-1_6_0-openjdk-devel
that I did previously?

philhart



_______________________________________________
LibreOffice mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/libreoffice
Phil Hart Phil Hart
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Possible change to the "Native Build" page?

In reply to this post by Miklos Vajna-2
On 20/06/2012 6:29 PM, Miklos Vajna wrote:

> On Wed, Jun 20, 2012 at 05:57:45PM +0800, Phil Hart <[hidden email]> wrote:
>> Does that mean that it might be useful to other newbies (I am one!)
>> to advise them that openSUSE 12.1 has this issue, and to use the
>> work-around as per the start of this thread?
> http://wiki.documentfoundation.org/Development/Linux_Build_Dependencies#OpenSUSE
>
> already mentions to install a non-gcj JDK on openSUSE, please follow
> that.
> _______________________________________________
> LibreOffice mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/libreoffice

P.S. Newbies (like me) might be (have been) unaware of that page. I will
approach the documentation team and see if they think that it might be
an idea to include a link to it from the "How To Native Build" pages.

Thanks again.

_______________________________________________
LibreOffice mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/libreoffice
Jan Holesovsky Jan Holesovsky
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Possible change to the "Native Build" page?

Hi Phil,

Phil Hart píše v Čt 21. 06. 2012 v 07:52 +0800:

> >> Does that mean that it might be useful to other newbies (I am one!)
> >> to advise them that openSUSE 12.1 has this issue, and to use the
> >> work-around as per the start of this thread?
> > http://wiki.documentfoundation.org/Development/Linux_Build_Dependencies#OpenSUSE
> >
> > already mentions to install a non-gcj JDK on openSUSE, please follow
> > that.
>
> P.S. Newbies (like me) might be (have been) unaware of that page. I will
> approach the documentation team and see if they think that it might be
> an idea to include a link to it from the "How To Native Build" pages.

No need to reach to the documentation team - just register to the Wiki,
and improve it yourself! :-)

All the best,
Kendy

_______________________________________________
LibreOffice mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/libreoffice
Caolán McNamara Caolán McNamara
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Possible change to the "Native Build" page?

In reply to this post by Phil Hart
On Thu, 2012-06-21 at 07:49 +0800, Phil Hart wrote:

> On 20/06/2012 8:21 PM, Caolán McNamara wrote:
> > On Wed, 2012-06-20 at 15:37 +0800, Phil Hart wrote:
> >> Answers:
> >>
> >> phil@linux-012k:~/Downloads/libreoffice-core-3.5.99.1> grep JAVA config_host.mk
> >> export JAVALIB=-L/usr/lib64/jvm/java-1.5.0-gcj/lib64
> >> export JAVA_HOME=/usr/lib64/jvm/java-1.5.0-gcj
> >> export JAVA_SOURCE_VER=1.6
> >> export JAVA_TARGET_VER=1.6
> > odd, I wonder why it ended up as 1.6 here. I'd have expected 1.5. Can I
> > get the output of...
> >
> > java -version
> > and
> > javac -version
> > and
> > grep JDK config_host.mk
> >
> > I mean, gcj should work, and should work out of the box (though from the
> > above a hackaround of --with-java-target-version=1.5
> >
> > C.
> >
> Answers:
...
> Question: Might these values have been affected by the install of Java-1_6_0-openjdk-devel
> that I did previously?

Yes, I wanted to see the java + javac output of the configuration that
the config_host.mk from the failed build was generated with :-) Rather
than their current post-openjdk install values.

C.

_______________________________________________
LibreOffice mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/libreoffice
Phil Hart Phil Hart
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Possible change to the "Native Build" page?

In reply to this post by Jan Holesovsky
On 21/06/2012 1:06 PM, Jan Holesovsky wrote:

> Hi Phil,
>
> Phil Hart píše v Čt 21. 06. 2012 v 07:52 +0800:
>
>>>> Does that mean that it might be useful to other newbies (I am one!)
>>>> to advise them that openSUSE 12.1 has this issue, and to use the
>>>> work-around as per the start of this thread?
>>> http://wiki.documentfoundation.org/Development/Linux_Build_Dependencies#OpenSUSE
>>>
>>> already mentions to install a non-gcj JDK on openSUSE, please follow
>>> that.
>> P.S. Newbies (like me) might be (have been) unaware of that page. I will
>> approach the documentation team and see if they think that it might be
>> an idea to include a link to it from the "How To Native Build" pages.
> No need to reach to the documentation team - just register to the Wiki,
> and improve it yourself! :-)
>
> All the best,
> Kendy
>
Hello Kendy,

Thanks for the tip! Will do. :)

philhart

_______________________________________________
LibreOffice mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/libreoffice
Loading...