Closed timotheecour closed 4 years ago
Do you have cmake? If not, libarchive is being built with configure and I think I'm missing the bzlib include dir in the prebuild.
Please try the issue9 branch to see if it fixes this issue.
PTAL @timotheecour
after git clone https://github.com/genotrance/nimarchive cd nimarchive git checkout issue9 nimble develop nimble install -y choosenim
i still get error, see below. you can reproduce by trying to do this on a fresh ubuntu VM (eg, free tier on AWS)
... Hint: paths [Processing]
... Hint: types [Processing]
... Hint: time_t [Processing]
... Hint: bzlib [Processing]
... # Resetting /home/timothee/.cache/nim/nimterop/nimarchive/bzip2
... # Including library /home/timothee/.cache/nim/nimterop/nimarchive/bzip2/libbz2.a
... Hint: lzma [Processing]
... # Including library /home/timothee/.cache/nim/nimterop/nimarchive/liblzma/src/liblzma/.libs/liblzma.a
... Hint: zlib [Processing]
... # Including library /home/timothee/.cache/nim/nimterop/nimarchive/zlib/libz.a
... # Running make -j 2
... # Path: /home/timothee/.cache/nim/nimterop/nimarchive/libarchive
... stack trace: (most recent call last)
... build.nim(1032, 23)
... build.nim(802, 9) buildLibrary
... build.nim(619, 18) make
... build.nim(105, 11) execAction
... assertions.nim(29, 26) failedAssertImpl
... assertions.nim(22, 11) raiseAssert
... fatal.nim(55, 5) sysFatal
... /home/timothee/git_clone/nimarchive/nimarchive/archive.nim(84, 10) template/generic instantiation of `getHeader` from here
... /home/timothee/git_clone/Nim/lib/system/fatal.nim(55, 5) Error: unhandled exception: build.nim(105, 16) `false` Command failed: 2
... cmd: cd /home/timothee/.cache/nim/nimterop/nimarchive/libarchive && make -j 2
... result:
... make all-am
... make[1]: Entering directory '/home/timothee/.cache/nim/nimterop/nimarchive/libarchive'
... CC libarchive/archive_read_support_filter_bzip2.lo
... CC libarchive/archive_read_support_format_7zip.lo
... libarchive/archive_read_support_format_7zip.c:36:19: fatal error: bzlib.h: No such file or directory
... compilation terminated.
... Makefile:6561: recipe for target 'libarchive/archive_read_support_format_7zip.lo' failed
... make[1]: *** [libarchive/archive_read_support_format_7zip.lo] Error 1
... make[1]: *** Waiting for unfinished jobs....
... libarchive/archive_read_support_filter_bzip2.c:44:19: fatal error: bzlib.h: No such file or directory
... compilation terminated.
... Makefile:6561: recipe for target 'libarchive/archive_read_support_filter_bzip2.lo' failed
... make[1]: *** [libarchive/archive_read_support_filter_bzip2.lo] Error 1
... make[1]: Leaving directory '/home/timothee/.cache/nim/nimterop/nimarchive/libarchive'
... Makefile:3773: recipe for target 'all' failed
... make: *** [all] Error 2 [AssertionError]
(transferred over from https://github.com/dom96/choosenim/issues/185)
/cc @genotrance I'm getting a different error than I had in https://github.com/dom96/choosenim/issues/177 now (on ubuntu) nimble install nimterop # works
nimble install choosenim # fails