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

__packed undeclared with arm-none-eabi-gcc 4.7.4 #78

Closed
erwincoumans opened this issue Oct 26, 2015 · 4 comments
Closed

__packed undeclared with arm-none-eabi-gcc 4.7.4 #78

erwincoumans opened this issue Oct 26, 2015 · 4 comments
Milestone

Comments

@erwincoumans
Copy link
Contributor

Using arm-none-eabi-gcc compilation breaks at the use of __packed.
If the __packed is removed all compiles/links fine. Is there any replacement for __packed?

Version of arm-none-eabi-gcc is:
[~/develop/crazyflie-firmware]$ arm-none-eabi-gcc --version
arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors) 4.7.4 20140401 (release) [ARM/embedded-4_7-branch revision 209195]

@cstanke
Copy link
Contributor

cstanke commented Oct 26, 2015

Try the build with 4.9-2014q4. I think that's the required version since the CF1 and CF2 firmware merge.

@ataffanel
Copy link
Member

__packed is defined in cdefs.h file by gcc. Maybe your GCC does not have it.

You can try to change the line https://github.com/bitcraze/crazyflie-firmware/blob/master/hal/interface/usb_conf.h#L258 into:

  #ifndef __packed
    #define __packed    __attribute__ ((__packed__))
  #endif

If it works I can push it.

We actually use either the latest Ubuntu package arm-none-eabi-gcc or gcc from the GCC ARM Embedded from launchpad.

@erwincoumans
Copy link
Contributor Author

@ataffanel Yes, that does the job, see pull request #79

ataffanel added a commit that referenced this issue Oct 27, 2015
fix to compile using older compiler, fixes Issue #78
@ataffanel
Copy link
Member

It is merged, thanks

@krichardsson krichardsson added this to the 2016.02 milestone Feb 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants