{"action":"created","issue":{"url":"https://api.github.com/repos/open-mpi/ompi/issues/1827","repository_url":"https://api.github.com/repos/open-mpi/ompi","labels_url":"https://api.github.com/repos/open-mpi/ompi/issues/1827/labels{/name}","comments_url":"https://api.github.com/repos/open-mpi/ompi/issues/1827/comments","events_url":"https://api.github.com/repos/open-mpi/ompi/issues/1827/events","html_url":"https://github.com/open-mpi/ompi/issues/1827","id":162846406,"number":1827,"title":"configuring OMPI with the latest PMIx master","user":{"login":"karasevb","id":17932065,"avatar_url":"https://avatars.githubusercontent.com/u/17932065?v=3","gravatar_id":"","url":"https://api.github.com/users/karasevb","html_url":"https://github.com/karasevb","followers_url":"https://api.github.com/users/karasevb/followers","following_url":"https://api.github.com/users/karasevb/following{/other_user}","gists_url":"https://api.github.com/users/karasevb/gists{/gist_id}","starred_url":"https://api.github.com/users/karasevb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karasevb/subscriptions","organizations_url":"https://api.github.com/users/karasevb/orgs","repos_url":"https://api.github.com/users/karasevb/repos","events_url":"https://api.github.com/users/karasevb/events{/privacy}","received_events_url":"https://api.github.com/users/karasevb/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-06-29T05:54:15Z","updated_at":"2016-06-29T16:57:07Z","closed_at":"2016-06-29T15:50:49Z","body":"Hello, it seems that `./configure` test for the pmix v2.x/2.0 has problems. Here is the excerpt from the configure log on my machine when trying to configure with PMIx/master:\r\n\r\n```\r\nconfigure:139819: checking for library containing PMIx_Register_event_handler\r\nconfigure:139850: gcc -std=gnu99 -o conftest -I/sandbox/hwloc/include -O3 -DNDEBUG \r\n    -Wall -Wundef -Wno-long-long -Wsign-compare -Wmissing-prototypes -Wstrict-prototypes \r\n    -Wcomment -pedantic -Werror-implicit-function-declaration -finline-functions -fno-strict-aliasing \r\n    -mcx16 -pthread    -I/sandbox/hwloc/include  -I/home/user/pmix/libevent-2.0.22-stable/install/include -I/sandbox/pmix/include     \r\n    -L/sandbox/hwloc/lib  -L/home/user/pmix/libevent-2.0.22-stable/install/lib \r\n    -L/sandbox/pmix/lib conftest.c  -lm -lutil   -lhwloc  -lm -lutil   -lhwloc  -levent \r\n    -levent_pthreads >&5\r\nconftest.c:601:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]\r\n char PMIx_Register_event_handler ();\r\n ^\r\nconftest.c:603:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]\r\n main ()\r\n ^\r\n/tmp/ccMI5mKr.o: In function `main':\r\nconftest.c:(.text.startup+0x7): undefined reference to `PMIx_Register_event_handler'\r\ncollect2: error: ld returned 1 exit status\r\nconfigure:139850: $? = 1\r\nconfigure: failed program was:\r\n| /* confdefs.h */\r\n| #define PACKAGE_NAME \"Open MPI\"\r\n| #define PACKAGE_TARNAME \"openmpi\"\r\n| #define PACKAGE_VERSION \"gitclone\"\r\n. . .\r\n| #define HAVE_SYS_AUXV_H 1\r\n| #define HAVE_PMIX_H 1\r\n| /* end confdefs.h.  */\r\n| \r\n| /* Override any GCC internal prototype to avoid an error.\r\n|    Use char because int might match the return type of a GCC\r\n|    builtin and then its argument prototype would still apply.  */\r\n| #ifdef __cplusplus\r\n| extern \"C\"\r\n| #endif\r\n| char PMIx_Register_event_handler ();\r\n| int\r\n| main ()\r\n| {\r\n| return PMIx_Register_event_handler ();\r\n|   ;\r\n|   return 0;\r\n| }\r\n```\r\n\r\nIf I grab `conftest.c` and compile it with PMIx library - all is OK. The problem seems to be in the original compilation command: I don't see `-lpmix` there:\r\n```\r\ngcc -std=gnu99 -o conftest -I/sandbox/hwloc/include -O3 <snip>  -L/sandbox/hwloc/lib  \r\n    -L/home/user/pmix/libevent-2.0.22-stable/install/lib -L/sandbox/pmix/lib conftest.c \r\n    -lm -lutil   -lhwloc  -lm -lutil   -lhwloc  -levent -levent_pthreads >&5\r\n```"},"comment":{"url":"https://api.github.com/repos/open-mpi/ompi/issues/comments/229419682","html_url":"https://github.com/open-mpi/ompi/issues/1827#issuecomment-229419682","issue_url":"https://api.github.com/repos/open-mpi/ompi/issues/1827","id":229419682,"user":{"login":"jsquyres","id":617316,"avatar_url":"https://avatars.githubusercontent.com/u/617316?v=3","gravatar_id":"","url":"https://api.github.com/users/jsquyres","html_url":"https://github.com/jsquyres","followers_url":"https://api.github.com/users/jsquyres/followers","following_url":"https://api.github.com/users/jsquyres/following{/other_user}","gists_url":"https://api.github.com/users/jsquyres/gists{/gist_id}","starred_url":"https://api.github.com/users/jsquyres/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsquyres/subscriptions","organizations_url":"https://api.github.com/users/jsquyres/orgs","repos_url":"https://api.github.com/users/jsquyres/repos","events_url":"https://api.github.com/users/jsquyres/events{/privacy}","received_events_url":"https://api.github.com/users/jsquyres/received_events","type":"User","site_admin":false},"created_at":"2016-06-29T16:57:07Z","updated_at":"2016-06-29T16:57:07Z","body":"😄  IIRC, the rationale for testing without the library is to see if it's a system-default-linked library.  I.e., you don't need to specify `-lfoo` because the system does it for you automatically (kinda like `-lc`)."}}
{"actor":{"display_login":"jsquyres"}}