Page MenuHome

build failed on mac OS X 10.9.1 (deployment target 10.9)
Closed, ResolvedPublic

Description

OS X 10.9.1
xcode 5.0.2

Intel HD Graphics 4000
NVIDIA GeForce GT 650M

Blender Version
Broken: (example: 2.69.7 4b206af, see splash screen)
Worked: (optional)

latest updated (not trunk) from git/svn below
http://wiki.blender.org/index.php/Dev:Doc/Building_Blender/Mac

Short description of error
cuda 5.o is installed and running. log below

files below not found

  1. include <tr1/unordered_map>
  2. include <tr1/unordered_set>

that's a C+11-related error:
think unordered_map are now part of the spec, so sth like that

  1. include <unordered_map>
  2. include <unordered_set>

Event Timeline

nik yo (nik_yo) raised the priority of this task from to 90.
nik yo (nik_yo) updated the task description. (Show Details)
nik yo (nik_yo) added a project: BF Blender.
nik yo (nik_yo) edited a custom field.
nik yo (nik_yo) added a subscriber: nik yo (nik_yo).

Please give the full compile log from the console, this is not enough information for us to fix the problem.

Did you use scons or cmake? Is this a clean build or is it the same build setup that you uses before upgrading Xcode or OS X?

Brecht Van Lommel (brecht) changed the task status from Unknown Status to Archived.Feb 17 2014, 5:04 PM
Brecht Van Lommel (brecht) claimed this task.

Oh I see you reported this twice, closing this one.

Brecht Van Lommel (brecht) changed the task status from Archived to Unknown Status.Feb 17 2014, 5:05 PM

Actually that other report is a different error.

please close it. starting fresh w/ the cuda 5.5 update

Brecht Van Lommel (brecht) changed the task status from Unknown Status to Unknown Status.Feb 17 2014, 5:43 PM

build with cmake targetting OS X 10.9 fails
"Found unordered_map/set in std::tr1 namespace"

and then when running the *.xcodeproj i get files below not found

include <tr1/unordered_map>
include <tr1/unordered_set>

Brecht Van Lommel (brecht) changed the task status from Unknown Status to Unknown Status.Feb 17 2014, 9:35 PM

Yes, but can you copy the exact error log? We need to know in which file(s) this error occurs.

I'm not seeing such issues here with the same OS X and Xcode version so I'm not sure what is going on.

Build target extern_ceres

CompileC /Users/nik/Documents/code/blender-build/blender_Bin/extern/libmv/third_party/ceres/Blender.build/Debug/extern_ceres.build/Objects-normal/x86_64/block_evaluate_preparer.o extern/libmv/third_party/ceres/internal/ceres/block_evaluate_preparer.cc normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler

cd /Users/nik/Documents/code/blender-build/blender
setenv LANG en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-shorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -DCMAKE_INTDIR=\"Debug\" -DHAVE_STDBOOL_H -DWITH_BOOL_COMPAT -D__SSE__ -D__MMX__ -D__SSE2__ -D__LITTLE_ENDIAN__ -DOPJ_STATIC -DWITH_LIBMV -DWITH_LIBMV_GUARDED_ALLOC -DGOOGLE_GLOG_DLL_DECL= -DLIBMV_NO_FAST_DETECTOR= -DCERES_HAVE_PTHREAD -DCERES_NO_SUITESPARSE -DCERES_NO_CXSPARSE -DCERES_NO_LAPACK -DCERES_RESTRICT_SCHUR_SPECIALIZATION -DCERES_HAVE_RWLOCK -DCERES_TR1_UNORDERED_MAP -DDEBUG -D_DEBUG -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -mmacosx-version-min=10.9 -g -Wno-sign-conversion -I/Users/nik/Documents/code/blender-build/blender_Bin/lib/Debug/include -I/Users/nik/Documents/code/blender-build/blender/extern/libmv -I/Users/nik/Documents/code/blender-build/blender/extern/libmv/third_party/ceres/include -I/Users/nik/Documents/code/blender-build/blender/intern/guardedalloc -I/Users/nik/Documents/code/blender-build/blender/extern/libmv/third_party/glog/src -I/Users/nik/Documents/code/blender-build/blender/extern/Eigen3 -I/Users/nik/Documents/code/blender-build/lib/darwin-9.x.universal/png/include -I/Users/nik/Documents/code/blender-build/blender/extern/libmv/third_party/ceres -I/Users/nik/Documents/code/blender-build/blender/extern/libmv/third_party/ceres/internal -I/Users/nik/Documents/code/blender-build/blender/extern/libmv/third_party/gflags -I/Users/nik/Documents/code/blender-build/blender_Bin/extern/libmv/third_party/ceres/Blender.build/Debug/extern_ceres.build/DerivedSources/x86_64 -I/Users/nik/Documents/code/blender-build/blender_Bin/extern/libmv/third_party/ceres/Blender.build/Debug/extern_ceres.build/DerivedSources -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -F/Users/nik/Documents/code/blender-build/blender_Bin/lib/Debug -F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks -Wall -Wno-tautological-compare -Wno-unknown-pragmas -Wno-char-subscripts -Wno-overloaded-virtual -Wno-sign-compare -Wno-invalid-offsetof -ftemplate-depth=1024 -msse2 -msse -pipe -funsigned-char -Wno-unused-parameter -Wno-unused-macros -Wno-missing-variable-declarations -Wno-incompatible-pointer-types-discards-qualifiers -Wno-unused-function -Wno-int-to-void-pointer-cast -Wno-missing-prototypes -Wno-duplicate-enum -Wno-undef -Wno-missing-noreturn -Wno-unused-private-field -Wno-c++11-narrowing -Wno-non-virtual-dtor -Wno-unused-macros -Wno-reorder -fno-strict-aliasing -MMD -MT dependencies -MF /Users/nik/Documents/code/blender-build/blender_Bin/extern/libmv/third_party/ceres/Blender.build/Debug/extern_ceres.build/Objects-normal/x86_64/block_evaluate_preparer.d --serialize-diagnostics /Users/nik/Documents/code/blender-build/blender_Bin/extern/libmv/third_party/ceres/Blender.build/Debug/extern_ceres.build/Objects-normal/x86_64/block_evaluate_preparer.dia -c /Users/nik/Documents/code/blender-build/blender/extern/libmv/third_party/ceres/internal/ceres/block_evaluate_preparer.cc -o /Users/nik/Documents/code/blender-build/blender_Bin/extern/libmv/third_party/ceres/Blender.build/Debug/extern_ceres.build/Objects-normal/x86_64/block_evaluate_preparer.o

In file included from /Users/nik/Documents/code/blender-build/blender/extern/libmv/third_party/ceres/internal/ceres/block_evaluate_preparer.cc:36:
In file included from /Users/nik/Documents/code/blender-build/blender/extern/libmv/third_party/ceres/internal/ceres/parameter_block.h:37:
/Users/nik/Documents/code/blender-build/blender/extern/libmv/third_party/ceres/internal/ceres/collections_port.h:45:12: fatal error: 'tr1/unordered_map' file not found

include <tr1/unordered_map>

^

1 error generated.

CompileC /Users/nik/Documents/code/blender-build/blender_Bin/extern/libmv/third_party/ceres/Blender.build/Debug/extern_ceres.build/Objects-normal/x86_64/block_jacobian_writer.o extern/libmv/third_party/ceres/internal/ceres/block_jacobian_writer.cc normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler

cd /Users/nik/Documents/code/blender-build/blender
setenv LANG en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-shorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -DCMAKE_INTDIR=\"Debug\" -DHAVE_STDBOOL_H -DWITH_BOOL_COMPAT -D__SSE__ -D__MMX__ -D__SSE2__ -D__LITTLE_ENDIAN__ -DOPJ_STATIC -DWITH_LIBMV -DWITH_LIBMV_GUARDED_ALLOC -DGOOGLE_GLOG_DLL_DECL= -DLIBMV_NO_FAST_DETECTOR= -DCERES_HAVE_PTHREAD -DCERES_NO_SUITESPARSE -DCERES_NO_CXSPARSE -DCERES_NO_LAPACK -DCERES_RESTRICT_SCHUR_SPECIALIZATION -DCERES_HAVE_RWLOCK -DCERES_TR1_UNORDERED_MAP -DDEBUG -D_DEBUG -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -mmacosx-version-min=10.9 -g -Wno-sign-conversion -I/Users/nik/Documents/code/blender-build/blender_Bin/lib/Debug/include -I/Users/nik/Documents/code/blender-build/blender/extern/libmv -I/Users/nik/Documents/code/blender-build/blender/extern/libmv/third_party/ceres/include -I/Users/nik/Documents/code/blender-build/blender/intern/guardedalloc -I/Users/nik/Documents/code/blender-build/blender/extern/libmv/third_party/glog/src -I/Users/nik/Documents/code/blender-build/blender/extern/Eigen3 -I/Users/nik/Documents/code/blender-build/lib/darwin-9.x.universal/png/include -I/Users/nik/Documents/code/blender-build/blender/extern/libmv/third_party/ceres -I/Users/nik/Documents/code/blender-build/blender/extern/libmv/third_party/ceres/internal -I/Users/nik/Documents/code/blender-build/blender/extern/libmv/third_party/gflags -I/Users/nik/Documents/code/blender-build/blender_Bin/extern/libmv/third_party/ceres/Blender.build/Debug/extern_ceres.build/DerivedSources/x86_64 -I/Users/nik/Documents/code/blender-build/blender_Bin/extern/libmv/third_party/ceres/Blender.build/Debug/extern_ceres.build/DerivedSources -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -F/Users/nik/Documents/code/blender-build/blender_Bin/lib/Debug -F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks -Wall -Wno-tautological-compare -Wno-unknown-pragmas -Wno-char-subscripts -Wno-overloaded-virtual -Wno-sign-compare -Wno-invalid-offsetof -ftemplate-depth=1024 -msse2 -msse -pipe -funsigned-char -Wno-unused-parameter -Wno-unused-macros -Wno-missing-variable-declarations -Wno-incompatible-pointer-types-discards-qualifiers -Wno-unused-function -Wno-int-to-void-pointer-cast -Wno-missing-prototypes -Wno-duplicate-enum -Wno-undef -Wno-missing-noreturn -Wno-unused-private-field -Wno-c++11-narrowing -Wno-non-virtual-dtor -Wno-unused-macros -Wno-reorder -fno-strict-aliasing -MMD -MT dependencies -MF /Users/nik/Documents/code/blender-build/blender_Bin/extern/libmv/third_party/ceres/Blender.build/Debug/extern_ceres.build/Objects-normal/x86_64/block_jacobian_writer.d --serialize-diagnostics /Users/nik/Documents/code/blender-build/blender_Bin/extern/libmv/third_party/ceres/Blender.build/Debug/extern_ceres.build/Objects-normal/x86_64/block_jacobian_writer.dia -c /Users/nik/Documents/code/blender-build/blender/extern/libmv/third_party/ceres/internal/ceres/block_jacobian_writer.cc -o /Users/nik/Documents/code/blender-build/blender_Bin/extern/libmv/third_party/ceres/Blender.build/Debug/extern_ceres.build/Objects-normal/x86_64/block_jacobian_writer.o

In file included from /Users/nik/Documents/code/blender-build/blender/extern/libmv/third_party/ceres/internal/ceres/block_jacobian_writer.cc:35:
In file included from /Users/nik/Documents/code/blender-build/blender/extern/libmv/third_party/ceres/internal/ceres/parameter_block.h:37:
/Users/nik/Documents/code/blender-build/blender/extern/libmv/third_party/ceres/internal/ceres/collections_port.h:45:12: fatal error: 'tr1/unordered_map' file not found

include <tr1/unordered_map>

^

1 error generated.

Brecht Van Lommel (brecht) lowered the priority of this task from 90 to Normal.EditedFeb 18 2014, 4:19 PM

Ok, it seems you have the CMAKE_OSX_DEPLOYMENT_TARGET variable set to 10.9, where the default is 10.6. At least when I generate Xcode project files and change nothing that is the default. Did you manually change this value or was it set that way automatically? If you change it back to 10.6 it will probably build ok.

It seems that changing the deployment target does not property re-run the checks for the existence of tr1/unordered_map, I'll see if I can fix that.

yes, I switched to 10.9 -default 10.6 as you say. I wanna try things out for 10.9 -OpenGL 4.0 shaders finally supported- but haven't checked Blender's codebase yet and what's actually there.

Brecht Van Lommel (brecht) changed the task status from Unknown Status to Resolved.Feb 18 2014, 7:41 PM

Closed by commit rB90a86fecee60.

  • for deployment target 10.6 (as is), it builds fine
  • I pulled your commit for deployment target 10.9.

#include <tr1/memory> needs to be replaced with #include <memory>, but then other parts of code need to be fixed as well -for instance dependencies like typedef OCIO_SHARED_PTR<const Config> ConstConfigRcPtr; are now broken.
(this could be future -immediate- work depending on the priorities)

The only place I can find with #include <tr1/memory> is OpenColorIO, which is not a Blender project. And it builds fine here even what that include and using deployment target 10.9?

Anyway, we don't really have a reason to build with 10.9 as deployment target, the build will be the same except that it doesn't work on older OS X versions.