The problem
One of the libraries used today has been updated. After the new version is updated, there will be an error when compiling the Linux-x86-64 version on the server:
/usr/bin/ld: libsdk.a(Imagexxx.cpp.o): unrecognized relocation (0x2a) in section .text
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
Then I tested it on my own computer, and the results compiled.
Based on the relevant information of see on stack overflow:
https://stackoverflow.com/questions/46058050/unable-to-compile-unrecognized-relocation
Most likely the LD version is incorrect
ld version:
GNU ld(GNU Binutils for Ubuntu) 2.26
server ld version:
GNU ld(GNU Binutils for Ubuntu) 2.24
To solve
Have root access
$ sudo apt-get update
$ sudo apt-get install binutils-2.26
export PATH="/usr/lib/binutils-2.26/bin:$PATH"
No root
download source:
https://ftp.gnu.org/gnu/binutils/
tar -zxvf binutils-2.26.tar.gz
cd binutils-2.26
./configure --prefix=/home/xxx/binutils
make
make install
export PATH="/home/xxx/binutils/bin:$PATH"
div>
Read More:
- Lenovo x3650 M5 installation esxi-5.5.0u3 failed to resolve circular relocation
- RuntimeError: Expected hidden[0] size (x, x, x), got(x, x, x)
- Error: internal_relocation (type: OFFSET_IMM) not fixed up
- [Solved] emulator: glteximage2d: got err pre 🙁 0x502 internal 0x1908 format 0x1908 type 0x1401
- HTTP error 404.8 – not found, the request filtering module is configured to reject the path in the URL containing the hiddensegment section
- error: unrecognized argument in option ‘-mabi=apcs-gnu‘
- CLP: error: getaddrinfo enotfound http://x.x.x.x/
- A problem occurred configuring project ‘:x x x‘. > java.lang.NullPointerException (no error message)
- 【PTA:】 Error: class X is public should be declared in a file named X.java
- Error Loading extension section usr_cert
- IAR compilation error [lp011]: Section placement failed
- Apache Groovy——java.lang.NoSuchMethodError: x.x.x: method <init>()V not found
- [-] handler failed to bind to x.x.x.x: Port troubleshooting
- cenos Upgrade g++ gcc(cc1plus: error: unrecognized command line option “-std=c++11”)
- module ‘win32com.gen_py.00020813-0000-0000-C000-000000000046x0x1x9‘ has no attribute ‘CLSIDToClassMa
- 1067 – Invalid default value for ‘sex‘1366 – Incorrect string value: ‘\xE6\x8A\x80\xE6\x9C\xAF…‘ f
- Python implements inserting content in the specified position of text
- Vs code solves the problem that latex does not display references and [?] is displayed in the text
- Could not write JSON: write javaBean error, fastjson version x.x.x, class
- Win10, add sublime text in the right mouse button menu to open