AnsweredAssumed Answered

Problem with build_gcc_arm.sh script (echo)

Question asked by Gaetan CARLIER on Aug 25, 2014

Hello,

I working under Slackware 13 (terminal shell used is bash not dash)

I have just downloaded MQX 4.1.1 for Linux. I have downloaded gcc-arm-none-eabi-4_8-2014q1-20140314-linux.tar.bz2 form https://launchpad.net/gcc-arm-embedded/4.8/4.8-2014-q1-update .

I have modified MQX_4_1_1_LINUX_GA/build/common/make/global.mak as following

ifeq ($(TOOL),gcc_arm)

#TOOLCHAIN_ROOTDIR = C:/PROGRA~1/GNUTOO~1/43F2B~1.720

TOOLCHAIN_ROOTDIR = /opt/cross/arm/kinetis/gcc-arm-none-eabi-4_8_3-2014q1

endif

When I compile, I have following message

$ cd MQX_4_1_1_LINUX_GA/build/twrk70f120m/make

$ ./build_gcc_arm.sh

...

./build_gcc_arm.sh: line 5: creating: command not found

 

I suppose that problem come from global.mak

 

#----------------------------------------------------------

# macro, print message

# $(1) - message

#----------------------------------------------------------

ifeq ($(HOSTENV),WINDOWS)

PRINT = $(if $(1),@echo $(1),@cmd /C "@echo:")

endif

ifeq ($(HOSTENV),UNIX)

PRINT = @echo $(1)

endif

 

 

If I remove the @ before echo, I have all echo in one line (see mqx411b.log) :

 

echo echo echo 'creating directory : /root/documents/projects/kinetis/mqx-4.1/MQX_4_1_1_LINUX_GA/lib/twrk70f120m.gcc_arm/debug/bsp' echo 'creating directory : /root/documents/projects/kinetis/mqx-4.1/MQX_4_1_1_LINUX_GA/lib/twrk70f120m.gcc_arm/debug/bsp/obj' echo 'creating directory : /root/documents/projects/kinetis/mqx-4.1/MQX_4_1_1_LINUX_GA/lib/twrk70f120m.gcc_arm/debug/bsp/dep' creating directory : /root/documents/projects/kinetis/mqx-4.1/MQX_4_1_1_LINUX_GA/lib/twrk70f120m.gcc_arm/debug/bsp creating directory : /root/documents/projects/kinetis/mqx-4.1/MQX_4_1_1_LINUX_GA/lib/twrk70f120m.gcc_arm/debug/bsp/obj creating directory : /root/documents/projects/kinetis/mqx-4.1/MQX_4_1_1_LINUX_GA/lib/twrk70f120m.gcc_arm/debug/bsp/dep mkdir -p /root/documents/projects/kinetis/mqx-4.1/MQX_4_1_1_LINUX_GA/lib/twrk70f120m.gcc_arm/debug/bsp mkdir -p /root/documents/projects/kinetis/mqx-4.1/MQX_4_1_1_LINUX_GA/lib/twrk70f120m.gcc_arm/debug/bsp/obj mkdir -p /root/documents/projects/kinetis/mqx-4.1/MQX_4_1_1_LINUX_GA/lib/twrk70f120m.gcc_arm/debug/bsp/dep echo echo 'Compile c file: /root/documents/projects/kinetis/mqx-4.1/MQX_4_1_1_LINUX_GA/mqx/source/io/adc/kadc/adc_mk70.c to /root/documents/projects/kinetis/mqx-4.1/MQX_4_1_1_LINUX_GA/lib/twrk70f120m.gcc_arm/debug/bsp/obj/adc_mk70.o'

It seems that echo is not executed just its call is printed.

 

Best regards

Original Attachment has been moved to: mqx411b.log.zip

Original Attachment has been moved to: mqx411.log.zip

Outcomes