Skip to content

BUG?: "zstd 1.5.5 library detected but is lower than bundled version (1.5.2)" #18

@HenrikBengtsson

Description

@HenrikBengtsson

When I build qs2 0.1.6 in R 4.5.2 on Ubuntu 24.04 LTS, I get:

zstd 1.5.5 library detected but is lower than bundled version (1.5.2) -- compiling from source

That looks like a mistake - the version of "zstd 1.5.5" is newer than the "bundled version (1.5.2)".

Details

$ R --quiet --vanilla
> chooseCRANmirror(ind = 1)
> install.packages("qs2")
Installing package into/home/hb/R/ubuntu24_04-x86_64-pc-linux-gnu-library/4.5-CBI-gcc13’
(aslibis unspecified)
trying URL 'https://cloud.r-project.org/src/contrib/qs2_0.1.6.tar.gz'
Content type 'application/x-gzip' length 964743 bytes (942 KB)
==================================================
downloaded 942 KB

* installing *source* packageqs2...
** this is packageqs2version0.1.6** packageqs2successfully unpacked and MD5 sums checked
** using staged installation
checking for pkg-config... /usr/bin/pkg-config
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ -std=gnu++17 accepts -g... yes
C++ compiler: g++ -std=gnu++17
zstd 1.5.5 library detected but is lower than bundled version (1.5.2) -- compiling from source
Fixed blocksize
Not using TBB
configure: creating ./config.status
config.status: creating src/Makevars
** libs
using C++ compiler:g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0g++ -std=gnu++17 -I"/home/hb/shared/software/CBI/_ubuntu24_04/R-4.5.2-gcc13/lib/R/include" -DNDEBUG -DRCPP_USE_UNWIND_PROTECT -DRCPP_NO_RTTI -DRCPP_NO_SUGAR -I../inst/include -I. -IZSTD -IZSTD/common -IZSTD/decompress -IZSTD/compress   -DIS_UTF8_LOCALE=1 -I'/home/hb/R/ubuntu24_04-x86_64-pc-linux-gnu-library/4.5-CBI-gcc13/Rcpp/include' -I'/home/hb/R/ubuntu24_04-x86_64-pc-linux-gnu-library/4.5-CBI-gcc13/stringfish/include' -I'/home/hb/R/ubuntu24_04-x86_64-pc-linux-gnu-library/4.5-CBI-gcc13/RcppParallel/include' -I/usr/local/include   -DRCPP_PARALLEL_USE_TBB=0  -fpic  -g -O2   -c RcppExports.cpp -o RcppExports.o
g++ -std=gnu++17 -I"/home/hb/shared/software/CBI/_ubuntu24_04/R-4.5.2-gcc13/lib/R/include" -DNDEBUG -DRCPP_USE_UNWIND_PROTECT -DRCPP_NO_RTTI -DRCPP_NO_SUGAR -I../inst/include -I. -IZSTD -IZSTD/common -IZSTD/decompress -IZSTD/compress   -DIS_UTF8_LOCALE=1 -I'/home/hb/R/ubuntu24_04-x86_64-pc-linux-gnu-library/4.5-CBI-gcc13/Rcpp/include' -I'/home/hb/R/ubuntu24_04-x86_64-pc-linux-gnu-library/4.5-CBI-gcc13/stringfish/include' -I'/home/hb/R/ubuntu24_04-x86_64-pc-linux-gnu-library/4.5-CBI-gcc13/RcppParallel/include' -I/usr/local/include   -DRCPP_PARALLEL_USE_TBB=0  -fpic  -g -O2   -c qx_functions.cpp -o qx_functions.o
gcc -std=gnu2x -I"/home/hb/shared/software/CBI/_ubuntu24_04/R-4.5.2-gcc13/lib/R/include" -DNDEBUG -DRCPP_USE_UNWIND_PROTECT -DRCPP_NO_RTTI -DRCPP_NO_SUGAR -I../inst/include -I. -IZSTD -IZSTD/common -IZSTD/decompress -IZSTD/compress   -DIS_UTF8_LOCALE=1 -I'/home/hb/R/ubuntu24_04-x86_64-pc-linux-gnu-library/4.5-CBI-gcc13/Rcpp/include' -I'/home/hb/R/ubuntu24_04-x86_64-pc-linux-gnu-library/4.5-CBI-gcc13/stringfish/include' -I'/home/hb/R/ubuntu24_04-x86_64-pc-linux-gnu-library/4.5-CBI-gcc13/RcppParallel/include' -I/usr/local/include    -fpic  -g -O2  -c ZSTD/zstd.c -o ZSTD/zstd.o
ar rcs libQSZSTD.a ZSTD/zstd.o
g++ -std=gnu++17 -shared -L/home/hb/shared/software/CBI/_ubuntu24_04/R-4.5.2-gcc13/lib/R/lib -L/usr/local/lib -o qs2.so RcppExports.o qx_functions.o -L. -lQSZSTD -L/home/hb/shared/software/CBI/_ubuntu24_04/R-4.5.2-gcc13/lib/R/lib -lR
installing to /home/hb/R/ubuntu24_04-x86_64-pc-linux-gnu-library/4.5-CBI-gcc13/00LOCK-qs2/00new/qs2/libs
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** checking absolute paths in shared objects and dynamic libraries
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (qs2)

This is with:

$ apt info libzstd-dev
Package: libzstd-dev
Version: 1.5.5+dfsg2-2build1.1
Priority: optional
Section: libdevel
Source: libzstd
Origin: Ubuntu
Maintainer: Ubuntu Developers <[email protected]>
Original-Maintainer: RPM packaging team <[email protected]>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 1,267 kB
Depends: libzstd1 (= 1.5.5+dfsg2-2build1.1)
Homepage: https://github.com/facebook/zstd
Task: ubuntustudio-photography
Download-Size: 364 kB
APT-Manual-Installed: no
APT-Sources: http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages
Description: fast lossless compression algorithm -- development files
 Zstd, short for Zstandard, is a fast lossless compression algorithm, targeting
 real-time compression scenarios at zlib-level compression ratio.
 .
 This package contains the headers and static library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions