Bug 1597446 - YARN server nodemanager native lib fails to build
Summary: YARN server nodemanager native lib fails to build
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: hadoop
Version: 31
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Christopher Tubbs
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-07-02 23:40 UTC by Mike Miller
Modified: 2019-09-22 11:30 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-09-22 11:30:13 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Mike Miller 2018-07-02 23:40:26 UTC
Description of problem: Saw the following error:
     [exec] /usr/bin/ld: CMakeFiles/test-container-executor.dir/main/native/container-executor/test/test-container-executor.c.o: relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
     [exec] /usr/bin/ld: libcontainer.a(configuration.c.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
     [exec] /usr/bin/ld: libcontainer.a(container-executor.c.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
     [exec] /usr/bin/ld: final link failed: Nonrepresentable section on output
     [exec] collect2: error: ld returned 1 exit status
     [exec] make[2]: *** [CMakeFiles/test-container-executor.dir/build.make:85: target/usr/local/bin/test-container-executor] Error 1
     [exec] make[1]: *** [CMakeFiles/Makefile2:105: CMakeFiles/test-container-executor.dir/all] Error 2
     [exec] make: *** [Makefile:84: all] Error 2

in hadoop-2.7.6-src/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/target/native

Removed the antrun-plugin in hadoop.spec to prevent building the native libarary in the latest build.

Comment 1 Christopher Tubbs 2018-07-03 04:58:45 UTC
It looks like the static library libcontainer.a is being linked into the executables: test-container-executor and container-executor. Because the compiler specs in /usr/lib/rpm/redhat/redhat-hardened-cc1 set -fPIE as, I wonder if that requires libcontainer.a to have been compiled with -fPIC.

Comment 2 Christopher Tubbs 2018-07-06 00:25:28 UTC
Patch fixed the problem on most architectures, but I'm reverting it because it broke s390x and armv7hl for some other reason.

Comment 3 Ben Cotton 2019-05-02 19:21:45 UTC
This message is a reminder that Fedora 28 is nearing its end of life.
On 2019-May-28 Fedora will stop maintaining and issuing updates for
Fedora 28. It is Fedora's policy to close all bug reports from releases
that are no longer maintained. At that time this bug will be closed as
EOL if it remains open with a Fedora 'version' of '28'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 28 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 4 Ben Cotton 2019-05-02 21:28:55 UTC
This message is a reminder that Fedora 28 is nearing its end of life.
On 2019-May-28 Fedora will stop maintaining and issuing updates for
Fedora 28. It is Fedora's policy to close all bug reports from releases
that are no longer maintained. At that time this bug will be closed as
EOL if it remains open with a Fedora 'version' of '28'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 28 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 5 Ben Cotton 2019-08-13 16:52:16 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to '31'.

Comment 6 Ben Cotton 2019-08-13 19:21:32 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to 31.

Comment 7 Miro Hrončok 2019-09-22 11:30:13 UTC
Automation has figured out the package is retired in Fedora 31.

If you like it to be unretired, please open a ticket at https://pagure.io/releng/new_issue?template=package_unretirement


Note You need to log in before you can comment on or make changes to this bug.