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

Compile Error on Alpine #2530

Closed
acode-x opened this issue Sep 15, 2023 · 2 comments
Closed

Compile Error on Alpine #2530

acode-x opened this issue Sep 15, 2023 · 2 comments

Comments

@acode-x
Copy link

acode-x commented Sep 15, 2023

Development Machine, OS, Compiler (and Other Relevant Toolchain Info)

  • gcc -dumpmachine
    x86_64-alpine-linux-musl
  • gcc --version
    gcc (Alpine 12.2.1_git20220924-r10) 12.2.1 20220924

SDK Version: LTS_08_2023

Protocol: MQTT

Describe the Bug

image

@CIPop
Copy link
Member

CIPop commented Sep 20, 2023

The warning is discussed in https://stackoverflow.com/questions/47450718/gcc7-2-argument-range-exceeds-maximum-object-size-9-7-werror-alloc-size-larg and https://gcc.gnu.org/bugzilla//show_bug.cgi?id=85783.

This is very likely a false positive as both operands should be fairly small and never exceed the maximum value of size_t.

My recommendation is to disable this warning (set compileOption_C to have -Wno-alloc-size-larger-than ). E.g. in ccmake ..:
image

@acode-x
Copy link
Author

acode-x commented Sep 22, 2023

Thanks CIPop. I'll suppress this warning for now.

@acode-x acode-x closed this as completed Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants