Problem with buiding example on Tricore with Erika 3

Forum related to ERIKA Enterprise and RT-Druid version 3

Moderator: paolo.gai

Post Reply
Alexanderv66
Newbie
Posts: 17
Joined: Sun Jun 30, 2019 6:13 pm

Problem with buiding example on Tricore with Erika 3

Post by Alexanderv66 » Mon Jul 01, 2019 3:14 pm

I'm trying to build example for Tricore TC277. I'm follow this instructions http://www.erika-enterprise.com/wiki/in ... h_RT-Druid. After executing ERIKA project build i have an errors:

Code: Select all

16:39:59 **** Build of configuration Default for project Demo ****
make doc 
ERIKA_FILES=/cygdrive/d/HIGHTEC/ECLIPS~1/plugins/COMEUE~1.201/ee_files
make[1]: *** /cygdrive/d/ECLIPS~2/Demo/erika: No such file or directory.  Stop.
makefile:104: recipe for target '/cygdrive/d/ECLIPS~2/Demo/erika/mk/ee.mk' failed
make: *** [/cygdrive/d/ECLIPS~2/Demo/erika/mk/ee.mk] Error 2

16:39:59 Build Failed. 3 errors, 0 warnings. (took 705ms)

make[1]: Entering directory 'D:/eclipseworkspace3/Demo/erika'
***************************
pull/ee_pull.mk:30: /cygdrive/d/HIGHTEC/ECLIPS~1/plugins/COMEUE~1.201/ee_files/mk/ee_pull.mk: No such file or directory
* Pulling erika files from:
make[1]: *** No rule to make target '/cygdrive/d/HIGHTEC/ECLIPS~1/plugins/COMEUE~1.201/ee_files/mk/ee_pull.mk'.  Stop.
***************************
* ERIKA_FILES=/cygdrive/d/HIGHTEC/ECLIPS~1/plugins/COMEUE~1.201/ee_files
make: *** [mk] Error 2
make[1]: Leaving directory 'D:/eclipseworkspace3/Demo/erika'
makefile:88: recipe for target 'mk' failed

16:39:59 Build Failed. 3 errors, 1 warnings. (took 541ms)
Before building I'm:
1. entering tricore compiler path in Eclipse Preferences Oil->Generator Properties-> TriCore -> HighTech GCC Compiler: D:\HIGHTEC\toolchains\tricore\v4.9.1.0-infineon-2.0. And this path are valid
2. Set Erika Enterprise source location: D:\HIGHTEC\EclipsePhoton\plugins\com.eu.evidence.ee3_3.0.1.20190524_gh65\ee_files
3. Set and RTDruid extension pack paths D:\HIGHTEC\EclipsePhoton\plugins\com.eu.evidence.ee3_3.0.1.20190524_gh65\ee_files\rtdruid.ext
4. In project properties c/c++ build -> Environments set path to Cygwin CYGWIN_HOME: C:\cygwin64
5. In project properties c/c++ build -> Tool Chain Editor set Current toolchain : Cygwin GCC and Currend builder: Gnu make builder
6. In C/C++Build unchecked "Generate makefiles automatically". Checked "Use default build command: make"

RTDruid starts with following output text

Code: Select all

############################################
# 
# RT-Druid 3 generator: Version 3.0.1 (Build GH 65)
# 
# Date      : 2019/07/01 16:52:16
# Project   : Demo
# Oil file  : conf.oil
# 
# Erika     : D:\HIGHTEC\EclipsePhoton\plugins\com.eu.evidence.ee3_3.0.1.20190524_gh65\ee_files
# RTD ext   : D:\HIGHTEC\EclipsePhoton\plugins\com.eu.evidence.ee3_3.0.1.20190524_gh65\ee_files/rtdruid.ext
# 
############################################

Missing OS signature
Enable the generation of OS configuration files.
Missing Appl signature
Enable the generation of Appl configuration files.
Start the computation of event's masks.
Computation of event's masks completed.
Start the generation of OS configuration files.
Start the generation of Appl configuration files.
Generation completed.

Storing Appl signature file: D:\eclipseworkspace3\Demo\out\applSignature.oil
Storing OS signature file: D:\eclipseworkspace3\Demo\erika\osSignature.oil

Done.
After this new files were added to the project tree:

erika\osSignature.oil
erika\makefile
erika\pull\ee_oscfg_c.txt
erika\pull\ee_oscfg_h.txt
erika\pull\ee_oscfg_mk.txt
erika\pull\ee_pull.mk

and

out\ee_applcfg.c
out\ee_applcfg.h
out\ee_declcfg.c
out\applSignature.oil
out\system.orti
out\t32.cmm

and no more new files. The project is not filled with all Erika source files.

paolo.gai
Administrator
Posts: 875
Joined: Thu Dec 07, 2006 12:11 pm

Re: Problem with buiding example on Tricore with Erika 3

Post by paolo.gai » Mon Jul 01, 2019 4:07 pm

It could be cause by:
- usage of installation directories not in C: but in D: (seems strange)
- a wrong make application (could you please open a cygwin shell and type "which make" to see if it returns a standard cygwin make?

Ciao,

PJ

Alexanderv66
Newbie
Posts: 17
Joined: Sun Jun 30, 2019 6:13 pm

Re: Problem with buiding example on Tricore with Erika 3

Post by Alexanderv66 » Mon Jul 01, 2019 5:31 pm

Thanks for recommendation
I installed IDE with Compiler and Cygwin on C: drive on other PC. And error text is identical. If I attach a project to a post, can you try to compile it?

Code: Select all

19:12:33 **** Build of configuration Default for project Demo ****
make doc 
make[1]: *** /cygdrive/c/WORKSP~1/Demo/erika: No such file or directory.  Stop.
makefile:104: recipe for target '/cygdrive/c/WORKSP~1/Demo/erika/mk/ee.mk' failed
make: *** [/cygdrive/c/WORKSP~1/Demo/erika/mk/ee.mk] Error 2

19:12:33 Build Failed. 3 errors, 0 warnings. (took 772ms)

ERIKA_FILES=/cygdrive/c/Evidance/ECLIPS~1/eclipse/plugins/COMEUE~1.201/ee_files
make[1]: Entering directory 'C:/workspacePhoton3/Demo/erika'
pull/ee_pull.mk:30: /cygdrive/c/Evidance/ECLIPS~1/eclipse/plugins/COMEUE~1.201/ee_files/mk/ee_pull.mk: No such file or directory
***************************
make[1]: *** No rule to make target '/cygdrive/c/Evidance/ECLIPS~1/eclipse/plugins/COMEUE~1.201/ee_files/mk/ee_pull.mk'.  Stop.
* Pulling erika files from:
***************************
* ERIKA_FILES=/cygdrive/c/Evidance/ECLIPS~1/eclipse/plugins/COMEUE~1.201/ee_files
make[1]: Leaving directory 'C:/workspacePhoton3/Demo/erika'
makefile:88: recipe for target 'mk' failed
make: *** [mk] Error 2

19:12:33 Build Failed. 3 errors, 1 warnings. (took 403ms)
P.S.:
Cygwin console give me that:

Code: Select all

Alexanderv66@ab405ur ~
$ which make
/cygdrive/c/HighTec/toolchains/tricore/v4.9.1.0-infineon-2.0/bin/make
Screenshots of settings below
Attachments
Local project properties
Local project properties
3.JPG (64.9 KiB) Viewed 5737 times
Global IDE properties
Global IDE properties
2.JPG (79.86 KiB) Viewed 5737 times
Global IDE properties
Global IDE properties
1.JPG (90.92 KiB) Viewed 5737 times

paolo.gai
Administrator
Posts: 875
Joined: Thu Dec 07, 2006 12:11 pm

Re: Problem with buiding example on Tricore with Erika 3

Post by paolo.gai » Mon Jul 01, 2019 8:56 pm

Please install make from Cygwin.

you can see from the screenshot posted that you are referring to the make provided by hightec.

The command output should be:

$ which make
/usr/bin/make


Ciao,

PJ

Alexanderv66
Newbie
Posts: 17
Joined: Sun Jun 30, 2019 6:13 pm

Re: Problem with buiding example on Tricore with Erika 3

Post by Alexanderv66 » Tue Jul 02, 2019 6:13 am

Thanks

After I achieved it, it all worked.

Code: Select all

$ which make
/usr/bin/make

Post Reply