Package Details: nbdkit 1.40.4-1

Git Clone URL: https://aur.archlinux.org/nbdkit.git (read-only, click to copy)
Package Base: nbdkit
Description: NBD server toolkit
Upstream URL: https://gitlab.com/nbdkit/nbdkit/
Licenses: custom: BSD
Submitter: t-8ch
Maintainer: t-8ch (rwmjones)
Last Packager: t-8ch
Votes: 5
Popularity: 0.000503
First Submitted: 2019-02-22 14:36 (UTC)
Last Updated: 2024-10-13 10:57 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 .. 12 Next › Last »

dreieck commented on 2023-11-28 12:11 (UTC)

OK, then maybe you need to add dash as make dependency and in the build environment of the package use that instead of bash?

dreieck commented on 2023-11-28 12:10 (UTC)

check() stalls for me after test-floppy.sh:

[...]
PASS: test-file-dir.sh
PASS: test-file-dirfd.sh
PASS: test-floppy.sh
[ stalls for more than 30 minutes now. ]

Regards!

rwmjones commented on 2023-11-28 11:52 (UTC)

rvalles means this: https://listman.redhat.com/archives/libguestfs/2023-October/032767.html

Latest version of nbdkit should be happier in some cases where /bin/sh is not bash (by skipping those tests).

dreieck commented on 2023-11-28 11:23 (UTC)

Yes, adding
--disable-torrent
to the ./configure options
makes this building for me.

@rvalles: What do you mean by "w/dash"?

Regards!

rvalles commented on 2023-11-16 09:05 (UTC)

@rwmjones current version builds fine w/dash.

rwmjones commented on 2023-11-15 15:16 (UTC)

Yes the best advice is not to use -ffast-math. It breaks the compiler. nbdkit hardly uses floating point at all, so it won't make any difference in performance.

dreieck commented on 2023-11-15 15:13 (UTC) (edited on 2023-11-15 15:17 (UTC) by dreieck)

The nbdkit_parse_probability depends on functions like isfinite working which this option disables.

If you insist on using -Ofast or -ffast-math then you might also add -fno-finite-math-only.

However it would be better not to use -Ofast/-ffast-math at all since these options break floating point operations, and therefore anything can happen. I doubt they make anything measurably faster either.

Thanks for this.

Maybe it is advisable to add -fno-finite-math-only then to the $CFLAGS inside the PKGBUILD?

But thanks for the general recommendations. So in general for default optimisation settings, it would be better to not use -Ofast but just -O3, and to not use -ffast-math at all?

Thanks and regards!

rwmjones commented on 2023-11-15 15:12 (UTC)

I'm not sure why it fails to build. Could be a problem in rb_libtorrent.

I should note that if you don't care about this plugin then you can use

./configure --disable-torrent

dreieck commented on 2023-11-15 15:10 (UTC) (edited on 2023-11-15 15:11 (UTC) by dreieck)

Now, after the latest update, build() fails for me:

[...]
make[3]: Entering directory '/tmp/makepkg/build/nbdkit/src/nbdkit-1.36.1/plugins/torrent'
/bin/sh ../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../..  -I../../include -I../../include -I../../common/include -I../../common/utils -I.    -pthread -fexceptions -DTORRENT_LINKING_SHARED -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_NO_DEPRECATED -DTORRENT_USE_OPENSSL -DTORRENT_USE_LIBCRYPTO -DTORRENT_SSL_PEERS -DOPENSSL_NO_SSL2   -march=native -mtune=native -Ofast -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -flto=auto -MT nbdkit_torrent_plugin_la-torrent.lo -MD -MP -MF .deps/nbdkit_torrent_plugin_la-torrent.Tpo -c -o nbdkit_torrent_plugin_la-torrent.lo `test -f 'torrent.cpp' || echo './'`torrent.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../include -I../../common/include -I../../common/utils -I. -pthread -fexceptions -DTORRENT_LINKING_SHARED -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_NO_DEPRECATED -DTORRENT_USE_OPENSSL -DTORRENT_USE_LIBCRYPTO -DTORRENT_SSL_PEERS -DOPENSSL_NO_SSL2 -march=native -mtune=native -Ofast -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -flto=auto -MT nbdkit_torrent_plugin_la-torrent.lo -MD -MP -MF .deps/nbdkit_torrent_plugin_la-torrent.Tpo -c torrent.cpp  -fPIC -DPIC -o .libs/nbdkit_torrent_plugin_la-torrent.o
In file included from /usr/include/libtorrent/time.hpp:36,
                 from /usr/include/libtorrent/alert.hpp:67,
                 from torrent.cpp:47:
/usr/include/libtorrent/config.hpp:52:10: fatal error: boost/config.hpp: No such file or directory
   52 | #include <boost/config.hpp>
      |          ^~~~~~~~~~~~~~~~~~
compilation terminated.
[...]

Regards!