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

New toolchain breaks <iostream> #185

Closed
sylque opened this issue Nov 23, 2023 · 1 comment
Closed

New toolchain breaks <iostream> #185

sylque opened this issue Nov 23, 2023 · 1 comment

Comments

@sylque
Copy link

sylque commented Nov 23, 2023

After upgrading from [email protected] to [email protected], the following code doesn't work anymore:

#include <Arduino.h>
#include <iostream>

void setup() {}

void loop() {}
Linking .pio\build\debug\firmware.elf
c:/users/xxx/.platformio/packages/[email protected]/bin/../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/bin/ld.exe: c:/users/xxx/.platformio/packages/[email protected]/bin/../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/lib\libstdc++_nano.a(locale_init.o): in function `(anonymous namespace)::get_locale_mutex()':
(.text._ZN12_GLOBAL__N_116get_locale_mutexEv+0xc): undefined reference to `__sync_synchronize'
c:/users/xxx/.platformio/packages/[email protected]/bin/../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/bin/ld.exe: c:/users/xxx/.platformio/packages/[email protected]/bin/../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/lib\libstdc++_nano.a(locale.o): in function `std::locale::_Impl::_M_install_cache(std::locale::facet const*, unsigned int)':
(.text._ZNSt6locale5_Impl16_M_install_cacheEPKNS_5facetEj+0x18): undefined reference to `__sync_synchronize'
collect2.exe: error: ld returned 1 exit status
*** [.pio\build\debug\firmware.elf] Error 1

(issue initially reported here)

@valeros
Copy link
Member

valeros commented Nov 24, 2023

Thanks for reporting, the toolchain package has been downgraded to GCC v7.

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

No branches or pull requests

2 participants