[Nexus 5 Original Android Development] DroidFreak32:
Thanks for the update [MENTION=7268092]z3DD3r[/MENTION]

You may have missed including the parted binary:

hammerhead:/ # hh_repart -d
Dumping info about partitions...
/sbin/hh_repart[167]: parted: not found

Just a heads up, with the latest merged commits in android-9.0 TWRP fails to build with this flag:

TW_CRYPTO_USE_SYSTEM_VOLD := qseecomd hwservicemanager servicemanager keymaster-3-0

This is the specific commit that broke the build:

https://gerrit.twrp.me/c/android_bootable_recovery/+/2226

[ 0% 14/3984] target thumb C++: libvolddecrypt <= bootable/recovery/crypto/vold_decrypt/vold_decrypt.cpp
FAILED: /home/horcrux/twrp/out/target/product/hammerhead/obj/STATIC_LIBRARIES/libvolddecrypt_intermediates/vold_decrypt.o
/bin/bash -c "PWD=/proc/self/cwd /usr/local/bin/ccache prebuilts/clang/host/linux-x86/clang-4691093/bin/clang++ -I bootable/recovery/crypto/vold_decrypt -I /home/horcrux/twrp/out/target/product/hammerhead/obj/STATIC_LIBRARIES/libvolddecrypt_intermediates -I /home/horcrux/twrp/out/target/product/hammerhead/gen/STATIC_LIBRARIES/libvolddecrypt_intermediates -I libnativehelper/include_jni \$(cat /home/horcrux/twrp/out/target/product/hammerhead/obj/STATIC_LIBRARIES/libvolddecrypt_intermediates/import_includes) -I system/core/include -I system/media/audio/include -I hardware/libhardware/include -I hardware/libhardware_legacy/include -I libnativehelper/include -I frameworks/native/include -I frameworks/native/opengl/include -I frameworks/av/include -isystem /home/horcrux/twrp/out/target/product/hammerhead/obj/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-arm -isystem bionic/libc/kernel/android/scsi -isystem bionic/libc/kernel/android/uapi -c -fomit-frame-pointer -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -no-canonical-prefixes -DNDEBUG -UDEBUG -fno-exceptions -Wno-multichar -O2 -g -fno-strict-aliasing -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-expansion-to-defined -Wno-zero-as-null-pointer-constant -fdebug-prefix-map=\$PWD/= -ffunction-sections -fdata-sections -fno-short-enums -funwind-tables -fstack-protector-strong -Wa,--noexecstack -D_FORTIFY_SOURCE=2 -Wstrict-aliasing=2 -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=date-time -Werror=format-security -nostdlibinc -msoft-float -march=armv7-a -mfloat-abi=softfp -mfpu=neon -mcpu=krait -mfpu=neon-vfpv4 -D__ARM_FEATURE_LPAE=1 -target arm-linux-androideabi -Bprebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin -Wsign-promo -Wno-inconsistent-missing-override -Wno-null-dereference -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -Wno-thread-safety-negative -Wno-gnu-include-next -fvisibility-inlines-hidden -std=gnu++14 -mthumb -Os -fno-rtti -Wall -Werror -Wall -DTW_CRYPTO_SYSTEM_VOLD_SERVICES='"qseecomd hwservicemanager servicemanager keymaster-3-0"' -DTW_CRYPTO_SYSTEM_VOLD_MOUNT='"firmware persist"' -DTW_CRYPTO_SYSTEM_VOLD_DEBUG -DTW_INCLUDE_LIBRESETPROP -fPIC -D_USING_LIBCXX -DANDROID_STRICT -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -Wno-tautological-constant-compare -Wno-null-pointer-arithmetic -Wno-enum-compare -Wno-enum-compare-switch -MD -MF /home/horcrux/twrp/out/target/product/hammerhead/obj/STATIC_LIBRARIES/libvolddecrypt_intermediates/vold_decrypt.d -o /home/horcrux/twrp/out/target/product/hammerhead/obj/STATIC_LIBRARIES/libvolddecrypt_intermediates/vold_decrypt.o bootable/recovery/crypto/vold_decrypt/vold_decrypt.cpp"
In file included from bootable/recovery/crypto/vold_decrypt/vold_decrypt.cpp:43:
bootable/recovery/crypto/vold_decrypt/../../partitions.hpp:29:10: fatal error: 'ext4crypt_tar.h' file not found
#include "ext4crypt_tar.h"
^~~~~~~~~~~~~~~~~
1 error generated.