tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkgsrc frozen for 2017Q2



On 06/28/17 19:12, Greg Troxel wrote:
Jason Bacon <bacon4000%gmail.com@localhost> writes:

devel/googletest is failing on CentOS 6 with

   cc1plus: error: unrecognized command line option "-std=c++11"

   *** Error code 1

despite the presence of

     USE_LANGUAGES=c++11

Running

     bmake GCC_REQD=4.8

works around the issue.
That sounds like a framework bug.  USE_LANGUAGES=c++11 is supposed to
ensure that the complier used is capable of c++11.  Can you figure out
from work/.buildlink/* what compiler is used without the GCC_REQD=4.8
workaround?  Is that compiler indeed capable of c++11?  What version is
it?  What does the code in mk/? say about which compiler version is
necessary for c++11 on your platform?

Specifically, I am suggesting that perhaps the issue is a missing
GCC_REQD in mk/ for your platform when c++11 is specified.

Looks like it's using the base GCC 4.4.7, which has only partial c++0x features:

Linux centosdev.local bacon ~/Pkgsrc/pkgsrc/devel/googletest 419: (pkgsrc): dir work/.gcc/bin/
total 8
drwxr-xr-x. 2 bacon bacon 4096 Jun 28 20:49 ./
drwxr-xr-x. 3 bacon bacon 4096 Jun 28 20:49 ../
lrwxrwxrwx. 1 bacon bacon    3 Jun 28 20:49 c++ -> g++*
lrwxrwxrwx. 1 bacon bacon    3 Jun 28 20:49 cc -> gcc*
lrwxrwxrwx. 1 bacon bacon   12 Jun 28 20:49 cpp -> /usr/bin/cpp*
lrwxrwxrwx. 1 bacon bacon   12 Jun 28 20:49 g++ -> /usr/bin/g++*
lrwxrwxrwx. 1 bacon bacon   12 Jun 28 20:49 gcc -> /usr/bin/gcc*
lrwxrwxrwx. 1 bacon bacon   17 Jun 28 20:49 gfortran -> /usr/bin/gfortran*

Add GCC_REQD=4.8:

Linux centosdev.local bacon ~/Pkgsrc/pkgsrc/devel/googletest 423: (pkgsrc): dir work/.gcc/bin/
total 8
drwxr-xr-x. 2 bacon bacon 4096 Jun 28 20:57 ./
drwxr-xr-x. 3 bacon bacon 4096 Jun 28 20:57 ../
lrwxrwxrwx. 1 bacon bacon    3 Jun 28 20:57 c++ -> g++*
lrwxrwxrwx. 1 bacon bacon    3 Jun 28 20:57 cc -> gcc*
lrwxrwxrwx. 1 bacon bacon 36 Jun 28 20:57 cpp -> /home/bacon/Pkgsrc/pkg/gcc48/bin/cpp* lrwxrwxrwx. 1 bacon bacon 36 Jun 28 20:57 g++ -> /home/bacon/Pkgsrc/pkg/gcc48/bin/g++* lrwxrwxrwx. 1 bacon bacon 36 Jun 28 20:57 gcc -> /home/bacon/Pkgsrc/pkg/gcc48/bin/gcc* lrwxrwxrwx. 1 bacon bacon 41 Jun 28 20:57 gfortran -> /home/bacon/Pkgsrc/pkg/gcc48/bin/gfortran*

I had also tried using USE_LANGUAGES instead of GCC_REQD to solve the MesaLib issue and it had no effect there either.

I'm in for patching and testing if you want to try and fix this before the release. I'm teaching a workshop all day Thursday, but will check back in the evening and should be available Friday.

--
Earth is a beta site.



Home | Main Index | Thread Index | Old Index