Changes between Initial Version and Version 1 of Ticket #11064


Ignore:
Timestamp:
Mar 26, 2015, 7:30:07 AM (8 years ago)
Author:
viboes
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #11064 – Description

    initial v1  
    1010 
    1111 
     12
     13{{{
    1214bash-3.2$ cd tools/build/src/engine/
    1315bash-3.2$ ./build.sh sun
    1416bash-3.2$ tools/build/src/engine/bin.solarissparc/bjam toolset=sun --prefix=/export/home/oracle/zhifan/boost address-model=64 --disable-icu --with-regex --with-log --with-program_options -j64  install
     17}}}
     18
    1519With some code fix in boost, I can run the above command without any "failed".
    1620 
    1721Here is my simple test code:
    1822 
     23
     24{{{
    1925bash-3.2$ cat boost_log.cc
    2026#include <boost/log/core.hpp>
     
    2935return 0;
    3036}
     37}}}
     38
    3139 
     40
     41{{{
    3242bash-3.2$ CC -mt -std=c++11 -m64 -I/export/home/oracle/zhifan/boost/include -DBOOST_LOG_DYN_LINK -L/export/home/oracle/zhifan/boost/lib -lboost_log -DBOOST_LOG_DYN_LINK  boost_log.cc -o boost_log
    3343"/export/home/oracle/zhifan/boost/include/boost/log/utility/formatting_ostream.hpp", line 551: Error: Cannot use boost::log::v2_mt_posix::basic_formatting_ostream<char, std::char_traits<char>, std::allocator<char>>::sentry to initialize bool.
     
    3848"boost_log.cc", line 10: Where: Instantiated from non-template code.
    39492 Error(s) detected.
     50}}}
     51
    4052
    4153But if I compile this code with boost library compiled by gcc, it works perfectly.
    4254
     55
     56{{{
    4357bash-3.2$ g++ -pthread -std=c++11 -m64 -I/export/home/oracle/zhifan/boost_gcc/include -DBOOST_LOG_DYN_LINK -L/export/home/oracle/zhifan/boost_gcc/lib -lboost_log -DBOOST_LOG_DYN_LINK boost_log.cc -o boost_log
    4458bash-3.2$ export LD_LIBRARY_PATH=/export/home/oracle/zhifan/boost_gcc/lib:$LD_LIBRARY_PATH
     
    4963[2015-02-27 23:26:21.438662] [0x10000000] [fatal]   RedoFile::init
    5064[2015-02-27 23:26:21.438735] [0x10000000] [fatal]   RedoFile::init
     65}}}