AnsweredAssumed Answered

Unable to compile libc / EWL from sources (makefile and command line)

Question asked by Alexander Javer on Jun 28, 2016
Latest reply on Aug 23, 2016 by stanish

Hello, sorry for my bad English.

I'm working on a MPC5748G with S32 Design Studio (power pc).

 

I have tried to compile the EWL libc Library, for disabling unnecessary options etc, but with or without this modifications,

I'm unable to compile this library.

Errors always refers to missing objects file :

 

"make" -j6 -f EWL_C.GCC.mak -C EWL_C clean
make[1]: Entering directory `/c/Freescale/S32_Power_v1.1/S32DS/e200_ewl2/EWL_C'
rm -rf EWL_C.PA-GCC_CmdLineData
rm -rf ../lib/e200z0/libc.a ../lib/fp/e200z0/libc.a ../lib/fp/spfp/e200z0/libc.a
../lib/e200z2/libc.a ../lib/fp/e200z2/libc.a ../lib/fp/spfp/e200z2/libc.a ../li
b/e200z3/libc.a ../lib/fp/e200z3/libc.a ../lib/fp/spfp/e200z3/libc.a ../lib/e200
z4/libc.a ../lib/fp/e200z4/libc.a ../lib/fp/spfp/e200z4/libc.a ../lib/e200z6/lib
c.a ../lib/fp/e200z6/libc.a ../lib/fp/spfp/e200z6/libc.a ../lib/e200z7/libc.a ..
/lib/fp/e200z7/libc.a ../lib/fp/spfp/e200z7/libc.a ../lib/spe/e200z7/libc.a ../l
ib/fp/spe/e200z7/libc.a ../lib/fp/spfp/spe/e200z7/libc.a ../lib/e200z0/libc99.a
../lib/fp/e200z0/libc99.a ../lib/fp/spfp/e200z0/libc99.a ../lib/e200z2/libc99.a
../lib/fp/e200z2/libc99.a ../lib/fp/spfp/e200z2/libc99.a ../lib/e200z3/libc99.a
../lib/fp/e200z3/libc99.a ../lib/fp/spfp/e200z3/libc99.a ../lib/e200z4/libc99.a
../lib/fp/e200z4/libc99.a ../lib/fp/spfp/e200z4/libc99.a ../lib/e200z6/libc99.a
../lib/fp/e200z6/libc99.a ../lib/fp/spfp/e200z6/libc99.a ../lib/e200z7/libc99.a
../lib/fp/e200z7/libc99.a ../lib/fp/spfp/e200z7/libc99.a ../lib/spe/e200z7/libc9
9.a ../lib/fp/spe/e200z7/libc99.a ../lib/fp/spfp/spe/e200z7/libc99.a ../lib/e200
z0/libm.a ../lib/fp/e200z0/libm.a ../lib/fp/spfp/e200z0/libm.a ../lib/e200z2/lib
m.a ../lib/fp/e200z2/libm.a ../lib/fp/spfp/e200z2/libm.a ../lib/e200z3/libm.a ..
/lib/fp/e200z3/libm.a ../lib/fp/spfp/e200z3/libm.a ../lib/e200z4/libm.a ../lib/f
p/e200z4/libm.a ../lib/fp/spfp/e200z4/libm.a ../lib/e200z6/libm.a ../lib/fp/e200
z6/libm.a ../lib/fp/spfp/e200z6/libm.a ../lib/e200z7/libm.a ../lib/fp/e200z7/lib
m.a ../lib/fp/spfp/e200z7/libm.a ../lib/spe/e200z7/libm.a ../lib/fp/spe/e200z7/l
ibm.a ../lib/fp/spfp/spe/e200z7/libm.a ../lib/libuart_e200.a
make[1]: Leaving directory `/c/Freescale/S32_Power_v1.1/S32DS/e200_ewl2/EWL_C'
"make" -j6 -f EWL_C++.GCC.mak -C EWL_C++ clean
make[1]: Entering directory `/c/Freescale/S32_Power_v1.1/S32DS/e200_ewl2/EWL_C++
'
rm -rf EWL_Cpp.PA-GCC_CmdLineData
rm -rf ../lib/e200z0/libc++.a ../lib/fp/e200z0/libc++.a ../lib/fp/spfp/e200z0/li
bc++.a ../lib/e200z2/libc++.a ../lib/fp/e200z2/libc++.a ../lib/fp/spfp/e200z2/li
bc++.a ../lib/e200z3/libc++.a ../lib/fp/e200z3/libc++.a ../lib/fp/spfp/e200z3/li
bc++.a ../lib/e200z4/libc++.a ../lib/fp/e200z4/libc++.a ../lib/fp/spfp/e200z4/li
bc++.a ../lib/e200z6/libc++.a ../lib/fp/e200z6/libc++.a ../lib/fp/spfp/e200z6/li
bc++.a ../lib/e200z7/libc++.a ../lib/fp/e200z7/libc++.a ../lib/fp/spfp/e200z7/li
bc++.a ../lib/spe/e200z7/libc++.a ../lib/fp/spe/e200z7/libc++.a ../lib/fp/spfp/s
pe/e200z7/libc++.a ../lib/e200z0/libstdc++.a ../lib/fp/e200z0/libstdc++.a ../lib
/fp/spfp/e200z0/libstdc++.a ../lib/e200z2/libstdc++.a ../lib/fp/e200z2/libstdc++
.a ../lib/fp/spfp/e200z2/libstdc++.a ../lib/e200z3/libstdc++.a ../lib/fp/e200z3/
libstdc++.a ../lib/fp/spfp/e200z3/libstdc++.a ../lib/e200z4/libstdc++.a ../lib/f
p/e200z4/libstdc++.a ../lib/fp/spfp/e200z4/libstdc++.a ../lib/e200z6/libstdc++.a
../lib/fp/e200z6/libstdc++.a ../lib/fp/spfp/e200z6/libstdc++.a ../lib/e200z7/li
bstdc++.a ../lib/fp/e200z7/libstdc++.a ../lib/fp/spfp/e200z7/libstdc++.a ../lib/
spe/e200z7/libstdc++.a ../lib/fp/spe/e200z7/libstdc++.a ../lib/fp/spfp/spe/e200z
7/libstdc++.a
make[1]: Leaving directory `/c/Freescale/S32_Power_v1.1/S32DS/e200_ewl2/EWL_C++'

"make" -j6 -f EWL_Runtime.GCC.mak  -C EWL_Runtime clean
make[1]: Entering directory `/c/Freescale/S32_Power_v1.1/S32DS/e200_ewl2/EWL_Run
time'
rm -rf EWL_Runtime.PA-GCC_CmdLineData
rm -f ../lib/e200z0/librt.a ../lib/fp/e200z0/librt.a ../lib/fp/spfp/e200z0/librt
.a ../lib/e200z2/librt.a ../lib/fp/e200z2/librt.a ../lib/fp/spfp/e200z2/librt.a
../lib/e200z3/librt.a ../lib/fp/e200z3/librt.a ../lib/fp/spfp/e200z3/librt.a ../
lib/e200z4/librt.a ../lib/fp/e200z4/librt.a ../lib/fp/spfp/e200z4/librt.a ../lib
/e200z6/librt.a ../lib/fp/e200z6/librt.a ../lib/fp/spfp/e200z6/librt.a ../lib/e2
00z7/librt.a ../lib/fp/e200z7/librt.a ../lib/fp/spfp/e200z7/librt.a ../lib/spe/e
200z7/librt.a ../lib/fp/spe/e200z7/librt.a ../lib/fp/spfp/spe/e200z7/librt.a
rm -f
make[1]: Leaving directory `/c/Freescale/S32_Power_v1.1/S32DS/e200_ewl2/EWL_Runt
ime'

C:\Freescale\S32_Power_v1.1\S32DS\e200_ewl2>make
"make" -f EWL_C.GCC.mak -C EWL_C
make[1]: Entering directory `/c/Freescale/S32_Power_v1.1/S32DS/e200_ewl2/EWL_C'
"make" -j6 -f EWL_C.GCC.mak TARGET=e200z0/libc
make[2]: Entering directory `/c/Freescale/S32_Power_v1.1/S32DS/e200_ewl2/EWL_C'
mkdir -p ../lib/e200z0/
mkdir -p EWL_C.PA-GCC_CmdLineData/e200z0/libc/obj
"/bin/powerpc-eabivle-gcc" -D__PPC_EABI__=1 -meabi -Os -g -ffunction-sections -f
data-sections -c -nostdinc -isystem ../EWL_C/include -isystem ../EWL_C/src -isys
tem ../EWL_C/include/sun_math -isystem ../EWL_Runtime/include -c -nostdinc -isys
tem ../EWL_C/include -isystem ../EWL_C/src -isystem ../EWL_C/include/sun_math -i
system ../EWL_Runtime/include -ffunction-sections -fdata-sections -fdebug-prefix
-map="/c/Freescale/S32_Power_v1.1/S32DS/e200_ewl2/EWL_C"="S32DS/e200_ewl/EWL_C"
-include lib_ewl.prefix -mcpu=e200z0 -mno-spe -msoft-float -funsigned-char -mbig
-misel -mvle -D__PPC_VLE__=1 -mregnames  "src/assert/assert.c" -o "EWL_C.PA-GCC
_CmdLineData/e200z0/libc/obj/assert.o"
"/bin/powerpc-eabivle-gcc" -D__PPC_EABI__=1 -meabi -Os -g -ffunction-sections -f
data-sections -c -nostdinc -isystem ../EWL_C/include -isystem ../EWL_C/src -isys
tem ../EWL_C/include/sun_math -isystem ../EWL_Runtime/include -c -nostdinc -isys
tem ../EWL_C/include -isystem ../EWL_C/src -isystem ../EWL_C/include/sun_math -i
system ../EWL_Runtime/include -ffunction-sections -fdata-sections -fdebug-prefix
-map="/c/Freescale/S32_Power_v1.1/S32DS/e200_ewl2/EWL_C"="S32DS/e200_ewl/EWL_C"
-include lib_ewl.prefix -mcpu=e200z0 -mno-spe -msoft-float -funsigned-char -mbig
-misel -mvle -D__PPC_VLE__=1 -mregnames  "src/ctype/ctype.c" -o "EWL_C.PA-GCC_C
mdLineData/e200z0/libc/obj/ctype.o"
"/bin/powerpc-eabivle-gcc" -D__PPC_EABI__=1 -meabi -Os -g -ffunction-sections -f
data-sections -c -nostdinc -isystem ../EWL_C/include -isystem ../EWL_C/src -isys
tem ../EWL_C/include/sun_math -isystem ../EWL_Runtime/include -c -nostdinc -isys
tem ../EWL_C/include -isystem ../EWL_C/src -isystem ../EWL_C/include/sun_math -i
system ../EWL_Runtime/include -ffunction-sections -fdata-sections -fdebug-prefix
-map="/c/Freescale/S32_Power_v1.1/S32DS/e200_ewl2/EWL_C"="S32DS/e200_ewl/EWL_C"
-include lib_ewl.prefix -mcpu=e200z0 -mno-spe -msoft-float -funsigned-char -mbig
-misel -mvle -D__PPC_VLE__=1 -mregnames  "src/ctype/isalnum.c" -o "EWL_C.PA-GCC
_CmdLineData/e200z0/libc/obj/isalnum.o"
/bin/sh: /bin/powerpc-eabivle-gcc: No such file or directory
make[2]: *** [EWL_C.PA-GCC_CmdLineData/e200z0/libc/obj/assert.o] Error 127
make[2]: *** Waiting for unfinished jobs....
/bin/sh: /bin/powerpc-eabivle-gcc: No such file or directory
make[2]: *** [EWL_C.PA-GCC_CmdLineData/e200z0/libc/obj/ctype.o] Error 127
/bin/sh: /bin/powerpc-eabivle-gcc: No such file or directory
make[2]: *** [EWL_C.PA-GCC_CmdLineData/e200z0/libc/obj/isalnum.o] Error 127
make[2]: Leaving directory `/c/Freescale/S32_Power_v1.1/S32DS/e200_ewl2/EWL_C'
make[1]: *** [e200z0/libc] Error 2
make[1]: Leaving directory `/c/Freescale/S32_Power_v1.1/S32DS/e200_ewl2/EWL_C'
make: *** [all] Error 2

 

I tried a lot of things like:

- Used updated version of S32 (1.1).

- Used internal "utils" (make, etc.)

- ...

 

Folders (for objects files) are created, but no object file is present ...

Thank you very much for your help.

 

Cible MPC5748G.

Plateforme: PA.

VENDOR: GCC

Outcomes