[tlbuild] building for distribution with shared breaks in dvisvgm

Norbert Preining preining at logic.at
Wed Sep 5 06:24:10 CEST 2018


Hi

I just want to build some packges for Debian, but the build process
stops because dvisvgm does not find xxhash.h:
make[7]: Entering directory '/build/texlive-bin-2018.20180905.48574/Work/texk/dvisvgm/dvisvgm-src/src'
g++ -DHAVE_CONFIG_H -I. -I../../../../../texk/dvisvgm/dvisvgm-src/src -I../..   -Wdate-time -D_FORTIFY_SOURCE=2 -Wimplicit -Wreturn-type -Wnon-virtual-dtor -Wno-mismatched-tags -I../../../../../texk/dvisvgm/dvisvgm-src/libs/clipper -I../../../../../texk/dvisvgm/dvisvgm-src/libs/variant/include        -I/build/texlive-bin-2018.20180905.48574/Work/texk -I/build/texlive-bin-2018.20180905.48574/texk  -I/usr/include/freetype2 -I/usr/include/libpng16     -g -O2 -fdebug-prefix-map=/build/texlive-bin-2018.20180905.48574=. -fstack-protector-strong -Wformat -Werror=format-security -c -o dvisvgm.o ../../../../../texk/dvisvgm/dvisvgm-src/src/dvisvgm.cpp
cc1plus: warning: command line option '-Wimplicit' is valid for C/ObjC but not for C++
../../../../../texk/dvisvgm/dvisvgm-src/src/dvisvgm.cpp:29:10: fatal error: xxhash.h: No such file or directory
 #include <xxhash.h>
          ^~~~~~~~~~
compilation terminated.

The file is there in dvisvgm-src/libs/xxHash/xxhash.h but that path is
not added to the include path like clipper etc.

The configure options are
	    --enable-shared                         \
        --with-system-zlib                      \
        --with-system-zzlib                     \
        --with-system-potrace                   \
        --with-system-graphite2                 \
        --with-system-harfbuzz                  \
        --with-system-libgs                     \
        --with-system-pixman                    \
        --with-system-libpaper                  \
        --with-system-zziplib                   \
        --with-system-icu                       \
        --with-system-gmp                       \
        --with-system-mpfr                      \
        --with-system-freetype2                 \
        --with-freetype2-include=/usr/include/freetype2 \
        --with-system-libpng                    \
        --with-system-gd                        \
        --with-system-cairo                     \
        --with-x                                \
        --with-mf-x-toolkit                     \
        --with-xdvi-x-toolkit=xaw               \
        --disable-lcdf-typetools                \
        --disable-biber                         \
        --disable-dvipng                        \
        --disable-ps2eps                        \
        --disable-psutils                       \
        --disable-t1utils                       \
        --disable-cjkutils                      \
        --disable-chktex                        \
        --disable-dvidvi                        \
        --disable-lacheck                       \
        --disable-texdoctk                      \
        --disable-ttf2pk                        \
        --enable-ttf2pk2                        \
        --enable-ipc                            

Has anyone seen similar problems?

The configure output from dvisvgm doesn't say a lot:
checking for gcc... (cached) gcc
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... (cached) o
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking for ar... (cached) ar
checking the archiver (ar) interface... ar
checking for a BSD-compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... (cached) /bin/mkdir -p
checking for gawk... (cached) mawk
checking whether make sets $(MAKE)... (cached) yes
checking whether make supports the include directive... yes (GNU style)
checking whether make supports nested variables... (cached) yes
checking build system type... (cached) x86_64-pc-linux-gnu
checking host system type... (cached) x86_64-pc-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /bin/sed
checking for grep that handles long lines and -e... (cached) /bin/grep
checking for egrep... (cached) /bin/grep -E
checking for fgrep... (cached) /bin/grep -F
checking for ld used by gcc... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes
checking for BSD- or MS-compatible name lister (nm)... (cached) /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... (cached) BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... (cached) 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... (cached) func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... (cached) func_convert_file_noop
checking for /usr/bin/ld option to reload object files... (cached) -r
checking for objdump... (cached) objdump
checking how to recognize dependent libraries... (cached) pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... (cached) printf %s\n
checking for archiver @FILE support... (cached) @
checking for strip... (cached) strip
checking for ranlib... (cached) ranlib
checking command to parse /usr/bin/nm -B output from gcc object... (cached) ok
checking for sysroot... no
checking for a working dd... (cached) /bin/dd
checking how to truncate binary pipes... (cached) /bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... (cached) no
checking how to run the C preprocessor... (cached) gcc -E
checking for ANSI C header files... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking for strings.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking for dlfcn.h... (cached) yes
checking dependency style of gcc... (cached) none
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether the compiler accepts prototypes... (cached) yes
checking what warning flags to pass to the C compiler... (cached) -Wimplicit -Wreturn-type
checking for objdir... (cached) .libs
checking if gcc supports -fno-rtti -fno-exceptions... (cached) no
checking for gcc option to produce PIC... (cached) -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... (cached) yes
checking if gcc static flag -static works... (cached) yes
checking if gcc supports -c -o file.o... (cached) yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... (cached) no
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for special C compiler options needed for large files... (cached) no
checking for _FILE_OFFSET_BITS value needed for large files... (cached) no
checking for _LARGEFILE_SOURCE value needed for large files... (cached) no
checking for dirent.h that defines DIR... (cached) yes
checking for library containing opendir... (cached) none required
checking for ANSI C header files... (cached) yes
checking whether closedir returns void... (cached) no
checking for assert.h... (cached) yes
checking for float.h... (cached) yes
checking for limits.h... (cached) yes
checking for pwd.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for sys/param.h... (cached) yes
checking for putenv... (cached) yes
checking for getcwd... (cached) yes
checking for getwd... (cached) yes
checking for memcmp... (cached) yes
checking for memcpy... (cached) yes
checking for mkstemp... (cached) yes
checking for mktemp... (cached) yes
checking for strchr... (cached) yes
checking for strrchr... (cached) yes
checking for an ANSI C-conforming const... (cached) yes
checking for inline... (cached) inline
checking for size_t... (cached) yes
checking for int64_t... (cached) yes
checking for uint64_t... (cached) yes
checking whether isascii is declared... (cached) yes
checking for struct stat.st_mtim... (cached) yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking for gcc option to accept ISO C99... (cached) none needed
checking for g++... (cached) g++
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking dependency style of g++... (cached) none
checking what warning flags to pass to the C++ compiler... (cached) -Wreturn-type -Wno-write-strings
checking how to run the C++ preprocessor... (cached) g++ -E
checking for ld used by g++... (cached) /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... (cached) -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... (cached) yes
checking if g++ static flag -static works... (cached) yes
checking if g++ supports -c -o file.o... (cached) yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether g++ supports C++11 features by default... (cached) yes
checking for ranlib... (cached) ranlib
checking for sys/time.h... (cached) yes
checking for sys/timeb.h... (cached) yes
checking xlocale.h usability... no
checking xlocale.h presence... no
checking for xlocale.h... no
checking whether termios.h defines TIOCGWINSZ... no
checking whether sys/ioctl.h defines TIOCGWINSZ... yes
checking for native WIN32 or MINGW32... (cached) no
configure: creating ./config.lt
config.lt: creating libtool
checking for pkg-config... (cached) pkg-config
checking if libkpathsea supports debugging... (cached) yes
checking if <zlib.h> defines 'z_const'... (cached) yes
checking for freetype-config... (cached) freetype-config
checking for pkg-config... (cached) pkg-config
checking if <zlib.h> defines 'z_const'... (cached) yes
checking ghostscript/iapi.h usability... yes
checking ghostscript/iapi.h presence... yes
checking for ghostscript/iapi.h... yes
checking for gsapi_revision in -lgs... yes
configure: not linking to libgs, trying to arrange for dynamic loading
checking for library containing dlopen... (cached) -ldl
checking for dlfcn.h... (cached) yes
checking for dlopen... yes
checking for gzopen... yes
checking for FT_Init_FreeType... yes
checking for kpse_set_program_name... yes
checking for dirent.h that defines DIR... (cached) yes
checking for library containing opendir... (cached) none required
checking for ANSI C header files... (cached) yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for unistd.h... (cached) yes
checking for stdbool.h that conforms to C99... (cached) yes
checking for _Bool... (cached) yes
checking for size_t... (cached) yes
checking whether struct tm is in sys/time.h or time.h... (cached) time.h
checking whether lstat correctly handles trailing slash... yes
checking whether stat accepts an empty string... no
checking for ftime... (cached) yes
checking for gettimeofday... (cached) yes
checking for sigaction... yes
checking for umask... yes
checking for uselocale... yes
configure: updating cache ../../config.cache
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating dvisvgm-src/Makefile
config.status: creating dvisvgm-src/libs/Makefile
config.status: creating dvisvgm-src/libs/brotli/Makefile
config.status: creating dvisvgm-src/libs/clipper/Makefile
config.status: creating dvisvgm-src/libs/ff-woff/Makefile
config.status: creating dvisvgm-src/libs/potrace/Makefile
config.status: creating dvisvgm-src/libs/variant/Makefile
config.status: creating dvisvgm-src/libs/woff2/Makefile
config.status: creating dvisvgm-src/libs/xxHash/Makefile
config.status: creating dvisvgm-src/src/Makefile
config.status: creating dvisvgm-src/src/version.hpp
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
Making all in dvisvgm



All the best

Norbert

--
PREINING Norbert                               http://www.preining.info
Accelia Inc.     +    JAIST     +    TeX Live     +    Debian Developer
GPG: 0x860CDC13   fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13


More information about the tlbuild mailing list