dbirch997 / cantera

Automatically exported from code.google.com/p/cantera
1 stars 0 forks source link

Compilation of r2706 and following fails on OS X 10.8.5 #203

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Checkout r2706 or later
2. run 'scons build'

What is the expected output? What do you see instead?
Scons fails with the following error message:

clang++ -o build/src/base/application.os -c -fcolor-diagnostics -O3 -DNDEBUG -g 
-Wall -fPIC -DCANTERA_DATA=\"/Applications/calc/cantera/share/cantera/data\" 
-Isrc -Iinclude -I/opt/local/include -I/usr/local/include 
src/base/application.cpp
src/base/application.cpp:288:31: error: implicit instantiation of undefined
      template 'std::basic_stringstream<char, std::char_traits<char>,
      std::allocator<char>>'
            std::stringstream s(phase_xml);
                              ^
/usr/include/c++/4.2.1/iosfwd:82:11: note: template is declared here
    class basic_stringstream;
          ^
1 error generated.
scons: *** [build/src/base/application.os] Error 1
scons: building terminated because of errors.

What version of the product are you using? On what operating system?
r2706
Mac OS X 10.8.5
XCode 4
gcc, clang, llvm all produce the same output:

clang --version
Apple clang version 4.0 (tags/Apple/clang-421.0.60) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin12.5.0
Thread model: posix

llvm-gcc --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) 
(LLVM build 2336.11.00)

gcc --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) 
(LLVM build 2336.11.00)

Please provide any additional information below.

Well, probably this is due to line 288 in application.cpp and some compiler or 
library issue. However, I don't know how to fix it...

Original issue reported on code.google.com by thetruet...@googlemail.com on 30 Jan 2014 at 5:01

GoogleCodeExporter commented 9 years ago
Please confirm that this is fixed by r2711.

Original comment by yarmond on 31 Jan 2014 at 3:46

GoogleCodeExporter commented 9 years ago
Yes, that did the trick. Thanks!

Original comment by thetruet...@googlemail.com on 31 Jan 2014 at 7:49

GoogleCodeExporter commented 9 years ago

Original comment by yarmond on 31 Jan 2014 at 2:00