ansi.h error on Erika 3 sample build

Forum related to ERIKA Enterprise and RT-Druid version 3

Moderator: paolo.gai

Locked
knightto2112

ansi.h error on Erika 3 sample build

Post by knightto2112 »

Hello
I'm trying to build example for x86-64, the "Helloworld OSEK demo".
I'm currently using an ubuntu (20.04 LTS) to build sample application

I already tried different version of RT-Druid, thinking it would help me


RT-Druid build used

GH65 from: http://www.erika-enterprise.com/erika3- ... h65.tar.gz
GH61 from: http://www.erika-enterprise.com/erika3- ... h61.tar.gz
GH55 from: http://www.erika-enterprise.com/erika3- ... h55.tar.gz


Compilers Used

x86_64-linux-gnu-gcc
x86_64-w64-mingw32-gcc


Build Procedure:

1) Run Eclipse
2) Create New Project (New -> RT-Druid v3 Oil and C/C++ Project)
3) Name the project
4) Check the box for using an existing template and select x86-64 → Helloworld OSEK demo
5) Modify conf.oil file (Change JAILHOUSE to BARE)
6) Build Project


Build Result:

Code: Select all

10:37:55 **** Incremental Build of configuration Build (GNU) for project hello2 ****
make all 
make[1]: Entering directory '/home/erika/Desktop/hello2/erika'
ERIKA_FILES=/home/erika/Desktop/new/eclipse/plugins/com.eu.evidence.ee3_3.0.1.20181217_gh55/ee_files
make[2]: Entering directory '/home/erika/Desktop/hello2/erika'
***************************************
* Erika Enterprise Libraries build... *
***************************************
CC   ee_std_change_context.c
CC   ee_assert.c
CC   ee_oo_api_osek.c
CC   ee_oo_sched_entry_points.c
CC   ee_oo_scheduler.c
CC   ee_oo_kernel.c
CC   ee_oo_sched_partitioned.c
CC   ee_oo_counter.c
CC   ee_oo_alarm.c
AS   ee_x86_64_startup.S
CC   ee_x86_64_boot.c
AS   ee_x86_64_ctx.S
CC   ee_x86_64_libc_syscall.c
/home/erika/Desktop/hello2/erika/src/ee_x86_64_libc_syscall.c:49:10: fatal error: _ansi.h: No such file or directory
make[2]: Leaving directory '/home/erika/Desktop/hello2/erika'
make[1]: Leaving directory '/home/erika/Desktop/hello2/erika'
   49 | #include <_ansi.h>
      |          ^~~~~~~~~
compilation terminated.
make[2]: *** [/home/erika/Desktop/hello2/erika/mk/ee_arch_rules.mk:129: obj/ee_x86_64_libc_syscall.c.o] Error 1
make[1]: *** [makefile:75: all] Error 2
make: *** [makefile:93: /home/erika/Desktop/hello2/erika/lib] Error 2

10:38:18 Build Failed. 4 errors, 0 warnings. (took 22s.545ms)

Error: Cannot find _ansi.h in building libraries specifically ee_x86_64_libc_syscall


Do you have any advice for how to fix this problem?

Thanks!
Hector
Locked