Compile fail in Official NIL demos Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
User avatar
aGuegu
Posts: 20
Joined: Thu Dec 07, 2017 4:15 am
Has thanked: 1 time
Been thanked: 4 times

Compile fail in Official NIL demos  Topic is solved

Postby aGuegu » Thu Dec 07, 2017 5:10 am

$ cd ChibiOS/demos/STM32/NIL-STM32F100-DISCOVERY
$ make
Compiling crt0_v7m.S
Compiling chcoreasm_v7m.S
Compiling crt1.c
Compiling vectors.c
Compiling ch.c
Compiling chmboxes.c
Compiling chmemcore.c
Compiling chheap.c
Compiling chmempools.c
Compiling chcore.c
Compiling chcore_v7m.c
Compiling osal.c
Compiling hal.c
Compiling hal_st.c
Compiling hal_buffers.c
Compiling hal_queues.c
Compiling hal_mmcsd.c
Compiling hal_pal.c
Compiling hal_serial.c
Compiling nvic.c
Compiling stm32_isr.c
Compiling hal_lld.c
Compiling stm32_dma.c
Compiling hal_pal_lld.c
Compiling hal_st_lld.c
Compiling hal_serial_lld.c
Compiling board.c
Compiling ch_test.c
Compiling nil_test_root.c
Compiling nil_test_sequence_001.c
Compiling nil_test_sequence_002.c
Compiling nil_test_sequence_003.c
Compiling nil_test_sequence_004.c
Compiling oslib_test_root.c
Compiling oslib_test_sequence_001.c
Compiling oslib_test_sequence_002.c
Compiling oslib_test_sequence_003.c
Compiling oslib_test_sequence_004.c
../../../test/oslib/source/test/oslib_test_sequence_004.c: In function 'oslib_test_004_001_teardown':
../../../test/oslib/source/test/oslib_test_sequence_004.c:86:3: error: unknown type name 'registered_object_t'
registered_object_t *rop;
^~~~~~~~~~~~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c:88:9: warning: implicit declaration of function 'chFactoryFindObject' [-Wimplicit-function-declaration]
rop = chFactoryFindObject("myobj");
^~~~~~~~~~~~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c:88:7: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
rop = chFactoryFindObject("myobj");
^
../../../test/oslib/source/test/oslib_test_sequence_004.c:90:15: error: request for member 'element' in something not a structure or union
while (rop->element.refs > 0U) {
^~
../../../test/oslib/source/test/oslib_test_sequence_004.c:91:7: warning: implicit declaration of function 'chFactoryReleaseObject' [-Wimplicit-function-declaration]
chFactoryReleaseObject(rop);
^~~~~~~~~~~~~~~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c: In function 'oslib_test_004_001_execute':
../../../test/oslib/source/test/oslib_test_sequence_004.c:97:3: error: unknown type name 'registered_object_t'
registered_object_t *rop;
^~~~~~~~~~~~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c:102:9: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
rop = chFactoryFindObject("myobj");
^
../../../test/oslib/source/test/oslib_test_sequence_004.c:111:11: warning: implicit declaration of function 'chFactoryRegisterObject' [-Wimplicit-function-declaration]
rop = chFactoryRegisterObject("myobj", (void *)&myobj);
^~~~~~~~~~~~~~~~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c:111:9: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
rop = chFactoryRegisterObject("myobj", (void *)&myobj);
^
../../../test/oslib/source/test/oslib_test_sequence_004.c:118:5: error: unknown type name 'registered_object_t'
registered_object_t *rop1;
^~~~~~~~~~~~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c:121:10: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
rop1 = chFactoryRegisterObject("myobj", (void *)&myobj);
^
../../../test/oslib/source/test/oslib_test_sequence_004.c:130:5: error: unknown type name 'registered_object_t'
registered_object_t *rop1, *rop2;
^~~~~~~~~~~~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c:132:10: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
rop1 = chFactoryFindObject("myobj");
^
In file included from ../../../test/oslib/source/test/oslib_test_root.h:25:0,
from ../../../test/oslib/source/test/oslib_test_sequence_004.c:18:
../../../test/oslib/source/test/oslib_test_sequence_004.c:134:35: error: request for member 'objp' in something not a structure or union
test_assert(*(uint32_t *)(rop1->objp) == 0x55aa, "object mismatch");
^
../../../test/lib/ch_test.h:130:20: note: in definition of macro 'test_assert'
if (_test_assert(condition, msg)) \
^~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c:136:21: error: request for member 'element' in something not a structure or union
test_assert(rop1->element.refs == 2, "object reference mismatch");
^
../../../test/lib/ch_test.h:130:20: note: in definition of macro 'test_assert'
if (_test_assert(condition, msg)) \
^~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c:138:13: error: 'registered_object_t' undeclared (first use in this function)
rop2 = (registered_object_t *)chFactoryDuplicateReference(&rop1->element);
^~~~~~~~~~~~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c:138:13: note: each undeclared identifier is reported only once for each function it appears in
../../../test/oslib/source/test/oslib_test_sequence_004.c:138:34: error: expected expression before ')' token
rop2 = (registered_object_t *)chFactoryDuplicateReference(&rop1->element);
^
In file included from ../../../test/oslib/source/test/oslib_test_root.h:25:0,
from ../../../test/oslib/source/test/oslib_test_sequence_004.c:18:
../../../test/oslib/source/test/oslib_test_sequence_004.c:140:35: error: request for member 'objp' in something not a structure or union
test_assert(*(uint32_t *)(rop2->objp) == 0x55aa, "object mismatch");
^
../../../test/lib/ch_test.h:130:20: note: in definition of macro 'test_assert'
if (_test_assert(condition, msg)) \
^~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c:141:21: error: request for member 'element' in something not a structure or union
test_assert(rop2->element.refs == 3, "object reference mismatch");
^
../../../test/lib/ch_test.h:130:20: note: in definition of macro 'test_assert'
if (_test_assert(condition, msg)) \
^~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c:144:21: error: request for member 'element' in something not a structure or union
test_assert(rop1->element.refs == 2, "references mismatch");
^
../../../test/lib/ch_test.h:130:20: note: in definition of macro 'test_assert'
if (_test_assert(condition, msg)) \
^~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c:147:20: error: request for member 'element' in something not a structure or union
test_assert(rop->element.refs == 1, "references mismatch");
^
../../../test/lib/ch_test.h:130:20: note: in definition of macro 'test_assert'
if (_test_assert(condition, msg)) \
^~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c:161:9: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
rop = chFactoryFindObject("myobj");
^
../../../test/oslib/source/test/oslib_test_sequence_004.c: In function 'oslib_test_004_002_teardown':
../../../test/oslib/source/test/oslib_test_sequence_004.c:203:3: error: unknown type name 'dyn_buffer_t'
dyn_buffer_t *dbp;
^~~~~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c:205:9: warning: implicit declaration of function 'chFactoryFindBuffer' [-Wimplicit-function-declaration]
dbp = chFactoryFindBuffer("mybuf");
^~~~~~~~~~~~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c:205:7: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
dbp = chFactoryFindBuffer("mybuf");
^
../../../test/oslib/source/test/oslib_test_sequence_004.c:207:15: error: request for member 'element' in something not a structure or union
while (dbp->element.refs > 0U) {
^~
../../../test/oslib/source/test/oslib_test_sequence_004.c:208:7: warning: implicit declaration of function 'chFactoryReleaseBuffer' [-Wimplicit-function-declaration]
chFactoryReleaseBuffer(dbp);
^~~~~~~~~~~~~~~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c: In function 'oslib_test_004_002_execute':
../../../test/oslib/source/test/oslib_test_sequence_004.c:214:3: error: unknown type name 'dyn_buffer_t'
dyn_buffer_t *dbp;
^~~~~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c:219:9: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
dbp = chFactoryFindBuffer("mybuf");
^
../../../test/oslib/source/test/oslib_test_sequence_004.c:227:11: warning: implicit declaration of function 'chFactoryCreateBuffer' [-Wimplicit-function-declaration]
dbp = chFactoryCreateBuffer("mybuf", 128U);
^~~~~~~~~~~~~~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c:227:9: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
dbp = chFactoryCreateBuffer("mybuf", 128U);
^
../../../test/oslib/source/test/oslib_test_sequence_004.c:234:5: error: unknown type name 'dyn_buffer_t'
dyn_buffer_t *dbp1;
^~~~~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c:236:10: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
dbp1 = chFactoryCreateBuffer("mybuf", 128U);
^
../../../test/oslib/source/test/oslib_test_sequence_004.c:245:5: error: unknown type name 'dyn_buffer_t'
dyn_buffer_t *dbp1, *dbp2;
^~~~~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c:247:10: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
dbp1 = chFactoryFindBuffer("mybuf");
^
In file included from ../../../test/oslib/source/test/oslib_test_root.h:25:0,
from ../../../test/oslib/source/test/oslib_test_sequence_004.c:18:
../../../test/oslib/source/test/oslib_test_sequence_004.c:250:21: error: request for member 'element' in something not a structure or union
test_assert(dbp1->element.refs == 2, "object reference mismatch");
^
../../../test/lib/ch_test.h:130:20: note: in definition of macro 'test_assert'
if (_test_assert(condition, msg)) \
^~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c:252:13: error: 'dyn_buffer_t' undeclared (first use in this function)
dbp2 = (dyn_buffer_t *)chFactoryDuplicateReference(&dbp1->element);
^~~~~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c:252:27: error: expected expression before ')' token
dbp2 = (dyn_buffer_t *)chFactoryDuplicateReference(&dbp1->element);
^
In file included from ../../../test/oslib/source/test/oslib_test_root.h:25:0,
from ../../../test/oslib/source/test/oslib_test_sequence_004.c:18:
../../../test/oslib/source/test/oslib_test_sequence_004.c:254:21: error: request for member 'element' in something not a structure or union
test_assert(dbp2->element.refs == 3, "object reference mismatch");
^
../../../test/lib/ch_test.h:130:20: note: in definition of macro 'test_assert'
if (_test_assert(condition, msg)) \
^~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c:257:21: error: request for member 'element' in something not a structure or union
test_assert(dbp1->element.refs == 2, "references mismatch");
^
../../../test/lib/ch_test.h:130:20: note: in definition of macro 'test_assert'
if (_test_assert(condition, msg)) \
^~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c:260:20: error: request for member 'element' in something not a structure or union
test_assert(dbp->element.refs == 1, "references mismatch");
^
../../../test/lib/ch_test.h:130:20: note: in definition of macro 'test_assert'
if (_test_assert(condition, msg)) \
^~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c:274:9: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
dbp = chFactoryFindBuffer("mybuf");
^
../../../test/oslib/source/test/oslib_test_sequence_004.c: In function 'oslib_test_004_003_teardown':
../../../test/oslib/source/test/oslib_test_sequence_004.c:317:3: error: unknown type name 'dyn_semaphore_t'
dyn_semaphore_t *dsp;
^~~~~~~~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c:319:9: warning: implicit declaration of function 'chFactoryFindSemaphore' [-Wimplicit-function-declaration]
dsp = chFactoryFindSemaphore("mysem");
^~~~~~~~~~~~~~~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c:319:7: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
dsp = chFactoryFindSemaphore("mysem");
^
../../../test/oslib/source/test/oslib_test_sequence_004.c:321:15: error: request for member 'element' in something not a structure or union
while (dsp->element.refs > 0U) {
^~
../../../test/oslib/source/test/oslib_test_sequence_004.c:322:7: warning: implicit declaration of function 'chFactoryReleaseSemaphore' [-Wimplicit-function-declaration]
chFactoryReleaseSemaphore(dsp);
^~~~~~~~~~~~~~~~~~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c: In function 'oslib_test_004_003_execute':
../../../test/oslib/source/test/oslib_test_sequence_004.c:328:3: error: unknown type name 'dyn_semaphore_t'
dyn_semaphore_t *dsp;
^~~~~~~~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c:333:9: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
dsp = chFactoryFindSemaphore("mysem");
^
../../../test/oslib/source/test/oslib_test_sequence_004.c:341:11: warning: implicit declaration of function 'chFactoryCreateSemaphore' [-Wimplicit-function-declaration]
dsp = chFactoryCreateSemaphore("mysem", 0);
^~~~~~~~~~~~~~~~~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c:341:9: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
dsp = chFactoryCreateSemaphore("mysem", 0);
^
../../../test/oslib/source/test/oslib_test_sequence_004.c:349:5: error: unknown type name 'dyn_semaphore_t'
dyn_semaphore_t *dsp1;
^~~~~~~~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c:351:10: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
dsp1 = chFactoryCreateSemaphore("mysem", 0);
^
../../../test/oslib/source/test/oslib_test_sequence_004.c:360:5: error: unknown type name 'dyn_semaphore_t'
dyn_semaphore_t *dsp1, *dsp2;
^~~~~~~~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c:362:10: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
dsp1 = chFactoryFindSemaphore("mysem");
^
In file included from ../../../test/oslib/source/test/oslib_test_root.h:25:0,
from ../../../test/oslib/source/test/oslib_test_sequence_004.c:18:
../../../test/oslib/source/test/oslib_test_sequence_004.c:365:21: error: request for member 'element' in something not a structure or union
test_assert(dsp1->element.refs == 2, "object reference mismatch");
^
../../../test/lib/ch_test.h:130:20: note: in definition of macro 'test_assert'
if (_test_assert(condition, msg)) \
^~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c:367:13: error: 'dyn_semaphore_t' undeclared (first use in this function)
dsp2 = (dyn_semaphore_t *)chFactoryDuplicateReference(&dsp1->element);
^~~~~~~~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c:367:30: error: expected expression before ')' token
dsp2 = (dyn_semaphore_t *)chFactoryDuplicateReference(&dsp1->element);
^
In file included from ../../../test/oslib/source/test/oslib_test_root.h:25:0,
from ../../../test/oslib/source/test/oslib_test_sequence_004.c:18:
../../../test/oslib/source/test/oslib_test_sequence_004.c:369:21: error: request for member 'element' in something not a structure or union
test_assert(dsp2->element.refs == 3, "object reference mismatch");
^
../../../test/lib/ch_test.h:130:20: note: in definition of macro 'test_assert'
if (_test_assert(condition, msg)) \
^~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c:372:21: error: request for member 'element' in something not a structure or union
test_assert(dsp1->element.refs == 2, "references mismatch");
^
../../../test/lib/ch_test.h:130:20: note: in definition of macro 'test_assert'
if (_test_assert(condition, msg)) \
^~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c:375:20: error: request for member 'element' in something not a structure or union
test_assert(dsp->element.refs == 1, "references mismatch");
^
../../../test/lib/ch_test.h:130:20: note: in definition of macro 'test_assert'
if (_test_assert(condition, msg)) \
^~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c:389:9: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
dsp = chFactoryFindSemaphore("mysem");
^
../../../test/oslib/source/test/oslib_test_sequence_004.c: In function 'oslib_test_004_004_teardown':
../../../test/oslib/source/test/oslib_test_sequence_004.c:431:3: error: unknown type name 'dyn_mailbox_t'
dyn_mailbox_t *dmp;
^~~~~~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c:433:9: warning: implicit declaration of function 'chFactoryFindMailbox' [-Wimplicit-function-declaration]
dmp = chFactoryFindMailbox("mymbx");
^~~~~~~~~~~~~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c:433:7: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
dmp = chFactoryFindMailbox("mymbx");
^
../../../test/oslib/source/test/oslib_test_sequence_004.c:435:15: error: request for member 'element' in something not a structure or union
while (dmp->element.refs > 0U) {
^~
../../../test/oslib/source/test/oslib_test_sequence_004.c:436:7: warning: implicit declaration of function 'chFactoryReleaseMailbox' [-Wimplicit-function-declaration]
chFactoryReleaseMailbox(dmp);
^~~~~~~~~~~~~~~~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c: In function 'oslib_test_004_004_execute':
../../../test/oslib/source/test/oslib_test_sequence_004.c:442:3: error: unknown type name 'dyn_mailbox_t'
dyn_mailbox_t *dmp;
^~~~~~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c:447:9: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
dmp = chFactoryFindMailbox("mymbx");
^
../../../test/oslib/source/test/oslib_test_sequence_004.c:455:11: warning: implicit declaration of function 'chFactoryCreateMailbox' [-Wimplicit-function-declaration]
dmp = chFactoryCreateMailbox("mymbx", 16U);
^~~~~~~~~~~~~~~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c:455:9: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
dmp = chFactoryCreateMailbox("mymbx", 16U);
^
../../../test/oslib/source/test/oslib_test_sequence_004.c:463:5: error: unknown type name 'dyn_mailbox_t'
dyn_mailbox_t *dmp1;
^~~~~~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c:465:10: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
dmp1 = chFactoryCreateMailbox("mymbx", 16U);
^
../../../test/oslib/source/test/oslib_test_sequence_004.c:474:5: error: unknown type name 'dyn_mailbox_t'
dyn_mailbox_t *dmp1, *dmp2;
^~~~~~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c:476:10: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
dmp1 = chFactoryFindMailbox("mymbx");
^
In file included from ../../../test/oslib/source/test/oslib_test_root.h:25:0,
from ../../../test/oslib/source/test/oslib_test_sequence_004.c:18:
../../../test/oslib/source/test/oslib_test_sequence_004.c:479:21: error: request for member 'element' in something not a structure or union
test_assert(dmp1->element.refs == 2, "object reference mismatch");
^
../../../test/lib/ch_test.h:130:20: note: in definition of macro 'test_assert'
if (_test_assert(condition, msg)) \
^~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c:481:13: error: 'dyn_mailbox_t' undeclared (first use in this function)
dmp2 = (dyn_mailbox_t *)chFactoryDuplicateReference(&dmp1->element);
^~~~~~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c:481:28: error: expected expression before ')' token
dmp2 = (dyn_mailbox_t *)chFactoryDuplicateReference(&dmp1->element);
^
In file included from ../../../test/oslib/source/test/oslib_test_root.h:25:0,
from ../../../test/oslib/source/test/oslib_test_sequence_004.c:18:
../../../test/oslib/source/test/oslib_test_sequence_004.c:483:21: error: request for member 'element' in something not a structure or union
test_assert(dmp2->element.refs == 3, "object reference mismatch");
^
../../../test/lib/ch_test.h:130:20: note: in definition of macro 'test_assert'
if (_test_assert(condition, msg)) \
^~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c:486:21: error: request for member 'element' in something not a structure or union
test_assert(dmp1->element.refs == 2, "references mismatch");
^
../../../test/lib/ch_test.h:130:20: note: in definition of macro 'test_assert'
if (_test_assert(condition, msg)) \
^~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c:489:20: error: request for member 'element' in something not a structure or union
test_assert(dmp->element.refs == 1, "references mismatch");
^
../../../test/lib/ch_test.h:130:20: note: in definition of macro 'test_assert'
if (_test_assert(condition, msg)) \
^~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c:503:9: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
dmp = chFactoryFindMailbox("mymbx");
^
../../../test/oslib/source/test/oslib_test_sequence_004.c: In function 'oslib_test_004_005_teardown':
../../../test/oslib/source/test/oslib_test_sequence_004.c:546:3: error: unknown type name 'dyn_objects_fifo_t'
dyn_objects_fifo_t *dofp;
^~~~~~~~~~~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c:548:10: warning: implicit declaration of function 'chFactoryFindObjectsFIFO' [-Wimplicit-function-declaration]
dofp = chFactoryFindObjectsFIFO("myfifo");
^~~~~~~~~~~~~~~~~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c:548:8: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
dofp = chFactoryFindObjectsFIFO("myfifo");
^
../../../test/oslib/source/test/oslib_test_sequence_004.c:550:16: error: request for member 'element' in something not a structure or union
while (dofp->element.refs > 0U) {
^~
../../../test/oslib/source/test/oslib_test_sequence_004.c:551:7: warning: implicit declaration of function 'chFactoryReleaseObjectsFIFO' [-Wimplicit-function-declaration]
chFactoryReleaseObjectsFIFO(dofp);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c: In function 'oslib_test_004_005_execute':
../../../test/oslib/source/test/oslib_test_sequence_004.c:557:3: error: unknown type name 'dyn_objects_fifo_t'
dyn_objects_fifo_t *dofp;
^~~~~~~~~~~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c:563:10: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
dofp = chFactoryFindObjectsFIFO("myfifo");
^
../../../test/oslib/source/test/oslib_test_sequence_004.c:571:12: warning: implicit declaration of function 'chFactoryCreateObjectsFIFO' [-Wimplicit-function-declaration]
dofp = chFactoryCreateObjectsFIFO("myfifo", 16U, 16U, PORT_NATURAL_ALIGN);
^~~~~~~~~~~~~~~~~~~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c:571:10: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
dofp = chFactoryCreateObjectsFIFO("myfifo", 16U, 16U, PORT_NATURAL_ALIGN);
^
../../../test/oslib/source/test/oslib_test_sequence_004.c:579:5: error: unknown type name 'dyn_objects_fifo_t'
dyn_objects_fifo_t *dofp1;
^~~~~~~~~~~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c:581:11: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
dofp1 = chFactoryCreateObjectsFIFO("myfifo", 16U, 16U, PORT_NATURAL_ALIGN);
^
../../../test/oslib/source/test/oslib_test_sequence_004.c:590:5: error: unknown type name 'dyn_objects_fifo_t'
dyn_objects_fifo_t *dofp1, *dofp2;
^~~~~~~~~~~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c:592:11: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
dofp1 = chFactoryFindObjectsFIFO("myfifo");
^
In file included from ../../../test/oslib/source/test/oslib_test_root.h:25:0,
from ../../../test/oslib/source/test/oslib_test_sequence_004.c:18:
../../../test/oslib/source/test/oslib_test_sequence_004.c:595:22: error: request for member 'element' in something not a structure or union
test_assert(dofp1->element.refs == 2, "object reference mismatch");
^
../../../test/lib/ch_test.h:130:20: note: in definition of macro 'test_assert'
if (_test_assert(condition, msg)) \
^~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c:597:14: error: 'dyn_objects_fifo_t' undeclared (first use in this function)
dofp2 = (dyn_objects_fifo_t *)chFactoryDuplicateReference(&dofp1->element);
^~~~~~~~~~~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c:597:34: error: expected expression before ')' token
dofp2 = (dyn_objects_fifo_t *)chFactoryDuplicateReference(&dofp1->element);
^
In file included from ../../../test/oslib/source/test/oslib_test_root.h:25:0,
from ../../../test/oslib/source/test/oslib_test_sequence_004.c:18:
../../../test/oslib/source/test/oslib_test_sequence_004.c:599:22: error: request for member 'element' in something not a structure or union
test_assert(dofp2->element.refs == 3, "object reference mismatch");
^
../../../test/lib/ch_test.h:130:20: note: in definition of macro 'test_assert'
if (_test_assert(condition, msg)) \
^~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c:602:22: error: request for member 'element' in something not a structure or union
test_assert(dofp1->element.refs == 2, "references mismatch");
^
../../../test/lib/ch_test.h:130:20: note: in definition of macro 'test_assert'
if (_test_assert(condition, msg)) \
^~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c:605:21: error: request for member 'element' in something not a structure or union
test_assert(dofp->element.refs == 1, "references mismatch");
^
../../../test/lib/ch_test.h:130:20: note: in definition of macro 'test_assert'
if (_test_assert(condition, msg)) \
^~~~~~~~~
../../../test/oslib/source/test/oslib_test_sequence_004.c:619:10: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
dofp = chFactoryFindObjectsFIFO("myfifo");
^
make: *** [build/obj/oslib_test_sequence_004.o] Error 1


Since there are new bugs fixed, like #902. I tried the truck git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10937 35acf78f-673a-0410-8e92-d51de3d6d3f4

The STM32/NIL-STM32F100-DISCOVERY demo compiled failed as above.

The compiler: gcc-arm-none-eabi-6-2017-q2-update

I have created a repo: https://github.com/aguegu/stm32-bluepill about my demos of chibios on stm32-bluepill, the stm32f103c8t6 minimal board.

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

Re: Compile fail in Official NIL demos

Postby Giovanni » Thu Dec 07, 2017 8:23 am

Hi,

The demo compiles on my side, please try making a fresh checkout from the subversion repository.

Giovanni

User avatar
aGuegu
Posts: 20
Joined: Thu Dec 07, 2017 4:15 am
Has thanked: 1 time
Been thanked: 4 times

Re: Compile fail in Official NIL demos

Postby aGuegu » Thu Dec 07, 2017 2:05 pm

Oh, it works with the svn checkout.

It seems this github repo: https://github.com/ChibiOS/ChibiOS is kinda out of sync for a while.

Thank you very much for all your hard work.

User avatar
tfAteba
Posts: 422
Joined: Fri Oct 16, 2015 11:03 pm
Location: Chartres, France
Has thanked: 55 times
Been thanked: 29 times

Re: Compile fail in Official NIL demos

Postby tfAteba » Thu Dec 14, 2017 4:06 pm

Hello aGuegu,

You are rigth, it seems that since the 4 November the Git repo do not sync any more.

I will try to contact the members in charge of this so that the problem can be resolve.

Thanks.
regards,

Theo.

User avatar
aGuegu
Posts: 20
Joined: Thu Dec 07, 2017 4:15 am
Has thanked: 1 time
Been thanked: 4 times

Re: Compile fail in Official NIL demos

Postby aGuegu » Fri Dec 15, 2017 6:48 am

Thanks tfAteba, see my reply on viewtopic.php?f=35&t=4390

SF supports GIT too.


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 2 guests