Linker Error : gcc

后端 未结 2 769
孤独总比滥情好
孤独总比滥情好 2021-01-04 13:45

I am getting this error every time, while compiling programs, configuring and installing
some things like binutils, textinfo, etc..

 /usr/local/bin/ld:         


        
2条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-04 14:14

    If you were attempting to install a version of binutils that should work alike the one found in /usr/bin, you should know that

    • gcc invokes ld with a --sysroot=/ option.
    • ld of binutils built from source with the default options rejects a --sysroot option.
    • A --sysroot option will only be accepted by ld if binutils was configured with option --with-sysroot.

    So, to cover this use-case, configure binutils with option --with-sysroot=/.

提交回复
热议问题