make -j16 javahl sometimes failed for subversion-1.9.7

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

make -j16 javahl sometimes failed for subversion-1.9.7

wuzhouhui
I'm using rpmbuild to build a package for subversion-1.9.7, but sometimes building will failed when make -j16 javahl:

Error: Class org.apache.subversion.javahl.ClientNotifyInformation could not be found.
make: *** [subversion/bindings/javahl/include/org_apache_subversion_javahl_callback_PatchCallback.h] Error 1
make: *** Waiting for unfinished jobs....
1 warning

Configure arguments as follows:

./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --target=x86_64-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-mod-activation --with-berkeley-db --with-apxs=/usr/sbin/apxs --with-apr=/usr/bin/apr-1-config --with-apr-util=/usr/bin/apu-1-config --with-apache-libexecdir=yes --with-gnome-keyring --enable-javahl --with-jdk=/usr/lib/jvm/java-1.7.0-openjdk.x86_64 --without-jikes --with-sqlite=sqlite-amalgamation/sqlite3.c --with-serf

and make -j16 javahl is the first step in section %build.


Attachment is output of rpmbuild

rpmbuild.out (566K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: make -j16 javahl sometimes failed for subversion-1.9.7

Branko Čibej
On 31.12.2017 13:42, wuzhouhui wrote:

> I'm using rpmbuild to build a package for subversion-1.9.7, but sometimes building will failed when make -j16 javahl:
>
> Error: Class org.apache.subversion.javahl.ClientNotifyInformation could not be found.
> make: *** [subversion/bindings/javahl/include/org_apache_subversion_javahl_callback_PatchCallback.h] Error 1
> make: *** Waiting for unfinished jobs....
> 1 warning
>
> Configure arguments as follows:
>
> ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --target=x86_64-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-mod-activation --with-berkeley-db --with-apxs=/usr/sbin/apxs --with-apr=/usr/bin/apr-1-config --with-apr-util=/usr/bin/apu-1-config --with-apache-libexecdir=yes --with-gnome-keyring --enable-javahl --with-jdk=/usr/lib/jvm/java-1.7.0-openjdk.x86_64 --without-jikes --with-sqlite=sqlite-amalgamation/sqlite3.c --with-serf
>
> and make -j16 javahl is the first step in section %build.


The RPM config is wrong. Our JavaHL build is not parallel-safe and
should be built single-threaded. I believe the same may be true of the
Swig bindings, but I'm not sure about that.

-- Brane

Reply | Threaded
Open this post in threaded view
|

Re: make -j16 javahl sometimes failed for subversion-1.9.7

Nico Kadel-Garcia-2
On Sun, Dec 31, 2017 at 8:45 AM, Branko Čibej <[hidden email]> wrote:
> On 31.12.2017 13:42, wuzhouhui wrote:
>> I'm using rpmbuild to build a package for subversion-1.9.7, but sometimes building will failed when make -j16 javahl:
>>
>> Error: Class org.apache.subversion.javahl.ClientNotifyInformation could not be found.
>> make: *** [subversion/bindings/javahl/include/org_apache_subversion_javahl_callback_PatchCallback.h] Error 1
>> make: *** Waiting for unfinished jobs....
>> 1 warning

If I may mention? "rpmbuild" is not your friend for building
Subversion RPMs when you are on a development server, which may have
fascinatingly updated or locally modified. If I may suggest, install
and use "mock" to build these. And what are you using for the .spec
file and patches? I had difficulty getting Subversion 1.9.x on CentOS
6 and CentOS 7 due to updated dependencies.

Nico Kadel-Garcia <[hidden email]>

>> Configure arguments as follows:
>>
>> ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --target=x86_64-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-mod-activation --with-berkeley-db --with-apxs=/usr/sbin/apxs --with-apr=/usr/bin/apr-1-config --with-apr-util=/usr/bin/apu-1-config --with-apache-libexecdir=yes --with-gnome-keyring --enable-javahl --with-jdk=/usr/lib/jvm/java-1.7.0-openjdk.x86_64 --without-jikes --with-sqlite=sqlite-amalgamation/sqlite3.c --with-serf
>>
>> and make -j16 javahl is the first step in section %build.
>
>
> The RPM config is wrong. Our JavaHL build is not parallel-safe and
> should be built single-threaded. I believe the same may be true of the
> Swig bindings, but I'm not sure about that.
>
> -- Brane
>
Reply | Threaded
Open this post in threaded view
|

Re: make -j16 javahl sometimes failed for subversion-1.9.7

wuzhouhui

> On 1 Jan 2018, at 12:21 AM, Nico Kadel-Garcia <[hidden email]> wrote:
>
> On Sun, Dec 31, 2017 at 8:45 AM, Branko Čibej <[hidden email]> wrote:
>> On 31.12.2017 13:42, wuzhouhui wrote:
>>> I'm using rpmbuild to build a package for subversion-1.9.7, but sometimes building will failed when make -j16 javahl:
>>>
>>> Error: Class org.apache.subversion.javahl.ClientNotifyInformation could not be found.
>>> make: *** [subversion/bindings/javahl/include/org_apache_subversion_javahl_callback_PatchCallback.h] Error 1
>>> make: *** Waiting for unfinished jobs....
>>> 1 warning
>
> If I may mention? "rpmbuild" is not your friend for building
> Subversion RPMs when you are on a development server, which may have
> fascinatingly updated or locally modified. If I may suggest, install
> and use "mock" to build these. And what are you using for the .spec
> file and patches? I had difficulty getting Subversion 1.9.x on CentOS
> 6 and CentOS 7 due to updated dependencies.
>
The source is completely original subversion-1.9.7, without any patches or
modifications. Before building subversion-1.9.7, I have install some
dependencies, like serf-1.3.8 and python-2.7.

> Nico Kadel-Garcia <[hidden email]>
>
>>> Configure arguments as follows:
>>>
>>> ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --target=x86_64-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-mod-activation --with-berkeley-db --with-apxs=/usr/sbin/apxs --with-apr=/usr/bin/apr-1-config --with-apr-util=/usr/bin/apu-1-config --with-apache-libexecdir=yes --with-gnome-keyring --enable-javahl --with-jdk=/usr/lib/jvm/java-1.7.0-openjdk.x86_64 --without-jikes --with-sqlite=sqlite-amalgamation/sqlite3.c --with-serf
>>>
>>> and make -j16 javahl is the first step in section %build.
>>
>>
>> The RPM config is wrong. Our JavaHL build is not parallel-safe and
>> should be built single-threaded. I believe the same may be true of the
>> Swig bindings, but I'm not sure about that.
>>
>> -- Brane
>>