-
Notifications
You must be signed in to change notification settings - Fork 614
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
Fails to build with arm-none-eabi Newlib toolchain #451
Comments
So, what's the sizeof(int) on this architecture? |
It is 4. |
Can you test with same version of gcc and a more common abi? Like GNU Linux? |
Yes, it works with arm-linux-gnueabi-gcc (6.3.0) and glibc. |
I have no idea then. Can you bring up with gcc? The template in question is:
The failing argument types are |
Apparently uint32_t is typedef'ed as unsigned long. Once I changed sys-include/machine/_default_types.h to typedef uint32_t as unsigned int and int32_t as int, it worked. But unsigned long and unsigned are the same size, so why is this happening? |
Sure long is not 8? |
Yes, long is 4. |
Not sure how to proceed. Contact gcc? |
Yes, it fixes the issue for me! Thanks :) |
I am using an arm-none-eabi toolchain (GCC 6.3.0 with Newlib 2.5.0). This is where the build fails:
The text was updated successfully, but these errors were encountered: