CH_DBG_ENABLE_ASSERTS in Chibi requres CH_CFG_USE_DYNAMIC? Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
User avatar
Korken
Posts: 270
Joined: Wed Apr 02, 2014 4:09 pm
Location: Luleå, Sweden
Has thanked: 5 times
Been thanked: 6 times
Contact:

CH_DBG_ENABLE_ASSERTS in Chibi requres CH_CFG_USE_DYNAMIC?  Topic is solved

Postby Korken » Mon Dec 11, 2017 7:59 pm

Hi all!
I found that enabling CH_DBG_ENABLE_ASSERTS requires the CH_CFG_USE_DYNAMIC, else the system fails at link time with the following error:

Code: Select all

/tmp/ccTdgNWN.ltrans2.ltrans.o: In function `chThdCreate':
/home/emifre/Git/nrf_test/../ChibiOS/os/rt/src/chthreads.c:284: undefined reference to `chRegFindThreadByWorkingArea'
/tmp/ccTdgNWN.ltrans0.ltrans.o: In function `chThdCreateStatic':
/home/emifre/Git/nrf_test/../ChibiOS/os/rt/src/chthreads.c:333: undefined reference to `chRegFindThreadByWorkingArea'
collect2: error: ld returned 1 exit status

It seems like it is not the intended result perhaps as there is no dependency stated?

Best
Emil

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

Re: CH_DBG_ENABLE_ASSERTS in Chibi requres CH_CFG_USE_DYNAMIC?

Postby Giovanni » Mon Dec 11, 2017 8:02 pm

Let me check, it is possible it is a bug.

Giovanni

User avatar
Korken
Posts: 270
Joined: Wed Apr 02, 2014 4:09 pm
Location: Luleå, Sweden
Has thanked: 5 times
Been thanked: 6 times
Contact:

Re: CH_DBG_ENABLE_ASSERTS in Chibi requres CH_CFG_USE_DYNAMIC?

Postby Korken » Mon Dec 11, 2017 8:18 pm

Thanks for checking! I was using trunk btw.

EDIT: Same thing happens on stable_17

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

Re: CH_DBG_ENABLE_ASSERTS in Chibi requres CH_CFG_USE_DYNAMIC?

Postby Giovanni » Thu Dec 14, 2017 1:54 pm

Hi,

Fixed as bug #909.

Giovanni


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 9 guests