Hi guys,
I apologize for my not good English.
I've tried to compile this version of blender and I've found some
problem which I've resolved and I suggest the solution.
In my case, the script abort compilation about at 50-60% when running
makesrna which break with SIGILL.
The problem is due by fact which the script detected support for SSE2
and the remain of compiling is made for it, despite my hardware
doesn't support it.
I found the cause of this. It is due to the gcc's option for optimization -O2.
For me, this option -O2 is detected by dpkg-buildflags from default
value of gcc (vendor). It is possible change this value setting the
flags, for example, in system wide configuration file
/etc/dpkg/buildflags.conf.
But more smart is running the compilation, without optimization, of
the little source program in build_files/cmake/macros.cmake needed for
detect support SSE and SSE2.
In this file there's the macro definition TEST_SSE_SUPPORT for this purpose.
This macro do a call to check_c_source_runs() with two argument:
source program of test and variable to set with result (for more info
see man cmake)
Variable CMAKE_REQUIRED_FLAGS is used for passing compiler's option a
check_c_source_runs().

Conclusion:
I suggest my tip for patch maros.cmake.

************ Start of path **************
diff -ru blender-2.56.1-beta-svn34076.orig/build_files/cmake/macros.cmake
blender-2.56.1-beta-svn34076/build_files/cmake/macros.cmake
--- blender-2.56.1-beta-svn34076.orig/build_files/cmake/macros.cmake    
2010-12-23
00:09:30.000000000 +0100
+++ blender-2.56.1-beta-svn34076/build_files/cmake/macros.cmake 2011-04-23
19:45:14.297633657 +0200
@@ -220,7 +220,7 @@

        # message(STATUS "Detecting SSE support")
        if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
-               set(CMAKE_REQUIRED_FLAGS "-msse -msse2")
+               set(CMAKE_REQUIRED_FLAGS "-msse -msse2 -O0")
        elseif(MSVC)
                set(CMAKE_REQUIRED_FLAGS "/arch:SSE2") # TODO, SSE 1 ?
        endif()
************* End of path ***************

With this patch the support of SSE2 isn't detected for my CPU and the
compilation ends successfully and the binary of blender run.

Reading previus e-mails, I suggest to create 2 packages of blender:
with and without SSE2 support

Best Regards
-- 
Umberto Zappi



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to