imx8qxp M4 MCUXpresso SDK compile fail

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx8qxp M4 MCUXpresso SDK compile fail

1,456 Views
475143463
Contributor III

$ ./build.sh
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ubuntu/work-develop/M4/hello_world
[ 4%] [ 8%] [ 12%] [ 16%] Building C object CMakeFiles/hello_world.elf.dir/board/board.c.o
cc: warning: ‘-mcpu=’ is deprecated; use ‘-mtune=’ or ‘-march=’ instead
Building C object CMakeFiles/hello_world.elf.dir/board/clock_config.c.o
cc: error: unrecognized command line option ‘-mthumb’
cc: error: unrecognized command line option ‘-mapcs’
cc: error: unrecognized command line option ‘-mfloat-abi=hard’
cc: error: unrecognized command line option ‘-mfpu=fpv4-sp-d16’
make[2]: *** [CMakeFiles/hello_world.elf.dir/board/board.c.o] 错误 1
make[2]: *** 正在等待未完成的任务....
cc: warning: ‘-mcpu=’ is deprecated; use ‘-mtune=’ or ‘-march=’ instead
cc: error: unrecognized command line option ‘-mthumb’
Building C object CMakeFiles/hello_world.elf.dir/board/pin_mux.c.o
cc: error: unrecognized command line option ‘-mapcs’
cc: error: unrecognized command line option ‘-mfloat-abi=hard’
cc: error: unrecognized command line option ‘-mfpu=fpv4-sp-d16’
Building C object CMakeFiles/hello_world.elf.dir/component/lists/generic_list.c.o
cc: warning: ‘-mcpu=’ is deprecated; use ‘-mtune=’ or ‘-march=’ instead
cc: error: unrecognized command line option ‘-mthumb’
cc: error: unrecognized command line option ‘-mapcs’
cc: error: unrecognized command line option ‘-mfloat-abi=hard’
cc: error: unrecognized command line option ‘-mfpu=fpv4-sp-d16’
make[2]: *** [CMakeFiles/hello_world.elf.dir/board/clock_config.c.o] 错误 1
make[2]: *** [CMakeFiles/hello_world.elf.dir/board/pin_mux.c.o] 错误 1
cc: warning: ‘-mcpu=’ is deprecated; use ‘-mtune=’ or ‘-march=’ instead
cc: error: unrecognized command line option ‘-mthumb’
cc: error: unrecognized command line option ‘-mapcs’
cc: error: unrecognized command line option ‘-mfloat-abi=hard’
cc: error: unrecognized command line option ‘-mfpu=fpv4-sp-d16’
make[2]: *** [CMakeFiles/hello_world.elf.dir/component/lists/generic_list.c.o] 错误 1
make[1]: *** [CMakeFiles/hello_world.elf.dir/all] 错误 2
make: *** [all] 错误 2

build.sh:

#!/bin/sh

export ARMGCC_DIR=/opt/imx-m4/gcc-arm-none-eabi-7-2018-q2-update

./build_debug.sh

and,version of gcc is:

arm-none-eabi-gcc (GNU Tools for Arm Embedded Processors 7-2018-q2-update) 7.3.1 20180622 (release) [ARM/embedded-7-branch revision 261907]

Can you give me some advice??

Tags (1)
0 Kudos
1 Reply

1,359 Views
igorpadykov
NXP Employee
NXP Employee

Hi 一笑 独孤 

one can check toolchain requirements described in Getting Started document

included in SDK package, sect.3.1 Compiler/Debugger. SDK can be obtained on link

Welcome | MCUXpresso SDK Builder 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos