SE050-PLUG-TRUST-MW compilation issue

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

SE050-PLUG-TRUST-MW compilation issue

ソリューションへジャンプ
1,958件の閲覧回数
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,855件の閲覧回数
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,855件の閲覧回数
ramakrishnathum
Contributor II

Please find the logs here

0 件の賞賛
返信
1,856件の閲覧回数
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 件の賞賛
返信