mochtu / libsodium-ios

Strong encryption for iOS. NaCl / libsodium build for iOS development. Used in CocoaPod 'libsodium-ios'.
Other
61 stars 14 forks source link

# error Unsupported byte ordering #3

Open ckrey opened 10 years ago

ckrey commented 10 years ago

CompileC /Users/ckrey/Library/Developer/Xcode/DerivedData/ypom-eknodschgozosheewmtihktyyoci/Build/Intermediates/ypom.build/Debug-iphoneos/ypom.build/Objects-normal/armv7/aes256-ctr.o /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256-ctr.c normal armv7 c com.apple.compilers.llvm.clang.1_0.compiler cd /Users/ckrey/ypom/ypom setenv LANG en_US.US-ASCII setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -arch armv7 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fmodules -fmodules-cache-path=/Users/ckrey/Library/Developer/Xcode/DerivedData/ModuleCache -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -DDEBUG=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -fstrict-aliasing -Wdeprecated-declarations -g -Wno-sign-conversion -miphoneos-version-min=7.0 -iquote /Users/ckrey/Library/Developer/Xcode/DerivedData/ypom-eknodschgozosheewmtihktyyoci/Build/Intermediates/ypom.build/Debug-iphoneos/ypom.build/ypom-generated-files.hmap -I/Users/ckrey/Library/Developer/Xcode/DerivedData/ypom-eknodschgozosheewmtihktyyoci/Build/Intermediates/ypom.build/Debug-iphoneos/ypom.build/ypom-own-target-headers.hmap -I/Users/ckrey/Library/Developer/Xcode/DerivedData/ypom-eknodschgozosheewmtihktyyoci/Build/Intermediates/ypom.build/Debug-iphoneos/ypom.build/ypom-all-target-headers.hmap -iquote /Users/ckrey/Library/Developer/Xcode/DerivedData/ypom-eknodschgozosheewmtihktyyoci/Build/Intermediates/ypom.build/Debug-iphoneos/ypom.build/ypom-project-headers.hmap -I/Users/ckrey/Library/Developer/Xcode/DerivedData/ypom-eknodschgozosheewmtihktyyoci/Build/Products/Debug-iphoneos/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/ckrey/libsodium-ios/src/libsodium/include -I/Users/ckrey/Library/Developer/Xcode/DerivedData/ypom-eknodschgozosheewmtihktyyoci/Build/Intermediates/ypom.build/Debug-iphoneos/ypom.build/DerivedSources/armv7 -I/Users/ckrey/Library/Developer/Xcode/DerivedData/ypom-eknodschgozosheewmtihktyyoci/Build/Intermediates/ypom.build/Debug-iphoneos/ypom.build/DerivedSources -F/Users/ckrey/Library/Developer/Xcode/DerivedData/ypom-eknodschgozosheewmtihktyyoci/Build/Products/Debug-iphoneos -F/Users/ckrey/MQTT-Client-Framework/MQTTClient/dist/MQTTClient.framework/Headers -F/Users/ckrey/MQTT-Client-Framework/MQTTClient/dist/MQTTClient.framework/Headers -F/Users/ckrey/MQTT-Client-Framework/MQTTClient/dist/MQTTClient.framework/Headers -F/Users/ckrey/MQTT-Client-Framework/MQTTClient/dist -include /Users/ckrey/Library/Developer/Xcode/DerivedData/ypom-eknodschgozosheewmtihktyyoci/Build/Intermediates/PrecompiledHeaders/ypom-Prefix-eufblrivdkmmtygfmmmzppmouteb/ypom-Prefix.pch -MMD -MT dependencies -MF /Users/ckrey/Library/Developer/Xcode/DerivedData/ypom-eknodschgozosheewmtihktyyoci/Build/Intermediates/ypom.build/Debug-iphoneos/ypom.build/Objects-normal/armv7/aes256-ctr.d --serialize-diagnostics /Users/ckrey/Library/Developer/Xcode/DerivedData/ypom-eknodschgozosheewmtihktyyoci/Build/Intermediates/ypom.build/Debug-iphoneos/ypom.build/Objects-normal/armv7/aes256-ctr.dia -c /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256-ctr.c -o /Users/ckrey/Library/Developer/Xcode/DerivedData/ypom-eknodschgozosheewmtihktyyoci/Build/Intermediates/ypom.build/Debug-iphoneos/ypom.build/Objects-normal/armv7/aes256-ctr.o

In file included from /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256-ctr.c:10: In file included from /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256.h:6: /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes-table.h:10:3: error: Unsupported byte ordering

error Unsupported byte ordering

^ In file included from /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256-ctr.c:10: /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256.h:20:3: error: Unsupported byte ordering

error Unsupported byte ordering

^ /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256-ctr.c:81:36: warning: implicit declaration of function 'SWP32' is invalid in C99 [-Wimplicit-function-declaration] ctx->round_key[i][j] = SWP32(w[(i<<2)+j]); ^ /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256-ctr.c:108:3: warning: implicit declaration of function 'LEROT' is invalid in C99 [-Wimplicit-function-declaration] round(ctx,x0,x1,x2,x3,y0,y1,y2,y3,1); ^ In file included from /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256-ctr.c:10: /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256.h:58:14: note: expanded from macro 'round' t0 = LEROT(x0, 0); \ ^ /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256-ctr.c:108:3: error: use of undeclared identifier 'T0' In file included from /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256-ctr.c:10: /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256.h:59:16: note: expanded from macro 'round' tem0 = T0[t0]; \ ^ /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256-ctr.c:108:3: error: use of undeclared identifier 'T1' In file included from /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256-ctr.c:10: /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256.h:61:23: note: expanded from macro 'round' tem1 = tem0 ^ T1[t1]; \ ^ /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256-ctr.c:108:3: error: use of undeclared identifier 'T2' In file included from /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256-ctr.c:10: /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256.h:63:23: note: expanded from macro 'round' tem2 = tem1 ^ T2[t2]; \ ^ /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256-ctr.c:108:3: error: use of undeclared identifier 'T3' In file included from /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256-ctr.c:10: /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256.h:65:23: note: expanded from macro 'round' tem3 = tem2 ^ T3[t3]; \ ^ /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256-ctr.c:108:3: error: use of undeclared identifier 'T0' In file included from /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256-ctr.c:10: /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256.h:69:16: note: expanded from macro 'round' tem4 = T0[t4]; \ ^ /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256-ctr.c:108:3: error: use of undeclared identifier 'T1' In file included from /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256-ctr.c:10: /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256.h:71:23: note: expanded from macro 'round' tem5 = tem4 ^ T1[t5]; \ ^ /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256-ctr.c:108:3: error: use of undeclared identifier 'T2' In file included from /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256-ctr.c:10: /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256.h:73:23: note: expanded from macro 'round' tem6 = tem5 ^ T2[t6]; \ ^ /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256-ctr.c:108:3: error: use of undeclared identifier 'T3' In file included from /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256-ctr.c:10: /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256.h:75:23: note: expanded from macro 'round' tem7 = tem6 ^ T3[t7]; \ ^ /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256-ctr.c:108:3: error: use of undeclared identifier 'T0' In file included from /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256-ctr.c:10: /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256.h:79:16: note: expanded from macro 'round' tem8 = T0[t8]; \ ^ /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256-ctr.c:108:3: error: use of undeclared identifier 'T1' In file included from /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256-ctr.c:10: /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256.h:81:23: note: expanded from macro 'round' tem9 = tem8 ^ T1[t9]; \ ^ /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256-ctr.c:108:3: error: use of undeclared identifier 'T2' In file included from /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256-ctr.c:10: /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256.h:83:24: note: expanded from macro 'round' tem10 = tem9 ^ T2[t10]; \ ^ /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256-ctr.c:108:3: error: use of undeclared identifier 'T3' In file included from /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256-ctr.c:10: /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256.h:85:25: note: expanded from macro 'round' tem11 = tem10 ^ T3[t11];\ ^ /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256-ctr.c:108:3: error: use of undeclared identifier 'T0' In file included from /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256-ctr.c:10: /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256.h:89:17: note: expanded from macro 'round' tem12 = T0[t12]; \ ^ /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256-ctr.c:108:3: error: use of undeclared identifier 'T1' In file included from /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256-ctr.c:10: /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256.h:91:25: note: expanded from macro 'round' tem13 = tem12 ^ T1[t13];\ ^ /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256-ctr.c:108:3: error: use of undeclared identifier 'T2' In file included from /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256-ctr.c:10: /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256.h:93:25: note: expanded from macro 'round' tem14 = tem13 ^ T2[t14];\ ^ /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256-ctr.c:108:3: error: use of undeclared identifier 'T3' In file included from /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256-ctr.c:10: /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256.h:95:25: note: expanded from macro 'round' tem15 = tem14 ^ T3[t15];\ ^ /Users/ckrey/libsodium-ios/src/libsodium/crypto_stream/aes256estream/hongjun/aes256-ctr.c:109:37: error: use of undeclared identifier 'T0' ctx->first_round_output_x0 = y0 ^ T0[0]; ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 2 warnings and 20 errors generated.

iparq commented 10 years ago

I'm getting this too. Somewhere I think there should be a generated header file that didn't get added.