Build error on hal_usb_lld.c Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
Post Reply
josesimoes
Posts: 91
Joined: Sat Feb 18, 2017 11:50 am
Has thanked: 43 times
Been thanked: 23 times

Build error on hal_usb_lld.c

Post by josesimoes »

This is in master branch.
Compiling with GCC give an error in hal_usb_lld.c line 295 because

Code: Select all

asm
is unknown.
Replacing with

Code: Select all

__asm
does build fine.
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Build error on hal_usb_lld.c

Post by Giovanni »

Hi,

Which GCC are you using? asm is used everywhere.

Giovanni
josesimoes
Posts: 91
Joined: Sat Feb 18, 2017 11:50 am
Has thanked: 43 times
Been thanked: 23 times

Re: Build error on hal_usb_lld.c

Post by josesimoes »

v6-2017-q1 and if, it matters, c11
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Build error on hal_usb_lld.c

Post by Giovanni »

Moving this topic in bug reports.

Giovanni
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Build error on hal_usb_lld.c

Post by Giovanni »

Hi,

That asm was a debug leftover, I just removed it.

Giovanni
josesimoes
Posts: 91
Joined: Sat Feb 18, 2017 11:50 am
Has thanked: 43 times
Been thanked: 23 times

Re: Build error on hal_usb_lld.c

Post by josesimoes »

awesome! thanks :)
networkfusion
Posts: 18
Joined: Thu May 18, 2017 11:57 am
Has thanked: 1 time
Been thanked: 6 times

Re: Build error on hal_usb_lld.c

Post by networkfusion »

Hi Giovanni,

Is there any chance the GitHub repo can be synchronised so that this fix is available to us?

Many thanks,

Robin.
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Build error on hal_usb_lld.c

Post by Giovanni »

Hi,

I don't manage it, try sending a private message to barthess, he does the synchronization.

If you are in a hurry then checkout the main subversion repository (trunk), you may also create your own git clone and update at will.

Giovanni
networkfusion
Posts: 18
Joined: Thu May 18, 2017 11:57 am
Has thanked: 1 time
Been thanked: 6 times

Re: Build error on hal_usb_lld.c

Post by networkfusion »

Thanks, will do.
Post Reply