[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Please test: scrypt 1.2.99
- To: Graham Percival <gperciva@tarsnap.com>, James Turner <james@calminferno.net>
- Subject: Re: Please test: scrypt 1.2.99
- From: Colin Percival <cperciva@tarsnap.com>
- Date: Mon, 1 Jul 2019 09:56:24 -0700
- Autocrypt: addr=cperciva@tarsnap.com; prefer-encrypt=mutual; keydata= mQGhBElrAAcRBACDfDys4ZtK+ErCJ1HAzYeteKpm3OEsvT/49AjUTLihkF79HhIKrCQU+1KC zv7BwHCMLb6hq30As9L7iFKG7n5QFLFC4Te/VcITUnWHMG/c3ViLOfJGvi+9/nOEHaM1dVJY D6tEp5yM1nHmVQpo9932j4KGuGFR0LhOK5IHXOSfGwCgxSFDPdgxe2OEjWxjGgY+oV3EafcD +JROXCTjlcQiG/OguQH4Vks3mhHfFnEppLxTkDuYgHZQiUtpcT9ssH5khgqoTyMar05OUdAj ZIhNbWDh4LgTj+7ZmvLhXT5Zxw8LX9d7T36aTB8XDQSenDqEtinMWOb0TCBBLbsB8EFG1WTT ESbZci9jJS5yhtktuZoY/eM8uXMD/3k4FWFO80VRRkELSp+XSy/VlSQjyi/rhl2nQq/oOA9F oJbDaB0yq9VNhxP+uFBzBWSqeIX0t1ZWLtNfVFr4TRP5hihI5ICrg/0OpqgisKsU2NFe9xyO hyJLYmfD8ebpDJ/9k30C7Iju9pVrwLm1QgS4S2fqJRcR+U4WbjvP7CgStCVDb2xpbiBQZXJj aXZhbCA8Y3BlcmNpdmFAdGFyc25hcC5jb20+iGEEExECACEFAklrALYCGwMHCwkIBwMCAQQV AggDBBYCAwECHgECF4AACgkQOM7KaQxqam6/igCgn+z2k3V5ggNppmWrZstt1U2lugsAoL7L wS9V9yLtil3oWmHtwpUqYruEuQINBElrAAcQCAD3ZLMIsP4CIDoJORg+YY0lqLVBgcnF7pFb 4Uy2+KvdWofN+DKH61rZLjgXXkNE9M4EQC1B4lGttBP8IY2gs41y3AUogGdyFbidq99rCBz7 LTsgARHwFxZoaHmXyiZLEU1QZuMqwPZV1mCviRhN5E3rRqYNXVcrnXAAuhBpvNyj/ntHvcDN 2/m+ochiuBYueU4kX3lHya7sOj+mTsndcWmQ9soOUyr8O0r/BG088bMn4qqtUw4dl5/pglXk jbl7uOOPinKf0WVd2r6M0wLPJCD4NPHrCWRLLLAjwfjrtoSRvXxDbXhCdgGBa72+K8eYLzVs hgq7tJOoBWzjVK6XRxR7AAMGB/9Mo3iJ2DxqDecd02KCB5BsFDICbJGhPltU7FwrtbC7djSb XUrwsEVLHi4st4cbdGNCWCrp0BRezXZKohKnNAPFOTK++ZfgeKxrV2sJod+Q9RILF86tQ4XF 7A7Yme5hy92t/WgiU4vc/fWbgP8gV/19f8nunaT2E9NSa70mZFjZNu4iuwThoUUO5CV3Wo0Y UISsnRK8XD1+LR3A2qVyLiFRwh/miC1hgLFCTGCQ3GLxZeZzIpYSlGdQJ0L5lixW5ZQD9r1I 8i/8zhE6qRFAM0upUMI3Gt1Oq2w03DiXrZU0Fu/R8Rm8rlnkQKA+95mRTUq1xL5P5NZIi4gJ Z569OPMFiEkEGBECAAkFAklrAAcCGwwACgkQOM7KaQxqam41igCfbaldnFTu5uAdrnrghESv EI3CAo8AoLkNMks1pThl2BJNRm4CtTK9xZeH
- Cc: tarsnap-alphatest@tarsnap.com, "scrypt@tarsnap.com" <scrypt@tarsnap.com>
- In-reply-to: <20190701160422.GA25265@mac>
- Openpgp: preference=signencrypt
- References: <5e5c50f4-1ad8-9216-914e-56b1c417f6fa@tarsnap.com> <20190701140428.GA87284@soekris.calminferno.net> <20190701140708.GA94571@soekris.calminferno.net> <20190701160422.GA25265@mac>
On 2019-07-01 09:04, Graham Percival wrote:
> On Mon, Jul 01, 2019 at 10:07:08AM -0400, James Turner wrote:
>> On Mon, Jul 01, 2019 at 10:04:28AM -0400, James Turner wrote:
>>> On Sun, Jun 30, 2019 at 09:43:34PM -0700, Colin Percival wrote:
>>> In file included from libcperciva/alg/sha256.c:7:
>>> libcperciva/alg/sha256_shani.h:14: error: static or type qualifiers in abstract declarator
>>
>> I should have noted that was under gcc (GCC) 4.2.1 20070719. If I change
>> CC to the default clang, everything compiles just fine under OpenBSD.
Does this problem go away if you add -std=c99 to CFLAGS?
> I remember seeing those before, but I can't immediately find the github issue.
> The problem is that gcc 4.2.1 doesn't fully support C99. The code in question
> is:
>
> static void SHA256_Transform(uint32_t[static restrict 8],
> const uint8_t[static restrict 64], uint32_t[static restrict 64],
> uint32_t[static restrict 8]);
>
> which uses the [] new features in C99. (Or rather, these were "new" features
> 20 years ago.)
We worked around a problem with some compilers which didn't understand
'restrict' unless they were passed -std=c99, but I don't remember running
into systems which specifically failed with qualifiers in a function
declaration.
If -std=c99 fixes this, we should adjust posix-restrict.c.
--
Colin Percival
Security Officer Emeritus, FreeBSD | The power to serve
Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid