Skip to content

LIEF deps fails to build on PPC64 #62445

Closed as not planned
Closed as not planned

Description

@tjuhaszrh

Version

25.8.2

Platform

fc45.ppc64le ppc64le GNU/Linux

Subsystem

No response

What steps will reproduce the bug?

Standard build

How often does it reproduce? Is there a required condition?

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' ],
}],

What is the expected behavior? Why is that the expected behavior?

Build succeeds.

What do you see instead?

[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_FILE_OFFSET_BITS=64 -DOPENSSL_NO_ENGINE -O3 -fno-ipa-icf -fno-rtti -fno-exceptions -fno-strict-aliasing -std=gnu++20 -std=gnu++17 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -Wpedantic -Wno-expansion-to-defined -Werror=return-type -fno-exceptions -c ../../deps/LIEF/src/PE/utils.cpp -o obj/deps/LIEF/src/PE/liblief.utils.o FAILED: [code=1] obj/deps/LIEF/src/PE/liblief.utils.o

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_FILE_OFFSET_BITS=64 -DOPENSSL_NO_ENGINE -O3 -fno-ipa-icf -fno-rtti -fno-exceptions -fno-strict-aliasing -std=gnu++20 -std=gnu++17 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -Wpedantic -Wno-expansion-to-defined -Werror=return-type -fno-exceptions -c ../../deps/LIEF/src/PE/utils.cpp -o obj/deps/LIEF/src/PE/liblief.utils.o

Assembler messages: {standard input}:177668: Error: operand out of range (0x9208 is not between 0xffffffffffff8000 and 0x7ffc)

Additional information

This issue has been present since version 25.5.0 since LEIF was added.
Build succeeds on any other platform and succeeds if the LEIF is disabled in node.gyp.

Activity

  1. omghante commented on Mar 26, 2026

    @omghante
    Contributor

    @tjuhaszrh What is the current status of this issue, Has it been fixed?

  2. richardlau commented on Mar 26, 2026

    @richardlau
    Member

    I've replicated this in our CI with gcc 12 (RHEL 9). FTR we're currently building Node.js 25 onwards with clang 19, where this doesn't occur.

  3. added
    ppcIssues and PRs related to the Power architecture.
    on Mar 26, 2026
  4. joyeecheung commented on Mar 27, 2026

    @joyeecheung
    Member

    I don’t think SEA is even supported on ppc? It might just need to be disabled there.

  5. github-actions commented on Jul 20, 2026

    @github-actions
    Contributor

    This issue has been marked as stale due to 90 days of inactivity.
    It will be automatically closed in 30 days if no further activity occurs. If this is still relevant, please leave a comment or update it to keep it open.

  6. added
    staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.
    on Jul 20, 2026
  7. github-actions commented on Aug 20, 2026

    @github-actions
    Contributor

    This issue has been automatically closed after 30 days of inactivity following its stale status (no activity for a total of 120 days).
    If this is still relevant, feel free to reopen it or leave a comment with additional details so we can continue the discussion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ppcIssues and PRs related to the Power architecture.staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions