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.3.2 error #26

Closed
917huB opened this issue Jan 15, 2022 · 4 comments
Closed

Compiling 0.3.2 error #26

917huB opened this issue Jan 15, 2022 · 4 comments

Comments

@917huB
Copy link

917huB commented Jan 15, 2022

Compiling v0.3.2 on oDroid C2 fails where as 0.3.1 compiles fine. Any suggestions would be appreciated.

make -f Makefile.linux
cc -c -o writeentropy.o writeentropy.c -Wall -Wextra -Werror -std=c99 -O3 -fPIC -I Keccak -I /usr/include/libftdi1 -DGIT_VERSION=\"0.3.2\" -DGIT_COMMIT=\"e80ddd78085abf3d06df2e0d8c08fd33dade78eb\" -DGIT_DATE=\"2019-08-12T21:24:02+02:00\" -DLINUX
writeentropy.c: In function ‘readNumberFromFile’:
writeentropy.c:29:29: error: comparison is always true due to limited range of data type [-Werror=type-limits]
     while( (c = getc(file)) != EOF
                             ^~
cc1: all warnings being treated as errors
make: *** [Makefile.linux:21: writeentropy.o] Error 1
@adudek16
Copy link

I am also seeing this error.

@adudek16
Copy link

Following the changes in the pull request #27 does allow for compiling.

@danb35
Copy link

danb35 commented Apr 30, 2022

I can confirm the error (under Ubuntu Server 22.04 LTS on a Raspberry Pi 4) and the fix.

@manuel-domke
Copy link
Collaborator

merged PR #27, thanks everyone

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

4 participants