Sorry I am not able to directly reply to messages. I had my mail set in digest mode without mine formatting.
You can find more information about my experiments on this problem at https://lists.fedoraproject.org/pipermail/devel/2014-October/203774.html Note that if I put the location of cc1plus in my path, the setup.py script worked.
I was not able to fix the Fedora-20 system in questions, so I backed up my files and did did a fresh install. Thus I do not have copy for further testing.
On 11/18/2014 4:00 AM, python-devel-request@lists.fedoraproject.org wrote: ... snip ...
Today's Topics:
1. distutils does not find g++ on Fedora 20 (Brad Bell) 2. Re: distutils does not find g++ on Fedora 20 (Thomas Spura) 3. Re: [python] Add python2_version_nodots macro (Matej Stuchlik)
Message: 1 Date: Mon, 17 Nov 2014 04:45:15 -0800 From: Brad Bell bradbell@seanet.com To: python-devel@lists.fedoraproject.org Subject: distutils does not find g++ on Fedora 20 Message-ID: 5469EDDB.1060200@seanet.com Content-Type: text/plain; charset=utf-8; format=flowed
This problem was due to corruption of the Fedora-20 system that showed up when one did a yum check see https://lists.fedoraproject.org/pipermail/devel/2014-November/204126.html
On 10/19/2014 5:00 AM, python-devel-request@lists.fedoraproject.org wrote:
Message: 1 Date: Sat, 18 Oct 2014 06:32:20 -0700 From: Brad Bell bradbell@seanet.com To: python-devel@lists.fedoraproject.org Subject: distutils does not find g++ on Fedora 20 Message-ID: 54426BE4.1010000@seanet.com Content-Type: text/plain; charset=UTF-8; format=flowed
If this is not the correct mailing list for my question below, please redirect me to the proper list.
I have a python setup.py script that works on Fedora-19 and does not work on Fedora-20. The error on Fedora-20 is:
[bradbell@localhost pycppad-20140710]$ ./setup.py build_ext --inplace --debug --undef NDEBUG running build_ext building 'pycppad/cppad_' extension C compiler: gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC
compile options: '-g -UNDEBUG -I/usr/lib64/python2.7/site-packages/numpy/core/include -I/home/bradbell/prefix/cppad/include -I/usr/include -I/usr/include/python2.7 -c' gcc: pycppad/vector.cpp gcc: error trying to exec 'cc1plus': execvp: No such file or directory ...
Here is what I get when I check for g++: [bradbell@localhost pycppad]$ g++ --version g++ (GCC) 4.8.2 20131212 (Red Hat 4.8.2-7)
Message: 2 Date: Mon, 17 Nov 2014 13:10:35 +0000 From: Thomas Spura tomspur@fedoraproject.org To: Fedora Python SIG python-devel@lists.fedoraproject.org Subject: Re: distutils does not find g++ on Fedora 20 Message-ID: CAE4GLsukdg39wvg028BpWRL46AzzC1s5O=wMovjK5e6A5K+D-w@mail.gmail.com Content-Type: text/plain; charset="utf-8"
Do you have the file "/usr/libexec/gcc/x86_64-redhat-linux/4.8.2/cc1plus" on your system as that's called from gcc later on.
It seems your installation broke, so maybe that file is gone now. What is the output of "yum reinstall gcc-c++"? You only wrote "you got errors"...
... snip ...
python-devel@lists.fedoraproject.org