You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by Enrico Olivelli <eo...@gmail.com> on 2020/08/27 13:19:09 UTC

C client build is failing for branch-3.5 on new CI

Hi ZooKeepers,
I am checking the new CI system and I noticed this error for branch-3.5 on
the C client build, the error does not occur on branch-3.6 and on master

TestClient.o `test -f 'tests/TestClient.cc' || echo
'/home/jenkins/jenkins-home/workspace/er-multi-branch-build_branch-3.5/zookeeper-client/zookeeper-client-c/'`tests/TestClient.cc*22:00:06*
      [exec] Makefile:1397: recipe for target 'zktest_mt-TestClient.o'
failed*22:00:06*       [exec] make[1]: Leaving directory
'/home/jenkins/jenkins-home/workspace/er-multi-branch-build_branch-3.5/zookeeper-client/zookeeper-client-c/target/c'*22:00:06*
      [exec] Makefile:2106: recipe for target 'check-am'
failed*22:00:06*       [exec] In file included from
/home/jenkins/jenkins-home/workspace/er-multi-branch-build_branch-3.5/zookeeper-client/zookeeper-client-c/tests/TestClient.cc:38:0:*22:00:06*
      [exec] /home/jenkins/jenkins-home/workspace/er-multi-branch-build_branch-3.5/zookeeper-client/zookeeper-client-c/include/zookeeper.h:36:10:
fatal error: openssl/ossl_typ.h: No such file or directory*22:00:06*
    [exec]  #include <openssl/ossl_typ.h>*22:00:06*       [exec]
    ^~~~~~~~~~~~~~~~~~~~*22:00:06*       [exec] compilation
terminated.*22:00:06*       [exec] make[1]: ***
[zktest_mt-TestClient.o] Error 1*22:00:06*       [exec] make: ***
[check-am] Error 2


see
https://ci-hadoop.apache.org/view/ZooKeeper/job/zookeeper-multi-branch-build/job/branch-3.5/44/execution/node/72/log/

Best regards
Enrico

Re: C client build is failing for branch-3.5 on new CI

Posted by Andor Molnar <an...@apache.org>.
Hi Mate,

No, we don't use docker for our builds, but it may make things a bit
easier.

Anyway, we could add some additional environment info at the beginning
of our build scripts: uname -a, ldconfig dump, gcc version, etc. if you
think it would be any help for debugging.

Andor



On Fri, 2020-08-28 at 09:16 +0200, Enrico Olivelli wrote:
> Il Ven 28 Ago 2020, 08:20 Szalay-Bekő Máté <
> szalay.beko.mate@gmail.com> ha
> scritto:
> 
> > Thanks for raising the issue!
> > 
> > I checked the logs. The 'configure' step finds the openSSL library
> > before
> > make:
> > 19:58:34  checking openssl/ssl.h usability... yes
> > 19:58:34  checking openssl/ssl.h presence... yes
> > 19:58:34  checking for openssl/ssl.h... yes
> > 19:58:34  checking for SSL_CTX_new in -lssl... yes
> > 19:58:34  configure: building with SSL support
> > 
> > So some openSSL should be installed on the nodes. (could be a wrong
> > version?)
> > The same job on branch 3.5 was succeeding on 22nd of August:
> > 
> > https://ci-hadoop.apache.org/view/ZooKeeper/job/zookeeper-multi-branch-build/job/branch-3.5/39/consoleFull
> > 
> > It's either
> > 1) a bug in our pre-build verifications (an unsupported openssl
> > library
> > version in which case the build scripts should build the C client
> > without
> > SSL support), or
> > 2) maybe some environmental issue with the jenkins workers? I'm not
> > familiar with our jenkins configs. Are we using some dockerized
> > environment
> > to build, or these are shared worker hosts?
> 
> Shared workers
> 
> Do we have any control about
> > the installed C libraries?
> > 
> 
> No
> 
> 
> Enrico
> 
> > Best regards,
> > Mate
> > 
> > 
> > On Thu, Aug 27, 2020 at 3:19 PM Enrico Olivelli <
> > eolivelli@gmail.com>
> > wrote:
> > 
> > > Hi ZooKeepers,
> > > I am checking the new CI system and I noticed this error for
> > > branch-3.5
> > on
> > > the C client build, the error does not occur on branch-3.6 and on
> > > master
> > > 
> > > TestClient.o `test -f 'tests/TestClient.cc' || echo
> > > 
> > > 
> > '/home/jenkins/jenkins-home/workspace/er-multi-branch-build_branch-
> > 3.5/zookeeper-client/zookeeper-client-
> > c/'`tests/TestClient.cc*22:00:06*
> > >       [exec] Makefile:1397: recipe for target 'zktest_mt-
> > > TestClient.o'
> > > failed*22:00:06*       [exec] make[1]: Leaving directory
> > > 
> > > 
> > '/home/jenkins/jenkins-home/workspace/er-multi-branch-build_branch-
> > 3.5/zookeeper-client/zookeeper-client-c/target/c'*22:00:06*
> > >       [exec] Makefile:2106: recipe for target 'check-am'
> > > failed*22:00:06*       [exec] In file included from
> > > 
> > > 
> > /home/jenkins/jenkins-home/workspace/er-multi-branch-build_branch-
> > 3.5/zookeeper-client/zookeeper-client-
> > c/tests/TestClient.cc:38:0:*22:00:06*
> > >       [exec]
> > > 
> > /home/jenkins/jenkins-home/workspace/er-multi-branch-build_branch-
> > 3.5/zookeeper-client/zookeeper-client-c/include/zookeeper.h:36:10:
> > > fatal error: openssl/ossl_typ.h: No such file or
> > > directory*22:00:06*
> > >     [exec]  #include <openssl/ossl_typ.h>*22:00:06*       [exec]
> > >     ^~~~~~~~~~~~~~~~~~~~*22:00:06*       [exec] compilation
> > > terminated.*22:00:06*       [exec] make[1]: ***
> > > [zktest_mt-TestClient.o] Error 1*22:00:06*       [exec] make: ***
> > > [check-am] Error 2
> > > 
> > > 
> > > see
> > > 
> > > 
> > https://ci-hadoop.apache.org/view/ZooKeeper/job/zookeeper-multi-branch-build/job/branch-3.5/44/execution/node/72/log/
> > > Best regards
> > > Enrico
> > > 


Re: C client build is failing for branch-3.5 on new CI

Posted by Enrico Olivelli <eo...@gmail.com>.
Il Ven 28 Ago 2020, 08:20 Szalay-Bekő Máté <sz...@gmail.com> ha
scritto:

> Thanks for raising the issue!
>
> I checked the logs. The 'configure' step finds the openSSL library before
> make:
> 19:58:34  checking openssl/ssl.h usability... yes
> 19:58:34  checking openssl/ssl.h presence... yes
> 19:58:34  checking for openssl/ssl.h... yes
> 19:58:34  checking for SSL_CTX_new in -lssl... yes
> 19:58:34  configure: building with SSL support
>
> So some openSSL should be installed on the nodes. (could be a wrong
> version?)
> The same job on branch 3.5 was succeeding on 22nd of August:
>
> https://ci-hadoop.apache.org/view/ZooKeeper/job/zookeeper-multi-branch-build/job/branch-3.5/39/consoleFull
>
> It's either
> 1) a bug in our pre-build verifications (an unsupported openssl library
> version in which case the build scripts should build the C client without
> SSL support), or
> 2) maybe some environmental issue with the jenkins workers? I'm not
> familiar with our jenkins configs. Are we using some dockerized environment
> to build, or these are shared worker hosts?


Shared workers

Do we have any control about
> the installed C libraries?
>

No


Enrico

>
> Best regards,
> Mate
>
>
> On Thu, Aug 27, 2020 at 3:19 PM Enrico Olivelli <eo...@gmail.com>
> wrote:
>
> > Hi ZooKeepers,
> > I am checking the new CI system and I noticed this error for branch-3.5
> on
> > the C client build, the error does not occur on branch-3.6 and on master
> >
> > TestClient.o `test -f 'tests/TestClient.cc' || echo
> >
> >
> '/home/jenkins/jenkins-home/workspace/er-multi-branch-build_branch-3.5/zookeeper-client/zookeeper-client-c/'`tests/TestClient.cc*22:00:06*
> >       [exec] Makefile:1397: recipe for target 'zktest_mt-TestClient.o'
> > failed*22:00:06*       [exec] make[1]: Leaving directory
> >
> >
> '/home/jenkins/jenkins-home/workspace/er-multi-branch-build_branch-3.5/zookeeper-client/zookeeper-client-c/target/c'*22:00:06*
> >       [exec] Makefile:2106: recipe for target 'check-am'
> > failed*22:00:06*       [exec] In file included from
> >
> >
> /home/jenkins/jenkins-home/workspace/er-multi-branch-build_branch-3.5/zookeeper-client/zookeeper-client-c/tests/TestClient.cc:38:0:*22:00:06*
> >       [exec]
> >
> /home/jenkins/jenkins-home/workspace/er-multi-branch-build_branch-3.5/zookeeper-client/zookeeper-client-c/include/zookeeper.h:36:10:
> > fatal error: openssl/ossl_typ.h: No such file or directory*22:00:06*
> >     [exec]  #include <openssl/ossl_typ.h>*22:00:06*       [exec]
> >     ^~~~~~~~~~~~~~~~~~~~*22:00:06*       [exec] compilation
> > terminated.*22:00:06*       [exec] make[1]: ***
> > [zktest_mt-TestClient.o] Error 1*22:00:06*       [exec] make: ***
> > [check-am] Error 2
> >
> >
> > see
> >
> >
> https://ci-hadoop.apache.org/view/ZooKeeper/job/zookeeper-multi-branch-build/job/branch-3.5/44/execution/node/72/log/
> >
> > Best regards
> > Enrico
> >
>

Re: C client build is failing for branch-3.5 on new CI

Posted by Szalay-Bekő Máté <sz...@gmail.com>.
Thanks for raising the issue!

I checked the logs. The 'configure' step finds the openSSL library before
make:
19:58:34  checking openssl/ssl.h usability... yes
19:58:34  checking openssl/ssl.h presence... yes
19:58:34  checking for openssl/ssl.h... yes
19:58:34  checking for SSL_CTX_new in -lssl... yes
19:58:34  configure: building with SSL support

So some openSSL should be installed on the nodes. (could be a wrong
version?)
The same job on branch 3.5 was succeeding on 22nd of August:
https://ci-hadoop.apache.org/view/ZooKeeper/job/zookeeper-multi-branch-build/job/branch-3.5/39/consoleFull

It's either
1) a bug in our pre-build verifications (an unsupported openssl library
version in which case the build scripts should build the C client without
SSL support), or
2) maybe some environmental issue with the jenkins workers? I'm not
familiar with our jenkins configs. Are we using some dockerized environment
to build, or these are shared worker hosts? Do we have any control about
the installed C libraries?

Best regards,
Mate


On Thu, Aug 27, 2020 at 3:19 PM Enrico Olivelli <eo...@gmail.com> wrote:

> Hi ZooKeepers,
> I am checking the new CI system and I noticed this error for branch-3.5 on
> the C client build, the error does not occur on branch-3.6 and on master
>
> TestClient.o `test -f 'tests/TestClient.cc' || echo
>
> '/home/jenkins/jenkins-home/workspace/er-multi-branch-build_branch-3.5/zookeeper-client/zookeeper-client-c/'`tests/TestClient.cc*22:00:06*
>       [exec] Makefile:1397: recipe for target 'zktest_mt-TestClient.o'
> failed*22:00:06*       [exec] make[1]: Leaving directory
>
> '/home/jenkins/jenkins-home/workspace/er-multi-branch-build_branch-3.5/zookeeper-client/zookeeper-client-c/target/c'*22:00:06*
>       [exec] Makefile:2106: recipe for target 'check-am'
> failed*22:00:06*       [exec] In file included from
>
> /home/jenkins/jenkins-home/workspace/er-multi-branch-build_branch-3.5/zookeeper-client/zookeeper-client-c/tests/TestClient.cc:38:0:*22:00:06*
>       [exec]
> /home/jenkins/jenkins-home/workspace/er-multi-branch-build_branch-3.5/zookeeper-client/zookeeper-client-c/include/zookeeper.h:36:10:
> fatal error: openssl/ossl_typ.h: No such file or directory*22:00:06*
>     [exec]  #include <openssl/ossl_typ.h>*22:00:06*       [exec]
>     ^~~~~~~~~~~~~~~~~~~~*22:00:06*       [exec] compilation
> terminated.*22:00:06*       [exec] make[1]: ***
> [zktest_mt-TestClient.o] Error 1*22:00:06*       [exec] make: ***
> [check-am] Error 2
>
>
> see
>
> https://ci-hadoop.apache.org/view/ZooKeeper/job/zookeeper-multi-branch-build/job/branch-3.5/44/execution/node/72/log/
>
> Best regards
> Enrico
>