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 failure with gcc 14 #59

Open
micwoj92 opened this issue Aug 8, 2024 · 0 comments · May be fixed by #60
Open

Build failure with gcc 14 #59

micwoj92 opened this issue Aug 8, 2024 · 0 comments · May be fixed by #60

Comments

@micwoj92
Copy link

micwoj92 commented Aug 8, 2024

Hello,

GCC14 changed some warning into errors. This affects this package. I have found this error while building mosdepth:

/build/.cache/nim/mosdepth_d/@m..@s..@[email protected]@[email protected]@sdocopt.nim.c: In function ‘single_match__OOZOOZOOZOnimbleZpkgs50Zdocopt4548O55O4945515655f49ae4955f51b55545048c55564952cf5252a5350d51d5749b56574854e57Zdocopt_u2684’:
/build/.cache/nim/mosdepth_d/@m..@s..@[email protected]@[email protected]@sdocopt.nim.c:6103:51: error: assignment to ‘tyObject_PatterncolonObjectType___6EsHdno9aUDLhFZb13CV9bjg *’ from incompatible pointer type ‘tyObject_ArgumentcolonObjectType___5mOF6yv6X1hpdSvzT9bHwag *’ [-Wincompatible-pointer-types]
 6103 |                                         colontmp_ = argument__OOZOOZOOZOnimbleZpkgs50Zdocopt4548O55O4945515655f49ae4955f51b55545048c55564952cf5252a5350d51d5749b56574854e57Zdocopt_u263(colontmpD__2, (*pattern).value);
      |                                                   ^
/build/.cache/nim/mosdepth_d/@m..@s..@[email protected]@[email protected]@sdocopt.nim.c: In function ‘single_match__OOZOOZOOZOnimbleZpkgs50Zdocopt4548O55O4945515655f49ae4955f51b55545048c55564952cf5252a5350d51d5749b56574854e57Zdocopt_u2696’:
/build/.cache/nim/mosdepth_d/@m..@s..@[email protected]@[email protected]@sdocopt.nim.c:6328:59: error: assignment to ‘tyObject_PatterncolonObjectType___6EsHdno9aUDLhFZb13CV9bjg *’ from incompatible pointer type ‘tyObject_CommandcolonObjectType___d0p03CWXIC0dvrbxEPp3tw *’ [-Wincompatible-pointer-types]
 6328 |                                                 colontmp_ = command__OOZOOZOOZOnimbleZpkgs50Zdocopt4548O55O4945515655f49ae4955f51b55545048c55564952cf5252a5350d51d5749b56574854e57Zdocopt_u569(colontmpD__4, colontmpD__5);
      |                                                           ^
Error: execution of an external compiler program 'gcc -c  -w -fmax-errors=3 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -pthread   -I/usr/lib/nim/lib -I/build/mosdepth/src/mosdepth-0.3.8 -o /build/.cache/nim/mosdepth_d/@m..@s..@[email protected]@[email protected]@sdocopt.nim.c.o /build/.cache/nim/mosdepth_d/@m..@s..@[email protected]@[email protected]@sdocopt.nim.c' failed with exit code: 1


       Tip: 100 messages have been suppressed, use --verbose to show them.
nimble.nim(229)          buildFromDir

    Error:  Build failed for the package: mosdepth

This can be worked around by using --passC:-Wno-error=incompatible-pointer-types.

@dodopod dodopod linked a pull request Sep 20, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant