Description of problem: HDF5 build from source [with openmpi] breaks when coin-or-Ipopt-openmpi-devel package is installed Version-Release number of selected component (if applicable): coin-or-Ipopt-openmpi-devel-3.12.6-1.fc23.x86_64 openmpi-devel-1.8.8-5.fc23.2.x86_64 How reproducible: Always Steps to Reproduce: 1. yum install coin-or-Ipopt-openmpi-devel openmpi-devel 2. Try configuring hdf5-1.8.12 - or do the equivalent configure test. Actual results: [balay@maverick junk]$ cat string-test.c # include <strings.h> int main () { return 0; } [balay@maverick junk]$ /usr/lib64/openmpi/bin/mpicc string-test.c [balay@maverick junk]$ /usr/lib64/openmpi/bin/mpicc string-test.c -ansi -pedantic In file included from string-test.c:1:0: /usr/include/openmpi-x86_64/strings.h:1:1: error: C++ style comments are not allowed in ISO C90 // Copyright (C) 2009 Paragon Decision Technology B.V. ^ /usr/include/openmpi-x86_64/strings.h:1:1: error: (this will be reported only once per input file) Expected results: No such error Additional info: Presumably Ipopt is overloading system includes [not sure why] - which should probably be avoided. Or least patch up the file to use C comments [not C++]
[root@maverick ~]# yum whatprovides /usr/include/openmpi-x86_64/strings.h Redirecting to '/usr/bin/dnf whatprovides /usr/include/openmpi-x86_64/strings.h' (see 'man yum2dnf') Last metadata expiration check: 0:07:28 ago on Mon Sep 12 10:48:46 2016. coin-or-Ipopt-openmpi-devel-3.12.6-1.fc23.x86_64 : The coin-or-Ipopt headers and development-related files Repo : updates coin-or-Ipopt-openmpi-devel-3.12.4-3.fc23.x86_64 : The coin-or-Ipopt headers and development-related files Repo : fedora [root@maverick ~]#
Paulo, moving /usr/include/openmpi-x86_64/* files from 'coin-or-Ipopt-openmpi-devel' into a private directory can resolve this problem?
(In reply to Antonio Trande from comment #2) > Paulo, > > moving /usr/include/openmpi-x86_64/* files from > 'coin-or-Ipopt-openmpi-devel' into a private directory can resolve this > problem? Removing -pedantic from compiler command line will turn the error into a warning. Otherwise, should patch the file from using from using C++ // comment to using C comment /* */ I believe it is better to check why it is being installed, and why. /usr/include/openmpi-*/strings.h is just a wrapper to include string.h (not strings.h) so it might be better to just not install it.
Satish, please try with this scratch build: http://koji.fedoraproject.org/koji/taskinfo?taskID=15716288
This fix works for me. Thanks!
coin-or-Ipopt-3.12.6-2.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-cf2daec449
coin-or-Ipopt-3.12.6-2.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-973c166076
coin-or-Ipopt-3.12.6-2.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-eb895b3eb4
coin-or-Ipopt-3.12.6-2.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-ceaea3c8f8
coin-or-Ipopt-3.12.6-2.el6 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-68bbbf4170
coin-or-Ipopt-3.12.6-2.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-cf2daec449
coin-or-Ipopt-3.12.6-2.el6 has been pushed to the Fedora EPEL 6 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-68bbbf4170
coin-or-Ipopt-3.12.6-2.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-eb895b3eb4
coin-or-Ipopt-3.12.6-2.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-973c166076
coin-or-Ipopt-3.12.6-2.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-ceaea3c8f8
I was experiencing the same problem. I can confirm that this fix works on my F23 machine too. Thanks!
coin-or-Ipopt-3.12.6-2.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.
coin-or-Ipopt-3.12.6-2.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.
coin-or-Ipopt-3.12.6-2.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.
coin-or-Ipopt-3.12.6-2.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.
coin-or-Ipopt-3.12.6-2.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.