Hope this helps you

On Thu, Apr 1, 2021 at 11:12 AM mehaboob shariff <[email protected]>
wrote:

> Hello Kajal,
> I had similar errors earlier (The tests were failing and proton files were
> empty). So I had removed the build directory and checked whether I
> installed all dependencies.and found JsonCpp 1.8+ for C++ was missing.
> Then I followed this sequence
> $ mkdir build
> $ cd build
> $ cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DSYSINSTALL_BINDINGS=ON
> $ make install (make sure you have root privilege for this command)
>
> then for coverage :
> $ make clean
> $ cmake .. -DCMAKE_BUILD_TYPE=Coverage
> $ make test
> $ make coverage
>
> You can have look at
> https://github.com/apache/qpid-proton/blob/main/docs/developers.md
> https://github.com/apache/qpid-proton/blob/main/INSTALL.md
>
>
> On Thu, Apr 1, 2021 at 6:37 AM Kajal Sah <[email protected]> wrote:
>
>> Hi,
>>
>> I am also getting errors when I try to test the coverage. I followed both
>> the steps mentioned above by Rakhi and Justin. I have lcov installed
>> already.
>>
>> Some information: Most of the test in make test fails (only 7% passes,
>> i.e.
>> 42 out of 45 failed). After that running make coverage results in the
>> following error
>>
>> Reading tracefile proton-base.info
>> lcov: ERROR: no valid records found in tracefile proton-base.info
>> Reading tracefile proton-total-raw.info
>> lcov: ERROR: no valid records found in tracefile proton-total-raw.info
>> Reading data file proton-total.info
>> genhtml: ERROR: no valid records found in tracefile proton-total.info
>> CMakeFiles/coverage.dir/build.make:57: recipe for target
>> 'CMakeFiles/coverage' failed
>> make[3]: *** [CMakeFiles/coverage] Error 255
>> CMakeFiles/Makefile2:931: recipe for target 'CMakeFiles/coverage.dir/all'
>> failed
>> make[2]: *** [CMakeFiles/coverage.dir/all] Error 2
>> CMakeFiles/Makefile2:938: recipe for target 'CMakeFiles/coverage.dir/rule'
>> failed
>> make[1]: *** [CMakeFiles/coverage.dir/rule] Error 2
>> Makefile:526: recipe for target 'coverage' failed
>>
>> When I check these files, proton-total.info, proton-base.info, all of
>> them
>> are empty.
>>
>> Can someone suggest a solution for this?
>>
>> Regards,
>> Kajal
>>
>>
>> On Thu, Apr 1, 2021 at 2:03 AM mehaboob shariff <[email protected]>
>> wrote:
>>
>> > Thank you Jiri for providing this information
>> >
>> > On Thu, Apr 1, 2021 at 2:00 AM Jiri Daněk <[email protected]> wrote:
>> >
>> > > One helpful strategy. If in doubt how to build, look how the CI does
>> it.
>> > > These commands run for every commit in CI, so it is likely they will
>> work
>> > > and will be up to date. C stands for Continuous, after all.
>> > >
>> > > What you find may be needlessly complicated (you will see below), but
>> > > that's what works on the CI machine.
>> > >
>> > > Proton happens to have 4 different CI configs, for 4 different CIs
>> (plus
>> > a
>> > > Jenkins CI job which is not checked into repo)
>> > > *
>> > >
>> >
>> https://github.com/apache/qpid-proton/blob/main/.github/workflows/build.yml
>> > > * https://github.com/apache/qpid-proton/tree/main/azure-pipelines
>> > > * https://github.com/apache/qpid-proton/blob/main/.appveyor.yml
>> > > * https://github.com/apache/qpid-proton/blob/main/.travis.yml
>> > >
>> > > The relevant part for coverage is
>> > >
>> > > 1) install lcov,
>> > >
>> > >
>> >
>> https://github.com/apache/qpid-proton/blob/5d3473dd484090590863c0d87dea4ea91bba87dc/.travis.yml#L140
>> > > 2) set build type to Coverage,
>> > >
>> > >
>> >
>> https://github.com/apache/qpid-proton/blob/5d3473dd484090590863c0d87dea4ea91bba87dc/.travis.yml#L97
>> > > 3) make coverage, but that's not there, because the CI does this
>> > > differently (collects coverage data and uploads it to a service)
>> > >
>> > >
>> >
>> https://github.com/apache/qpid-proton/blob/5d3473dd484090590863c0d87dea4ea91bba87dc/.travis.yml#L99
>> > >
>> > > On Wed, Mar 31, 2021, 19:50 mehaboob shariff <[email protected]>
>> > > wrote:
>> > >
>> > > > I am running it from the build directory.
>> > > > Can I know which distro of linux you are using?
>> > > >
>> > > > On Wed, Mar 31, 2021 at 11:08 PM Rakhi Kumari <[email protected]
>> >
>> > > > wrote:
>> > > >
>> > > > > Hey mehaboob!!
>> > > > > Can you please tell us from which directory you are running the
>> make
>> > > > > command? As I am not able to see the image that you have shared.
>> > > > > Btw I am running the make command from inside the build directory.
>> > > > >
>> > > > > On Wed, Mar 31, 2021 at 10:32 PM mehaboob shariff <
>> > > [email protected]
>> > > > >
>> > > > > wrote:
>> > > > >
>> > > > > > So I removed the build directory and did the process again.
>> > > > > > This time I got this error
>> > > > > > [image: image.png]
>> > > > > >
>> > > > > > On Wed, Mar 31, 2021 at 10:23 PM mehaboob shariff <
>> > > > [email protected]
>> > > > > >
>> > > > > > wrote:
>> > > > > >
>> > > > > >> Thank you Rakhi and Justin.
>> > > > > >> Rakhi I ran it in the similar sequence. But there seem to be
>> other
>> > > > > issues
>> > > > > >> so im getting  "make: *** No rule to make target 'coverage'.
>> > Stop."
>> > > > > >>
>> > > > > >>
>> > > > > >> On Wed, Mar 31, 2021 at 9:49 PM Justin Ross <
>> > [email protected]>
>> > > > > >> wrote:
>> > > > > >>
>> > > > > >>> Ah!  Rakhi ninjaed me. ;)
>> > > > > >>>
>> > > > > >>> On Wed, Mar 31, 2021 at 12:17 PM Justin Ross <
>> > > [email protected]>
>> > > > > >>> wrote:
>> > > > > >>>
>> > > > > >>> > Here's the sequence I use:
>> > > > > >>> >
>> > > > > >>> >  - cd qpid-proton
>> > > > > >>> >  - mkdir bld
>> > > > > >>> >  - cd bld
>> > > > > >>> >  - cmake .. -DCMAKE_BUILD_TYPE=Coverage
>> > > > > >>> >  - make build
>> > > > > >>> >
>> > > > > >>> > You don't need the CMakeLists.txt file where you run cmake
>> > > > > >>> (necessarily).
>> > > > > >>> > You need it for the source tree you are configuring
>> (referenced
>> > > by
>> > > > > >>> ".." in
>> > > > > >>> > the cmake command above).
>> > > > > >>> >
>> > > > > >>> > On Wed, Mar 31, 2021 at 12:00 PM mehaboob shariff <
>> > > > > >>> [email protected]>
>> > > > > >>> > wrote:
>> > > > > >>> >
>> > > > > >>> >> Could you provide some insights on how to configure the
>> build
>> > > for
>> > > > > >>> coverage
>> > > > > >>> >> because when run the cmake it shows there is no
>> CMakeList.txt
>> > > file
>> > > > > in
>> > > > > >>> the
>> > > > > >>> >> build directory.
>> > > > > >>> >> So I navigated to /build/CMakeFiles/CheckCXX and ran the
>> > command
>> > > > but
>> > > > > >>> there
>> > > > > >>> >> seems to be no output
>> > > > > >>> >>
>> > > > > >>> >> On Wed, Mar 31, 2021 at 7:45 PM mehaboob shariff <
>> > > > > >>> [email protected]>
>> > > > > >>> >> wrote:
>> > > > > >>> >>
>> > > > > >>> >> > Tahnk you Justin, will get back to you if I face any
>> > troubles
>> > > > > >>> >> >
>> > > > > >>> >> > On Wed, Mar 31, 2021 at 6:59 PM Justin Ross <
>> > > > > [email protected]>
>> > > > > >>> >> wrote:
>> > > > > >>> >> >
>> > > > > >>> >> >> Hi, Mehaboob.  Here's one to try:
>> > > > > >>> >> >> https://issues.apache.org/jira/browse/PROTON-2358
>> > > > > >>> >> >>
>> > > > > >>> >> >> Please tell us about any obstacles you face.
>> > > > > >>> >> >>
>> > > > > >>> >> >> On Tue, Mar 30, 2021 at 4:56 PM mehaboob shariff <
>> > > > > >>> >> [email protected]>
>> > > > > >>> >> >> wrote:
>> > > > > >>> >> >>
>> > > > > >>> >> >> > okay, thank you for the information
>> > > > > >>> >> >> >
>> > > > > >>> >> >> > On Wed, Mar 31, 2021 at 2:08 AM Justin Ross <
>> > > > > >>> [email protected]>
>> > > > > >>> >> >> wrote:
>> > > > > >>> >> >> >
>> > > > > >>> >> >> > > You don't have too, but in particular I think you
>> may
>> > end
>> > > > up
>> > > > > >>> >> wanting
>> > > > > >>> >> >> the
>> > > > > >>> >> >> > > Python binding since some tests use it.
>> > > > > >>> >> >> > >
>> > > > > >>> >> >> > > On Tue, Mar 30, 2021 at 3:25 PM mehaboob shariff <
>> > > > > >>> >> >> [email protected]>
>> > > > > >>> >> >> > > wrote:
>> > > > > >>> >> >> > >
>> > > > > >>> >> >> > > > Do we have to install the language bindings in the
>> > > > > >>> instructions.
>> > > > > >>> >> If
>> > > > > >>> >> >> not
>> > > > > >>> >> >> > > > then I have compiled the proton source repo
>> > > successfully
>> > > > > >>> >> >> > > >
>> > > > > >>> >> >> > > >
>> > > > > >>> >> >> > > > On Wed, Mar 31, 2021 at 12:51 AM Justin Ross <
>> > > > > >>> >> [email protected]
>> > > > > >>> >> >> >
>> > > > > >>> >> >> > > > wrote:
>> > > > > >>> >> >> > > >
>> > > > > >>> >> >> > > > > Okay, next is to use git to fetch the Qpid
>> Proton C
>> > > > > source
>> > > > > >>> repo
>> > > > > >>> >> >> and
>> > > > > >>> >> >> > get
>> > > > > >>> >> >> > > > it
>> > > > > >>> >> >> > > > > building.
>> > > > > >>> >> >> > > > >
>> > > > > >>> >> >> > > > > The instructions are here:
>> > > > > >>> >> >> > > > >
>> > > > > >>> https://github.com/apache/qpid-proton/blob/master/INSTALL.md
>> > > > > >>> >> >> > > > >
>> > > > > >>> >> >> > > > >
>> > > > > >>> >> >> > > > > On Tue, Mar 30, 2021 at 2:39 PM mehaboob
>> shariff <
>> > > > > >>> >> >> > > [email protected]>
>> > > > > >>> >> >> > > > > wrote:
>> > > > > >>> >> >> > > > >
>> > > > > >>> >> >> > > > > > I'm using ubuntu 20.04
>> > > > > >>> >> >> > > > > >
>> > > > > >>> >> >> > > > > > On Wed, Mar 31, 2021 at 12:07 AM Justin Ross <
>> > > > > >>> >> >> > [email protected]>
>> > > > > >>> >> >> > > > > > wrote:
>> > > > > >>> >> >> > > > > >
>> > > > > >>> >> >> > > > > > > Hi, Mehaboob.  I spoke to you in private
>> email
>> > as
>> > > > > well.
>> > > > > >>> >> What
>> > > > > >>> >> >> > kind
>> > > > > >>> >> >> > > of
>> > > > > >>> >> >> > > > > > > development environment do you have?
>> > > > > >>> >> >> > > > > > >
>> > > > > >>> >> >> > > > > > > On Tue, Mar 30, 2021 at 11:44 AM mehaboob
>> > > shariff <
>> > > > > >>> >> >> > > > > [email protected]
>> > > > > >>> >> >> > > > > > >
>> > > > > >>> >> >> > > > > > > wrote:
>> > > > > >>> >> >> > > > > > >
>> > > > > >>> >> >> > > > > > > > Hello this is Mahaboob Shariff a CS
>> > undergrad.
>> > > I
>> > > > > >>> would
>> > > > > >>> >> like
>> > > > > >>> >> >> to
>> > > > > >>> >> >> > > > > > > participate
>> > > > > >>> >> >> > > > > > > > in the apache community for the outreachy
>> > > intern.
>> > > > > >>> >> >> > > > > > > > Can anyone help me with how to get
>> started.
>> > > > > >>> >> >> > > > > > > >
>> > > > > >>> >> >> > > > > > >
>> > > > > >>> >> >> > > > > >
>> > > > > >>> >> >> > > > >
>> > > > > >>> >> >> > > >
>> > > > > >>> >> >> > >
>> > > > > >>> >> >> >
>> > > > > >>> >> >>
>> > > > > >>> >> >
>> > > > > >>> >>
>> > > > > >>> >
>> > > > > >>>
>> > > > > >>
>> > > > >
>> > > >
>> > >
>> >
>>
>

Reply via email to