`ARM-NONE-AEBI-G++ -print-sysroot`是空的
If I unpacking the toolchain via
$ arm-none-eabi-g++ --help
...
-print-sysroot Display the target libraries directory.
...
$ arm-none-eabi-g++ -print-sysroot
$ /opt/gcc-arm-none-eabi-10.3-2021.07/bin/../arm-none-eabi
我会得到sysroot路径,但是如果我使用包装管理器,
$ # ubuntu 20.04
$ sudo apt install gcc-arm-none-eabi libnewlib-arm-none-eabi \
libnewlib-dev libstdc++-arm-none-eabi-newlib
$ arm-none-eabi-g++ --help
...
-print-sysroot Display the target libraries directory.
...
$ arm-none-eabi-g++ -print-sysroot
$ # I would expect /usr/lib/gcc/arm-none-eabi, but it's empty
则Sysroot路径为空。
apt install
总是这样吗?有没有办法避免这种情况?
If I unpacking the toolchain via gcc-arm-none-eabi-10.3-2021 and run
$ arm-none-eabi-g++ --help
...
-print-sysroot Display the target libraries directory.
...
$ arm-none-eabi-g++ -print-sysroot
$ /opt/gcc-arm-none-eabi-10.3-2021.07/bin/../arm-none-eabi
I get the sysroot path, but if I use the package manager
$ # ubuntu 20.04
$ sudo apt install gcc-arm-none-eabi libnewlib-arm-none-eabi \
libnewlib-dev libstdc++-arm-none-eabi-newlib
$ arm-none-eabi-g++ --help
...
-print-sysroot Display the target libraries directory.
...
$ arm-none-eabi-g++ -print-sysroot
$ # I would expect /usr/lib/gcc/arm-none-eabi, but it's empty
the sysroot path is empty.
Is this always the case for apt install
? Is there a way to avoid this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论