Unable to compile: unrecognized relocation

前端 未结 3 1377
太阳男子
太阳男子 2021-02-14 11:28

I\'m unable to compile anything in my linux pc. I have no idea why, probably I\'ve installed some package and made a mess. I\'ve uninstalled and reinstalled gcc and other packag

3条回答
  •  南方客
    南方客 (楼主)
    2021-02-14 12:28

    I've found this in another post:

    [...which when compiled brings this error:

    /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-
    gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-
    gnu/6.4.0/../../../../lib64/Scrt1.o: unrecognized relocation (0x2a) in 
    section `.text'
    

    After trying a lot of things out, including emerging binaries from a different Gentoo system, I finally reverted, and got the problem solved thanks to optiz0r (for solving my issue) and Ryuno-Ki[m] (for letting me know about optiz0rs reply when I had logged off).

    sudo binutils-config x86_64-pc-linux-gnu-2.29.1
    

    Very simple! The solution to your problem may differ, but running

    sudo binutils-config -l
    

    may reveal the version you can enter instead of the version I used...] by necrophcodr » Tue Feb 06, 2018 21:24 on https://forum.sabayon.org/viewtopic.php?f=57&t=34076&p=181260#p181260

    It worked for me.

提交回复
热议问题