{"action":"created","issue":{"url":"https://api.github.com/repos/gentoo-science/sci/issues/372","labels_url":"https://api.github.com/repos/gentoo-science/sci/issues/372/labels{/name}","comments_url":"https://api.github.com/repos/gentoo-science/sci/issues/372/comments","events_url":"https://api.github.com/repos/gentoo-science/sci/issues/372/events","html_url":"https://github.com/gentoo-science/sci/issues/372","id":57988739,"number":372,"title":"multilib wrapping of fortran headers in openmpi considered harmful (in its current state)","user":{"login":"kiwifb","id":151475,"avatar_url":"https://avatars.githubusercontent.com/u/151475?v=3","gravatar_id":"","url":"https://api.github.com/users/kiwifb","html_url":"https://github.com/kiwifb","followers_url":"https://api.github.com/users/kiwifb/followers","following_url":"https://api.github.com/users/kiwifb/following{/other_user}","gists_url":"https://api.github.com/users/kiwifb/gists{/gist_id}","starred_url":"https://api.github.com/users/kiwifb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiwifb/subscriptions","organizations_url":"https://api.github.com/users/kiwifb/orgs","repos_url":"https://api.github.com/users/kiwifb/repos","events_url":"https://api.github.com/users/kiwifb/events{/privacy}","received_events_url":"https://api.github.com/users/kiwifb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-02-17T21:56:48Z","updated_at":"2015-02-18T20:26:28Z","closed_at":null,"body":"So I synced stuff this morning and I got a new openmpi and a new nwchem to build with openmpi.\r\nAfter upgrading openmpi to 1.8.4-r2 nwchem started and failed at configuration the config.log was full of stuff like\r\n```\r\nWarning: mpif-sentinels.h:12: Illegal preprocessor directive\r\n...\r\nmpif-config.h:1.1:\r\n    Included at mpif.h:54:\r\n    Included at conftest.f:2:\r\n\r\n/* This file is auto-generated by multilib-build.eclass\r\n 1\r\nError: Non-numeric character in statement label at (1)\r\n```\r\nThe multibuild wrapping is nice but the current format is definitely C/C++ oriented, so when the mpif-config.h looks like this it chokes gfortran\r\n```\r\n/* This file is auto-generated by multilib-build.eclass\r\n * as a multilib-friendly wrapper. For the original content,\r\n * please see the files that are #included below.\r\n */\r\n\r\n#if defined(__x86_64__) /* amd64 */\r\n#\tif defined(__ILP32__) /* x32 ABI */\r\n#\t\terror \"abi_x86_x32 not supported by the package.\"\r\n#\telse /* 64-bit ABI */\r\n#\t\tinclude <x86_64-pc-linux-gnu/mpif-config.h>\r\n#\tendif\r\n....\r\n```\r\nIf there is an option so that gfortran will parse C/C++ style preprocessing instructions we should add it everywhere mpif90 is needed, and is gfortran, I don't know how other compilers digest this.\r\n\r\nEven better would be to find a way to have fortran friendly wrappers so we wouldn't have to worry about support in a particular compiler."},"comment":{"url":"https://api.github.com/repos/gentoo-science/sci/issues/comments/74941068","html_url":"https://github.com/gentoo-science/sci/issues/372#issuecomment-74941068","issue_url":"https://api.github.com/repos/gentoo-science/sci/issues/372","id":74941068,"user":{"login":"junghans","id":439483,"avatar_url":"https://avatars.githubusercontent.com/u/439483?v=3","gravatar_id":"","url":"https://api.github.com/users/junghans","html_url":"https://github.com/junghans","followers_url":"https://api.github.com/users/junghans/followers","following_url":"https://api.github.com/users/junghans/following{/other_user}","gists_url":"https://api.github.com/users/junghans/gists{/gist_id}","starred_url":"https://api.github.com/users/junghans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/junghans/subscriptions","organizations_url":"https://api.github.com/users/junghans/orgs","repos_url":"https://api.github.com/users/junghans/repos","events_url":"https://api.github.com/users/junghans/events{/privacy}","received_events_url":"https://api.github.com/users/junghans/received_events","type":"User","site_admin":false},"created_at":"2015-02-18T20:26:28Z","updated_at":"2015-02-18T20:26:28Z","body":"@mgorny: What would be the better way to preserve the fortran header in `/usr/include` using `mulitlib-build.eclass` without having to move them around manually?"}}