On Wed Apr 06, 2011 at 08:24:48AM -0500, Amit Kulkarni wrote:
> Or if you really want gcc. look at the gcc patches freebsd imported in
> last few weeks before the switch to GPL3. This way, they can also be
> applied to gcc in base. FreeBSD has patches on top of 4.2.1, same as
> ours.

;-) Thanks for this advice but I think it will works without fucking gcc
4.3

> 
> >> GCC4.2 will seg:
> >>
> >> [ 39%] Building CXX object 
> >> modules/core/CMakeFiles/opencv_core.dir/src/alloc.o
> >> cd /usr/obj/ports/opencv-2.2.0/OpenCV-2.2.0/modules/core && /usr/bin/c++   
> >> -Dopencv_core_EXPORTS -DHAVE_CONFIG_H -DCVAPI_EXPORTS -O2 -pipe    -Wall 
> >> -pthread -ffunction-sections  -DNDEBUG  -fomit-frame-pointer -DNDEBUG  
> >> -fPIC -I/usr/local/lib/python2.6/site-packages/numpy/core/include 
> >> -I/usr/obj/ports/opencv-2.2.0/OpenCV-2.2.0/. 
> >> -I/usr/obj/ports/opencv-2.2.0/OpenCV-2.2.0 
> >> -I/usr/obj/ports/opencv-2.2.0/OpenCV-2.2.0/include 
> >> -I/usr/obj/ports/opencv-2.2.0/OpenCV-2.2.0/include/opencv 
> >> -I/usr/obj/ports/opencv-2.2.0/OpenCV-2.2.0/modules/core/../../3rdparty/include
> >>  -I/usr/obj/ports/opencv-2.2.0/OpenCV-2.2.0/modules/core/include 
> >> -I/usr/obj/ports/opencv-2.2.0/OpenCV-2.2.0/modules/core/src 
> >> -I/usr/obj/ports/opencv-2.2.0/OpenCV-2.2.0/modules/core   -D 
> >> PYTHON_USE_NUMPY=1  -include 
> >> /usr/obj/ports/opencv-2.2.0/OpenCV-2.2.0/modules/core/precomp.hpp 
> >> -Winvalid-pch  -o CMakeFiles/opencv_core.dir/src/alloc.o -c 
> >> /usr/obj/ports/opencv-2.2.0/OpenCV-2.2.0/modules/core/src/alloc.cpp
> >> <command-line>:0: internal compiler error: Segmentation fault
> >> Please submit a full bug report,
> >> with preprocessed source if appropriate.
> >> See <URL:http://gcc.gnu.org/bugs.html> for instructions.
> >> *** Error code 1
> >>

CXX_DEFINES like "-Dopencv_core_EXPORTS -DHAVE_CONFIG_H -DCVAPI_EXPORTS"
effect the Segmentation fault. CMake create CXX_DEFINES flags in some
files after configure. How can I patch after configure? 

best regards 

        rs

-- 
http://www.sizeofvoid.org - raf...@sizeofvoid.org
XMPP: z...@jabber.ccc.de
Key fingerprint: BDDD 91E9 28CB 3A52 3E99  61B0 C359 2691 BAC6 A3B1

Reply via email to