SE050-PLUG-TRUST-MW compilation issue

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

SE050-PLUG-TRUST-MW compilation issue

跳至解决方案
2,039 次查看
ramakrishnathum
Contributor II

We are using imx6solox conected to SE050 using I2C .

I am facing compilation  issue like this

===================

cc1: error: '-Wformat-security' ignored without '-Wformat' [-Werror=format-security]
| cc1: some warnings being treated as errors
| demos/apdu_player/CMakeFiles/apdu_player_demo.dir/build.make:62: recipe for target 'demos/apdu_player/CMakeFiles/apdu_player_demo.dir/apdu_player.c.o' failed
| make[2]: *** [demos/apdu_player/CMakeFiles/apdu_player_demo.dir/apdu_player.c.o] Error 1
| CMakeFiles/Makefile2:1947: recipe for target 'demos/apdu_player/CMakeFiles/apdu_player_demo.dir/all' failed
| make[1]: *** [demos/apdu_player/CMakeFiles/apdu_player_demo.dir/all] Error 2
| Makefile:129: recipe for target 'all' failed
| make: *** [all] Error 2
| WARNING: exit code 1 from a shell command.

=================================================

please find the recipe and error log file attached and give me a suggestion

标签 (1)
0 项奖励
回复
1 解答
1,936 次查看
Kan_Li
NXP TechSupport
NXP TechSupport

Hello Pamakrishna,

There was no gcc version in the logs, but this most likely has to do with the version of gcc which seems to not support Wformat-security without Wformat.

Please remove -Wno-format in simw-top/demos/apdu_player/CMakeLists.txt:
change:
IF(CMAKE_COMPILER_IS_GNUCC)
ADD_DEFINITIONS("-Wno-unused-function -Wno-format")
ENDIF()
to:
IF(CMAKE_COMPILER_IS_GNUCC)
ADD_DEFINITIONS("-Wno-unused-function")
ENDIF()

Please kindly try it again and let me know if the problem is still there.

Hope that helps,

Have a great day,
Kan


-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,936 次查看
ramakrishnathum
Contributor II

Please find the logs here

0 项奖励
回复
1,937 次查看
Kan_Li
NXP TechSupport
NXP TechSupport

Hello Pamakrishna,

There was no gcc version in the logs, but this most likely has to do with the version of gcc which seems to not support Wformat-security without Wformat.

Please remove -Wno-format in simw-top/demos/apdu_player/CMakeLists.txt:
change:
IF(CMAKE_COMPILER_IS_GNUCC)
ADD_DEFINITIONS("-Wno-unused-function -Wno-format")
ENDIF()
to:
IF(CMAKE_COMPILER_IS_GNUCC)
ADD_DEFINITIONS("-Wno-unused-function")
ENDIF()

Please kindly try it again and let me know if the problem is still there.

Hope that helps,

Have a great day,
Kan


-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 项奖励
回复