Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build issue on linux arm64 #489

Closed
ramcharan-palnati opened this issue May 24, 2023 · 3 comments
Closed

Build issue on linux arm64 #489

ramcharan-palnati opened this issue May 24, 2023 · 3 comments

Comments

@ramcharan-palnati
Copy link

Build issue on linux arm64

Os and CPU info :
Linux armeval 4.19.0-2-arm64 #1 SMP Debian 4.19.16-1 (2019-01-17) aarch64 GNU/Linux

 In function ‘set_ecuid’:
dlt-daemon-master/src/console/dlt-control-common.c:126:17: error: ‘strncpy’ specified bound 10 equals destination size [-Werror=stringop-truncation]
                 strncpy(local_ecuid, ecuid_conf, DLT_CTRL_ECUID_LEN);
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [src/console/logstorage/CMakeFiles/dlt-logstorage-ctrl.dir/build.make:102: src/console/logstorage/CMakeFiles/dlt-logstorage-ctrl.dir/__/dlt-control-common.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:546: src/console/logstorage/CMakeFiles/dlt-logstorage-ctrl.dir/all] 
@sevket-ozurfali
Copy link

Hi @ramcharan-palnati,

I had a similar issue and I have resolved it by editing the "CMakeLists.txt" file.

[Changelog]:

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7ce050b..ac17303 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -192,7 +192,7 @@ endif()
 add_compile_options(
     $<$<COMPILE_LANGUAGE:C>:-std=gnu99>
     $<$<COMPILE_LANGUAGE:CXX>:-std=gnu++11>
-    -Wall
+#    -Wall
     -Wextra
     # -pedantic
     -Wno-variadic-macros

I hope this information is helpful to you.

@michael-methner
Copy link
Collaborator

Hello @ramcharan-palnati ,
i cannot reproduce your issue. Which compiler are you using?
Can please compile with following option and provide the full log?

make dlt_control_common_lib VERBOSE=on

@michael-methner
Copy link
Collaborator

No reponse from reporter -> closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants