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 error with gcc 12.1 #155

Closed
sonic42 opened this issue May 7, 2022 · 5 comments
Closed

Build error with gcc 12.1 #155

sonic42 opened this issue May 7, 2022 · 5 comments
Assignees

Comments

@sonic42
Copy link

sonic42 commented May 7, 2022

First build tests (4.4.28) with gcc 12.1 produce this failure message:

/bin/bash ./libtool --tag=CC --mode=compile x86_64-cross-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./lib -DIN_LIBCRYPT -Wall -Wextra -Walloc-zero -Walloca -Wbad-function-cast -Wcast-align -Wcast-qual -Wconversion -Wformat=2 -Wformat-overflow=2 -Wformat-signedness -Wformat-truncation=1 -Wlogical-op -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wnull-dereference -Wold-style-definition -Wpointer-arith -Wrestrict -Wshadow -Wstrict-overflow=2 -Wstrict-prototypes -Wundef -Wvla -Wwrite-strings -Wpedantic -Werror -fno-plt -O2 -pipe -Wall -fexceptions -fPIC -m64 -mtune=native -MT lib/libcrypt_la-crypt-gost-yescrypt.lo -MD -MP -MF lib/.deps/libcrypt_la-crypt-gost-yescrypt.Tpo -c -o lib/libcrypt_la-crypt-gost-yescrypt.lo test -f 'lib/crypt-gost-yescrypt.c' || echo './'lib/crypt-gost-yescrypt.c
In function 'des_gen_hash',
inlined from '_crypt_crypt_descrypt_rn' at lib/crypt-des.c:202:3:
lib/crypt-des.c:127:10: error: assuming pointer wraparound does not occur when comparing P +- C1 with P +- C2 [-Werror=strict-overflow]
127 | if (sptr >= end)
| ^
lib/crypt-des.c:127:10: error: assuming pointer wraparound does not occur when comparing P +- C1 with P +- C2 [-Werror=strict-overflow]
cc1: all warnings being treated as errors
make[2]: *** [Makefile:2019: lib/libcrypt_la-crypt-des.lo] Error 1
make[2]: *** Waiting for unfinished jobs....

@besser82
Copy link
Owner

besser82 commented Nov 8, 2022

@sonic42 does this problem still occur?

@besser82 besser82 self-assigned this Nov 8, 2022
@sonic42
Copy link
Author

sonic42 commented Nov 8, 2022

Can be closed... With gcc 12.2 have no problems.

@besser82
Copy link
Owner

Allright! Thank you!

@besser82
Copy link
Owner

Re-opening, as this is related to #163.

@besser82 besser82 reopened this Nov 12, 2022
@besser82
Copy link
Owner

Fixed in release v4.4.31.

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