{"action":"opened","issue":{"url":"https://api.github.com/repos/01org/psm/issues/8","repository_url":"https://api.github.com/repos/01org/psm","labels_url":"https://api.github.com/repos/01org/psm/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/01org/psm/issues/8/comments","events_url":"https://api.github.com/repos/01org/psm/issues/8/events","html_url":"https://github.com/01org/psm/issues/8","id":149037536,"number":8,"title":"Failed to build against valgrind","user":{"login":"HonggangLI","id":17905938,"avatar_url":"https://avatars.githubusercontent.com/u/17905938?v=3","gravatar_id":"","url":"https://api.github.com/users/HonggangLI","html_url":"https://github.com/HonggangLI","followers_url":"https://api.github.com/users/HonggangLI/followers","following_url":"https://api.github.com/users/HonggangLI/following{/other_user}","gists_url":"https://api.github.com/users/HonggangLI/gists{/gist_id}","starred_url":"https://api.github.com/users/HonggangLI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HonggangLI/subscriptions","organizations_url":"https://api.github.com/users/HonggangLI/orgs","repos_url":"https://api.github.com/users/HonggangLI/repos","events_url":"https://api.github.com/users/HonggangLI/events{/privacy}","received_events_url":"https://api.github.com/users/HonggangLI/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-18T04:13:24Z","updated_at":"2016-04-18T04:13:24Z","closed_at":null,"body":"~/upstream/psm$ make PSM_VALGRIND=1\r\n\r\n\r\nfor subdir in ptl_self ptl_ips ptl_am libuuid ipath ; do \\\r\n\tmake -C $subdir ;\\\r\ndone\r\nmake[1]: Entering directory '/home/honli/upstream/psm/ptl_self'\r\ncc   -Wall -Werror  -fpic -fPIC -D_GNU_SOURCE -funwind-tables   -O3 -g3   -DPSM_VALGRIND -I. -I/home/honli/upstream/psm/include -I/home/honli/upstream/psm/mpspawn -I/home/honli/upstream/psm/include/linux-x86_64  -I/home/honli/upstream/psm -c ptl.c -o ptl.o\r\nIn file included from /home/honli/upstream/psm/include/ipath_user.h:60:0,\r\n                 from /home/honli/upstream/psm/psm_user.h:45,\r\n                 from ptl.c:39:\r\n/home/honli/upstream/psm/include/ipath_intf.h:49:20: error: expected ‘)’ before ‘__attribute__’\r\n #define __unused__ __attribute__((unused))\r\n                    ^\r\n/home/honli/upstream/psm/include/valgrind/valgrind.h:3666:45: note: in expansion of macro ‘__unused__’\r\n    __attribute__((format(__printf__, 1, 2), __unused__));\r\n                                             ^\r\nIn file included from /home/honli/upstream/psm/psm_user.h:47:0,\r\n                 from ptl.c:39:\r\n/home/honli/upstream/psm/include/valgrind/valgrind.h:3666:56: error: expected ‘,’ or ‘;’ before ‘)’ token\r\n    __attribute__((format(__printf__, 1, 2), __unused__));\r\n                                                        ^\r\nIn file included from /home/honli/upstream/psm/include/ipath_user.h:60:0,\r\n                 from /home/honli/upstream/psm/psm_user.h:45,\r\n                 from ptl.c:39:\r\n/home/honli/upstream/psm/include/ipath_intf.h:49:20: error: expected ‘)’ before ‘__attribute__’\r\n #define __unused__ __attribute__((unused))\r\n                    ^\r\n/home/honli/upstream/psm/include/valgrind/valgrind.h:3681:45: note: in expansion of macro ‘__unused__’\r\n    __attribute__((format(__printf__, 1, 2), __unused__));\r\n                                             ^\r\nIn file included from /home/honli/upstream/psm/psm_user.h:47:0,\r\n                 from ptl.c:39:\r\n/home/honli/upstream/psm/include/valgrind/valgrind.h:3681:56: error: expected ‘,’ or ‘;’ before ‘)’ token\r\n    __attribute__((format(__printf__, 1, 2), __unused__));\r\n                                                        ^\r\n/home/honli/upstream/psm/include/valgrind/valgrind.h:3668:1: error: ‘VALGRIND_PRINTF’ defined but not used [-Werror=unused-function]\r\n VALGRIND_PRINTF(const char *format, ...)\r\n ^\r\n/home/honli/upstream/psm/include/valgrind/valgrind.h:3683:1: error: ‘VALGRIND_PRINTF_BACKTRACE’ defined but not used [-Werror=unused-function]\r\n VALGRIND_PRINTF_BACKTRACE(const char *format, ...)\r\n ^\r\ncc1: all warnings being treated as errors\r\nMakefile:41: recipe for target 'ptl.o' failed\r\nmake[1]: *** [ptl.o] Error 1\r\nmake[1]: Leaving directory '/home/honli/upstream/psm/ptl_self'\r\nmake[1]: Entering directory '/home/honli/upstream/psm/ptl_ips'\r\ncc   -Wall -Werror  -fpic -fPIC -D_GNU_SOURCE -funwind-tables   -O3 -g3   -DPSM_VALGRIND -I. -I/home/honli/upstream/psm/include -I/home/honli/upstream/psm/mpspawn -I/home/honli/upstream/psm/include/linux-x86_64  -I/home/honli/upstream/psm -I/ptl_ips -c ptl.c -o ptl.o\r\nIn file included from /home/honli/upstream/psm/include/ipath_user.h:60:0,\r\n                 from /home/honli/upstream/psm/psm_user.h:45,\r\n                 from ptl.c:36:\r\n/home/honli/upstream/psm/include/ipath_intf.h:49:20: error: expected ‘)’ before ‘__attribute__’\r\n #define __unused__ __attribute__((unused))\r\n                    ^\r\n/home/honli/upstream/psm/include/valgrind/valgrind.h:3666:45: note: in expansion of macro ‘__unused__’\r\n    __attribute__((format(__printf__, 1, 2), __unused__));\r\n                                             ^\r\nIn file included from /home/honli/upstream/psm/psm_user.h:47:0,\r\n                 from ptl.c:36:\r\n/home/honli/upstream/psm/include/valgrind/valgrind.h:3666:56: error: expected ‘,’ or ‘;’ before ‘)’ token\r\n    __attribute__((format(__printf__, 1, 2), __unused__));\r\n                                                        ^\r\nIn file included from /home/honli/upstream/psm/include/ipath_user.h:60:0,\r\n                 from /home/honli/upstream/psm/psm_user.h:45,\r\n                 from ptl.c:36:\r\n/home/honli/upstream/psm/include/ipath_intf.h:49:20: error: expected ‘)’ before ‘__attribute__’\r\n #define __unused__ __attribute__((unused))\r\n                    ^\r\n/home/honli/upstream/psm/include/valgrind/valgrind.h:3681:45: note: in expansion of macro ‘__unused__’\r\n    __attribute__((format(__printf__, 1, 2), __unused__));\r\n                                             ^\r\nIn file included from /home/honli/upstream/psm/psm_user.h:47:0,\r\n                 from ptl.c:36:\r\n/home/honli/upstream/psm/include/valgrind/valgrind.h:3681:56: error: expected ‘,’ or ‘;’ before ‘)’ token\r\n    __attribute__((format(__printf__, 1, 2), __unused__));\r\n                                                        ^\r\nIn file included from /home/honli/upstream/psm/psm_user.h:47:0,\r\n                 from ptl.c:36:\r\n/home/honli/upstream/psm/include/valgrind/valgrind.h:3668:1: error: ‘VALGRIND_PRINTF’ defined but not used [-Werror=unused-function]\r\n VALGRIND_PRINTF(const char *format, ...)\r\n ^\r\n/home/honli/upstream/psm/include/valgrind/valgrind.h:3683:1: error: ‘VALGRIND_PRINTF_BACKTRACE’ defined but not used [-Werror=unused-function]\r\n VALGRIND_PRINTF_BACKTRACE(const char *format, ...)\r\n ^\r\ncc1: all warnings being treated as errors\r\nMakefile:51: recipe for target 'ptl.o' failed\r\nmake[1]: *** [ptl.o] Error 1\r\nmake[1]: Leaving directory '/home/honli/upstream/psm/ptl_ips'\r\nmake[1]: Entering directory '/home/honli/upstream/psm/ptl_am'\r\ncc   -Wall -Werror  -fpic -fPIC -D_GNU_SOURCE -funwind-tables   -O3 -g3   -DPSM_VALGRIND -I. -I/home/honli/upstream/psm/include -I/home/honli/upstream/psm/mpspawn -I/home/honli/upstream/psm/include/linux-x86_64  -I/home/honli/upstream/psm  -c am_reqrep.c -o am_reqrep.o\r\nIn file included from /home/honli/upstream/psm/include/ipath_user.h:60:0,\r\n                 from /home/honli/upstream/psm/psm_user.h:45,\r\n                 from am_reqrep.c:35:\r\n/home/honli/upstream/psm/include/ipath_intf.h:49:20: error: expected ‘)’ before ‘__attribute__’\r\n #define __unused__ __attribute__((unused))\r\n                    ^\r\n/home/honli/upstream/psm/include/valgrind/valgrind.h:3666:45: note: in expansion of macro ‘__unused__’\r\n    __attribute__((format(__printf__, 1, 2), __unused__));\r\n                                             ^\r\nIn file included from /home/honli/upstream/psm/psm_user.h:47:0,\r\n                 from am_reqrep.c:35:\r\n/home/honli/upstream/psm/include/valgrind/valgrind.h:3666:56: error: expected ‘,’ or ‘;’ before ‘)’ token\r\n    __attribute__((format(__printf__, 1, 2), __unused__));\r\n                                                        ^\r\nIn file included from /home/honli/upstream/psm/include/ipath_user.h:60:0,\r\n                 from /home/honli/upstream/psm/psm_user.h:45,\r\n                 from am_reqrep.c:35:\r\n/home/honli/upstream/psm/include/ipath_intf.h:49:20: error: expected ‘)’ before ‘__attribute__’\r\n #define __unused__ __attribute__((unused))\r\n                    ^\r\n/home/honli/upstream/psm/include/valgrind/valgrind.h:3681:45: note: in expansion of macro ‘__unused__’\r\n    __attribute__((format(__printf__, 1, 2), __unused__));\r\n                                             ^\r\nIn file included from /home/honli/upstream/psm/psm_user.h:47:0,\r\n                 from am_reqrep.c:35:\r\n/home/honli/upstream/psm/include/valgrind/valgrind.h:3681:56: error: expected ‘,’ or ‘;’ before ‘)’ token\r\n    __attribute__((format(__printf__, 1, 2), __unused__));\r\n                                                        ^\r\n/home/honli/upstream/psm/include/valgrind/valgrind.h:3668:1: error: ‘VALGRIND_PRINTF’ defined but not used [-Werror=unused-function]\r\n VALGRIND_PRINTF(const char *format, ...)\r\n ^\r\n/home/honli/upstream/psm/include/valgrind/valgrind.h:3683:1: error: ‘VALGRIND_PRINTF_BACKTRACE’ defined but not used [-Werror=unused-function]\r\n VALGRIND_PRINTF_BACKTRACE(const char *format, ...)\r\n ^\r\ncc1: all warnings being treated as errors\r\nMakefile:41: recipe for target 'am_reqrep.o' failed\r\nmake[1]: *** [am_reqrep.o] Error 1\r\nmake[1]: Leaving directory '/home/honli/upstream/psm/ptl_am'\r\nmake[1]: Entering directory '/home/honli/upstream/psm/libuuid'\r\nmake[1]: Nothing to be done for 'all'.\r\nmake[1]: Leaving directory '/home/honli/upstream/psm/libuuid'\r\nmake[1]: Entering directory '/home/honli/upstream/psm/ipath'\r\nmake[1]: Nothing to be done for 'all'.\r\nmake[1]: Leaving directory '/home/honli/upstream/psm/ipath'\r\nmake libpsm_infinipath.so\r\nmake[1]: Entering directory '/home/honli/upstream/psm'\r\ncc   -Wall -Werror  -fpic -fPIC -D_GNU_SOURCE -funwind-tables   -O3 -g3   -DPSM_VALGRIND -I. -I/home/honli/upstream/psm/include -I/home/honli/upstream/psm/mpspawn -I/home/honli/upstream/psm/include/linux-x86_64  -c ptl_am/am_reqrep_shmem.c -o ptl_am/am_reqrep_shmem.o\r\nIn file included from /home/honli/upstream/psm/include/ipath_user.h:60:0,\r\n                 from ./psm_user.h:45,\r\n                 from ptl_am/am_reqrep_shmem.c:40:\r\n/home/honli/upstream/psm/include/ipath_intf.h:49:20: error: expected ‘)’ before ‘__attribute__’\r\n #define __unused__ __attribute__((unused))\r\n                    ^\r\n/home/honli/upstream/psm/include/valgrind/valgrind.h:3666:45: note: in expansion of macro ‘__unused__’\r\n    __attribute__((format(__printf__, 1, 2), __unused__));\r\n                                             ^\r\nIn file included from ./psm_user.h:47:0,\r\n                 from ptl_am/am_reqrep_shmem.c:40:\r\n/home/honli/upstream/psm/include/valgrind/valgrind.h:3666:56: error: expected ‘,’ or ‘;’ before ‘)’ token\r\n    __attribute__((format(__printf__, 1, 2), __unused__));\r\n                                                        ^\r\nIn file included from /home/honli/upstream/psm/include/ipath_user.h:60:0,\r\n                 from ./psm_user.h:45,\r\n                 from ptl_am/am_reqrep_shmem.c:40:\r\n/home/honli/upstream/psm/include/ipath_intf.h:49:20: error: expected ‘)’ before ‘__attribute__’\r\n #define __unused__ __attribute__((unused))\r\n                    ^\r\n/home/honli/upstream/psm/include/valgrind/valgrind.h:3681:45: note: in expansion of macro ‘__unused__’\r\n    __attribute__((format(__printf__, 1, 2), __unused__));\r\n                                             ^\r\nIn file included from ./psm_user.h:47:0,\r\n                 from ptl_am/am_reqrep_shmem.c:40:\r\n/home/honli/upstream/psm/include/valgrind/valgrind.h:3681:56: error: expected ‘,’ or ‘;’ before ‘)’ token\r\n    __attribute__((format(__printf__, 1, 2), __unused__));\r\n                                                        ^\r\nIn file included from ./psm_user.h:47:0,\r\n                 from ptl_am/am_reqrep_shmem.c:40:\r\n/home/honli/upstream/psm/include/valgrind/valgrind.h:3668:1: error: ‘VALGRIND_PRINTF’ defined but not used [-Werror=unused-function]\r\n VALGRIND_PRINTF(const char *format, ...)\r\n ^\r\n/home/honli/upstream/psm/include/valgrind/valgrind.h:3683:1: error: ‘VALGRIND_PRINTF_BACKTRACE’ defined but not used [-Werror=unused-function]\r\n VALGRIND_PRINTF_BACKTRACE(const char *format, ...)\r\n ^\r\ncc1: all warnings being treated as errors\r\nMakefile:282: recipe for target 'ptl_am/am_reqrep_shmem.o' failed\r\nmake[1]: *** [ptl_am/am_reqrep_shmem.o] Error 1\r\nmake[1]: Leaving directory '/home/honli/upstream/psm'\r\nMakefile:154: recipe for target 'libs' failed\r\nmake: *** [libs] Error 2\r\n"}}