{"action":"created","issue":{"url":"https://api.github.com/repos/arrayfire/arrayfire/issues/1494","repository_url":"https://api.github.com/repos/arrayfire/arrayfire","labels_url":"https://api.github.com/repos/arrayfire/arrayfire/issues/1494/labels{/name}","comments_url":"https://api.github.com/repos/arrayfire/arrayfire/issues/1494/comments","events_url":"https://api.github.com/repos/arrayfire/arrayfire/issues/1494/events","html_url":"https://github.com/arrayfire/arrayfire/issues/1494","id":165378670,"number":1494,"title":"'Expected expression' error in opencl tests due to undefined TEST_DIR","user":{"login":"schuhschuh","id":975451,"avatar_url":"https://avatars.githubusercontent.com/u/975451?v=3","gravatar_id":"","url":"https://api.github.com/users/schuhschuh","html_url":"https://github.com/schuhschuh","followers_url":"https://api.github.com/users/schuhschuh/followers","following_url":"https://api.github.com/users/schuhschuh/following{/other_user}","gists_url":"https://api.github.com/users/schuhschuh/gists{/gist_id}","starred_url":"https://api.github.com/users/schuhschuh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schuhschuh/subscriptions","organizations_url":"https://api.github.com/users/schuhschuh/orgs","repos_url":"https://api.github.com/users/schuhschuh/repos","events_url":"https://api.github.com/users/schuhschuh/events{/privacy}","received_events_url":"https://api.github.com/users/schuhschuh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-13T17:37:03Z","updated_at":"2016-07-13T17:45:40Z","closed_at":null,"body":"When building with `BUILD_TEST` option `ON` in Xcode, I get multiple `Expected expression` errors in lines which use the `TEST_DIR` macro. Detailed error message for `moments_opencl`, and similar errors for `harris_opencl`:\r\n\r\n```\r\nCompileC Xcode/test/ARRAYFIRE.build/Release/moments_opencl.build/Objects-normal/x86_64/moments.o test/moments.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler\r\n    cd /Users/as12312/Software/ArrayFire\r\n    export LANG=en_US.US-ASCII\r\n    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -Wno-trigraphs -fpascal-strings -O3 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-shorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -DCMAKE_INTDIR=\\\"Release\\\" -DWITH_FREEIMAGE -DGLEW_MX -DWITH_GRAPHICS -DOS_MAC -DAF_UNIFIED -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -mmacosx-version-min=10.11 -Wno-sign-conversion -I/Users/as12312/Software/ArrayFire/Xcode/test/Release/include -I/usr/local/include -I/Users/as12312/Software/ArrayFire/Xcode/third_party/forge/include -I/usr/X11R6/include -I/Users/as12312/Software/ArrayFire/include -I/Users/as12312/Software/ArrayFire/src/backend -I/Users/as12312/Software/ArrayFire/src/api/c -I/Users/as12312/Software/ArrayFire/test/../test/gtest/include -I/Users/as12312/Software/ArrayFire/test -I/Users/as12312/Software/ArrayFire/Xcode/test/ARRAYFIRE.build/Release/moments_opencl.build/DerivedSources/x86_64 -I/Users/as12312/Software/ArrayFire/Xcode/test/ARRAYFIRE.build/Release/moments_opencl.build/DerivedSources -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -F/Users/as12312/Software/ArrayFire/Xcode/test/Release -F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks -DNDEBUG -DAF_OPENCL -Wall -fvisibility=hidden -D TEST_DIR=\\\\/Users/as12312/Software/ArrayFire/test/data\\\\ -MMD -MT dependencies -MF /Users/as12312/Software/ArrayFire/Xcode/test/ARRAYFIRE.build/Release/moments_opencl.build/Objects-normal/x86_64/moments.d --serialize-diagnostics /Users/as12312/Software/ArrayFire/Xcode/test/ARRAYFIRE.build/Release/moments_opencl.build/Objects-normal/x86_64/moments.dia -c /Users/as12312/Software/ArrayFire/test/moments.cpp -o /Users/as12312/Software/ArrayFire/Xcode/test/ARRAYFIRE.build/Release/moments_opencl.build/Objects-normal/x86_64/moments.o\r\n\r\n/Users/as12312/Software/ArrayFire/test/moments.cpp:145:31: error: expected expression\r\n    momentsOnImageTest(string(TEST_DIR\"/moments/gray_seq_16_moments.test\"), string(TEST_DIR\"/imageio/gray_seq_16.png\"), false);\r\n                              ^\r\nIn file included from <built-in>:337:\r\n<command line>:9:18: note: expanded from here\r\n#define TEST_DIR \\/Users/as12312/Software/ArrayFire/test/data\\\\\r\n                 ^\r\n/Users/as12312/Software/ArrayFire/test/moments.cpp:145:84: error: expected expression\r\n    momentsOnImageTest(string(TEST_DIR\"/moments/gray_seq_16_moments.test\"), string(TEST_DIR\"/imageio/gray_seq_16.png\"), false);\r\n                                                                                   ^\r\nIn file included from <built-in>:337:\r\n<command line>:9:18: note: expanded from here\r\n#define TEST_DIR \\/Users/as12312/Software/ArrayFire/test/data\\\\\r\n                 ^\r\n/Users/as12312/Software/ArrayFire/test/moments.cpp:150:31: error: expected expression\r\n    momentsTest<float>(string(TEST_DIR\"/moments/simple_mat_batch_moments.test\"));\r\n                              ^\r\nIn file included from <built-in>:337:\r\n<command line>:9:18: note: expanded from here\r\n#define TEST_DIR \\/Users/as12312/Software/ArrayFire/test/data\\\\\r\n                 ^\r\n/Users/as12312/Software/ArrayFire/test/moments.cpp:155:31: error: expected expression\r\n    momentsOnImageTest(string(TEST_DIR\"/moments/color_seq_16_moments.test\"), string(TEST_DIR\"/imageio/color_seq_16.png\"), true);\r\n                              ^\r\nIn file included from <built-in>:337:\r\n<command line>:9:18: note: expanded from here\r\n#define TEST_DIR \\/Users/as12312/Software/ArrayFire/test/data\\\\\r\n                 ^\r\n/Users/as12312/Software/ArrayFire/test/moments.cpp:155:85: error: expected expression\r\n    momentsOnImageTest(string(TEST_DIR\"/moments/color_seq_16_moments.test\"), string(TEST_DIR\"/imageio/color_seq_16.png\"), true);\r\n                                                                                    ^\r\nIn file included from <built-in>:337:\r\n<command line>:9:18: note: expanded from here\r\n#define TEST_DIR \\/Users/as12312/Software/ArrayFire/test/data\\\\\r\n                 ^\r\n/Users/as12312/Software/ArrayFire/test/moments.cpp:160:35: error: expected expression\r\n    momentsTest<TypeParam>(string(TEST_DIR\"/moments/simple_mat_moments.test\"));\r\n                                  ^\r\nIn file included from <built-in>:337:\r\n<command line>:9:18: note: expanded from here\r\n#define TEST_DIR \\/Users/as12312/Software/ArrayFire/test/data\\\\\r\n                 ^\r\n6 errors generated.\r\n```"},"comment":{"url":"https://api.github.com/repos/arrayfire/arrayfire/issues/comments/232432511","html_url":"https://github.com/arrayfire/arrayfire/issues/1494#issuecomment-232432511","issue_url":"https://api.github.com/repos/arrayfire/arrayfire/issues/1494","id":232432511,"user":{"login":"pavanky","id":364829,"avatar_url":"https://avatars.githubusercontent.com/u/364829?v=3","gravatar_id":"","url":"https://api.github.com/users/pavanky","html_url":"https://github.com/pavanky","followers_url":"https://api.github.com/users/pavanky/followers","following_url":"https://api.github.com/users/pavanky/following{/other_user}","gists_url":"https://api.github.com/users/pavanky/gists{/gist_id}","starred_url":"https://api.github.com/users/pavanky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavanky/subscriptions","organizations_url":"https://api.github.com/users/pavanky/orgs","repos_url":"https://api.github.com/users/pavanky/repos","events_url":"https://api.github.com/users/pavanky/events{/privacy}","received_events_url":"https://api.github.com/users/pavanky/received_events","type":"User","site_admin":false},"created_at":"2016-07-13T17:45:40Z","updated_at":"2016-07-13T17:45:40Z","body":"There should probably be a cleaner way to do this than having special cases for generators.\r\n\r\n@9prady9 any idea why we have this sequence of slashes ?"}}
{"actor":{"display_login":"pavanky"}}