jokerbuilder / cortex-vfx

Automatically exported from code.google.com/p/cortex-vfx
0 stars 0 forks source link

5.0.0 build error : #error Boost.Numeric.Interval: Please specify rounding control mechanism. #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install boost-1.42.0 on an i7 imac using macports
2. set BOOST_INCLUDE and BOOST_LIB to /opt/local/include/boost and 
/opt/local/lib
3. run scons

What is the expected output? What do you see instead?

I would expect the build process to continue

but instead I see the following:

Hodge-Familys-iMac:cortex-5.0.0 hodgefamily$ scons
scons: Reading SConscript files ...

scons: warning: The Options class is deprecated; use the Variables class 
instead.
File "/Users/hodgefamily/Downloads/cortex-5.0.0/SConstruct", line 60, in 
<module>

scons: warning: The BoolOption() function is deprecated; use the BoolVariable() 
function instead.
File "/Users/hodgefamily/Downloads/cortex-5.0.0/SConstruct", line 276, in 
<module>
Checking for C++ header file boost/version.hpp... (cached) yes
Checking for C++ library boost_iostreams... (cached) yes
Checking for C++ library Iex... (cached) yes
Checking for C++ library tbb... (cached) yes

scons: warning: The env.Copy() method is deprecated; use the env.Clone() method 
instead.
File "/Users/hodgefamily/Downloads/cortex-5.0.0/SConstruct", line 717, in 
<module>
Checking for C++ header file boost/asio.hpp... (cached) yes
Checking for C++ header file boost/math/special_functions/factorials.hpp... 
(cached) yes
Checking for C++ library tiff... (cached) yes
Checking for C++ library jpeg... (cached) yes
Checking for C++ library freetype... (cached) yes
Checking for C++ library 3delight... yes
Checking for C++ library prman... no
Checking for C header file pointcloud.h... yes
Checking for C function RiObjectBeginV()... no
Checking for C++ header file sx.h... yes
Checking for C header file maya/MVectorArray.h... no
WARNING : no maya devkit found, not building IECoreMaya - check MAYA_ROOT.
Checking for C++ header file DDImage/Vector3.h... no
WARNING : no nuke devkit found, not building IECoreNuke - check NUKE_ROOT.
Checking for C++ library truelight... no
WARNING : no truelight devkit found, not building IECoreTruelight - check 
TRUELIGHT_ROOT.
Checking for doxygen... no
WARNING : no doxygen binary found, not building documentation - check DOXYGEN
scons: done reading SConscript files.
scons: Building targets ...
g++ -o src/IECore/BGEOParticleReader.os -c -pipe -Wall -O2 -DNDEBUG -
DBOOST_DISABLE_ASSERTS -fPIC -DIE_CORE_MAJORVERSION=5 -DIE_CORE_MINORVERSION=0 -
DIE_CORE_PATCHVERSION=0 -DIECORE_WITH_ASIO -DIECORE_WITH_BOOSTFACTORIAL -
DIECORE_WITH_TIFF -DIECORE_WITH_JPEG -DIECORE_WITH_FREETYPE -Iinclude -
I/opt/local/include/tbb -I/opt/local/include/OpenEXR 
-I/opt/local/include/OpenEXR/OpenEXR -
I/opt/local/include -I/usr/local/include -I/usr/local/include 
-I/opt/local/include/freetype2 
src/IECore/BGEOParticleReader.cpp
In file included from /opt/local/include/boost/numeric/interval.hpp:18,
                 from include/IECore/Spline.h:42,
                 from include/IECore/TypeTraits.h:50,
                 from include/IECore/DespatchTypedData.inl:38,
                 from include/IECore/DespatchTypedData.h:149,
                 from src/IECore/BGEOParticleReader.cpp:43:
/opt/local/include/boost/numeric/interval/hw_rounding.hpp:40:4: error: #error 
Boost.Numeric.Interval: Please specify rounding control mechanism.
scons: *** [src/IECore/BGEOParticleReader.os] Error 1
scons: building terminated because of errors.

What version of the product are you using? On what operating system?

vfx-cortex 5.0.0

  System Version:   Mac OS X 10.6.3 (10D573)
  Kernel Version:   Darwin 10.3.0

Please provide any additional information below.

http://beta.boost.org/doc/libs/1_42_0/boost/numeric/interval/hw_rounding.hpp

Looks like my boost install doesnt know about my hardware, if it is something 
upstream with 
macports, it would be great if you could help me out so I can get this 
installed at home for some 
tinker time

Sam
  Model Name:   iMac
  Model Identifier: iMac11,1
  Processor Name:   Intel Core i7
  Processor Speed:  2.8 GHz
  Number Of Processors: 1
  Total Number Of Cores:    4
  L2 Cache (per core):  256 KB
  L3 Cache: 8 MB
  Memory:   8 GB

Original issue reported on code.google.com by sam.ho...@gmail.com on 15 May 2010 at 2:06

GoogleCodeExporter commented 9 years ago
Closing this as the problem is with boost rather than Cortex. There are several 
workarounds currently documented on the dev list, including bracketing the 
interval include statements like so :

#define __USE_ISOC99
#include "boost/numeric/interval.hpp"
#undef __USE_ISOC99

Original comment by thehaddo...@gmail.com on 25 Jan 2011 at 6:12