PROS not building Hot/Cold

My code builds fine when I have USE_PACKAGE:=0 in the Makefile, but when I change it to USE_PACKAGE:=1, I get this error when building:

make: *** [common.mk:229: bin/cold.package.elf] Error 1
Creating cold package with ARMS,libc,libm,libpros,okapilib [ERRORS]
/usr/lib/gcc/arm-none-eabi/11.2.0/../../../../arm-none-eabi/bin/ld: /usr/lib/gcc/arm-none-eabi/11.2.0/../../../../arm-none-eabi/lib/thumb/v7+fp/softfp/libstdc++.a(thread.o): in function `std::this_thread::__sleep_for(std::chrono::duration<long long, std::ratio<1ll, 1ll> >, std::chrono::duration<long long, std::ratio<1ll, 1000000000ll> >)':
/build/arm-none-eabi-gcc/src/gcc-11.2.0/libstdc++-v3/src/c++11/thread.cc:238: undefined reference to `sleep'
/usr/lib/gcc/arm-none-eabi/11.2.0/../../../../arm-none-eabi/bin/ld: /build/arm-none-eabi-gcc/src/gcc-11.2.0/libstdc++-v3/src/c++11/thread.cc:228: undefined reference to `usleep'
ERROR - pros.cli.build:make - Failed to make project: Exit Code 2
Error: Failed to build
collect2: error: ld returned 1 exit status

I am running pros-cli v3.2.2 and pros v3.5.2 on Arch Linux with the arm-none-eabi-gcc and arm-none-eabi-newlib packages.

Try downgrading your toolchain to 2020 Q2, we are aware of this issue and hopefully it will be fixed soon.

4 Likes

It works! Thank you so much!