-
Notifications
You must be signed in to change notification settings - Fork 929
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
Fix missing headers leading to #include failing when pulling in hardware_irq and pico_bootrom #1956
base: develop
Are you sure you want to change the base?
Conversation
Replace `pico_runtime_init` by `pico_runtime_init_headers` From discussion on PR raspberrypi#1956 (raspberrypi#1956 (comment))
/usr/lib/gcc/arm-none-eabi/12.2.1/../../../arm-none-eabi/bin/ld: cannot find -lboot_bootrom_headers: No such file or directory I used your changes and could remove error in compilation but at the time of linking I had the same error |
I'm not able to reproduce the linking error. This looks like the CMake definition of Are you (@jaymin1328) calling |
You'll get this if the sdk doesn't know about boot_bootrom_headers, which would indicate you're not using the latest sdk. |
@peterharperuk I am using SDK git tag
|
Have you deleted your build folder? |
Yes! What I did was setup a RaspberryPi5 with pico_setup.sh and git clone my code and trying to compile @aabizri This is my cmakelist.txt
|
@aabizri Here is the full code . I am trying to build |
@jaymin1328 Make sure you have these two commits (the fix for this defect) in pico-sdk. Your code builds for me. bc8ded18 (HEAD -> fix-missing-interface-links) Adjust targets being included |
Thanks a lot for the help @peterharperuk !
can you send me the links of the commits like this one ? |
Error still persists ... @peterharperuk After incorporating changes mentioned in 29b1fa9 Also you mentioned first Are they both same things or am I seeing things wrongly ? |
As suggested by @kilograham (in #1929 (comment)), add
pico_runtime_init
as well aspico_runtime
andboot_picobin_headers
to theCMakeLists.txt
s defininghardware_irq
andpico_bootrom_headers
.While the issue initially was reported only for
hardware_irq
missingpico_runtime_init
, the same issue affect the other mentionned.Fixes #1929