I looks simple to fix except that I'm not positive if the tests are wrong or the responses... I think it's the tests, but I would rather not mess anything up. Testing/Tempory files attached.
-Matt
PS Thanks so much for getting this building on OSX!
On Mon, Sep 24, 2012 at 5:13 PM, Matt Clark <ryu.t...@gmail.com> wrote:
> I'm using gcc 4.7.2 to build the latest master (c79b637).
>
Oh, right. That's going to be a problem.
> Also, I seem to be having issues with creating a simple test server, but
> that may be a different issue all together. I am very excited to get this
> working as I can see me and my company using it a lot and hopefully getting
> to contribute back as well as we run across things, but it'll all come down
> to what I can get working and what I have time to work on^^; I'm sure you
> guys understand!
>
Yes, this is a problem -- the server implementation is incomplete on
master. It's going to take a couple of weeks at least of me hacking
nights away on an HTTP server implementation that meets the
requirements documented in this doc:
https://docs.google.com/document/d/1jUJxs99bcbxAFIWn4Slm8JIMMmrtKc3jwhBz6Da05Lk/edit
I would be very happy to have your help if you can comment on the
direction and whether you'd be able to contribute sooner than later in
the form of testing and/or feedback.
If you can wait that long or spare some time in helping me out
implementing it, that would be greatly appreciated.
Cheers
On Tue, Sep 25, 2012 at 12:36 PM, Matt Clark <ryu.t...@gmail.com> wrote:
> On Monday, September 24, 2012 2:16:07 AM UTC-5, Dean Michael Berris wrote:
>>
>> On Mon, Sep 24, 2012 at 5:13 PM, Matt Clark <ryu.t...@gmail.com> wrote:
>> > I'm using gcc 4.7.2 to build the latest master (c79b637).
>> >
>>
>> Oh, right. That's going to be a problem.
>
>
> I tried clang as well (latest that the latest xcode installs and the version
> just before it), but it kept freaking out at the std::move calls etc. so I
> just build it with the gcc I use for c++11 coding. Perhaps I missed
> something along the way...
>
Ah, right. There's an undocumented way of doing this with Clang 3.1 and higher:
When building with CMake:
cmake -DCMAKE_CXX_COMPILER=clang++
-DCMAKE_CXX_COMPILE_FLAGS=-std=c++11 -DCMAKE_CXX_LINK_FLAGS=-std=c++11
If you want to use libc++ instead of libstdc++ (recommended actually on OS X):
cmake -DCMAKE_CXX_COMPILER=clang++
-DCMAKE_CXX_COMPILE_FLAGS="-std=c++1 -stdlib=libc++"
-DCMAKE_CXX_LINK_FLAGS="-std=c++11 -stdlib=libc++"
Not entirely sure whether it's CMAKE_CXX_COMPILE_FLAGS or
CMAKE_CXX_COMPILER_FLAGS -- play around locally to find out the
correct combination. :D
> but now it's erring on
> error: static_cast from '__node_base *' (aka '__list_node_base<value_type,
> __void_pointer> *') to '__node_pointer'
> (aka 'std::__1::__list_node<boost::spirit::info, void *> *') is not
> allowed
>
Interesting. What version of Boost are you using again? I've mostly
been testing against Boost.Trunk and so far I've been able to build
things properly (though I've been in major refactor/overhaul mode).
> I run up on this before but I can't remember how it was fixed... or maybe it
> was just on clang.
>
Make sure you're using clang 3.1 or the "top of trunk". Also, make
sure that your libc++ implementation is not broken. :)
>>
>>
>> > but now it's erring on
>> > error: static_cast from '__node_base *' (aka
>> > '__list_node_base<value_type,
>> > __void_pointer> *') to '__node_pointer'
>> > (aka 'std::__1::__list_node<boost::spirit::info, void *> *') is
>> > not
>> > allowed
>> >
>>
>> Interesting. What version of Boost are you using again? I've mostly
>> been testing against Boost.Trunk and so far I've been able to build
>> things properly (though I've been in major refactor/overhaul mode).
>
>
> I am not positive to be honest. > 1.50. I just downloaded it from the site.
> I think I'll grab the latest and try again with that.
>
Interesting. I haven't seen this before.
>>
>>
>> > I run up on this before but I can't remember how it was fixed... or
>> > maybe it
>> > was just on clang.
>> >
>>
>> Make sure you're using clang 3.1 or the "top of trunk". Also, make
>> sure that your libc++ implementation is not broken. :)
>
>
> clang -v:
> Apple clang version 4.1 (tags/Apple/clang-421.11.65) (based on LLVM 3.1svn)
> Target: x86_64-apple-darwin12.2.0
> Thread model: posix
>
> It's the version that XCode 4.5 installs.
>
Ah, right. So it looks like you're using LLVM 3.1 (where Clang 3.1
should be based from). Apple may have their own modifications there,
but I don't know enough about the difference between Clang's trunk and
Apple's released compiler. I should really be testing on the released
compiler too but... that's for some other day. :D
On Wed, Sep 26, 2012 at 11:41 AM, Matt Clark <ryu.t...@gmail.com> wrote:
> On Tuesday, September 25, 2012 8:29:06 PM UTC-5, Dean Michael Berris wrote:
>> >> > but now it's erring on
>> >> > error: static_cast from '__node_base *' (aka
>> >> > '__list_node_base<value_type,
>> >> > __void_pointer> *') to '__node_pointer'
>> >> > (aka 'std::__1::__list_node<boost::spirit::info, void *> *') is
>> >> > not
>> >> > allowed
>> >> >
>> >>
>> >> Interesting. What version of Boost are you using again? I've mostly
>> >> been testing against Boost.Trunk and so far I've been able to build
>> >> things properly (though I've been in major refactor/overhaul mode).
>> >
>> >
>> > I am not positive to be honest. > 1.50. I just downloaded it from the
>> > site.
>> > I think I'll grab the latest and try again with that.
>> >
>>
>> Interesting. I haven't seen this before.
>
>
> Upon further investigation it seems I installed it with macports. Also, it
> is 1.50. I have pulled the latest trunk and am working on installing it now.
>
I remember issues with 1.50 and boost.move interfering with C++11 move.
>>
>>
>> >>
>> >>
>> >> > I run up on this before but I can't remember how it was fixed... or
>> >> > maybe it
>> >> > was just on clang.
>> >> >
>> >>
>> >> Make sure you're using clang 3.1 or the "top of trunk". Also, make
>> >> sure that your libc++ implementation is not broken. :)
>> >
>> >
>> > clang -v:
>> > Apple clang version 4.1 (tags/Apple/clang-421.11.65) (based on LLVM
>> > 3.1svn)
>> > Target: x86_64-apple-darwin12.2.0
>> > Thread model: posix
>> >
>> > It's the version that XCode 4.5 installs.
>> >
>>
>> Ah, right. So it looks like you're using LLVM 3.1 (where Clang 3.1
>> should be based from). Apple may have their own modifications there,
>> but I don't know enough about the difference between Clang's trunk and
>> Apple's released compiler. I should really be testing on the released
>> compiler too but... that's for some other day. :D
>
>
> lol, but isn't that what I'm for =P
>
Ha! Indeed. :)
Thanks again Matt!
I looks simple to fix except that I'm not positive if the tests are wrong or the responses... I think it's the tests, but I would rather not mess anything up. Testing/Tempory files attached.
On Sun, Oct 14, 2012 at 2:58 PM, Matt Clark <ryu.t...@gmail.com> wrote:
> Oooook, so I have some good new and some bad news.
>
> Good news:
> -I have the lib compiling...
>
Cool!
> Bad news:
> -I had to install a VM of linux to do so :-/
Hmmm... that's not good.
> -2 tests fail in the make test
>
I don't see these on the Mac though. Is this ToT Clang+libc++?