Harvey-OS / harvey

A distributed operating system
https://harvey-os.org/
MIT License
1.44k stars 106 forks source link

Failed #1132

Closed tucnak closed 3 years ago

tucnak commented 3 years ago

Expected behavior

A build, I guess?

Actual behavior

No build.

Steps to reproduce

  415 | SHA256_Final(u8 digest[], SHA256Ctx *context)
      |              ~~~^~~~~~~~
In file included from port/sha2.c:41:
/Volumes/Harvey/harvey/sys/include/sha2.h:85:30: note: previously declared as 'u8[32]' {aka 'unsigned char[32]'}
   85 | void            SHA256_Final(u8[SHA256DigestLength], SHA256Ctx *);
      |                              ^~~~~~~~~~~~~~~~~~~~~~
port/sha2.c:630:17: error: argument 1 of type 'u8[]' {aka 'unsigned char[]'} with mismatched bound [-Werror=array-parameter=]
  630 | SHA512_Final(u8 digest[], SHA512Ctx *context)
      |              ~~~^~~~~~~~
In file included from port/sha2.c:41:
/Volumes/Harvey/harvey/sys/include/sha2.h:93:30: note: previously declared as 'u8[64]' {aka 'unsigned char[64]'}
   93 | void            SHA512_Final(u8[SHA512DigestLength], SHA512Ctx *);
      |                              ^~~~~~~~~~~~~~~~~~~~~~
port/sha2.c:664:17: error: argument 1 of type 'u8[]' {aka 'unsigned char[]'} with mismatched bound [-Werror=array-parameter=]
  664 | SHA384_Final(u8 digest[], SHA384Ctx *context)
      |              ~~~^~~~~~~~
In file included from port/sha2.c:41:
/Volumes/Harvey/harvey/sys/include/sha2.h:89:30: note: previously declared as 'u8[48]' {aka 'unsigned char[48]'}
   89 | void            SHA384_Final(u8[SHA384DigestLength], SHA384Ctx *);
      |                              ^~~~~~~~~~~~~~~~~~~~~~
port/sha2.c:697:17: error: argument 1 of type 'u8[]' {aka 'unsigned char[]'} with mismatched bound [-Werror=array-parameter=]
  697 | SHA224_Final(u8 digest[], SHA224Ctx *context)
      |              ~~~^~~~~~~~
In file included from port/sha2.c:41:
/Volumes/Harvey/harvey/sys/include/sha2.h:81:30: note: previously declared as 'u8[28]' {aka 'unsigned char[28]'}
   81 | void            SHA224_Final(u8[SHA224DigestLength], SHA224Ctx *);
      |                              ^~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
exit status 1

gcc (GCC) 11.1.0

gmacd commented 3 years ago

Harvey is being rebased, off the 9legacy code base. Given the clean start, I'm going to close this. Hopefully the we'll soon get to the point you can try Harvey again.