Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 531752 - media-gfx/blender-2.72b: build failure on non-SSE2 ~x86 host: error: #error "SSE2 instruction set not enabled"
Summary: media-gfx/blender-2.72b: build failure on non-SSE2 ~x86 host: error: #error "...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Julian Ospald
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-05 15:03 UTC by Andrew Savchenko
Modified: 2015-10-27 20:05 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log.xz (build.log.xz,25.86 KB, application/x-xz)
2014-12-05 15:05 UTC, Andrew Savchenko
Details
environment (environment,163.01 KB, text/plain)
2014-12-05 15:05 UTC, Andrew Savchenko
Details
emerge --info (emerge.info,9.24 KB, text/plain)
2014-12-05 15:06 UTC, Andrew Savchenko
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Savchenko gentoo-dev 2014-12-05 15:03:27 UTC
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...
Comment 1 Andrew Savchenko gentoo-dev 2014-12-05 15:05:23 UTC
Created attachment 391010 [details]
build.log.xz
Comment 2 Andrew Savchenko gentoo-dev 2014-12-05 15:05:44 UTC
Created attachment 391012 [details]
environment
Comment 3 Andrew Savchenko gentoo-dev 2014-12-05 15:06:14 UTC
Created attachment 391014 [details]
emerge --info
Comment 4 Julian Ospald 2014-12-16 16:05:41 UTC
report it here https://developer.blender.org/
Comment 6 ahudson.news 2015-08-16 21:39:32 UTC
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).
Comment 7 Julian Ospald 2015-10-27 20:05:10 UTC
looks like invalid cflags