On 06/01/2013 12:00 AM, O. Hartmann wrote: > If not, from what configured variable are the clang++ options derived > from?
It seems CLANGXX_FLAGS cannot be set in the configure by the user. Does it work if you export CLANGXX_FLAGS="--stdlib=c++" to your shell env before building pocl? If so, we should probably add a detection of this to configure.ac so it adds it automagically when building against the default does not work but compiling against libc++ works. clang++ probably uses libstdc++ for you by default and it does not work for some reason. I use libstdc++ and clang++ in Linux successfully. We should not add CXXFLAGS directly to the kernel library build as it might get confusing and can be what the user does not want: CXXFLAGS is used for building the pocl kernel compiler passes which are C++ code, for example. The kernel libs are built to an LLVM bitcode library, not to a final native binary. They can target a different architecture than the host, etc. So if building a library for a non-host device we should point the device's c++ lib for the VML instead of the host's etc. Can you open a bug report and target it to 0.8? Or even better, if you are familiar with autoconf, you might try to implement such a check to configure.ac that detects this case, or at least enables overriding the CLANGXX_FLAGS there? An easy option would be to include this case to the clang++ test case in configure.ac, and not use VML in case it fails, but then you'd lose the significant performance benefit from using the VML for the maths. -- --Pekka ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite It's a free troubleshooting tool designed for production Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap2 _______________________________________________ pocl-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pocl-devel
