r-lib/nanoparquet

miniz causes rchk to abort

Opened this issue · 0 comments

If I keep miniz.o, I'll get this with rchk:

Running bcheck
/opt/R/devel-rchk/bin/rchk.sh: line 83:  3269 Aborted                 $RCHK/src/$T $RBC $F > $FOUT 2>&1
==== rchk bcheck =========================================
ERROR: too many states (abstraction error?) in function strptime_internal
ERROR: too many states (abstraction error?) in function bcEval_loop
ERROR: too many states (abstraction error?) in function StringValue
ERROR: too many states (abstraction error?) in function RunGenCollect
bcheck: /usr/lib/llvm-14/include/llvm/Support/Casting.h:269: typename llvm::cast_retty<X, Y*>::ret_type llvm::cast(Y*) [with X = llvm::LoadInst; Y = llvm::Value; typename llvm::cast_retty<X, Y*>::ret_type = llvm::LoadInst*]: Assertion `isa<X>(Val) && "cast<Ty>() argument of incompatible type!"' failed.
------------------------------------------------------

Removing miniz.o fixes this. Maybe we could do this automatically, from configure. miniz and the other third party libraries are not needed for rchk, anyway.