nvtop icon indicating copy to clipboard operation
nvtop copied to clipboard

Link to rt on Linux

Open hmaarrfk opened this issue 3 years ago • 1 comments

I guess I'm trying to build on some platforms where rt isn't linked to automatically.

I think this is the correct way to get things to work.

hmaarrfk avatar Jun 18 '22 23:06 hmaarrfk

xref: https://github.com/conda-forge/staged-recipes/pull/19330

hmaarrfk avatar Jun 19 '22 03:06 hmaarrfk

Hello @hmaarrfk,

Could you please elaborate on what symbol from librt is necessary for nvtop? I don't seem to be needing it on my workstation, but it might be needed on others.

Syllo avatar Aug 13 '22 09:08 Syllo

Here is a fuller log.

I guess from what I've seen, certain distributions will link with rt by default.

However, others still ask for it to be explicigely stated.

This is the error message that appears without the proposed patch

https://dev.azure.com/conda-forge/feedstock-builds/_build/results?buildId=550926&view=logs&j=656edd35-690f-5c53-9ba3-09c10d0bea97&t=e5c8ab1d-8ff9-5cae-b332-e15ae582ed2d&l=306

hmaarrfk avatar Aug 13 '22 19:08 hmaarrfk

See build process here:

https://github.com/conda-forge/nvtop-feedstock/pull/2

hmaarrfk avatar Aug 13 '22 19:08 hmaarrfk

So that symbol is clock_gettime (glibc <= 2.17)

zhuyifei1999 avatar Aug 13 '22 20:08 zhuyifei1999

I guess I is an old version of glibc. I forget if 2.17 or 2.12.

hmaarrfk avatar Aug 13 '22 21:08 hmaarrfk

Hmm thank you for educating me.

It seems that by default we do indeed compile for 2.12

There seem to be some disadvantages to linking to rt including the implicit dependency and usage of pthreads.

I updated to 2.17 instead which i think is warranted for this particular package.

hmaarrfk avatar Aug 13 '22 22:08 hmaarrfk