-
Notifications
You must be signed in to change notification settings - Fork 909
system/rand/rand.c doesn't cross-compile on x64 Ubuntu #520
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
Comments
what version of arm-none-eabi-gcc are you using; it should have PRIx64 in inttypes.h |
|
@kilograham I just tested this in an Ubuntu 24.04 Docker image, and I was able to reproduce this by trying to build the apt update
apt install build-essential git cmake ninja-build gcc-arm-none-eabi python3
git clone --depth 1 -b develop https://github.com/raspberrypi/pico-sdk.git
git clone --depth 1 -b develop https://github.com/raspberrypi/pico-examples.git
cd pico-sdk
mkdir build
cd build
cmake .. -DPICO_EXAMPLES_PATH=../../pico-examples
make and the build failed with:
If I perform the exact same steps inside an Ubuntu 22.04 Docker image (where |
seems like a compiler/newlib version bug - it has happened in the past I have fixed with a workaround |
I'm unable to compile
system/rand/rand.c
on Ubuntu 24.04, x86_64, because the build uses the newlib version ofinttypes.h
, which does not definePRIx64
(The compiler unhelpfully suggests includinginttypes.h
, because the native version in/usr/include
does define this.)The text was updated successfully, but these errors were encountered: