Hi, on non-SSE2 ~x86 host (Athlon-XP) blender-2.72b fails to build. Please note that during this test build both ccache and distcc were disabled. As I can see, package already has patch to explicitely control SSE2. Probabaly it is incomplete for this version. cd /var/tmp/portage/media-gfx/blender-2.72b/work/blender-2.72b_build/intern/cycles/util && /usr/bin/i686-pc-linux-gnu-g++ -DBOOST_ALL_NO_LIB -DCCL_NAMESPACE_BEGIN="namespace ccl {" -DCCL_NAMESPACE_END=} -DHAVE_STDBOOL_H -DWITH_CUDA -DWITH_KERNEL_AVX -DWITH_KERNEL_AVX2 -DWITH_KERNEL_SSE2 -DWITH_KERNEL_SSE3 -DWITH_KERNEL_SSE41 -DWITH_MULTI -DWITH_OPENCL -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -D__LITTLE_ENDIAN__ -D__MMX__ -D__SSE__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNDEBUG -Wredundant-decls -Wall -Wno-invalid-offsetof -Wno-sign-compare -Wlogical-op -Winit-self -Wmissing-include-dirs -Wno-div-by-zero -Wtype-limits -Wuninitialized -Wundef -Wmissing-declarations -march=native -m32 -O2 -funswitch-loops -fpredictive-commoning -ftree-vectorize -ftree-slp-vectorize -fvect-cost-model -fgcse-after-reload -ftree-partial-pre -ftree-loop-im -fweb -frename-registers -fomit-frame-pointer -mfpmath=sse -pipe -frecord-gcc-switches -fno-stack-protector -fvisibility-inlines-hidden -ffast-math -funsigned-char -msse -pipe -fPIC -funsigned-char -fno-strict-aliasing -ffast-math -isystem /usr/include/OpenImageIO -isystem /usr/include/OpenEXR -I/var/tmp/portage/media-gfx/blender-2.72b/work/blender-2.72b/intern/cycles/util/. -o CMakeFiles/cycles_util.dir/util_simd.cpp.o -c /var/tmp/portage/media-gfx/blender-2.72b/work/blender-2.72b/intern/cycles/util/util_simd.cpp In file included from /var/tmp/portage/media-gfx/blender-2.72b/work/blender-2.72b/intern/cycles/util/util_optimization.h:108:0, from /var/tmp/portage/media-gfx/blender-2.72b/work/blender-2.72b/intern/cycles/util/util_types.h:83, from /var/tmp/portage/media-gfx/blender-2.72b/work/blender-2.72b/intern/cycles/util/util_simd.h:24, from /var/tmp/portage/media-gfx/blender-2.72b/work/blender-2.72b/intern/cycles/util/util_simd.cpp:21: /usr/lib/gcc/i686-pc-linux-gnu/4.8.3/include/emmintrin.h:31:3: error: #error "SSE2 instruction set not enabled" # error "SSE2 instruction set not enabled" ^ In file included from /var/tmp/portage/media-gfx/blender-2.72b/work/blender-2.72b/intern/cycles/util/util_simd.h:434:0, from /var/tmp/portage/media-gfx/blender-2.72b/work/blender-2.72b/intern/cycles/util/util_simd.cpp:21: /var/tmp/portage/media-gfx/blender-2.72b/work/blender-2.72b/intern/cycles/util/util_sseb.h:45:31: error: ISO C++ forbids declaration of ‘type name’ with no type [-fpermissive] __forceinline operator const __m128i( void ) const { return _mm_castps_si128(m128); } ^ /var/tmp/portage/media-gfx/blender-2.72b/work/blender-2.72b/intern/cycles/util/util_sseb.h:45:16: error: ‘operator const int’ does not name a type __forceinline operator const __m128i( void ) const { return _mm_castps_si128(m128); } ^ /var/tmp/portage/media-gfx/blender-2.72b/work/blender-2.72b/intern/cycles/util/util_sseb.h:46:31: error: ISO C++ forbids declaration of ‘type name’ with no type [-fpermissive] __forceinline operator const __m128d( void ) const { return _mm_castps_pd(m128); } and so on...
Created attachment 391010 [details] build.log.xz
Created attachment 391012 [details] environment
Created attachment 391014 [details] emerge --info
report it here https://developer.blender.org/
there are a few commits that look interesting https://developer.blender.org/rB9073a81bceaa9142c562bb5beecc453fbe92f73e https://developer.blender.org/rB3144ae2c341e06307e4ecab83e9c7bed7a061d37
Do you happen to have "-march=native -fpmath=sse" in your CFLAGS via /etc/portage/make.conf ? If yes, you could try without -fpmath=sse. I was running into similiar problems with x11-drivers/xf86-video-virtualbox , and those compile after removing it (or selectively disable it via portage.env, that also works).
looks like invalid cflags