{"action":"created","issue":{"url":"https://api.github.com/repos/weidai11/cryptopp/issues/225","repository_url":"https://api.github.com/repos/weidai11/cryptopp","labels_url":"https://api.github.com/repos/weidai11/cryptopp/issues/225/labels{/name}","comments_url":"https://api.github.com/repos/weidai11/cryptopp/issues/225/comments","events_url":"https://api.github.com/repos/weidai11/cryptopp/issues/225/events","html_url":"https://github.com/weidai11/cryptopp/issues/225","id":165706469,"number":225,"title":"Compiling cryptopp 5.6.3 on arm64","user":{"login":"satindergrewal","id":12998093,"avatar_url":"https://avatars.githubusercontent.com/u/12998093?v=3","gravatar_id":"","url":"https://api.github.com/users/satindergrewal","html_url":"https://github.com/satindergrewal","followers_url":"https://api.github.com/users/satindergrewal/followers","following_url":"https://api.github.com/users/satindergrewal/following{/other_user}","gists_url":"https://api.github.com/users/satindergrewal/gists{/gist_id}","starred_url":"https://api.github.com/users/satindergrewal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/satindergrewal/subscriptions","organizations_url":"https://api.github.com/users/satindergrewal/orgs","repos_url":"https://api.github.com/users/satindergrewal/repos","events_url":"https://api.github.com/users/satindergrewal/events{/privacy}","received_events_url":"https://api.github.com/users/satindergrewal/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/weidai11/cryptopp/labels/arm64","name":"arm64","color":"0052cc"},{"url":"https://api.github.com/repos/weidai11/cryptopp/labels/can't%20duplicate","name":"can't duplicate","color":"fbca04"},{"url":"https://api.github.com/repos/weidai11/cryptopp/labels/linux","name":"linux","color":"e11d21"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-07-15T03:54:14Z","updated_at":"2016-07-15T06:00:38Z","closed_at":"2016-07-15T05:40:44Z","body":"I'm trying to compile it on NVIDIA TX1 which is having arm64 A57 processor, and getting follow error:\r\n\r\n```shell\r\nubuntu@tegra-ubuntu:~/cryptopp-CRYPTOPP_5_6_3$ make\r\nWARNING: CRYPTOPP_NO_UNALIGNED_DATA_ACCESS is not defined in config.h.\r\nWARNING: CRYPTOPP_INIT_PRIORITY is not defined in config.h.\r\nWARNING: CRYPTOPP_MAINTAIN_BACKWARDS_COMPATIBILITY_562 is defined in config.h.\r\nWARNING: You should make these changes in config.h, and not CXXFLAGS.\r\nWARNING: You can 'mv config.recommend config.h', but it breaks versioning.\r\nWARNING: See http://cryptopp.com/wiki/config.h for more details.\r\n\r\ng++ -DNDEBUG -g2 -O2 -pipe -fPIC -c cryptlib.cpp\r\ng++ -DNDEBUG -g2 -O2 -pipe -fPIC -c 3way.cpp\r\ng++ -DNDEBUG -g2 -O2 -pipe -fPIC -c adler32.cpp\r\ng++ -DNDEBUG -g2 -O2 -pipe -fPIC -c algebra.cpp\r\ng++ -DNDEBUG -g2 -O2 -pipe -fPIC -c algparam.cpp\r\ng++ -DNDEBUG -g2 -O2 -pipe -fPIC -c arc4.cpp\r\ng++ -DNDEBUG -g2 -O2 -pipe -fPIC -c asn.cpp\r\ng++ -DNDEBUG -g2 -O2 -pipe -fPIC -c authenc.cpp\r\ng++ -DNDEBUG -g2 -O2 -pipe -fPIC -c base32.cpp\r\ng++ -DNDEBUG -g2 -O2 -pipe -fPIC -c base64.cpp\r\ng++ -DNDEBUG -g2 -O2 -pipe -fPIC -c basecode.cpp\r\ng++ -DNDEBUG -g2 -O2 -pipe -fPIC -c bfinit.cpp\r\ng++ -DNDEBUG -g2 -O2 -pipe -fPIC -c blowfish.cpp\r\ng++ -DNDEBUG -g2 -O2 -pipe -fPIC -c blumshub.cpp\r\ng++ -DNDEBUG -g2 -O2 -pipe -fPIC -c camellia.cpp\r\ng++ -DNDEBUG -g2 -O2 -pipe -fPIC -c cast.cpp\r\ng++ -DNDEBUG -g2 -O2 -pipe -fPIC -c casts.cpp\r\ng++ -DNDEBUG -g2 -O2 -pipe -fPIC -c cbcmac.cpp\r\ng++ -DNDEBUG -g2 -O2 -pipe -fPIC -c ccm.cpp\r\ng++ -DNDEBUG -g2 -O2 -pipe -fPIC -c channels.cpp\r\ng++ -DNDEBUG -g2 -O2 -pipe -fPIC -c cmac.cpp\r\ng++ -DNDEBUG -g2 -O2 -pipe -fPIC -c crc.cpp\r\ng++ -DNDEBUG -g2 -O2 -pipe -fPIC -c default.cpp\r\ndefault.cpp: In constructor ‘CryptoPP::DefaultEncryptorWithMAC::DefaultEncryptorWithMAC(const char*, CryptoPP::BufferedTransformation*)’:\r\ndefault.cpp:220:39: warning: ‘DefaultEncryptor’ is deprecated (declared at default.h:29): DefaultEncryptor will be changing in the near future because the algorithms are no longer secure [-Wdeprecated-declarations]\r\n  SetFilter(new HashFilter(*m_mac, new DefaultEncryptor(passphrase), true));\r\n                                       ^\r\ndefault.cpp: In constructor ‘CryptoPP::DefaultEncryptorWithMAC::DefaultEncryptorWithMAC(const byte*, size_t, CryptoPP::BufferedTransformation*)’:\r\ndefault.cpp:227:39: warning: ‘DefaultEncryptor’ is deprecated (declared at default.h:29): DefaultEncryptor will be changing in the near future because the algorithms are no longer secure [-Wdeprecated-declarations]\r\n  SetFilter(new HashFilter(*m_mac, new DefaultEncryptor(passphrase, passphraseLength), true));\r\n                                       ^\r\ndefault.cpp: In constructor ‘CryptoPP::DefaultDecryptorWithMAC::DefaultDecryptorWithMAC(const char*, CryptoPP::BufferedTransformation*, bool)’:\r\ndefault.cpp:243:16: warning: ‘DefaultDecryptor’ is deprecated (declared at default.h:63): DefaultDecryptor will be changing in the near future because the algorithms are no longer secure [-Wdeprecated-declarations]\r\n  SetFilter(new DefaultDecryptor(passphrase, m_hashVerifier=new HashVerifier(*m_mac, NULL, HashVerifier::PUT_MESSAGE), throwException));\r\n                ^\r\ndefault.cpp: In constructor ‘CryptoPP::DefaultDecryptorWithMAC::DefaultDecryptorWithMAC(const byte*, size_t, CryptoPP::BufferedTransformation*, bool)’:\r\ndefault.cpp:251:16: warning: ‘DefaultDecryptor’ is deprecated (declared at default.h:63): DefaultDecryptor will be changing in the near future because the algorithms are no longer secure [-Wdeprecated-declarations]\r\n  SetFilter(new DefaultDecryptor(passphrase, passphraseLength, m_hashVerifier=new HashVerifier(*m_mac, NULL, HashVerifier::PUT_MESSAGE), throwException));\r\n                ^\r\ndefault.cpp: In member function ‘CryptoPP::DefaultDecryptor::State CryptoPP::DefaultDecryptorWithMAC::CurrentState() const’:\r\ndefault.cpp:256:44: warning: ‘DefaultDecryptor’ is deprecated (declared at default.h:63): DefaultDecryptor will be changing in the near future because the algorithms are no longer secure [-Wdeprecated-declarations]\r\n  return static_cast<const DefaultDecryptor *>(m_filter.get())->CurrentState();\r\n                                            ^\r\ng++ -DNDEBUG -g2 -O2 -pipe -fPIC -c des.cpp\r\ng++ -DNDEBUG -g2 -O2 -pipe -fPIC -c dessp.cpp\r\ng++ -DNDEBUG -g2 -O2 -pipe -fPIC -c dh2.cpp\r\ng++ -DNDEBUG -g2 -O2 -pipe -fPIC -c dh.cpp\r\ng++ -DNDEBUG -g2 -O2 -pipe -fPIC -c dll.cpp\r\n{standard input}: Assembler messages:\r\n{standard input}:167101: Warning: end of file not at end of a line; newline inserted\r\n{standard input}:167480: Error: unknown mnemonic `m' -- `m'\r\n{standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive\r\ng++: internal compiler error: Killed (program cc1plus)\r\nPlease submit a full bug report,\r\nwith preprocessed source if appropriate.\r\nSee <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions.\r\nmake: *** [dll.o] Error 4\r\n```\r\n\r\nNot sure what to troubleshoot looking at this part:\r\n\r\n```shell\r\n{standard input}: Assembler messages:\r\n{standard input}:167101: Warning: end of file not at end of a line; newline inserted\r\n{standard input}:167480: Error: unknown mnemonic `m' -- `m'\r\n{standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive\r\ng++: internal compiler error: Killed (program cc1plus)\r\nPlease submit a full bug report,\r\nwith preprocessed source if appropriate.\r\nSee <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions.\r\nmake: *** [dll.o] Error 4\r\n```"},"comment":{"url":"https://api.github.com/repos/weidai11/cryptopp/issues/comments/232866637","html_url":"https://github.com/weidai11/cryptopp/issues/225#issuecomment-232866637","issue_url":"https://api.github.com/repos/weidai11/cryptopp/issues/225","id":232866637,"user":{"login":"noloader","id":3538226,"avatar_url":"https://avatars.githubusercontent.com/u/3538226?v=3","gravatar_id":"","url":"https://api.github.com/users/noloader","html_url":"https://github.com/noloader","followers_url":"https://api.github.com/users/noloader/followers","following_url":"https://api.github.com/users/noloader/following{/other_user}","gists_url":"https://api.github.com/users/noloader/gists{/gist_id}","starred_url":"https://api.github.com/users/noloader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noloader/subscriptions","organizations_url":"https://api.github.com/users/noloader/orgs","repos_url":"https://api.github.com/users/noloader/repos","events_url":"https://api.github.com/users/noloader/events{/privacy}","received_events_url":"https://api.github.com/users/noloader/received_events","type":"User","site_admin":false},"created_at":"2016-07-15T06:00:38Z","updated_at":"2016-07-15T06:00:38Z","body":"> I'm trying to compile it on NVIDIA TX1 which is having arm64 A57 processor ...\r\n\r\nBy the way, that's an expensive dev board at $599 USD.\r\n\r\nThere are at least two less expensive ones I am aware of. I use them for testing Crypto++ on-device.\r\n\r\n* [LeMaker HiKey](http://www.amazon.com/LeMaker-HiKey-Octa-core-64-bit-Complete/dp/B019O3QTSA), 8-cores, 2 each A-53, $169 USD\r\n* [SnapDragon 410c](http://www.amazon.com/DragonBoard-410c-Kit-Powered-AWS/dp/B01600X7IU), $75 USD\r\n\r\nI recommend the HiKey. The SnapDragon 410c is produced by a company called Arrow Electronics, and they are complete assholes. Check their Seller rating on Amazon.\r\n"}}
{"actor":{"display_login":"noloader"}}