-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[BUG] Cannot build telnet configuration for Raspberry Pi Pico W #13704
Comments
@anchao Hey, sorry for the ping! I noticed using I was wondering if you might be able to shed some light on the issue I am having. Were these functions previously defined somewhere in the kernel source tree and they are now missing? I know there was testing done on that PR and it must have worked then. |
There may be some internal implementations that have not been synchronized to the community. @zhhyu7 @xiaoxiang781216 Please provide some help with this issue |
@anchao @linguini1 , It should be that no one has used the inline function in the |
@zhhyu7 I'm not quite sure what you mean, sorry. The header is pulled in when networking support is added for the Pi Pico W, which I assume has been tested before. I'm not sure if it's been tested with this header, but I would expect since it's a supported MCU that someone has tried WiFi on the Pico W before. I have not added a call to |
@linguini1 Can you show me the command you used when compiling, I'll try to reproduce it locally.
|
@zhhyu7, yes that is the command I'm using! |
For the record I tried doing this on Ubuntu in WSL and it worked. I am not sure what the difference is between my two systems, still investigating. |
@zhhyu7 any luck reproducing the issue? I've not been able to figure out the difference between WSL Ubuntu and Arch Linux that would account for these definitions being missing. |
@anchao There is really no relevant function implementation in nuttx, help to see? Is it the influence of the gcc version? |
I also have the same problem |
I managed to get the build working by adding the following lines above the included headers: #define cpu_to_le16 __builtin_bswap16
#define hweight8 __builtin_popcount
#define le32_to_cpu __builtin_bswap32
#define BIT(x) (1 << x) I maybe these macros could be defined by NuttX in @anchao @zhhyu7 I must admit that this is out of my element, what are your thoughts on this potential solution? |
Description / Steps to reproduce the issue
I cannot build the telnet configuration for the Pi Pico W following the documentation from the NuttX website.
When I attempt to build the configuration, I get several errors about implicit definitions of a few functions, which you
can see in the attached error log. I have grepped the kernel source tree for
cpu_to_le16
as well as the Pico SDK andthere is no definition for it, only usages in the ieee80211 code.
Any ideas how to solve this?
On which OS does this issue occur?
[OS: Linux]
What is the version of your OS?
Linux 6.10.10-arch1-1 x86_64 GNU/Linux
NuttX Version
master
Issue Architecture
[Arch: arm]
Issue Area
[Area: Build System], [Area: Networking]
Verification
The text was updated successfully, but these errors were encountered: