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

Compiling 0.37 on i686 ends with type error #578

Open
xambroz opened this issue May 16, 2024 · 0 comments
Open

Compiling 0.37 on i686 ends with type error #578

xambroz opened this issue May 16, 2024 · 0 comments

Comments

@xambroz
Copy link
Contributor

xambroz commented May 16, 2024

https://kojipkgs.fedoraproject.org//work/tasks/7452/117727452/build.log

prng.c: In function ‘nwipe_add_lagg_fibonacci_prng_init’:
prng.c:272:47: error: passing argument 2 of ‘add_lagg_fibonacci_init’ from incompatible pointer type [-Wincompatible-pointer-types]
272 | (add_lagg_fibonacci_state_t*) state, (unsigned long) ( seed->s ), seed->length / sizeof( unsigned long ) );
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| long unsigned int *
In file included from prng.c:28:
alfg/add_lagg_fibonacci_prng.h:40:75: note: expected ‘uint64_t *’ {aka ‘long long unsigned int ’} but argument is of type ‘long unsigned int
40 | void add_lagg_fibonacci_init( add_lagg_fibonacci_state_t
state, uint64_t init_key[], unsigned long key_length );
| ~~~~~~~~~^~~~~~~~~~
prng.c: In function ‘nwipe_xoroshiro256_prng_init’:
prng.c:288:41: error: passing argument 2 of ‘xoroshiro256_init’ from incompatible pointer type [-Wincompatible-pointer-types]
288 | (xoroshiro256_state_t
) state, (unsigned long) ( seed->s ), seed->length / sizeof( unsigned long ) );
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| long unsigned int *
In file included from prng.c:29:
xor/xoroshiro256_prng.h:39:63: note: expected ‘uint64_t *’ {aka ‘long long unsigned int *’} but argument is of type ‘long unsigned int
39 | void xoroshiro256_init( xoroshiro256_state_t
state, uint64_t init_key[], unsigned long key_length );
| ~~~~~~~~~^~~~~~~~~~

xambroz added a commit to xambroz/nwipe that referenced this issue May 16, 2024
This fixes the type error on i686 when compiling with gcc 14.
Mentioned in bug report martijnvanbrummelen#578
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

1 participant