{"action":"created","issue":{"url":"https://api.github.com/repos/hpc/ior/issues/115","repository_url":"https://api.github.com/repos/hpc/ior","labels_url":"https://api.github.com/repos/hpc/ior/issues/115/labels{/name}","comments_url":"https://api.github.com/repos/hpc/ior/issues/115/comments","events_url":"https://api.github.com/repos/hpc/ior/issues/115/events","html_url":"https://github.com/hpc/ior/issues/115","id":391111226,"node_id":"MDU6SXNzdWUzOTExMTEyMjY=","number":115,"title":"`linux/lustre/lustre_user.h` is not available, and breaks configure","user":{"login":"bebosudo","id":1922124,"node_id":"MDQ6VXNlcjE5MjIxMjQ=","avatar_url":"https://avatars1.githubusercontent.com/u/1922124?v=4","gravatar_id":"","url":"https://api.github.com/users/bebosudo","html_url":"https://github.com/bebosudo","followers_url":"https://api.github.com/users/bebosudo/followers","following_url":"https://api.github.com/users/bebosudo/following{/other_user}","gists_url":"https://api.github.com/users/bebosudo/gists{/gist_id}","starred_url":"https://api.github.com/users/bebosudo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bebosudo/subscriptions","organizations_url":"https://api.github.com/users/bebosudo/orgs","repos_url":"https://api.github.com/users/bebosudo/repos","events_url":"https://api.github.com/users/bebosudo/events{/privacy}","received_events_url":"https://api.github.com/users/bebosudo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-12-14T13:28:12Z","updated_at":"2018-12-15T16:18:05Z","closed_at":"2018-12-15T00:17:25Z","author_association":"NONE","body":" Hi,\r\nI downloaded and built 3.2.0rc1.\r\nI run configure with `--with-lustre`, and it breaks with:\r\n```\r\nchecking for special C compiler options needed for large files... no\r\nchecking for _FILE_OFFSET_BITS value needed for large files... no\r\nchecking linux/lustre/lustre_user.h usability... no\r\nchecking linux/lustre/lustre_user.h presence... no\r\nchecking for linux/lustre/lustre_user.h... no\r\nconfigure: error: in `/dev/shm/ior-3.2.0rc1':\r\nconfigure: error: --with-lustre was given, <lustre/lustre_user.h> not found\r\nSee `config.log' for more details\r\n```\r\n\r\nIn `config.log` there is:\r\n```\r\nconfigure:5418: checking for _FILE_OFFSET_BITS value needed for large files\r\nconfigure:5443: /opt/cluster/openmpi/3.1.2/gnu/7.2.0/bin/mpicc -c -g -O2  conftest.c >&5\r\nconfigure:5443: $? = 0\r\nconfigure:5475: result: no\r\nconfigure:5575: checking linux/lustre/lustre_user.h usability\r\nconfigure:5575: /opt/cluster/openmpi/3.1.2/gnu/7.2.0/bin/mpicc -c -g -O2  conftest.c >&5\r\nconftest.c:86:10: fatal error: linux/lustre/lustre_user.h: No such file or directory\r\n #include <linux/lustre/lustre_user.h>\r\n          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\ncompilation terminated.\r\nconfigure:5575: $? = 1\r\nconfigure: failed program was:\r\n| /* confdefs.h */\r\n| #define PACKAGE_NAME \"ior\"\r\n| #define PACKAGE_TARNAME \"ior\"\r\n| #define PACKAGE_VERSION \"3.2.0rc1\"\r\n...\r\n| #ifdef HAVE_STRING_H\r\n| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H\r\n| #  include <memory.h>\r\n| # endif\r\n| # include <string.h>\r\n| #endif\r\n| #ifdef HAVE_STRINGS_H\r\n| # include <strings.h>\r\n| #endif\r\n| #ifdef HAVE_INTTYPES_H\r\n| # include <inttypes.h>\r\n| #endif\r\n| #ifdef HAVE_STDINT_H\r\n| # include <stdint.h>\r\n| #endif\r\n| #ifdef HAVE_UNISTD_H\r\n| # include <unistd.h>\r\n| #endif\r\n| #include <linux/lustre/lustre_user.h>\r\nconfigure:5575: result: no\r\nconfigure:5575: checking linux/lustre/lustre_user.h presence\r\nconfigure:5575: /opt/cluster/openmpi/3.1.2/gnu/7.2.0/bin/mpicc -E  conftest.c\r\nconftest.c:53:10: fatal error: linux/lustre/lustre_user.h: No such file or directory\r\n #include <linux/lustre/lustre_user.h>\r\n          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\ncompilation terminated.\r\nconfigure:5575: $? = 1\r\nconfigure: failed program was:\r\n...\r\n```\r\n\r\n```console\r\n# ll /usr/include/lustre/lustre_user.h\r\n-rw-r--r-- 1 root root 50K Oct  4 10:28 /usr/include/lustre/lustre_user.h\r\n```\r\n\r\nRemoving that include from the configure solved my issue:\r\n```console\r\n# grep -rn 'linux/lustre/lustr' .\r\n./configure:5572:        for ac_header in linux/lustre/lustre_user.h lustre/lustre_user.h\r\n\r\n# sed -i 's|ac_header in linux/lustre/lustre_user.h|ac_header in|' configure\r\n```\r\n\r\nMaybe it should be changed to a XOR with `lustre/lustre_user.h`?"},"comment":{"url":"https://api.github.com/repos/hpc/ior/issues/comments/447579621","html_url":"https://github.com/hpc/ior/issues/115#issuecomment-447579621","issue_url":"https://api.github.com/repos/hpc/ior/issues/115","id":447579621,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NzU3OTYyMQ==","user":{"login":"bebosudo","id":1922124,"node_id":"MDQ6VXNlcjE5MjIxMjQ=","avatar_url":"https://avatars1.githubusercontent.com/u/1922124?v=4","gravatar_id":"","url":"https://api.github.com/users/bebosudo","html_url":"https://github.com/bebosudo","followers_url":"https://api.github.com/users/bebosudo/followers","following_url":"https://api.github.com/users/bebosudo/following{/other_user}","gists_url":"https://api.github.com/users/bebosudo/gists{/gist_id}","starred_url":"https://api.github.com/users/bebosudo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bebosudo/subscriptions","organizations_url":"https://api.github.com/users/bebosudo/orgs","repos_url":"https://api.github.com/users/bebosudo/repos","events_url":"https://api.github.com/users/bebosudo/events{/privacy}","received_events_url":"https://api.github.com/users/bebosudo/received_events","type":"User","site_admin":false},"created_at":"2018-12-15T16:18:05Z","updated_at":"2018-12-15T16:18:05Z","author_association":"NONE","body":"@glennklockwood unfortunately now it fails with:\r\n```\r\nchecking for special C compiler options needed for large files... no\r\nchecking for _FILE_OFFSET_BITS value needed for large files... no\r\nchecking linux/lustre/lustre_user.h usability... no\r\nchecking linux/lustre/lustre_user.h presence... no\r\nchecking for linux/lustre/lustre_user.h... no\r\nchecking lustre/lustre_user.h usability... no\r\nchecking lustre/lustre_user.h presence... yes\r\nconfigure: WARNING: lustre/lustre_user.h: present but cannot be compiled\r\nconfigure: WARNING: lustre/lustre_user.h:     check for missing prerequisite headers?\r\nconfigure: WARNING: lustre/lustre_user.h: see the Autoconf documentation\r\nconfigure: WARNING: lustre/lustre_user.h:     section \"Present But Cannot Be Compiled\"\r\nconfigure: WARNING: lustre/lustre_user.h: proceeding with the compiler's result\r\nchecking for lustre/lustre_user.h... no\r\nconfigure: error: in `/dev/shm/ior_repo':\r\nconfigure: error: --with-lustre was given, <lustre/lustre_user.h> not found\r\nSee `config.log' for more details\r\n```\r\n\r\nIn `config.log` I got:\r\n```\r\nconfigure:5477: checking linux/lustre/lustre_user.h usability\r\nconfigure:5477: /opt/cluster/openmpi/3.1.2/gnu/7.2.0/bin/mpicc -c -g -O2  conftest.c >&5\r\nconftest.c:87:10: fatal error: linux/lustre/lustre_user.h: No such file or directory\r\n #include <linux/lustre/lustre_user.h>\r\n          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\ncompilation terminated.\r\nconfigure:5477: $? = 1\r\nconfigure: failed program was:\r\n| /* confdefs.h */\r\n...\r\n| #include <linux/lustre/lustre_user.h>\r\nconfigure:5477: result: no\r\nconfigure:5477: checking linux/lustre/lustre_user.h presence\r\nconfigure:5477: /opt/cluster/openmpi/3.1.2/gnu/7.2.0/bin/mpicc -E  conftest.c\r\nconftest.c:54:10: fatal error: linux/lustre/lustre_user.h: No such file or directory\r\n #include <linux/lustre/lustre_user.h>\r\n          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\ncompilation terminated.\r\nconfigure:5477: $? = 1\r\nconfigure: failed program was:\r\n| /* confdefs.h */\r\n...\r\n| /* end confdefs.h.  */\r\n| #include <linux/lustre/lustre_user.h>\r\nconfigure:5477: result: no\r\nconfigure:5477: checking for linux/lustre/lustre_user.h\r\nconfigure:5477: result: no\r\nconfigure:5477: checking lustre/lustre_user.h usability\r\nconfigure:5477: /opt/cluster/openmpi/3.1.2/gnu/7.2.0/bin/mpicc -c -g -O2  conftest.c >&5\r\nIn file included from /usr/include/lustre/lustre_user.h:58:0,\r\n                 from conftest.c:87:\r\n/usr/include/sys/quota.h:221:8: error: unknown type name 'caddr_t'; did you mean '__caddr_t'?\r\n        caddr_t __addr) __THROW;\r\n        ^~~~~~~\r\n        __caddr_t\r\nconfigure:5477: $? = 1\r\nconfigure: failed program was:\r\n| /* confdefs.h */\r\n...\r\n| #endif\r\n| #include <lustre/lustre_user.h>\r\nconfigure:5477: result: no\r\nconfigure:5477: checking lustre/lustre_user.h presence\r\nconfigure:5477: /opt/cluster/openmpi/3.1.2/gnu/7.2.0/bin/mpicc -E  conftest.c\r\nconfigure:5477: $? = 0\r\nconfigure:5477: result: yes\r\nconfigure:5477: WARNING: lustre/lustre_user.h: present but cannot be compiled\r\nconfigure:5477: WARNING: lustre/lustre_user.h:     check for missing prerequisite headers?\r\nconfigure:5477: WARNING: lustre/lustre_user.h: see the Autoconf documentation\r\nconfigure:5477: WARNING: lustre/lustre_user.h:     section \"Present But Cannot Be Compiled\"\r\nconfigure:5477: WARNING: lustre/lustre_user.h: proceeding with the compiler's result\r\nconfigure:5477: checking for lustre/lustre_user.h\r\nconfigure:5477: result: no\r\nconfigure:5488: error: in `/dev/shm/ior_repo':\r\nconfigure:5490: error: --with-lustre was given, <lustre/lustre_user.h> not found\r\nSee `config.log' for more details\r\n```\r\n\r\nI tried a:\r\n`# git checkout c9151d74957fa7663f56096a0009a45d99ef262b`\r\nwhich should be the latest commit before 1f217ae48c63db1cc03660425c2862a9e1a0b1ee, and I got the same error. So it must have been caused by some commit between 3.2.0rc1 and the commit fixing this issue: therefore I cannot be sure that this is really fixed."}}
{"actor":{"display_login":"bebosudo"}}