This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: "incompatible target" when trying Gold linker for arm-none-eabi


Hallo Cary:

Many thanks for your answer.

I am using the GCC driver, but "-Wl,-t" did not make any difference in the output. However, I just noticed the following messages after all other errors:


/home/rdiez/GsShared/Toolchains/ToolchainSet-2017-06-01-2/Toolchain-cortex-m4f-bin/lib/gcc/arm-none-eabi/6.3.0/../../../../arm-none-eabi/bin/ld.gold: error: cannot find -lugin

/home/rdiez/GsShared/Toolchains/ToolchainSet-2017-06-01-2/Toolchain-cortex-m4f-bin/libexec/gcc/arm-none-eabi/6.3.0/liblto_plugin.so

/home/rdiez/GsShared/Toolchains/ToolchainSet-2017-06-01-2/Toolchain-cortex-m4f-bin/lib/gcc/arm-none-eabi/6.3.0/../../../../arm-none-eabi/bin/ld.gold: error: cannot find -lugin-opt=/home/rdiez/GsShared/Toolchains/ToolchainSet-2017-06-01-2/Toolchain-cortex-m4f-bin/libexec/gcc/arm-none-eabi/6.3.0/lto-wrapper

/home/rdiez/GsShared/Toolchains/ToolchainSet-2017-06-01-2/Toolchain-cortex-m4f-bin/lib/gcc/arm-none-eabi/6.3.0/../../../../arm-none-eabi/bin/ld.gold: error: cannot find -lugin-opt=-fresolution=/tmp/cc8ZO07Q.res

/home/rdiez/GsShared/Toolchains/ToolchainSet-2017-06-01-2/Toolchain-cortex-m4f-bin/lib/gcc/arm-none-eabi/6.3.0/../../../../arm-none-eabi/bin/ld.gold: error: cannot find -lugin-opt=-pass-through=-lgcc

/home/rdiez/GsShared/Toolchains/ToolchainSet-2017-06-01-2/Toolchain-cortex-m4f-bin/lib/gcc/arm-none-eabi/6.3.0/../../../../arm-none-eabi/bin/ld.gold: error: cannot find -lugin-opt=-pass-through=-lg

/home/rdiez/GsShared/Toolchains/ToolchainSet-2017-06-01-2/Toolchain-cortex-m4f-bin/lib/gcc/arm-none-eabi/6.3.0/../../../../arm-none-eabi/bin/ld.gold: error: cannot find -lugin-opt=-pass-through=-lc

/home/rdiez/GsShared/Toolchains/ToolchainSet-2017-06-01-2/Toolchain-cortex-m4f-bin/lib/gcc/arm-none-eabi/6.3.0/../../../../arm-none-eabi/bin/ld.gold: internal error in set_address, at /home/rdiez/GsShared/Toolchains/ToolchainSet-2017-06-01-2/Toolchain-cortex-m4f-build/binutils-2.28/gold/output.h:322

I realised I was not building Gold with plug-in support, so I am doing it now. Maybe that would fix the other errors too.

I came across someone else with this problem, so I am not the only one hitting this issue:

https://stackoverflow.com/questions/23754665/gold-linker-ld-gold-plugin-unknown-option

I think Gold should always accept options -plugin , --plugin , or whatever it can take. If it has not been built with plug-in support, then it should print an error message that says exactly that. This way, other users will not waste their precious time too anymore. 8-)

Is this right? Should I file a bug somewhere about this?
Best regards,
  rdiez


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]