Open stertingen opened 4 years ago
Hi @stertingen ! What is your OS ?
Hi @stertingen ! What is your OS ?
Up-to-date Arch linux; PlatformIO installed via AUR. (https://aur.archlinux.org/packages/platformio)
And the architecture? x64? ARM? BTW, is there a reason why you need 5.4.1?
And the arhitecture? x64? ARM? BTW, is there a reason why you need 5.4.1?
It's x86_64.
GCC 5.4.1 is convention in a student robotics group due to compiler bugs in later versions. While evaluating whether PlatformIO might be a good choice for embedded development, I stumbled upon this bug.
And since PlatformIO ships GCC 5.4.1, this package should not produce any errors.
Can you tell me who maintains the GCC package for PlatformIO? I'd also like to file a bug report there.
This package is maintained internally, so there is no repository for it. Also, there are no guarantees that this package is compatible with ststm32
since it's meant to be used only with the teensy
platform and for some reason arm-none-eabi-ar
is replaced with arm-none-eabi-gcc-ar
.
This package is maintained internally, so there is no repository for it.
Alright, so the chances that this will be fixed are low.
for some reason
arm-none-eabi-ar
is replaced witharm-none-eabi-gcc-ar
.
No, it's not replaced. arm-none-eabi-gcc-ar
is always there in the bin
directory. It's just arm-none-eabi-ar
that's missing. In version 6.3.1, it's a symlink to ../arm-none-eabi/ar
, in version 5.4.1, the symlink does not exist, but the file it would point to.
My
platformio.ini:
Build log:
The reason why this fails is quite easy: The package
toolchain-gccarmnoneeabi
is missing some symlinks in version1.50401.190816
which happen to exist in newer versions.ls -ll ~/.platformio/packages/toolchain-gccarmnoneeabi@1.60301.0/bin
lists the directory with correct symlinks forarm-none-eabi-ar
:ls -ll ~/.platformio/packages/toolchain-gccarmnoneeabi@1.50401.190816/bin
only lists some binaries,arm-none-eabi-ar
is missing, which explains the error in above build log:https://docs.platformio.org/en/latest/platforms/ststm32.html#packages links the launchpad repository for the ARM GCC, which links to https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm/downloads, where I downloaded the GCC 5.4.1 by myself; I installed the toolchain to
/opt
.ls -ll /opt/gcc-arm-none-eabi-5_4-2016q2/bin
lists the directory with a binary namedarm-none-eabi-ar
:So I guess the package delivered as
toolchain-gccarmnoneeabi
for version~1.50401.0
is broken.Does anyone know where the toolchain package is generated for PlatformIO?