Genivia / ugrep-indexer

A monotonic indexer to speed up grepping by >10x (ugrep-indexer is now part of ugrep 6.0)
https://ugrep.com
BSD 3-Clause "New" or "Revised" License
67 stars 1 forks source link

7zip support: fatal error: viizip.h: No such file or directory #8

Closed barsnick closed 9 months ago

barsnick commented 9 months ago

When adding 7zip support in https://github.com/Genivia/ugrep-indexer/commit/4e03c7811352b3e70ea71098aab1ee09a36a517c for https://github.com/Genivia/ugrep-indexer/issues/7, it was forgotten to add the file viizip.h. Therefore, 0.9.5 cannot be compiled with --enable-7zip.

I cannot provide a patch, I do not know what this wrapper looks like. 😉

genivia-inc commented 9 months ago

The file is here: https://github.com/Genivia/ugrep-indexer/blob/main/lzma/C/viizip.h

The compile options were updated to include files from that directory, i.e. -I../lzma/C should be there.

The CI build works too, and shows that 7zip is included by default. It does not require --enable-7zip. It can be disabled with --disable-7zip.

barsnick commented 9 months ago

Oops, I did fail to find it originally. You're right, the file is there.

Here's a demo from a build subdir of the sources. I got the same effect with the release tarball (no build subdir).

making all in src
make[2]: Entering directory '/home/barsnick/Development/ugrep-indexer/build/src'
g++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I../../src -I..  -DPLATFORM=\"x86_64-pc-linux-gnu\" -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include  -Wall -Wextra -Wunused -O2 -MT ugrep_indexer-ugrep-indexer.o -MD -MP -MF .deps/ugrep_indexer-ugrep-indexer.Tpo -c -o ugrep_indexer-ugrep-indexer.o `test -f 'ugrep-indexer.cpp' || echo '../../src/'`ugrep-indexer.cpp
g++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I../../src -I..  -DPLATFORM=\"x86_64-pc-linux-gnu\" -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include  -Wall -Wextra -Wunused -O2 -MT ugrep_indexer-glob.o -MD -MP -MF .deps/ugrep_indexer-glob.Tpo -c -o ugrep_indexer-glob.o `test -f 'glob.cpp' || echo '../../src/'`glob.cpp
g++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I../../src -I..  -DPLATFORM=\"x86_64-pc-linux-gnu\" -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include  -Wall -Wextra -Wunused -O2 -MT ugrep_indexer-input.o -MD -MP -MF .deps/ugrep_indexer-input.Tpo -c -o ugrep_indexer-input.o `test -f 'input.cpp' || echo '../../src/'`input.cpp
gcc -DHAVE_CONFIG_H -I. -I../../src -I..  -DPLATFORM=\"x86_64-pc-linux-gnu\" -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include  -Wall -Wextra -Wunused -O2 -MT ugrep_indexer-zopen.o -MD -MP -MF .deps/ugrep_indexer-zopen.Tpo -c -o ugrep_indexer-zopen.o `test -f 'zopen.c' || echo '../../src/'`zopen.c
mv -f .deps/ugrep_indexer-glob.Tpo .deps/ugrep_indexer-glob.Po
In file included from ../../src/ugrep-indexer.cpp:213:
../../src/zstream.hpp:101:10: fatal error: viizip.h: No such file or directory
  101 | #include "viizip.h"
      |          ^~~~~~~~~~
compilation terminated.

Here's the complete build log:

Clean build ``` [17:36:08 barsnick@moonlight build]$ cd - /home/barsnick/Development/ugrep-indexer [17:36:10 barsnick@moonlight ugrep-indexer]$ make distclean CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh '/home/barsnick/Development/ugrep-indexer/missing' aclocal-1.16 cd . && /bin/sh /home/barsnick/Development/ugrep-indexer/missing automake-1.16 --foreign CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh '/home/barsnick/Development/ugrep-indexer/missing' autoconf /bin/sh ./config.status --recheck running CONFIG_SHELL=/bin/sh /bin/sh ./configure --with-bzip3 --no-create --no-recursion checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a race-free mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether make supports the include directive... yes (GNU style) checking for g++... g++ 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 the compiler supports GNU C++... yes checking whether g++ accepts -g... yes checking for g++ option to enable C++11 features... none needed checking dependency style of g++... gcc3 checking whether g++ supports C++11 features with -std=gnu++11... yes checking for dirent.h that defines DIR... yes checking for library containing opendir... none required checking for struct dirent.d_ino... yes checking for struct dirent.d_type... yes checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking for struct stat.st_atim... yes checking for struct stat.st_mtim... yes checking for struct stat.st_ctim... yes checking for struct stat.st_atimespec... no checking for struct stat.st_mtimespec... no checking for struct stat.st_ctimespec... no checking for size_t... yes checking for ssize_t... yes checking whether the compiler supports GNU C++... (cached) yes checking whether g++ -std=gnu++11 accepts -g... (cached) yes checking for g++ -std=gnu++11 option to enable C++11 features... (cached) none needed checking dependency style of g++ -std=gnu++11... (cached) gcc3 checking for gcc... gcc checking whether the compiler supports GNU C... yes checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... gcc3 checking for ar... ar checking the archiver (ar) interface... ar checking for ranlib... ranlib checking whether ln -s works... yes checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking if zlib is wanted... yes checking for inflateEnd in -lz... yes checking for zlib.h... yes checking if bzlib is wanted... yes checking for BZ2_bzRead in -lbz2... yes checking for bzlib.h... yes checking if lzma is wanted... yes checking for lzma_code in -llzma... yes checking for lzma.h... yes checking if lz4 is wanted... yes checking for LZ4_createStreamDecode in -llz4... yes checking for lz4.h... yes checking if zstd is wanted... yes checking for ZSTD_decompressStream in -lzstd... yes checking for zstd.h... yes checking if brotli is wanted... yes checking for BrotliDecoderCreateInstance in -lbrotlidec... yes checking for brotli/decode.h... yes checking for --disable-7zip... no checking if bzip3 is wanted... yes checking for bz3_new in -lbzip3... no checking for libbz3.h... yes optional libbzip3 not found: install if you want ugrep-indexer option -z to index .bz3 files checking that generated files are newer than configure... done configure: creating ./config.status /bin/sh ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating lzma/C/Makefile config.status: creating config.h config.status: executing depfiles commands Making distclean in lzma/C make[1]: Entering directory '/home/barsnick/Development/ugrep-indexer/lzma/C' test -z "libviiz.a" || rm -f libviiz.a rm -f *.o rm -f *.tab.c test -z "" || rm -f test . = "." || test -z "" || rm -f rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags rm -f ./.deps/libviiz_a-7zAlloc.Po rm -f ./.deps/libviiz_a-7zArcIn.Po rm -f ./.deps/libviiz_a-7zBuf.Po rm -f ./.deps/libviiz_a-7zBuf2.Po rm -f ./.deps/libviiz_a-7zCrc.Po rm -f ./.deps/libviiz_a-7zCrcOpt.Po rm -f ./.deps/libviiz_a-7zDec.Po rm -f ./.deps/libviiz_a-7zFile.Po rm -f ./.deps/libviiz_a-7zStream.Po rm -f ./.deps/libviiz_a-Bcj2.Po rm -f ./.deps/libviiz_a-Bra.Po rm -f ./.deps/libviiz_a-Bra86.Po rm -f ./.deps/libviiz_a-BraIA64.Po rm -f ./.deps/libviiz_a-CpuArch.Po rm -f ./.deps/libviiz_a-Delta.Po rm -f ./.deps/libviiz_a-Lzma2Dec.Po rm -f ./.deps/libviiz_a-LzmaDec.Po rm -f ./.deps/libviiz_a-Ppmd7.Po rm -f ./.deps/libviiz_a-Ppmd7Dec.Po rm -f ./.deps/libviiz_a-viizip.Po rm -f Makefile make[1]: Leaving directory '/home/barsnick/Development/ugrep-indexer/lzma/C' Making distclean in src make[1]: Entering directory '/home/barsnick/Development/ugrep-indexer/src' test -z "ugrep-indexer" || rm -f ugrep-indexer rm -f *.o rm -f *.tab.c test -z "" || rm -f test . = "." || test -z "" || rm -f rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags rm -f ./.deps/ugrep_indexer-glob.Po rm -f ./.deps/ugrep_indexer-input.Po rm -f ./.deps/ugrep_indexer-ugrep-indexer.Po rm -f ./.deps/ugrep_indexer-zopen.Po rm -f Makefile make[1]: Leaving directory '/home/barsnick/Development/ugrep-indexer/src' make[1]: Entering directory '/home/barsnick/Development/ugrep-indexer' test -z "" || rm -f test . = "." || test -z "" || rm -f rm -f config.h stamp-h1 rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags rm -f cscope.out cscope.in.out cscope.po.out cscope.files make[1]: Leaving directory '/home/barsnick/Development/ugrep-indexer' rm -f config.status config.cache config.log configure.lineno config.status.lineno rm -f Makefile [17:36:18 barsnick@moonlight ugrep-indexer]$ cd - /home/barsnick/Development/ugrep-indexer/build [17:36:20 barsnick@moonlight build]$ ../configure --enable-7zip checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a race-free mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether make supports the include directive... yes (GNU style) checking for g++... g++ 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 the compiler supports GNU C++... yes checking whether g++ accepts -g... yes checking for g++ option to enable C++11 features... none needed checking dependency style of g++... gcc3 checking whether g++ supports C++11 features with -std=gnu++11... yes checking for dirent.h that defines DIR... yes checking for library containing opendir... none required checking for struct dirent.d_ino... yes checking for struct dirent.d_type... yes checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking for struct stat.st_atim... yes checking for struct stat.st_mtim... yes checking for struct stat.st_ctim... yes checking for struct stat.st_atimespec... no checking for struct stat.st_mtimespec... no checking for struct stat.st_ctimespec... no checking for size_t... yes checking for ssize_t... yes checking whether the compiler supports GNU C++... (cached) yes checking whether g++ -std=gnu++11 accepts -g... (cached) yes checking for g++ -std=gnu++11 option to enable C++11 features... (cached) none needed checking dependency style of g++ -std=gnu++11... (cached) gcc3 checking for gcc... gcc checking whether the compiler supports GNU C... yes checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... gcc3 checking for ar... ar checking the archiver (ar) interface... ar checking for ranlib... ranlib checking whether ln -s works... yes checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking if zlib is wanted... yes checking for inflateEnd in -lz... yes checking for zlib.h... yes checking if bzlib is wanted... yes checking for BZ2_bzRead in -lbz2... yes checking for bzlib.h... yes checking if lzma is wanted... yes checking for lzma_code in -llzma... yes checking for lzma.h... yes checking if lz4 is wanted... yes checking for LZ4_createStreamDecode in -llz4... yes checking for lz4.h... yes checking if zstd is wanted... yes checking for ZSTD_decompressStream in -lzstd... yes checking for zstd.h... yes checking if brotli is wanted... yes checking for BrotliDecoderCreateInstance in -lbrotlidec... yes checking for brotli/decode.h... yes checking for --disable-7zip... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating lzma/C/Makefile config.status: creating config.h config.status: executing depfiles commands [17:36:26 barsnick@moonlight build]$ make -j6 (CDPATH="${ZSH_VERSION+.}:" && cd .. && /bin/sh '/home/barsnick/Development/ugrep-indexer/missing' autoheader) rm -f stamp-h1 touch ../config.h.in cd . && /bin/sh ./config.status config.h config.status: creating config.h config.status: config.h is unchanged make all-recursive make[1]: Entering directory '/home/barsnick/Development/ugrep-indexer/build' Making all in lzma/C make[2]: Entering directory '/home/barsnick/Development/ugrep-indexer/build/lzma/C' gcc -DHAVE_CONFIG_H -I. -I../../../lzma/C -I../.. -DZ7_PPMD_SUPPORT -DZ7_EXTRACT_ONLY -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -Wall -Wextra -Wunused -O2 -MT libviiz_a-viizip.o -MD -MP -MF .deps/libviiz_a-viizip.Tpo -c -o libviiz_a-viizip.o `test -f 'viizip.c' || echo '../../../lzma/C/'`viizip.c gcc -DHAVE_CONFIG_H -I. -I../../../lzma/C -I../.. -DZ7_PPMD_SUPPORT -DZ7_EXTRACT_ONLY -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -Wall -Wextra -Wunused -O2 -MT libviiz_a-7zAlloc.o -MD -MP -MF .deps/libviiz_a-7zAlloc.Tpo -c -o libviiz_a-7zAlloc.o `test -f '7zAlloc.c' || echo '../../../lzma/C/'`7zAlloc.c gcc -DHAVE_CONFIG_H -I. -I../../../lzma/C -I../.. -DZ7_PPMD_SUPPORT -DZ7_EXTRACT_ONLY -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -Wall -Wextra -Wunused -O2 -MT libviiz_a-7zArcIn.o -MD -MP -MF .deps/libviiz_a-7zArcIn.Tpo -c -o libviiz_a-7zArcIn.o `test -f '7zArcIn.c' || echo '../../../lzma/C/'`7zArcIn.c gcc -DHAVE_CONFIG_H -I. -I../../../lzma/C -I../.. -DZ7_PPMD_SUPPORT -DZ7_EXTRACT_ONLY -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -Wall -Wextra -Wunused -O2 -MT libviiz_a-7zBuf.o -MD -MP -MF .deps/libviiz_a-7zBuf.Tpo -c -o libviiz_a-7zBuf.o `test -f '7zBuf.c' || echo '../../../lzma/C/'`7zBuf.c gcc -DHAVE_CONFIG_H -I. -I../../../lzma/C -I../.. -DZ7_PPMD_SUPPORT -DZ7_EXTRACT_ONLY -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -Wall -Wextra -Wunused -O2 -MT libviiz_a-7zBuf2.o -MD -MP -MF .deps/libviiz_a-7zBuf2.Tpo -c -o libviiz_a-7zBuf2.o `test -f '7zBuf2.c' || echo '../../../lzma/C/'`7zBuf2.c gcc -DHAVE_CONFIG_H -I. -I../../../lzma/C -I../.. -DZ7_PPMD_SUPPORT -DZ7_EXTRACT_ONLY -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -Wall -Wextra -Wunused -O2 -MT libviiz_a-7zCrc.o -MD -MP -MF .deps/libviiz_a-7zCrc.Tpo -c -o libviiz_a-7zCrc.o `test -f '7zCrc.c' || echo '../../../lzma/C/'`7zCrc.c mv -f .deps/libviiz_a-7zAlloc.Tpo .deps/libviiz_a-7zAlloc.Po gcc -DHAVE_CONFIG_H -I. -I../../../lzma/C -I../.. -DZ7_PPMD_SUPPORT -DZ7_EXTRACT_ONLY -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -Wall -Wextra -Wunused -O2 -MT libviiz_a-7zCrcOpt.o -MD -MP -MF .deps/libviiz_a-7zCrcOpt.Tpo -c -o libviiz_a-7zCrcOpt.o `test -f '7zCrcOpt.c' || echo '../../../lzma/C/'`7zCrcOpt.c mv -f .deps/libviiz_a-7zBuf2.Tpo .deps/libviiz_a-7zBuf2.Po gcc -DHAVE_CONFIG_H -I. -I../../../lzma/C -I../.. -DZ7_PPMD_SUPPORT -DZ7_EXTRACT_ONLY -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -Wall -Wextra -Wunused -O2 -MT libviiz_a-7zDec.o -MD -MP -MF .deps/libviiz_a-7zDec.Tpo -c -o libviiz_a-7zDec.o `test -f '7zDec.c' || echo '../../../lzma/C/'`7zDec.c mv -f .deps/libviiz_a-7zBuf.Tpo .deps/libviiz_a-7zBuf.Po gcc -DHAVE_CONFIG_H -I. -I../../../lzma/C -I../.. -DZ7_PPMD_SUPPORT -DZ7_EXTRACT_ONLY -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -Wall -Wextra -Wunused -O2 -MT libviiz_a-7zFile.o -MD -MP -MF .deps/libviiz_a-7zFile.Tpo -c -o libviiz_a-7zFile.o `test -f '7zFile.c' || echo '../../../lzma/C/'`7zFile.c mv -f .deps/libviiz_a-7zCrc.Tpo .deps/libviiz_a-7zCrc.Po gcc -DHAVE_CONFIG_H -I. -I../../../lzma/C -I../.. -DZ7_PPMD_SUPPORT -DZ7_EXTRACT_ONLY -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -Wall -Wextra -Wunused -O2 -MT libviiz_a-7zStream.o -MD -MP -MF .deps/libviiz_a-7zStream.Tpo -c -o libviiz_a-7zStream.o `test -f '7zStream.c' || echo '../../../lzma/C/'`7zStream.c mv -f .deps/libviiz_a-7zCrcOpt.Tpo .deps/libviiz_a-7zCrcOpt.Po gcc -DHAVE_CONFIG_H -I. -I../../../lzma/C -I../.. -DZ7_PPMD_SUPPORT -DZ7_EXTRACT_ONLY -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -Wall -Wextra -Wunused -O2 -MT libviiz_a-Bcj2.o -MD -MP -MF .deps/libviiz_a-Bcj2.Tpo -c -o libviiz_a-Bcj2.o `test -f 'Bcj2.c' || echo '../../../lzma/C/'`Bcj2.c mv -f .deps/libviiz_a-viizip.Tpo .deps/libviiz_a-viizip.Po gcc -DHAVE_CONFIG_H -I. -I../../../lzma/C -I../.. -DZ7_PPMD_SUPPORT -DZ7_EXTRACT_ONLY -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -Wall -Wextra -Wunused -O2 -MT libviiz_a-Bra.o -MD -MP -MF .deps/libviiz_a-Bra.Tpo -c -o libviiz_a-Bra.o `test -f 'Bra.c' || echo '../../../lzma/C/'`Bra.c mv -f .deps/libviiz_a-7zFile.Tpo .deps/libviiz_a-7zFile.Po gcc -DHAVE_CONFIG_H -I. -I../../../lzma/C -I../.. -DZ7_PPMD_SUPPORT -DZ7_EXTRACT_ONLY -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -Wall -Wextra -Wunused -O2 -MT libviiz_a-Bra86.o -MD -MP -MF .deps/libviiz_a-Bra86.Tpo -c -o libviiz_a-Bra86.o `test -f 'Bra86.c' || echo '../../../lzma/C/'`Bra86.c mv -f .deps/libviiz_a-7zStream.Tpo .deps/libviiz_a-7zStream.Po gcc -DHAVE_CONFIG_H -I. -I../../../lzma/C -I../.. -DZ7_PPMD_SUPPORT -DZ7_EXTRACT_ONLY -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -Wall -Wextra -Wunused -O2 -MT libviiz_a-BraIA64.o -MD -MP -MF .deps/libviiz_a-BraIA64.Tpo -c -o libviiz_a-BraIA64.o `test -f 'BraIA64.c' || echo '../../../lzma/C/'`BraIA64.c mv -f .deps/libviiz_a-Bra.Tpo .deps/libviiz_a-Bra.Po gcc -DHAVE_CONFIG_H -I. -I../../../lzma/C -I../.. -DZ7_PPMD_SUPPORT -DZ7_EXTRACT_ONLY -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -Wall -Wextra -Wunused -O2 -MT libviiz_a-CpuArch.o -MD -MP -MF .deps/libviiz_a-CpuArch.Tpo -c -o libviiz_a-CpuArch.o `test -f 'CpuArch.c' || echo '../../../lzma/C/'`CpuArch.c mv -f .deps/libviiz_a-Bcj2.Tpo .deps/libviiz_a-Bcj2.Po gcc -DHAVE_CONFIG_H -I. -I../../../lzma/C -I../.. -DZ7_PPMD_SUPPORT -DZ7_EXTRACT_ONLY -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -Wall -Wextra -Wunused -O2 -MT libviiz_a-Delta.o -MD -MP -MF .deps/libviiz_a-Delta.Tpo -c -o libviiz_a-Delta.o `test -f 'Delta.c' || echo '../../../lzma/C/'`Delta.c mv -f .deps/libviiz_a-BraIA64.Tpo .deps/libviiz_a-BraIA64.Po gcc -DHAVE_CONFIG_H -I. -I../../../lzma/C -I../.. -DZ7_PPMD_SUPPORT -DZ7_EXTRACT_ONLY -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -Wall -Wextra -Wunused -O2 -MT libviiz_a-Lzma2Dec.o -MD -MP -MF .deps/libviiz_a-Lzma2Dec.Tpo -c -o libviiz_a-Lzma2Dec.o `test -f 'Lzma2Dec.c' || echo '../../../lzma/C/'`Lzma2Dec.c mv -f .deps/libviiz_a-7zDec.Tpo .deps/libviiz_a-7zDec.Po gcc -DHAVE_CONFIG_H -I. -I../../../lzma/C -I../.. -DZ7_PPMD_SUPPORT -DZ7_EXTRACT_ONLY -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -Wall -Wextra -Wunused -O2 -MT libviiz_a-LzmaDec.o -MD -MP -MF .deps/libviiz_a-LzmaDec.Tpo -c -o libviiz_a-LzmaDec.o `test -f 'LzmaDec.c' || echo '../../../lzma/C/'`LzmaDec.c mv -f .deps/libviiz_a-Bra86.Tpo .deps/libviiz_a-Bra86.Po gcc -DHAVE_CONFIG_H -I. -I../../../lzma/C -I../.. -DZ7_PPMD_SUPPORT -DZ7_EXTRACT_ONLY -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -Wall -Wextra -Wunused -O2 -MT libviiz_a-Ppmd7.o -MD -MP -MF .deps/libviiz_a-Ppmd7.Tpo -c -o libviiz_a-Ppmd7.o `test -f 'Ppmd7.c' || echo '../../../lzma/C/'`Ppmd7.c mv -f .deps/libviiz_a-CpuArch.Tpo .deps/libviiz_a-CpuArch.Po gcc -DHAVE_CONFIG_H -I. -I../../../lzma/C -I../.. -DZ7_PPMD_SUPPORT -DZ7_EXTRACT_ONLY -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -Wall -Wextra -Wunused -O2 -MT libviiz_a-Ppmd7Dec.o -MD -MP -MF .deps/libviiz_a-Ppmd7Dec.Tpo -c -o libviiz_a-Ppmd7Dec.o `test -f 'Ppmd7Dec.c' || echo '../../../lzma/C/'`Ppmd7Dec.c mv -f .deps/libviiz_a-Delta.Tpo .deps/libviiz_a-Delta.Po mv -f .deps/libviiz_a-Lzma2Dec.Tpo .deps/libviiz_a-Lzma2Dec.Po mv -f .deps/libviiz_a-Ppmd7Dec.Tpo .deps/libviiz_a-Ppmd7Dec.Po mv -f .deps/libviiz_a-7zArcIn.Tpo .deps/libviiz_a-7zArcIn.Po mv -f .deps/libviiz_a-Ppmd7.Tpo .deps/libviiz_a-Ppmd7.Po mv -f .deps/libviiz_a-LzmaDec.Tpo .deps/libviiz_a-LzmaDec.Po rm -f libviiz.a ar cru libviiz.a libviiz_a-viizip.o libviiz_a-7zAlloc.o libviiz_a-7zArcIn.o libviiz_a-7zBuf.o libviiz_a-7zBuf2.o libviiz_a-7zCrc.o libviiz_a-7zCrcOpt.o libviiz_a-7zDec.o libviiz_a-7zFile.o libviiz_a-7zStream.o libviiz_a-Bcj2.o libviiz_a-Bra.o libviiz_a-Bra86.o libviiz_a-BraIA64.o libviiz_a-CpuArch.o libviiz_a-Delta.o libviiz_a-Lzma2Dec.o libviiz_a-LzmaDec.o libviiz_a-Ppmd7.o libviiz_a-Ppmd7Dec.o ranlib libviiz.a make[2]: Leaving directory '/home/barsnick/Development/ugrep-indexer/build/lzma/C' Making all in src make[2]: Entering directory '/home/barsnick/Development/ugrep-indexer/build/src' g++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I../../src -I.. -DPLATFORM=\"x86_64-pc-linux-gnu\" -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -Wall -Wextra -Wunused -O2 -MT ugrep_indexer-ugrep-indexer.o -MD -MP -MF .deps/ugrep_indexer-ugrep-indexer.Tpo -c -o ugrep_indexer-ugrep-indexer.o `test -f 'ugrep-indexer.cpp' || echo '../../src/'`ugrep-indexer.cpp g++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I../../src -I.. -DPLATFORM=\"x86_64-pc-linux-gnu\" -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -Wall -Wextra -Wunused -O2 -MT ugrep_indexer-glob.o -MD -MP -MF .deps/ugrep_indexer-glob.Tpo -c -o ugrep_indexer-glob.o `test -f 'glob.cpp' || echo '../../src/'`glob.cpp g++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I../../src -I.. -DPLATFORM=\"x86_64-pc-linux-gnu\" -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -Wall -Wextra -Wunused -O2 -MT ugrep_indexer-input.o -MD -MP -MF .deps/ugrep_indexer-input.Tpo -c -o ugrep_indexer-input.o `test -f 'input.cpp' || echo '../../src/'`input.cpp gcc -DHAVE_CONFIG_H -I. -I../../src -I.. -DPLATFORM=\"x86_64-pc-linux-gnu\" -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -Wall -Wextra -Wunused -O2 -MT ugrep_indexer-zopen.o -MD -MP -MF .deps/ugrep_indexer-zopen.Tpo -c -o ugrep_indexer-zopen.o `test -f 'zopen.c' || echo '../../src/'`zopen.c mv -f .deps/ugrep_indexer-glob.Tpo .deps/ugrep_indexer-glob.Po In file included from ../../src/ugrep-indexer.cpp:213: ../../src/zstream.hpp:101:10: fatal error: viizip.h: No such file or directory 101 | #include "viizip.h" | ^~~~~~~~~~ compilation terminated. make[2]: *** [Makefile:445: ugrep_indexer-ugrep-indexer.o] Error 1 make[2]: *** Waiting for unfinished jobs.... mv -f .deps/ugrep_indexer-zopen.Tpo .deps/ugrep_indexer-zopen.Po mv -f .deps/ugrep_indexer-input.Tpo .deps/ugrep_indexer-input.Po make[2]: Leaving directory '/home/barsnick/Development/ugrep-indexer/build/src' make[1]: *** [Makefile:456: all-recursive] Error 1 make[1]: Leaving directory '/home/barsnick/Development/ugrep-indexer/build' make: *** [Makefile:356: all] Error 2 [17:39:27 barsnick@moonlight build]$ ```

The system is Fedora 39, gcc 13.2.1.

barsnick commented 9 months ago

Ah, I get it. --enable-7zip ruins the show. It doesn't actually do anything, it even seems to disable.

Funny, if I do --disable-7zip, I still get the viizip.h: No such file or directory. D'uh.

Only omitting any enable/disable option seems to work.

genivia-inc commented 9 months ago

The WITH_NO_7ZIP should be defined in this case. But I see now that EXTRA_CFLAGS set in configure.ac isn't used in src/Makefile.am to compile. That leads to the problem. It is an easy fix.

genivia-inc commented 9 months ago

Committed an update with a fix.