compile zstd on dfly master

jungle boogie jungleboogie0 at gmail.com
Mon Nov 14 23:00:39 PST 2016


Hi All,

Facebook (which I proudly don't use) created a compression algorithm 
called zstd: http://facebook.github.io/zstd/

Request:
If anyone is running dragonflyBSD on master, please attempt to compile 
from source and see if it will build. After commits are made to the 
project, attempt building again.


When using gmake, I'm able to get past that and have it make:
 > gmake
gmake[1]: Entering directory '/home/sean/bin/zstd/lib'
gmake[1]: Nothing to be done for 'default'.
gmake[1]: Leaving directory '/home/sean/bin/zstd/lib'
gmake[1]: Entering directory '/home/sean/bin/zstd/programs'
cc      -I../lib -I../lib/common -I../lib/dictBuilder -I../lib/legacy 
-DZSTD_LEGACY_SUPPORT=1 -O3 -Wall -Wextra -Wcast-qual -Wcast-align 
-Wshadow -Wstrict-aliasing=1 -Wswitch-enum -Wdeclaration-after-statement 
-Wstrict-prototypes -Wundef -Wpointer-arith 
../lib/decompress/zstd_decompress.o ../lib/decompress/huf_decompress.c 
../lib/common/zstd_common.c ../lib/common/fse_decompress.c 
../lib/common/xxhash.c ../lib/common/error_private.c 
../lib/common/entropy_common.c ../lib/compress/zstd_compress.c 
../lib/compress/fse_compress.c ../lib/compress/huf_compress.c 
../lib/legacy/zstd_v02.c ../lib/legacy/zstd_v06.c 
../lib/legacy/zstd_v04.c ../lib/legacy/zstd_v01.c 
../lib/legacy/zstd_v05.c ../lib/legacy/zstd_v07.c 
../lib/legacy/zstd_v03.c ../lib/dictBuilder/zdict.c 
../lib/dictBuilder/divsufsort.c zstdcli.c fileio.c bench.c datagen.c 
dibio.c  -o zstd
gmake[1]: Leaving directory '/home/sean/bin/zstd/programs'
cp programs/zstd .


The problem is when I sudo gmake install:
 > sudo gmake install
Password:
gmake[1]: Entering directory '/home/sean/bin/zstd/lib'
cp: symlink: libzstd.so.1.1.2: File exists
gmake[1]: *** [Makefile:107: install] Error 1
gmake[1]: Leaving directory '/home/sean/bin/zstd/lib'
gmake: *** [Makefile:69: install] Error 2

sudo gmake install worked at one point, but I don't know what causes the 
issues now.

github issue:
https://github.com/facebook/zstd/issues/447

thanks!



More information about the Users mailing list