Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

toolchain-gccarmnoneeabi version 1.120201.221222 triggers Blocked insecure item errors #4741

Closed
ellensp opened this issue Sep 7, 2023 · 8 comments
Labels
bug registry PlatformIO Registry

Comments

@ellensp
Copy link

ellensp commented Sep 7, 2023

Configuration

Seen on Ubuntu and Mac

PlatformIO Core, version 6.1.11

Description of problem

Latest https://registry.platformio.org/tools/platformio/toolchain-gccarmnoneeabi version 1.120201.221222 will not fully install
correctly

Installing this package triggers "Blocked insecure item" errors from

https://github.com/platformio/platformio-core/blob/develop/platformio/package/unpack.py#L84-L98

The archive seems to be damaged in some way.

Actual Results

Expected Results

No Blocked insecure item errors.

Additional info

This was noticed by Marlin firmware user, code and platformio ini files are huge, and not really relevant to this issue.

@maxgerhardt
Copy link
Contributor

maxgerhardt commented Sep 18, 2023

FYI this was added in 2388b2a almost 4 years ago per #2995. I think the toolchains come from the GNU ARM download directly.

@ivankravets
Copy link
Member

We have just removed the broken 1.120201.221222 version. Please try the recently published 1.120301.0

@ellensp
Copy link
Author

ellensp commented Sep 22, 2023

Issue is still present with 1.120301.0

@maxgerhardt
Copy link
Contributor

No, it does work with the new package on my machine.

$ pio pkg install -g -t "[email protected]"
Tool Manager: Installing toolchain-gccarmnoneeabi @ 1.120301.0
Downloading  [####################################]  100%          
Unpacking  [####################################]  100%          
Tool Manager: [email protected] has been installed!
$ pio system info
--------------------------  --------------------------------------------
PlatformIO Core             6.1.11
Python                      3.11.4-final.0
System Type                 linux_x86_64
Platform                    Linux-6.2.0-32-generic-x86_64-with-glibc2.37

@ellensp
Copy link
Author

ellensp commented Sep 22, 2023

secondary linking warnings that I thought stemmed from this issue are still present. These threw me

This issue is resolved.

@maxgerhardt
Copy link
Contributor

Linking warnings? In Arduino-Pico we also noticed we need build_flags = -Wl,--no-warn-rwx-segments to supress a supurious warning.

@ellensp
Copy link
Author

ellensp commented Sep 22, 2023

well getting off topic here but...

Getting these linker warnings

platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/12.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp/libc_nano.a(libc_a-closer.o): in function `_close_r':
warning: _close is not implemented and will always fail)

also these
warning: _fstat is not implemented and will always fail
warning: _getpid is not implemented and will always fail
warning: _isatty is not implemented and will always fail
warning: _kill is not implemented and will always fail
warning: _lseek is not implemented and will always fail
warning: _read is not implemented and will always fail
warning: _write is not implemented and will always fail

If I revert toolchain-gccarmnoneeabi to the older release
pio pkg uninstall -g -t "[email protected]"
pio pkg install -g -t "[email protected]"

The warnings are not present

@ivankravets
Copy link
Member

@ellensp , what is your development platform?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug registry PlatformIO Registry
Projects
None yet
Development

No branches or pull requests

3 participants