Hello,
I encounter a compilation issue since days with S32DS 3.4 on Ubuntu 20 (it was the same case on ubuntu 18 as well).
The issue appears after the action "Update Code" in "Pins" view. The file named "Siul2_Port_Ip_Defines.h" is marked as deleted. Even if i unmarked it, it is deleted.
This issue does not appear on Windows 10. With the exact same dependencies version (32DS, RTD, IPCF etc....) than my installation on Ubuntu 20.
Build output:
10:52:55 **** Build of configuration Debug_RAM for project IPCF_Example_S32G274 ****
make -j8 all
Building file: ../src/main.c
Building file: ../src/sample.c
Invoking: Standard S32DS C Compiler
Invoking: Standard S32DS C Compiler
arm-none-eabi-gcc "@src/main.args" -MMD -MP -MF"src/main.d" -MT"src/main.o" -o "src/main.o" "../src/main.c"
Building file: ../generate/src/IntCtrl_Ip_Cfg.c
arm-none-eabi-gcc "@src/main.args" -MMD -MP -MF"src/sample.d" -MT"src/sample.o" -o "src/sample.o" "../src/sample.c"
Invoking: Standard S32DS C Compiler
Building file: ../generate/src/OsIf_Cfg.c
arm-none-eabi-gcc "@generate/src/IntCtrl_Ip_Cfg.args" -MMD -MP -MF"generate/src/IntCtrl_Ip_Cfg.d" -MT"generate/src/IntCtrl_Ip_Cfg.o" -o "generate/src/IntCtrl_Ip_Cfg.o" "../generate/src/IntCtrl_Ip_Cfg.c"
Invoking: Standard S32DS C Compiler
arm-none-eabi-gcc "@generate/src/IntCtrl_Ip_Cfg.args" -MMD -MP -MF"generate/src/OsIf_Cfg.d" -MT"generate/src/OsIf_Cfg.o" -o "generate/src/OsIf_Cfg.o" "../generate/src/OsIf_Cfg.c"
Building file: ../board/Clock_Ip_Cfg.c
Building file: ../board/Clock_Ip_PBcfg.c
Invoking: Standard S32DS C Compiler
arm-none-eabi-gcc "@board/Clock_Ip_Cfg.args" -MMD -MP -MF"board/Clock_Ip_Cfg.d" -MT"board/Clock_Ip_Cfg.o" -o "board/Clock_Ip_Cfg.o" "../board/Clock_Ip_Cfg.c"
Building file: ../board/Siul2_Port_Ip_Cfg.c
Invoking: Standard S32DS C Compiler
arm-none-eabi-gcc "@board/Clock_Ip_Cfg.args" -MMD -MP -MF"board/Clock_Ip_PBcfg.d" -MT"board/Clock_Ip_PBcfg.o" -o "board/Clock_Ip_PBcfg.o" "../board/Clock_Ip_PBcfg.c"
Invoking: Standard S32DS C Compiler
arm-none-eabi-gcc "@board/Clock_Ip_Cfg.args" -MMD -MP -MF"board/Siul2_Port_Ip_Cfg.d" -MT"board/Siul2_Port_Ip_Cfg.o" -o "board/Siul2_Port_Ip_Cfg.o" "../board/Siul2_Port_Ip_Cfg.c"
Building file: ../board/dcd_config.c
Finished building: ../generate/src/OsIf_Cfg.c
Invoking: Standard S32DS C Compiler
arm-none-eabi-gcc "@board/Clock_Ip_Cfg.args" -MMD -MP -MF"board/dcd_config.d" -MT"board/dcd_config.o" -o "board/dcd_config.o" "../board/dcd_config.c"
Building file: ../board/ivt_config.c
Invoking: Standard S32DS C Compiler
arm-none-eabi-gcc "@board/Clock_Ip_Cfg.args" -MMD -MP -MF"board/ivt_config.d" -MT"board/ivt_config.o" -o "board/ivt_config.o" "../board/ivt_config.c"
In file included from ../board/Siul2_Port_Ip_Cfg.h:5,
from ../board/Siul2_Port_Ip_Cfg.c:14:
../RTD/include/Siul2_Port_Ip_Types.h:46:10: fatal error: Siul2_Port_Ip_Defines.h: No such file or directory
Finished building: ../board/dcd_config.c
46 | #include "Siul2_Port_Ip_Defines.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [board/subdir.mk:35: board/Siul2_Port_Ip_Cfg.o] Error 1
make: *** Waiting for unfinished jobs....
../src/sample.c: In function ‘xSemaphoreTake’:
../src/sample.c:41:65: warning: unused parameter ‘timeout’ [-Wunused-parameter]
41 | static uint8_t xSemaphoreTake(SemaphoreHandle_t psema, uint32_t timeout) {
Finished building: ../src/main.c
| ~~~~~~~~~^~~~~~~
../src/sample.c: In function ‘vTaskDelay’:
../src/sample.c:50:2: warning: ‘static’ is not at beginning of declaration [-Wold-style-declaration]
Finished building: ../generate/src/IntCtrl_Ip_Cfg.c
50 | volatile static uint32 delayTimer = 0;
| ^~~~~~~~
../src/sample.c: In function ‘ctrl_chan_rx_cb’:
../src/sample.c:152:14: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith]
152 | strtol(mem + strlen("SENDING MESSAGES: "), &endptr, 10);
| ^
../src/sample.c:139:47: warning: unused parameter ‘instance’ [-Wunused-parameter]
139 | void ctrl_chan_rx_cb(void *arg, const uint8_t instance, int chan_id, void *mem)
| ~~~~~~~~~~~~~~^~~~~~~~
Finished building: ../board/ivt_config.c
Finished building: ../src/sample.c
Finished building: ../board/Clock_Ip_Cfg.c
Finished building: ../board/Clock_Ip_PBcfg.c
"make -j8 all" terminated with exit code 2. Build might be incomplete.
10:52:56 Build Failed. 3 errors, 4 warnings. (took 431ms)
Hello,
As i said, i tried on Ubuntu 18 as well and it ends up with exactly the same issue.
I checked dependencies:
- S32DS -> S32DS.3.4_b201217_linux.x86_64
- S32G2 SDK -> SW32G2_S32DS_3.4.1_D2104
- RTD -> SW32G2_RTD_4.4_2.0.0_HF02_DS_updatesite_D2106
- IPCF -> SW32G2_IPCF_4.3.0_D2109_updatesite
I think they are all compatible, as with the same version, it works fine on windows 10, as i said, also.
Ubuntu 20 is not in the list of supported host operating systems of S32DS 3.4.
As of the rest, the information you provided does not allow to identify the root
cause of the problem. The symptoms you describes do not match any known problem
with S32DS. What you can do is:
Best Regards,
Platon