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 when using gcc 12. #139

Open
nkolotov opened this issue Dec 19, 2022 · 1 comment
Open

Build failure when using gcc 12. #139

nkolotov opened this issue Dec 19, 2022 · 1 comment

Comments

@nkolotov
Copy link

Attempt to build when using gcc 12.2.0 fails with the following error:

go build
# crawshaw.io/sqlite
In file included from /home/niko/go/pkg/mod/crawshaw.io/[email protected]/static.go:19:
/home/niko/go/pkg/mod/crawshaw.io/[email protected]/./c/sqlite3.c: In function 'sqlite3Fts5IndexQuery':
/home/niko/go/pkg/mod/crawshaw.io/[email protected]/./c/sqlite3.c:220863:18: warning: 'memcpy' specified bound 18446744073709551615 exceeds maximum object size 9223372036854775807 [-Wstringop-overflow=]
220863 |     if( nToken ) memcpy(&buf.p[1], pToken, nToken);
       |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# crawshaw.io/sqlite
cgo-generated-wrappers:11:14: error: 'cfree' redeclared as different kind of symbol
In file included from cgo-c-prolog-gccgo:2:
/usr/include/stdlib.h:449:13: note: previous declaration of 'cfree' with type 'void(void *)'
  449 | extern void cfree (void *__ptr) __THROW;
      |             ^~~~~
@BlitzBanana
Copy link

image
gcc (GCC) 12.3.1 20230508 (Red Hat 12.3.1-1)

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

2 participants