工具与软件:
用于 AM335x 的 TI-SDK9
WSL2/Ubuntu 22.04.4 LTS
我正在将一个项目从 AM335x SDK7移植到当前 SDK9n、并且交叉链接器找不到插件库 liblto_plugin.so。 它位于 external-toolchain-dir/arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-linux-gnueabihf/libexec/gcc/arm-none-linux-gnueabihf/11.3.1/liblto_plugin.so。 如何告诉 arm-none-linux-gnueabihf-gcc 在何处查找此文件? 使用-L"/full/path/to/liblto_plugin.so 不起作用。 是否有其他标志指示链接器在何处查找插件库?
`是` echo | arm-none-linux-gnueabihf-gcc -v -x c -E -`的输出、其中显示了` arm-none-linux-gnueabihf-gcc 的默认位置 :
安全连接。
collect_gcc=arm-none-linux-gnueabihf-gcc
目标:arm-none-linux-gnueabihf
gcc/configure src --target=arm-none-linux-gnueabihf -前缀=--with-sysroot=/arm-none-linux-gnueabihf/libc /data/jenkins/workspace/GNU-toolchain/arm-11/build-arm-none-linux-gnueabihf/install /data/jenkins/workspace/GNU-toolchain/arm-11/build-arm-none-linux-gnueabihf/host-tools --with-build-sysroot=web//data/jenkins/workspace/GNU-toolchain/arm-11 /arm-none-linux-gnueabihf/libc /data/jenkins/workspace/GNU-toolchain/arm-11/build-arm-none-linux-gnueabihf/host-tools /data/jenkins/workspace/GNU-toolchain/arm-11/build-arm-none-linux-gnueabihf/host-tools --with-bugurl=bugs.linaro.org/--enable-gnu-indirial-function--enable-shared--disable-libslip /data/jenkins/workspace/GNU-toolchain/arm-11/build-arm-none-linux-gnueabihf/host-tools
线程模型:POSIX
支持的 LTO 压缩算法:zlib
GCC 版本11.3.1 20220712 (Arm GNU 工具链11.3.Rel1)
collect_gcc_options='-v''-e''-mfloat-abi=hard''-mfpu=none''-mtls-dialect=gnu''-mthumb''-mlibarch=armv7-a+SIMD ''-March=armv7-a+SIMD '
/home/user/gen2_toolchain-sdk9/arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-linux-gnueabihf/bin/../libexec/gcc/arm-none-linux-gnueabihf/11.3.1/cc1 -E -quiet -v -iprefix /home/user/gen2_toolchain-sdk9/arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-linux-gnueabihf/bin/../lib/gcc/arm-none-linux-gnueabihf/11.3.1 -isysroot /home/user/gen2_toolchain-sdk9/arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-linux-gnueabihf/bin/../arm-none-linux-gnueabihf/libc --mfloat-abi=hard -mfpu=neon -mtls-dialect=GNU -mthumb -mlibarch=armv7-A+SIMD -March=armv7-A+SIMD -dumpbase -
#include "..."搜索从此处开始:
#include <...>从此处开始搜索:
/home/user/gen2_toolchain-sdk9/arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-linux-gnueabihf/bin/../lib/gcc/arm-none-linux-gnueabihf/11.3.1/include
/home/user/gen2_toolchain-sdk9/arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-linux-gnueabihf/bin/../lib/gcc/arm-none-linux-gnueabihf/11.3.1/include-fixed
/home/user/gen2_toolchain-sdk9/arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-linux-gnueabihf/bin/../lib/gcc/arm-none-linux-gnueabihf/11.3.1/../../../../arm-none-linux-gnueabihf/include
/home/user/gen2_toolchain-sdk9/arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-linux-gnueabihf/bin/../arm-none-linux-gnueabihf/libc/usr/include
搜索列表结束。
# 0" "
# 0" "
# 0" "
# 1 "/home/user/gen2_toolchain-sdk9/arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/stdc-predef.h 1 3 4.
# 0" "2.
# 1" "
Compiler_path=/home/user/gen2_toolchain-sdk9/arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-linux-gnueabihf/bin/../libexec/gcc/arm-none-linux-gnueabihf/11.3.1:/home/gg/gen2_toolchain-sdk9/arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-linux-gnueabihf/bin/../libexec/gcc:/home/user/gen2_toolchain-sdk9/arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-linux-gnueabihf/bin/../lib/gcc/arm-none-linux-gnueabihf/11.3.1/../../../../arm-none-linux-gnueabihf/bin
library_path=/home/user/gen2_toolchain-sdk9/arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-linux-gnueabihf/bin/../lib/gcc/arm-none-linux-gnueabihf/11.3.1:/home/user/gen2_toolchain-sdk9/arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-linux-gnueabihf/bin/../lib/gcc /:/home/user/gen2_toolchain-sdk9/arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-linux-gnueabihf/bin/../lib/gcc/arm-none-linux-gnueabihf/11.3.1/../../../../arm-none-linux-gnueabihf/lib:/home/user/gen2_toolchain-sdk9/arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-linux-gnueabihf/bin/../arm-none-linux-gnueabihf/libc/lib:/home/user/gen2_toolchain-sdk9/arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-linux-gnueabihf/bin/../arm-none-linux-gnueabihf/libc/usr/lib
collect_gcc_options='-v''-e''-mfloat-abi=hard''-mfpu=none''-mtls-dialect=gnu''-mthumb''-mlibarch=armv7-a+SIMD ''-March=armv7-a+SIMD '