Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I in chapter 8 of the lfs book, and am building zstd. When I run 'make check' the tests fail. Below is the output make gave me.
Code:
make[1]: Entering directory '/tmp/dmi1267063/zstd/zstd-1.5.0/lib'
make[1]: Entering directory '/tmp/dmi1267063/zstd/zstd-1.5.0/programs'
CC obj/conf_24d28f9076fd3b8f17cf2bf90a3aaa24/static/debug.o
CC obj/conf_24d28f9076fd3b8f17cf2bf90a3aaa24/static/entropy_common.o
CC obj/conf_21daecdb28eda88c4cc2d863896a5905/dynamic/debug.o
CC obj/conf_24d28f9076fd3b8f17cf2bf90a3aaa24/static/error_private.o
CC obj/conf_21daecdb28eda88c4cc2d863896a5905/dynamic/entropy_common.o
CC obj/conf_24d28f9076fd3b8f17cf2bf90a3aaa24/static/fse_decompress.o
CC obj/conf_24d28f9076fd3b8f17cf2bf90a3aaa24/static/pool.o
CC obj/conf_24d28f9076fd3b8f17cf2bf90a3aaa24/static/threading.o
CC obj/conf_24d28f9076fd3b8f17cf2bf90a3aaa24/static/xxhash.o
CC obj/conf_21daecdb28eda88c4cc2d863896a5905/dynamic/error_private.o
CC obj/conf_21daecdb28eda88c4cc2d863896a5905/dynamic/fse_decompress.o
CC obj/conf_d2bcb34c2fa18701060a48081162c40b/debug.o
CC obj/conf_24d28f9076fd3b8f17cf2bf90a3aaa24/static/zstd_common.o
CC obj/conf_d2bcb34c2fa18701060a48081162c40b/entropy_common.o
CC obj/conf_24d28f9076fd3b8f17cf2bf90a3aaa24/static/fse_compress.o
CC obj/conf_24d28f9076fd3b8f17cf2bf90a3aaa24/static/hist.o
CC obj/conf_d2bcb34c2fa18701060a48081162c40b/error_private.o
CC obj/conf_d2bcb34c2fa18701060a48081162c40b/fse_decompress.o
CC obj/conf_24d28f9076fd3b8f17cf2bf90a3aaa24/static/huf_compress.o
CC obj/conf_21daecdb28eda88c4cc2d863896a5905/dynamic/pool.o
CC obj/conf_24d28f9076fd3b8f17cf2bf90a3aaa24/static/zstd_compress.o
CC obj/conf_21daecdb28eda88c4cc2d863896a5905/dynamic/threading.o
CC obj/conf_21daecdb28eda88c4cc2d863896a5905/dynamic/xxhash.o
CC obj/conf_21daecdb28eda88c4cc2d863896a5905/dynamic/zstd_common.o
CC obj/conf_21daecdb28eda88c4cc2d863896a5905/dynamic/fse_compress.o
CC obj/conf_d2bcb34c2fa18701060a48081162c40b/pool.o
CC obj/conf_d2bcb34c2fa18701060a48081162c40b/threading.o
CC obj/conf_d2bcb34c2fa18701060a48081162c40b/xxhash.o
CC obj/conf_21daecdb28eda88c4cc2d863896a5905/dynamic/hist.o
CC obj/conf_24d28f9076fd3b8f17cf2bf90a3aaa24/static/zstd_compress_literals.o
CC obj/conf_d2bcb34c2fa18701060a48081162c40b/zstd_common.o
CC obj/conf_24d28f9076fd3b8f17cf2bf90a3aaa24/static/zstd_compress_sequences.o
CC obj/conf_d2bcb34c2fa18701060a48081162c40b/fse_compress.o
CC obj/conf_21daecdb28eda88c4cc2d863896a5905/dynamic/huf_compress.o
CC obj/conf_24d28f9076fd3b8f17cf2bf90a3aaa24/static/zstd_compress_superblock.o
CC obj/conf_d2bcb34c2fa18701060a48081162c40b/hist.o
CC obj/conf_24d28f9076fd3b8f17cf2bf90a3aaa24/static/zstd_double_fast.o
CC obj/conf_d2bcb34c2fa18701060a48081162c40b/huf_compress.o
CC obj/conf_21daecdb28eda88c4cc2d863896a5905/dynamic/zstd_compress.o
CC obj/conf_d2bcb34c2fa18701060a48081162c40b/zstd_compress.o
CC obj/conf_24d28f9076fd3b8f17cf2bf90a3aaa24/static/zstd_fast.o
CC obj/conf_21daecdb28eda88c4cc2d863896a5905/dynamic/zstd_compress_literals.o
CC obj/conf_21daecdb28eda88c4cc2d863896a5905/dynamic/zstd_compress_sequences.o
CC obj/conf_21daecdb28eda88c4cc2d863896a5905/dynamic/zstd_compress_superblock.o
CC obj/conf_21daecdb28eda88c4cc2d863896a5905/dynamic/zstd_double_fast.o
CC obj/conf_21daecdb28eda88c4cc2d863896a5905/dynamic/zstd_fast.o
CC obj/conf_24d28f9076fd3b8f17cf2bf90a3aaa24/static/zstd_lazy.o
CC obj/conf_d2bcb34c2fa18701060a48081162c40b/zstd_compress_literals.o
CC obj/conf_d2bcb34c2fa18701060a48081162c40b/zstd_compress_sequences.o
CC obj/conf_d2bcb34c2fa18701060a48081162c40b/zstd_compress_superblock.o
CC obj/conf_d2bcb34c2fa18701060a48081162c40b/zstd_double_fast.o
CC obj/conf_21daecdb28eda88c4cc2d863896a5905/dynamic/zstd_lazy.o
CC obj/conf_21daecdb28eda88c4cc2d863896a5905/dynamic/zstd_ldm.o
CC obj/conf_21daecdb28eda88c4cc2d863896a5905/dynamic/zstd_opt.o
CC obj/conf_d2bcb34c2fa18701060a48081162c40b/zstd_fast.o
CC obj/conf_d2bcb34c2fa18701060a48081162c40b/zstd_lazy.o
CC obj/conf_24d28f9076fd3b8f17cf2bf90a3aaa24/static/zstd_ldm.o
CC obj/conf_24d28f9076fd3b8f17cf2bf90a3aaa24/static/zstd_opt.o
CC obj/conf_21daecdb28eda88c4cc2d863896a5905/dynamic/zstdmt_compress.o
CC obj/conf_21daecdb28eda88c4cc2d863896a5905/dynamic/huf_decompress.o
CC obj/conf_21daecdb28eda88c4cc2d863896a5905/dynamic/zstd_ddict.o
CC obj/conf_21daecdb28eda88c4cc2d863896a5905/dynamic/zstd_decompress.o
CC obj/conf_21daecdb28eda88c4cc2d863896a5905/dynamic/zstd_decompress_block.o
CC obj/conf_21daecdb28eda88c4cc2d863896a5905/dynamic/cover.o
CC obj/conf_21daecdb28eda88c4cc2d863896a5905/dynamic/divsufsort.o
CC obj/conf_21daecdb28eda88c4cc2d863896a5905/dynamic/fastcover.o
CC obj/conf_21daecdb28eda88c4cc2d863896a5905/dynamic/zdict.o
CC obj/conf_21daecdb28eda88c4cc2d863896a5905/dynamic/zstd_v05.o
CC obj/conf_21daecdb28eda88c4cc2d863896a5905/dynamic/zstd_v06.o
CC obj/conf_d2bcb34c2fa18701060a48081162c40b/zstd_ldm.o
CC obj/conf_d2bcb34c2fa18701060a48081162c40b/zstd_opt.o
CC obj/conf_21daecdb28eda88c4cc2d863896a5905/dynamic/zstd_v07.o
CC obj/conf_d2bcb34c2fa18701060a48081162c40b/zstdmt_compress.o
CC obj/conf_d2bcb34c2fa18701060a48081162c40b/huf_decompress.o
compiling multi-threaded dynamic library 1.5.0
creating versioned links
CC obj/conf_d2bcb34c2fa18701060a48081162c40b/zstd_ddict.o
CC obj/conf_d2bcb34c2fa18701060a48081162c40b/zstd_decompress.o
CC obj/conf_d2bcb34c2fa18701060a48081162c40b/zstd_decompress_block.o
CC obj/conf_d2bcb34c2fa18701060a48081162c40b/cover.o
CC obj/conf_d2bcb34c2fa18701060a48081162c40b/divsufsort.o
CC obj/conf_d2bcb34c2fa18701060a48081162c40b/fastcover.o
CC obj/conf_d2bcb34c2fa18701060a48081162c40b/zdict.o
CC obj/conf_d2bcb34c2fa18701060a48081162c40b/zstd_v05.o
CC obj/conf_d2bcb34c2fa18701060a48081162c40b/zstd_v06.o
CC obj/conf_d2bcb34c2fa18701060a48081162c40b/zstd_v07.o
CC obj/conf_d2bcb34c2fa18701060a48081162c40b/benchfn.o
CC obj/conf_d2bcb34c2fa18701060a48081162c40b/benchzstd.o
CC obj/conf_24d28f9076fd3b8f17cf2bf90a3aaa24/static/zstdmt_compress.o
CC obj/conf_d2bcb34c2fa18701060a48081162c40b/datagen.o
CC obj/conf_d2bcb34c2fa18701060a48081162c40b/dibio.o
CC obj/conf_24d28f9076fd3b8f17cf2bf90a3aaa24/static/huf_decompress.o
CC obj/conf_d2bcb34c2fa18701060a48081162c40b/fileio.o
CC obj/conf_d2bcb34c2fa18701060a48081162c40b/timefn.o
CC obj/conf_d2bcb34c2fa18701060a48081162c40b/util.o
CC obj/conf_d2bcb34c2fa18701060a48081162c40b/zstdcli.o
CC obj/conf_d2bcb34c2fa18701060a48081162c40b/zstdcli_trace.o
CC obj/conf_24d28f9076fd3b8f17cf2bf90a3aaa24/static/zstd_ddict.o
CC obj/conf_24d28f9076fd3b8f17cf2bf90a3aaa24/static/zstd_decompress.o
CC obj/conf_24d28f9076fd3b8f17cf2bf90a3aaa24/static/zstd_decompress_block.o
CC obj/conf_24d28f9076fd3b8f17cf2bf90a3aaa24/static/cover.o
CC obj/conf_24d28f9076fd3b8f17cf2bf90a3aaa24/static/divsufsort.o
CC obj/conf_24d28f9076fd3b8f17cf2bf90a3aaa24/static/fastcover.o
CC obj/conf_24d28f9076fd3b8f17cf2bf90a3aaa24/static/zdict.o
CC obj/conf_24d28f9076fd3b8f17cf2bf90a3aaa24/static/zstd_v05.o
CC obj/conf_24d28f9076fd3b8f17cf2bf90a3aaa24/static/zstd_v06.o
CC obj/conf_24d28f9076fd3b8f17cf2bf90a3aaa24/static/zstd_v07.o
==> building with threading support
==> building zstd with .gz compression support
==> building zstd with .xz/.lzma compression support
==> no liblz4, building zstd without .lz4 support
LINK obj/conf_d2bcb34c2fa18701060a48081162c40b/zstd
zstd build completed
make[1]: Leaving directory '/tmp/dmi1267063/zstd/zstd-1.5.0/programs'
compiling single-threaded static library 1.5.0
release build completed
make[1]: Leaving directory '/tmp/dmi1267063/zstd/zstd-1.5.0/lib'
make[1]: Entering directory '/tmp/dmi1267063/zstd/zstd-1.5.0/tests'
cc -O3 -Wall -Wextra -Wcast-qual -Wcast-align -Wshadow -Wstrict-aliasing=1 -Wswitch-enum -Wdeclaration-after-statement -Wstrict-prototypes -Wundef -Wvla -Wformat=2 -Winit-self -Wfloat-equal -Wwrite-strings -Wredundant-decls -Wmissing-prototypes -Wno-deprecated-declarations -g -DDEBUGLEVEL=2 -I../lib -I../lib/common -I../lib/compress -I../lib/dictBuilder -I../lib/deprecated -I../programs -DZSTD_WINDOW_OVERFLOW_CORRECT_FREQUENTLY=1 ../programs/datagen.c datagencli.c -o datagen
make -C ../programs zstd MOREFLAGS+="-g -DDEBUGLEVEL=2"
make[2]: Entering directory '/tmp/dmi1267063/zstd/zstd-1.5.0/programs'
CC obj/conf_41a644896730eda4d1fb1063744a6dab/entropy_common.o
CC obj/conf_41a644896730eda4d1fb1063744a6dab/debug.o
CC obj/conf_41a644896730eda4d1fb1063744a6dab/fse_decompress.o
CC obj/conf_41a644896730eda4d1fb1063744a6dab/error_private.o
CC obj/conf_41a644896730eda4d1fb1063744a6dab/pool.o
CC obj/conf_41a644896730eda4d1fb1063744a6dab/threading.o
CC obj/conf_41a644896730eda4d1fb1063744a6dab/xxhash.o
CC obj/conf_41a644896730eda4d1fb1063744a6dab/zstd_common.o
CC obj/conf_41a644896730eda4d1fb1063744a6dab/fse_compress.o
CC obj/conf_41a644896730eda4d1fb1063744a6dab/hist.o
CC obj/conf_41a644896730eda4d1fb1063744a6dab/huf_compress.o
CC obj/conf_41a644896730eda4d1fb1063744a6dab/zstd_compress.o
CC obj/conf_41a644896730eda4d1fb1063744a6dab/zstd_compress_literals.o
CC obj/conf_41a644896730eda4d1fb1063744a6dab/zstd_compress_sequences.o
CC obj/conf_41a644896730eda4d1fb1063744a6dab/zstd_compress_superblock.o
CC obj/conf_41a644896730eda4d1fb1063744a6dab/zstd_double_fast.o
CC obj/conf_41a644896730eda4d1fb1063744a6dab/zstd_fast.o
CC obj/conf_41a644896730eda4d1fb1063744a6dab/zstd_lazy.o
CC obj/conf_41a644896730eda4d1fb1063744a6dab/zstd_ldm.o
CC obj/conf_41a644896730eda4d1fb1063744a6dab/zstd_opt.o
CC obj/conf_41a644896730eda4d1fb1063744a6dab/zstdmt_compress.o
CC obj/conf_41a644896730eda4d1fb1063744a6dab/huf_decompress.o
CC obj/conf_41a644896730eda4d1fb1063744a6dab/zstd_ddict.o
CC obj/conf_41a644896730eda4d1fb1063744a6dab/zstd_decompress.o
CC obj/conf_41a644896730eda4d1fb1063744a6dab/zstd_decompress_block.o
CC obj/conf_41a644896730eda4d1fb1063744a6dab/cover.o
CC obj/conf_41a644896730eda4d1fb1063744a6dab/divsufsort.o
CC obj/conf_41a644896730eda4d1fb1063744a6dab/fastcover.o
CC obj/conf_41a644896730eda4d1fb1063744a6dab/zdict.o
CC obj/conf_41a644896730eda4d1fb1063744a6dab/zstd_v05.o
CC obj/conf_41a644896730eda4d1fb1063744a6dab/zstd_v06.o
CC obj/conf_41a644896730eda4d1fb1063744a6dab/zstd_v07.o
CC obj/conf_41a644896730eda4d1fb1063744a6dab/benchfn.o
CC obj/conf_41a644896730eda4d1fb1063744a6dab/benchzstd.o
CC obj/conf_41a644896730eda4d1fb1063744a6dab/datagen.o
CC obj/conf_41a644896730eda4d1fb1063744a6dab/dibio.o
CC obj/conf_41a644896730eda4d1fb1063744a6dab/fileio.o
CC obj/conf_41a644896730eda4d1fb1063744a6dab/timefn.o
CC obj/conf_41a644896730eda4d1fb1063744a6dab/util.o
CC obj/conf_41a644896730eda4d1fb1063744a6dab/zstdcli.o
CC obj/conf_41a644896730eda4d1fb1063744a6dab/zstdcli_trace.o
==> building with threading support
==> building zstd with .gz compression support
==> building zstd with .xz/.lzma compression support
==> no liblz4, building zstd without .lz4 support
LINK obj/conf_41a644896730eda4d1fb1063744a6dab/zstd
zstd build completed
make[2]: Leaving directory '/tmp/dmi1267063/zstd/zstd-1.5.0/programs'
file ../programs/zstd
../programs/zstd: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, with debug_info, not stripped
EXE_PREFIX="" ZSTD_BIN="../programs/zstd" DATAGEN_BIN=./datagen ./playTests.sh
Starting playTests.sh isWindows=false EXE_PREFIX='' ZSTD_BIN='../programs/zstd' DATAGEN_BIN='./datagen'
===> simple tests
test : basic compression
tmp : 32.50% ( 65537 => 21300 bytes, tmp.zst)
test : basic decompression
tmp.zst : 65537 bytes
test : too large compression level => auto-fix
Warning : compression level higher than max, reduced to 19
tmp : 31.54% ( 65537 => 20671 bytes, tmp.zst)
error: numeric value overflows 32-bit unsigned int
test : --fast aka negative compression levels
tmp : 55.94% ( 65537 => 36660 bytes, tmp.zst)
tmp : 56.31% ( 65537 => 36907 bytes, tmp.zst)
tmp :100.02% ( 65537 => 65551 bytes, tmp.zst)
error: numeric value overflows 32-bit unsigned int
Incorrect parameters
Usage :
zstd [args] [FILE(s)] [-o file]
FILE : a filename
with no FILE, or when FILE is - , read standard input
Arguments :
-# : # compression level (1-19, default: 3)
-d : decompression
-D DICT: use DICT as Dictionary for compression or decompression
-o file: result stored into `file` (only 1 output file)
-f : disable input and output checks. Allows overwriting existing files,
input from console, output to stdout, operating on links,
block devices, etc.
--rm : remove source file(s) after successful de/compression
-k : preserve source file(s) (default)
-h/-H : display help/long help and exit
test : too large numeric argument
error: numeric value overflows 32-bit unsigned int
test : set compression level with environment variable ZSTD_CLEVEL
tmp : 33.15% ( 65537 => 21726 bytes, tmp.zst)
tmp : 61.56% ( 65537 => 40343 bytes, tmp.zst)
tmp : 33.15% ( 65537 => 21726 bytes, tmp.zst)
Ignore environment variable setting ZSTD_CLEVEL=: not a valid integer value
tmp : 32.50% ( 65537 => 21300 bytes, tmp.zst)
Ignore environment variable setting ZSTD_CLEVEL=-: not a valid integer value
tmp : 32.50% ( 65537 => 21300 bytes, tmp.zst)
Ignore environment variable setting ZSTD_CLEVEL=a: not a valid integer value
tmp : 32.50% ( 65537 => 21300 bytes, tmp.zst)
Ignore environment variable setting ZSTD_CLEVEL=+a: not a valid integer value
tmp : 32.50% ( 65537 => 21300 bytes, tmp.zst)
Ignore environment variable setting ZSTD_CLEVEL=3a7: not a valid integer value
tmp : 32.50% ( 65537 => 21300 bytes, tmp.zst)
Ignore environment variable setting ZSTD_CLEVEL=50000000000: numeric value too large
tmp : 32.50% ( 65537 => 21300 bytes, tmp.zst)
test : override ZSTD_CLEVEL with command line option
tmp : 56.31% ( 65537 => 36907 bytes, tmp.zst)
test : compress to stdout
test : compress to named file
tmp : 32.50% ( 65537 => 21300 bytes, tmpCompressed)
test : force write, correct order
tmp : 32.50% ( 65537 => 21300 bytes, tmpCompressed)
test : forgotten argument
error: missing command argument
test : implied stdout when input is stdin
bob
test : compressed data to terminal
stdout is a console, aborting
test : compressed data from terminal (a hang here is a test fail, zstd is wrongly waiting on data from terminal)
stdin is a console, aborting
test : null-length file roundtrip
-n
test : ensure small file doesn't add 3-bytes null block
14
14
test : decompress file with wrong suffix (must fail)
zstd: tmpCompressed: unknown suffix (.zst/.tzst/.gz/.tgz/.lzma/.xz/.txz expected). Can't derive the output file name. Specify it with -o dstFileName. Ignoring.
zstd: tmp: unknown suffix (.zst/.tzst/.gz/.tgz/.lzma/.xz/.txz expected). Can't derive the output file name. Specify it with -o dstFileName. Ignoring.
test : decompress into stdout
test : decompress from stdin into stdout
test : impose memory limitation (must fail)
tmp.zst : Decoding error (36) : Frame requires too much memory for decoding
tmp.zst : Window size larger than maximum : 65537 > 2048
tmp.zst : Use --long=17 or --memory=1MB
tmp.zst : Decoding error (36) : Frame requires too much memory for decoding
tmp.zst : Window size larger than maximum : 65537 > 2048
tmp.zst : Use --long=17 or --memory=1MB
tmp.zst : Decoding error (36) : Frame requires too much memory for decoding
tmp.zst : Window size larger than maximum : 65537 > 2048
tmp.zst : Use --long=17 or --memory=1MB
error: command cannot be separated from its argument by another command
test : overwrite protection
zstd: tmp.zst already exists; not overwritten
test : force overwrite
test : overwrite readonly file
zstd: tmpro.zst already exists; not overwritten
test: --no-progress flag
/*stdin*\ : 4 bytes
*** zstd command line interface 64-bits v1.5.0, by Yann Collet ***
*** zstd command line interface 64-bits v1.5.0, by Yann Collet ***
/*stdin*\ : 4 bytes
test: overwrite input file (must fail)
zstd: Refusing to open an output file which will overwrite the input file
zstd: Refusing to open an output file which will overwrite the input file
test: detect that input file does not exist
zstd: can't stat nothere : No such file or directory -- ignored
test: --[no-]compress-literals
/*stdin*\ : 65537 bytes
/*stdin*\ : 65537 bytes
/*stdin*\ : 65537 bytes
/*stdin*\ : 65537 bytes
/*stdin*\ : 65537 bytes
/*stdin*\ : 65537 bytes
-1#tmp : 65537 -> 22183 (2.954), 140.4 MB/s , 566.8 MB/s
0#tmp : 65537 -> 21296 (3.077), 56.3 MB/s , 543.6 MB/s
1#tmp : 65537 -> 21461 (3.054), 140.5 MB/s , 601.1 MB/s
-1#tmp : 65537 -> 36656 (1.788), 193.7 MB/s ,1338.2 MB/s
0#tmp : 65537 -> 34519 (1.899), 58.8 MB/s ,1159.8 MB/s
1#tmp : 65537 -> 35532 (1.844), 193.3 MB/s ,1455.6 MB/s
test: --no-check for decompression
tmp : 32.50% ( 65537 => 21300 bytes, tmp_corrupt.zst)
tmp : 32.49% ( 65537 => 21296 bytes, tmp.zst)
4+0 records in
4+0 records out
4 bytes copied, 0.000119751 s, 33.4 kB/s
tmp_corrupt.zst : 65537 bytes
tmp_corrupt.zst : 65537 bytes
tmp.zst : 65537 bytes
===> zstdgrep tests
tmp_grep :360.00% ( 5 => 18 bytes, tmp_grep.zst)
zstd: can't stat tmp_grep_bad.zst : No such file or directory -- ignored
zstd: can't stat tmp_grep_bad.zst : No such file or directory -- ignored
===> --exclude-compressed flag
2 files compressed : 32.17% (131074 => 42160 bytes)
4 files compressed : 32.17% (131074 => 42160 bytes)
Test is successful. input.5.zst is precompressed and therefore not compressed/modified again.
5 files compressed : 32.17% ( 65537 => 21080 bytes)
5 files compressed : 100.07% (105400 => 105470 bytes)
Test completed
===> warning prompts should not occur if stdin is an input
tmpPrompt :192.86% ( 14 => 27 bytes, tmpPrompt.zst)
zstd: tmpPrompt.zst already exists; stdin is an input - not proceeding.
/*stdin*\ :192.86% ( 14 => 27 bytes, tmpPrompt.zst)
tmpPrompt :192.86% ( 14 => 27 bytes, tmpPrompt.zst)
zstd: tmpPrompt.zst already exists; stdin is an input - not proceeding.
zstd: WARNING: all input files will be processed and concatenated into a single output file: tmpPromp.zst
The concatenated output CANNOT regenerate the original directory tree. stdin is an input - not proceeding.
Test completed
===> recursive mode test
===> file removal
tmp : 32.50% ( 65537 => 21300 bytes, tmp.zst)
tmp.zst : 65537 bytes
test : should quietly not remove non-regular file
tmp :316.67% ( 6 => 19 bytes, /dev/zero)
tmp :316.67% ( 6 => 19 bytes, /dev/null)
test : --rm on stdin
zstd: can't stat tmp : No such file or directory -- ignored
test : -d -f do not delete destination when source is not present
zstd: can't stat tmp.zst : No such file or directory -- ignored
test : -f do not delete destination when source is not present
zstd: can't stat tmp : No such file or directory -- ignored
===> decompression only tests
0+1 records in
0+1 records out
19 bytes copied, 0.000100565 s, 189 kB/s
/tmp/dmi1267063/zstd/zstd-1.5.0/tests/../tests/golden-decompression/rle-first-block.zst: 1048576 bytes
Binary files tmp1 and tmp differ
make[1]: *** [Makefile:320: test-zstd] Error 1
make[1]: Leaving directory '/tmp/dmi1267063/zstd/zstd-1.5.0/tests'
make: *** [Makefile:90: shortest] Error 2
The tests pass if I build it outside the chroot environment. I have no idea why this is happening. Any help would be appreciated
can you provide additional details ie lfs version, hardware specs, host, how building ie manually entering commands, copy/paste commands, jhalfs etc...
Actually no need; I've just figured out what is going on. The `zstd` tests make use of a number of special files such as `/dev/null` and `dev/zero` and these are not present in the `chroot` by default. The solution is to use commands such as `mknod -m 666 /dev/zero c 1 5` (inside the chroot) to create these special files and then the tests run successfully.
The `1` and `5` are magic numbers but we can determine these by using `ls -lsap` outside the chroot e.g `ls -lsap /dev/zero` returns `0 crw-rw-rw- 1 root root 1, 5 Nov 29 08:35 /dev/zero` and you can see the magic `1` and `5` just before `Nov`.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.