Build errors when using ERIKA V2
Posted: Fri Mar 16, 2018 4:27 pm
Hi.
I have downloaded the latest version of ERIKA Enterprise and RT-Druid v2, and run it on Ubuntu 16.04_64b.
I have followed the instruction of the tutorial (http://erika.tuxfamily.org/wiki/index.p ... Linux_host). Since the Microchip C30 is not available, I just download the latest version of Microchip XC16 as the compiler for the demo "pic30-> FLEX Demo Board -> OO examples -> Task Demo".
However, when I try to build the project, the error happens in the middle of the compilation:
/* **************************** */
...
/home/junjie/ERIKA/eclipse/plugins/com.eu.evidence.ee_2.8.0.20171025_0922/ee_files/pkg/kernel/oo/inc/ee_oo_internal.h:681:21: warning: array subscript is below array bounds
CPP ee_ulockallres.c
AR libee.a
LD
/opt/microchip/xc16/v1.33/bin/bin/elf-ld:loc_gnu.ld:40: ignoring invalid character `#' in expression
/home/junjie/ERIKA/eclipse/plugins/com.eu.evidence.ee_2.8.0.20171025_0922/ee_files/pkg/cfg/arch/rules_microchip_pic30.mk:251: recipe for target 'pic30.elf' failed
/opt/microchip/xc16/v1.33/bin/bin/elf-ld:loc_gnu.ld:40: syntax error
make: *** [pic30.elf] Error 1
/* **************************** */
It seem that in some files, you comment the line using "//#define...". In some cases, it may cause syntax error?
Any suggestions?
I have downloaded the latest version of ERIKA Enterprise and RT-Druid v2, and run it on Ubuntu 16.04_64b.
I have followed the instruction of the tutorial (http://erika.tuxfamily.org/wiki/index.p ... Linux_host). Since the Microchip C30 is not available, I just download the latest version of Microchip XC16 as the compiler for the demo "pic30-> FLEX Demo Board -> OO examples -> Task Demo".
However, when I try to build the project, the error happens in the middle of the compilation:
/* **************************** */
...
/home/junjie/ERIKA/eclipse/plugins/com.eu.evidence.ee_2.8.0.20171025_0922/ee_files/pkg/kernel/oo/inc/ee_oo_internal.h:681:21: warning: array subscript is below array bounds
CPP ee_ulockallres.c
AR libee.a
LD
/opt/microchip/xc16/v1.33/bin/bin/elf-ld:loc_gnu.ld:40: ignoring invalid character `#' in expression
/home/junjie/ERIKA/eclipse/plugins/com.eu.evidence.ee_2.8.0.20171025_0922/ee_files/pkg/cfg/arch/rules_microchip_pic30.mk:251: recipe for target 'pic30.elf' failed
/opt/microchip/xc16/v1.33/bin/bin/elf-ld:loc_gnu.ld:40: syntax error
make: *** [pic30.elf] Error 1
/* **************************** */
It seem that in some files, you comment the line using "//#define...". In some cases, it may cause syntax error?
Any suggestions?