RaspPi with -enable-ec_nistp_64_gcc_128

Yesterday, Nick Mathewson wrote: One thing that you should try is seeing whether the latest 0.2.4.x release does any better for you. In particular, I'd recommend trying the just-released 0.2.4.16-rc, with openssl 1.0.1e, and make sure that openssl 1.0.1e was built with the -enable-ec_nistp_64_gcc_128 option if possible. (I see you're already using 1.0.1e, but it doesn't appear to have been built with that option.) When I try to build openssl with this option on my Raspian system, I get *ecp_nistp224.c:43:3: error: unknown type name ‘__uint128_t’ * It would be helpful for me to get some guidance from someone who has done this on Raspbian. Regards, Harold

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello Harold, I'm not sure ARMv6 has the possibility to typedef a __uint128_t, which would make compiling your openssl with --enable-ec_nistp_64_gcc_128 impossible. I have nothing to back up those claims however, it is just a hunch. Someone else should confirm, if he/she has better knowledge. Regards, Martin On 06.09.2013 13:36, Harold Naparst wrote:
Yesterday, Nick Mathewson wrote:
One thing that you should try is seeing whether the latest 0.2.4.x release does any better for you. In particular, I'd recommend trying the just-released 0.2.4.16-rc, with openssl 1.0.1e, and make sure that openssl 1.0.1e was built with the -enable-ec_nistp_64_gcc_128 option if possible. (I see you're already using 1.0.1e, but it doesn't appear to have been built with that option.)
When I try to build openssl with this option on my Raspian system, I get
/ecp_nistp224.c:43:3: error: unknown type name ?__uint128_t?
/ It would be helpful for me to get some guidance from someone who has done this on Raspbian.
Regards, Harold
_______________________________________________ tor-relays mailing list tor-relays@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.21 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBAgAGBQJSKdTFAAoJEM1jnLOhksr3ukkP/ilHpPqVl2M9pi7Pr3aE7A6A QDYD9rOnwcTZXrbDVbWiUNrOo/Kp+4MXIxPlH3wsYQwhuF05rwkdwOnlEHdwuFAH RUrE4NrRnFmbGm1WkDu9dN+XghGP4s0rbz1x0dquIziC+jvCYlzg4lPDkblluHFp FuLfTvr4bh0aKJtdxia4gBmB6x5RqFaRg6CZIjmRG9ScIwuhIDUB+D9dx4Z9Y2cj ZytMDgPL8IzgcFC/FxxakzWy7BYtYQCW0PbCgqNXHJNKlh5AUNcVlRBC68uMj7Sm +WkTypb3Y/cuA0ocjo1zo6NoMfM91Iq3xrPLoMvWI/Cnt03qYGDjaVwJn0qFxNBT oIS/7KzojTve2ZqCahF+yn4zp1JUocafJjIpkR6NyY0K37fi2Jz9ZDKahac+BgXB od/ohUQxY87iKhWc/pQBzC77Rdvt65KmUz0Q0U6mdkDmfcKfk44MCdu2E+Zq/wcZ cav5sdqqb1wnmQrlIMj4+PPa9h21sdzq6dfIGojlyyro8W5lqotC3wQKLN7G2qRU lrFszAbpYGEu1BEIl3gYuxcX2lGDdHEk8DEtPUyFGl7xhS6wtjBQkqdnzlspPD6b 5+ziqFkRoqfJ396khF5kGhL7O/j+rLD3MdOj2T3ikft+n3LRLyH2/7uaSC9K5OUo OFMfXu5Hh9n0apiI8+sh =sU3y -----END PGP SIGNATURE-----

On Fri, Sep 6, 2013 at 9:12 AM, Martin Weinelt <tor@linuxlounge.net> wrote:
On 06.09.2013 13:36, Harold Naparst wrote:
/ecp_nistp224.c:43:3: error: unknown type name ?__uint128_t?
I'm not sure ARMv6 has the possibility to typedef a __uint128_t, which would make compiling your openssl with --enable-ec_nistp_64_gcc_128 impossible.
There are three equally plausible scenarios: Your compiler doesn't support 128-bit unsigned integers; your compiler does support them, but OpenSSL is being compiled with the wrong command-line options, so they're disabled; or the actual source code is making assumptions about _how to get at the 128-bit unsigned integer type_ which are incorrect. I don't know which scenario you're in, but I can help you find out. Look through the compilation logs for openssl and find out the exact set of command-line options given to gcc to compile ecp_nistp224.c. Then, using the same set of options, except replacing -c with -S and removing '-o whatever.o' if present, compile this test program: typedef unsigned int __attribute__((mode(TI))) uint128_t; const __SIZE_TYPE__ n = sizeof(uint128_t); If this fails to compile, post the command line and the *unedited* error messages. If it compiles successfully, post the command line and the *unedited* .s file. zw
participants (3)
-
Harold Naparst
-
Martin Weinelt
-
Zack Weinberg