This one looks like a bug in cppyy!

  

Try going to clingcwrapper.cxx and changing line 525 from:

  

  

cppresult->std::string::~string();  

  

  

to:

  

  

cppresult->std::string::~basic_string();  

  

  

(e.g. change `~string` to `~basic_string`).  
\--  

Ryan (ライアン)

Yoko Shimomura > ryo (supercell/EGOIST) > Hiroyuki Sawano >> everyone else

<http://refi64.com/>

  
On Jan 17 2017, at 1:51 pm, Tobias Oberstein <tobias.oberst...@gmail.com>
wrote:  

> Hi Ryan,

>

> with CXX=clang++ the build nearly finishes (I am a moron, sorry, clang  
isn't that clever), that is

>

> CC=`which clang` \  
CXX=`which clang++` \  
CXXFLAGS="-std=c++11" \  
MAKE_NPROCS=4 \  
~/pypy-5.6-linux_x86_64-portable/bin/pip install --no-cache-dir  
\--verbose PyPy-cppyy-backend

>

> I get to

>

>      [ 95%] Linking CXX shared library ../../lib/libCling.so  
     make[3]: Verzeichnis  
„/tmp/pip-build-EJ5mSe/PyPy-cppyy-backend/builddir“ wird verlassen  
[ 95%] Built target Cling

>

> but then it fails compiling clingcwrapper.cxx.o

>

> https://gist.github.com/oberstet/4f60bd02bab8921e09b94c47188c291c#file-
gistfile1-txt-L8

>

> This is

>

> oberstet@thinkpad-t430s:~/scm/oberstet/scratchbox/cpp/capnproto/test1$  
clang++ --version  
clang version 3.8.0-2ubuntu4 (tags/RELEASE_380/final)  
Target: x86_64-pc-linux-gnu  
Thread model: posix  
InstalledDir: /usr/bin

>

> Thanks for your help!  
Tobias

>

>  
Am 17.01.2017 um 20:02 schrieb Ryan Gonzalez:  
> In your Makefile, change this:  
>  
> CXX=`which clang` \  
>  
> to:  
>  
> CXX=`which clang++` \  
>  
> \--  
> Ryan (ライアン)  
> Yoko Shimomura > ryo (supercell/EGOIST) > Hiroyuki Sawano >> everyone else  
> <http://kirbyfan64.github.io/>  
>  
> On Jan 17, 2017 12:41 PM, "Tobias Oberstein" <tobias.oberst...@gmail.com>  
> wrote:  
>  
>> Am 17.01.2017 um 19:03 schrieb Ryan Gonzalez:  
>>  
>>> What happens if you remove the `-stdlib=libc++`? Seems like that's where  
>>> the  
>>> Clang build error is coming from.  
>>>  
>>  
>> 1)  
>> removing explicit stdlib selection leads to the following linker error  
>>  
>> https://gist.github.com/oberstet/f75b9618b12b1e61289b147fcfd  
>> 90bc0#file-gistfile1-txt-L885  
>>  
>> makefile target was: https://github.com/oberstet/sc  
>> ratchbox/blob/master/cpp/capnproto/test1/Makefile#L10  
>>  
>>  
>> 2)  
>> explicitly selecting GNU c++ stdlib for clang results in  
>>  
>> https://gist.github.com/oberstet/df1f59b9ce674d8984ee5f9ce045dccb  
>>  
>> makefile target was: https://github.com/oberstet/sc  
>> ratchbox/blob/master/cpp/capnproto/test1/Makefile#L27  
>>  
>>  
>> 3)  
>> when using the gcc-4.9 build of cppyy, and trying the basic example (  
>> <http://doc.pypy.org/en/latest/cppyy.html#basic-bindings-example)> leads
to:  
>>  
>> https://gist.github.com/oberstet/d260ee15c81954bea8298b7400d04870  
>>  
>> \---  
>>  
>> so right now I cannot get the basic example working =(  
>>  
>>  
>>>  
>>>  
>>> \\--  
>>>  
>>> Ryan (ライアン)  
>>>  
>>> Yoko Shimomura > ryo (supercell/EGOIST) > Hiroyuki Sawano >> everyone else  
>>>  
>>> <http://refi64.com/>  
>>>  
>>>  
>>>  
>>> On Jan 17 2017, at 11:53 am, Tobias Oberstein <tobias.oberst...@gmail.com  
>>>>  
>>> wrote:  
>>>  
>>> Hi guys,  
>>>>  
>>>  
>>>  
>>>>  
>>> please see (reposting here to grab attention as hinted by Armin)  
>>>>  
>>>  
>>>  
>>>>  
>>> https://bitbucket.org/pypy/pypy/issues/2467/cppyy-fails-to-build-on-gcc-5  
>>>>  
>>> -and-clang  
>>>  
>>>  
>>>>  
>>> Note: for now I am fine, I managed to build it using gcc 4.9 toolchain.  
>>>>  
>>> Need to see how far I get with captnproto now ..  
>>>  
>>>  
>>>>  
>>> Cheers,  
>>>>  
>>> /Tobias  
>>> _______________________________________________  
>>> pypy-dev mailing list  
>>> pypy-dev@python.org  
>>> https://mail.python.org/mailman/listinfo/pypy-dev  
>>>  
>>>  
>>  
>

_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to