chai2010 / chai2010/webp

Build Failure: Incompatibility with GCC 15 (cgo error: exit status 2)

Open
#77 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
723
Forks
113
PR merge metrics
No merged PRs in 30d

Description

Hello,

First, thank you for your work on this great library.

I've encountered a build issue when compiling my project with GCC 15. It seems that some of the C code in this library triggers new warnings in this newer compiler version, which then turn into fatal errors because of the -Werror flag used by cgo.

Environment:

Go Version: [ go 1.24.4]

GCC Version: 15.1.0

Operating System: Windows 11

Error Message:

cgo: exit status 2

Diagnosis:
The build is successful with older compilers like GCC 13. This strongly suggests that the issue is related to new compiler warnings introduced in GCC 14/15 that are now treated as errors.

Would it be possible to review the C code for compatibility with GCC 15 or adjust the build flags to handle these new warnings?

Thank you for your time and consideration.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the cgo build on Windows 11 with Go 1.24.4 and GCC 15.1.0, then compare it with GCC 13 to identify the warnings promoted to errors by -Werror. Inspect the library's C code and cgo build flags; done means the project builds successfully with GCC 15 without fatal compiler warnings.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, go
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.