Boost::lexical_cast<> under llvm 3.4
Hi, Has anyone tried boost::lexical_cast<> on clang++ based on llvm/clang++ 3.4? Or is it too early to use 3.4? Couldn't find any recent references to problems with lexical_cast (except from Mar 16, 2013 and older, but boost_1_54_0 does have that fix in it). No problems with llvm/clang++ 3.3, but on a test machine under 3.4 it produces the errors shown in below file lexical_cast-error.txt. The files are also at https://github.com/goedman/clang11-spirit-qi , in the Boost_lexical_cast directory. As far as I can see, all other parts of a spirit::qi project does build, the error occurs in a small print utility where lexical_cast<> is used.. Rob J. Goedman goedman@icloud.com
2013/9/9 Robert J Goedman
Hi,
Has anyone tried boost::lexical_cast<> on clang++ based on llvm/clang++ 3.4? Or is it too early to use 3.4?
Couldn't find any recent references to problems with lexical_cast (except from Mar 16, 2013 and older, but boost_1_54_0 does have that fix in it).
Are you using clang-3.4 with libc++ or are you using GCC's Standard Library?
No problems with llvm/clang++ 3.3, but on a test machine under 3.4 it produces the errors shown in below file lexical_cast-error.txt.
Did not get the lexical_cast-error.txt. Can you send it once more or put into git? -- Best regards, Antony Polukhin
Hi Antony,
Thank you for taking a look at this.
I've added the lexical_cast_error.txt file to https://github.com/goedman/clang11-spirit-qi , in the Boost_lexical_cast directory.
In the makefile we set: CC = clang++ -ftemplate-depth=256 -std=c++11 -stdlib=libc++
It only happens in the c++11 + clang++ 3.4 case.
Regards,
Rob J. Goedman
goedman@icloud.com
On Sep 15, 2013, at 12:52 PM, Antony Polukhin
2013/9/9 Robert J Goedman
Hi,
Has anyone tried boost::lexical_cast<> on clang++ based on llvm/clang++ 3.4? Or is it too early to use 3.4?
Couldn't find any recent references to problems with lexical_cast (except from Mar 16, 2013 and older, but boost_1_54_0 does have that fix in it).
Are you using clang-3.4 with libc++ or are you using GCC's Standard Library?
No problems with llvm/clang++ 3.3, but on a test machine under 3.4 it produces the errors shown in below file lexical_cast-error.txt.
Did not get the lexical_cast-error.txt. Can you send it once more or put into git?
-- Best regards, Antony Polukhin
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
2013/9/16 Robert J Goedman
I've added the lexical_cast_error.txt file to https://github.com/goedman/clang11-spirit-qi , in the Boost_lexical_cast directory.
In the makefile we set: CC = clang++ -ftemplate-depth=256 -std=c++11 -stdlib=libc++
Try adding the -lc++abi library during linking. Also try adding the -nostdinc++ flag while compiling the sources and -nodefaultlibs while linking. (I've get all the info from here http://libcxx.llvm.org/ ) -- Best regards, Antony Polukhin
Thanks Antony,
We'll try that (as soon as the next release is out of the door!)
Regards,
Rob J. Goedman
goedman@icloud.com
On Sep 16, 2013, at 2:28 AM, Antony Polukhin
2013/9/16 Robert J Goedman
... I've added the lexical_cast_error.txt file to https://github.com/goedman/clang11-spirit-qi , in the Boost_lexical_cast directory.
In the makefile we set: CC = clang++ -ftemplate-depth=256 -std=c++11 -stdlib=libc++
Try adding the -lc++abi library during linking.
Also try adding the -nostdinc++ flag while compiling the sources and -nodefaultlibs while linking. (I've get all the info from here http://libcxx.llvm.org/ )
-- Best regards, Antony Polukhin
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
On 17/09/13 05:09, Robert J Goedman wrote:
Thanks Antony,
We'll try that (as soon as the next release is out of the door!)
It's working fine here: clang version 3.4 (trunk 190659) clang++-3.4 -std=c++11 -stdlib=libc++ -lc++abi lexical_cast.cpp -o lexical_cast -I../boost It does look like you're missing the abi stuff, but it all depends on how you have libc++ set up, I'm using it with libc++abi Ben
participants (3)
-
Antony Polukhin
-
Ben Pope
-
Robert J Goedman