guyuqi commented on PR #961:
URL: https://github.com/apache/bigtop/pull/961#issuecomment-1195274686

   
   The related docker images could be built successfully.
   
   But it failed to build Hadoop against on docker image 
(bigtop/slaves:fedora-36).
   
   x86: 
   ```
   [WARNING] /usr/bin/ld: 
CMakeFiles/oom-listener.dir/main/native/oom-listener/impl/oom_listener.c.o: 
relocation R_X86_64_32ainst `.rodata.str1.1' can not be used when making a PIE 
object; recompile with -fPIE
   [WARNING] /usr/bin/ld: 
CMakeFiles/oom-listener.dir/main/native/oom-listener/impl/oom_listener_main.c.o:
 relocation R_X86_32 against `.rodata.str1.1' can not be used when making a PIE 
object; recompile with -fPIE
   [WARNING] collect2: error: ld returned 1 exit status
   [WARNING] make[2]: *** [CMakeFiles/oom-listener.dir/build.make:113: 
target/usr/local/bin/oom-listener] Error 1
   [WARNING] make[1]: *** [CMakeFiles/Makefile2:226: 
CMakeFiles/oom-listener.dir/all] Error 2
   [WARNING] make[1]: *** Waiting for unfinished jobs....
   ....
   ..
   .
   ```
   
   Arm64:
   ```
   [WARNING] /usr/bin/ld: 
CMakeFiles/oom-listener.dir/main/native/oom-listener/impl/oom_listener_main.c.o:
 relocation R_AARC_ADR_PREL_PG_HI21 against symbol `stderr@@GLIBC_2.17' which 
may bind externally can not be used when making a shared obje recompile with 
-fPIC
   [WARNING] /usr/bin/ld: 
CMakeFiles/oom-listener.dir/main/native/oom-listener/impl/oom_listener_main.c.o(.text+0x70):
 unresable R_AARCH64_ADR_PREL_PG_HI21 relocation against symbol 
`stderr@@GLIBC_2.17'
   [WARNING] /usr/bin/ld: final link failed: bad value
   [WARNING] collect2: error: ld returned 1 exit status
   
   ```
   
   It seems that `CFLAGS="-fPIC"` should be added when building shared object.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to