vcpkg icon indicating copy to clipboard operation
vcpkg copied to clipboard

[bitar] Add new port for bitar

Open ljishen opened this issue 2 years ago • 31 comments

Describe the pull request

Add the support for bitar, a C++ library to simplify accessing hardware compression/decompression accelerators.

  • Which triplets are supported/not supported? Have you updated the CI baseline?

    Support only on Linux. And yes I updated file ci.baseline.txt, because bitar only supports compiling with GCC>=10.

  • Does your PR follow the maintainer guide?

    Yes

  • If you have added/updated a port: Have you run ./vcpkg x-add-version --all and committed the result?

    Yes

ljishen avatar Jul 02 '22 19:07 ljishen

I would suggest to mark your PR as draft if it is still work in progress.

I had a couple of unexpected errors from the CI that I didn't notice from my local development. Sorry for having multiple force pushes. But I think this PR has gotten to the point for reviewing. I will update the code according to your feedback. Thanks!

ljishen avatar Jul 03 '22 18:07 ljishen

I'll rather wait to merge this PR until it has CI coverage, I'll talk with the team about updating our VMs,

vicroms avatar Jul 05 '22 20:07 vicroms

I'll rather wait to merge this PR until it has CI coverage, I'll talk with the team about updating our VMs,

Alright. Please let me know how it goes.

ljishen avatar Jul 05 '22 21:07 ljishen

We wanted to update the fleet to Ubuntu 22.04 last month but ran into a problem because there is no cudnn available yet for that release. Perhaps we need to turn off anyone who forces a dependency on cudnn instead....

BillyONeal avatar Jul 05 '22 22:07 BillyONeal

Do you have a plan for when to update the VM?

ljishen avatar Jul 06 '22 17:07 ljishen

Do you have a plan for when to update the VM?

No concrete plans right now. If there were cudnn available for 22.04 we would have done it already; as it stands we have to make a judgement call balancing being able to turn ports like this on against everything that uses cudnn being forced to turn off.

BillyONeal avatar Jul 06 '22 18:07 BillyONeal

Is it possible to update the GCC in the VM without updating the OS version?

ljishen avatar Jul 06 '22 18:07 ljishen

We don't want to do that because, by and large, users don't

BillyONeal avatar Jul 06 '22 18:07 BillyONeal

I see. I found that other ports like eve, coroutine, and mfl require GCC>=10 as well. So for this PR to be able to accept, do I have to enable and pass at least one of the CI checks?

ljishen avatar Jul 06 '22 19:07 ljishen

I see. I found that other ports like eve, coroutine, and mfl require GCC>=10 as well. So for this PR to be able to accept, do I have to enable and pass at least one of the CI checks?

Our policy on accepting ports that we can't validate has changed with registries becoming a more or less stable feature that people can use as a workaround. Give us until at least this upcoming Patch Tuesday to see if we end up doing 22.04 anyway.

BillyONeal avatar Jul 06 '22 19:07 BillyONeal

OK, thanks. Please let me know what I can do to move this PR forward.

ljishen avatar Jul 06 '22 19:07 ljishen

I found that other ports like eve, coroutine, and mfl require GCC>=10 as well

Note that these ports can be tested in CI on at least one other triplet than linux.

dg0yt avatar Jul 07 '22 02:07 dg0yt

depends on #25785

vicroms avatar Jul 14 '22 18:07 vicroms

depends on #25785

Cool, thanks!

ljishen avatar Jul 14 '22 18:07 ljishen

x64-linux failure:

In file included from /mnt/vcpkg-ci/buildtrees/bitar/src/v0.0.1-fe9e9758bc.clean/src/memory.cc:23:
/mnt/vcpkg-ci/buildtrees/bitar/src/v0.0.1-fe9e9758bc.clean/src/include/memory.h:34:10: fatal error: span: No such file or directory
   34 | #include <span>  // NOLINT
      |          ^~~~~~
compilation terminated.

Cheney-W avatar Jul 18 '22 02:07 Cheney-W

I'll make an update to fix this. Please allow for a few days.

ljishen avatar Jul 18 '22 04:07 ljishen

Are there any new changes?

Cheney-W avatar Jul 29 '22 07:07 Cheney-W

This is depending on #25899

ljishen avatar Jul 30 '22 06:07 ljishen

/azp run

Cheney-W avatar Aug 26 '22 06:08 Cheney-W

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Aug 26 '22 06:08 azure-pipelines[bot]

I'll make an update for this tomorrow.

ljishen avatar Aug 26 '22 06:08 ljishen

I just rebased the code and it causes the CI to also test other ports. Can I just test the bitar alone?

ljishen avatar Aug 26 '22 21:08 ljishen

/azp run

Cheney-W avatar Aug 29 '22 08:08 Cheney-W

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Aug 29 '22 08:08 azure-pipelines[bot]

It looks like the port "libilbc" failed in the building. But I don't think I used it as one of the dependencies.

ljishen avatar Sep 02 '22 00:09 ljishen

/azp run

Cheney-W avatar Sep 02 '22 06:09 Cheney-W

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Sep 02 '22 06:09 azure-pipelines[bot]

The CI still builds "libilbc". Do you know why it involves the building of this library?

ljishen avatar Sep 02 '22 07:09 ljishen

Could you please merge master for this PR?

Cheney-W avatar Sep 09 '22 10:09 Cheney-W

I tried to merge master, but I don't have permission to modify your pr.

Cheney-W avatar Sep 16 '22 09:09 Cheney-W