Skip to content

Compile failure on 16.13.2 & 17.4.0 on RHEL8 #41633

@FireBurn

Description

@FireBurn

Version

16.13.2 & 17.4.0

Platform

RHEL8

Subsystem

No response

What steps will reproduce the bug?

Building nodejs on RHEL8

/usr/bin/ld: /apps/was/jenkins/workspace/Compile_GitLab/node-v17.4.0/out/Release/obj.target/test_crypto_engine/test/fixtures/test_crypto_engine.o: relocation R_X86_64_PC32 against symbol `stderr@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
make[1]: *** [test_crypto_engine.target.mk:125: /apps/was/jenkins/workspace/Compile_GitLab/node-v17.4.0/out/Release/obj.target/libtest_crypto_engine.so] Error 1
make[1]: *** Waiting for unfinished jobs....
ar crsT /apps/was/jenkins/workspace/Compile_GitLab/node-v17.4.0/out/Release/obj.target/tools/icu/libicui18n.a @/apps/was/jenkins/workspace/Compile_GitLab/node-v17.4.0/out/Release/obj.target/tools/icu/libicui18n.a.ar-file-list
ar crsT /apps/was/jenkins/workspace/Compile_GitLab/node-v17.4.0/out/Release/obj.target/tools/icu/libicuucx.a @/apps/was/jenkins/workspace/Compile_GitLab/node-v17.4.0/out/Release/obj.target/tools/icu/libicuucx.a.ar-file-list
ar crsT /apps/was/jenkins/workspace/Compile_GitLab/node-v17.4.0/out/Release/obj.target/deps/openssl/libopenssl.a @/apps/was/jenkins/workspace/Compile_GitLab/node-v17.4.0/out/Release/obj.target/deps/openssl/libopenssl.a.ar-file-list
rm 543516193a908c04f2824127f631a1a630a35199.intermediate
make: *** [Makefile:113: node] Error 2
Build step 'Execute shell' marked build as failure
Finished: FAILURE

This happens with v16.13.2 but doesn't happen with v16.13.0

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

No response

What is the expected behavior?

No response

What do you see instead?

Compile failure

Additional information

Configured with

export CFLAGS="-O3 -march=haswell -fPIE -fstack-protector-all -D_FORTIFY_SOURCE=2"
export CXXFLAGS=${CFLAGS}
export LDFLAGS="-Wl,-z,now -Wl,-z,relro"

BUILDTYPE=Release ./configure --shared-zlib

gcc version 8.5.0 20210514
GNU ld version 2.30-108.el8_5.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildIssues and PRs related to build files or the CI.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions