Build error on hal_usb_lld.c Topic is solved

Report here problems in any of ChibiOS components.
josesimoes
Posts: 8
Joined: Sat Feb 18, 2017 11:50 am
Has thanked: 4 times
Been thanked: 2 times

Build error on hal_usb_lld.c  Topic is solved

Postby josesimoes » Thu May 18, 2017 1:05 pm

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: 9703
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 143 times
Been thanked: 134 times
Contact:

Re: Build error on hal_usb_lld.c

Postby Giovanni » Thu May 18, 2017 2:11 pm

Hi,

Which GCC are you using? asm is used everywhere.

Giovanni

josesimoes
Posts: 8
Joined: Sat Feb 18, 2017 11:50 am
Has thanked: 4 times
Been thanked: 2 times

Re: Build error on hal_usb_lld.c

Postby josesimoes » Thu May 18, 2017 2:29 pm

v6-2017-q1 and if, it matters, c11

User avatar
Giovanni
Site Admin
Posts: 9703
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 143 times
Been thanked: 134 times
Contact:

Re: Build error on hal_usb_lld.c

Postby Giovanni » Thu May 18, 2017 2:31 pm

Moving this topic in bug reports.

Giovanni

User avatar
Giovanni
Site Admin
Posts: 9703
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 143 times
Been thanked: 134 times
Contact:

Re: Build error on hal_usb_lld.c

Postby Giovanni » Thu May 18, 2017 2:43 pm

Hi,

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

Giovanni

josesimoes
Posts: 8
Joined: Sat Feb 18, 2017 11:50 am
Has thanked: 4 times
Been thanked: 2 times

Re: Build error on hal_usb_lld.c

Postby josesimoes » Thu May 18, 2017 2:51 pm

awesome! thanks :)

networkfusion
Posts: 2
Joined: Thu May 18, 2017 11:57 am

Re: Build error on hal_usb_lld.c

Postby networkfusion » Sat May 20, 2017 1:33 pm

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: 9703
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 143 times
Been thanked: 134 times
Contact:

Re: Build error on hal_usb_lld.c

Postby Giovanni » Sat May 20, 2017 2:36 pm

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: 2
Joined: Thu May 18, 2017 11:57 am

Re: Build error on hal_usb_lld.c

Postby networkfusion » Sat May 20, 2017 6:09 pm

Thanks, will do.


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 1 guest