Skip to content
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

mbed-drivers - error missing cstddef #134

Open
0xc0170 opened this issue Dec 15, 2015 · 6 comments
Open

mbed-drivers - error missing cstddef #134

0xc0170 opened this issue Dec 15, 2015 · 6 comments
Labels

Comments

@0xc0170
Copy link
Contributor

0xc0170 commented Dec 15, 2015

This is the line which fails to build for some users when using ubuntu, or even on macs.

Found reported in various places, various "fixes-" but all seemed to be effective, here are some references:
http://forums.mbed.com/t/yotta-on-raspberry-pi-2/842/2 (reported with yotta + mbed OS)
tmk/tmk_keyboard#212 (mbed 2 sdk, but same error with the same header, provides some additional information)
https://developer.mbed.org/forum/mbed/topic/5205 (I saw this first time back in 2014 in this thread)

@jaustin Any pointers?

@jaustin
Copy link

jaustin commented Dec 15, 2015

I think this is a malformed toolchain... I wonder if all these users are on Debian?

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=736167

Seems to fit, as well as with comments like "I also had similar problem with GCC4.8 on Ubuntu 14.04.
I had to update to 4.9 with this PPA." and " everything is okay now, had to take the tools for trusty." from the other reports.

I guess we could test for the include and give some more helpful advice?

J

@ciarmcom
Copy link
Member

ARM Internal Ref: IOTSFW-1418

@autopulated
Copy link
Contributor

@jaustin we're wondering if there's an issues that still needs to be fixed upstream somewhere beyond the "everything is okay now, had to take the tools for trusty.", as people are definitely still experiencing this. Maybe they are on old versions though.

@bogdanm
Copy link
Contributor

bogdanm commented Jan 8, 2016

This looks indeed like a toolchain issue. I'd like to try replacing #include <cstddef> with '#include <stddef.h>` and see if that does any good, but I don't know how to reproduce the problem on my machine. Suggestions welcome.

@rgrover
Copy link
Contributor

rgrover commented Jan 28, 2016

I also encountered this build failure on my Ubuntu (Ubuntu 14.04.3 LTS) using arm-gcc v4.9.3. I'll try to upgrade the toolchain.

@rgrover
Copy link
Contributor

rgrover commented Feb 1, 2016

Updating the toolchain following instructions from GCC ARM Embedded; this fixed the issue for me.

The new toolchain's version is:

arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors) 5.2.1 20151202 (release) [ARM/embedded-5-branch revision 231848]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants