Build fails on PPC64 due to LIEF configuration.
The issue involves a build failure on PPC64 architecture when LIEF is enabled in node.gyp. The problem is reproducible with gcc 12 but not with clang 19. The fix likely requires adjusting build configurations or dependencies for PPC64 compatibility.
25.8.2
fc45.ppc64le ppc64le GNU/Linux
No response
Standard build
Always when default setup in node.gyp if LIEF settings remain set:
[ 'node_use_lief=="true" and node_shared_lief=="false"', {
'defines': [ 'HAVE_LIEF=1' ],
'dependencies': [ 'deps/LIEF/lief.gyp:liblief' ],
}],
[ 'node_use_lief=="true" and node_shared_lief=="true"', {
'defines': [ 'HAVE_LIEF=1' ],
}],
Build succeeds.
`[2872/3398] g++ -MMD -MF obj/deps/LIEF/src/PE/liblief.utils.o.d -D_GLIBCXX_USE_CXX11_ABI=1 -D_FILE_OFFSET_BITS=64 -DNODE_OPENSSL_CONF_NAME=openssl_conf -DNODE_OPENSSL_CERT_STORE -DOPENSSL_FIPS -DICU_NO_USER_DATA_OVERRIDE -D__STDC_FORMAT_MACROS -DLIEF_STATIC '-DtestttttMBEDTLS_CONFIG_FILE="config/mbedtls/config.h"' -DMBEDTLS_NO_PLATFORM_ENTROPY -DSPDLOG_DISABLE_DEFAULT_LOGGER -DSPDLOG_NO_EXCEPTIONS '-DSPDLOG_FUNCTION=""' -DNDEBUG -I../../deps/LIEF -I../../deps/LIEF/include -I../../deps/LIEF/src -I../../deps/LIEF/third-party/mbedtls/include -I../../deps/LIEF/third-party/mbedtls/library -I../../deps/LIEF/third-party/spdlog/include -I../../deps/LIEF/third-party/frozen/include -I../../deps/LIEF/include/LIEF/third-party -I../../deps/LIEF/include/LIEF/third-party/internal -pthread -Wall -Wextra -Wno-unused-parameter -fPIC -fPIC -m64 -mminimal-toc -O3 -flto=4 -fuse-linker-plugin -ffat-lto-objects -fno-omit-frame-pointer -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -g1 -D_LARGEFILE_SOURCE -D
Claim this issue to let others know you're working on it. You'll earn 20 points when you complete it!