| Summary: | internal compiler error : Segmentation fault when compiling OpenCV 2.1 | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | Milton Lie <milton.lie> | ||||||
| Component: | gcc | Assignee: | Jakub Jelinek <jakub> | ||||||
| Status: | CLOSED DUPLICATE | QA Contact: | qe-baseos-tools-bugs | ||||||
| Severity: | urgent | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | 5.7 | ||||||||
| Target Milestone: | rc | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | x86_64 | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2011-10-21 07:23:00 UTC | Type: | --- | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Attachments: |
|
||||||||
|
Description
Milton Lie
2011-10-20 20:27:51 UTC
Please try again and follow the instructions that gcc gives you for reporting the bug. In particular, attach the pre-processed source (gcc will tell you where it is when it crashes). When you untar the attached file, at the top level you will notice a file named cc7oHTXQ.out, which is the pre-processed source. I wanted to make sure you had the OpenCV 2.1 code as well, so I packaged all in one tar file. Did not know if I could attach multiple files. Did the attachment go through? I saw it getting uploaded. Let me know. BTW, this compiles successfully with a fresh CentOS 5.6 installation. But after "yum update" it no longer compiles. There are no attachments. Please attach just the *.out file, perhaps gzipped or bzip2ed if it is big enough. Created attachment 529390 [details]
pre-processed file
As requested. The original attachment might have been too big.
Created attachment 529391 [details]
OpenCV-2.1.0 code
Just in case the code is required.
I can't reproduce it with the #c6 testcase, /usr/libexec/gcc/x86_64-redhat-linux/4.1.2/cc1plus -g -O0 -Wall -Wno-long-long \ -Winvalid-pch -ffunction-sections -fPIC cc7oHTXQ.out succeeds. So, can you reproduce the segfault with the above command? If so, can you install gcc-debuginfo, run gdb --args /usr/libexec/gcc/x86_64-redhat-linux/4.1.2/cc1plus -g -O0 \ -Wall -Wno-long-long -Winvalid-pch -ffunction-sections -fPIC cc7oHTXQ.out and post here backtrace? The above command runs fine for me as well (NO segfault). Can you reproduce it when you rerun the original command line on the /home/ivl/svn/3rdparty/OpenCV-2.1.0/src/cxcore/cxlapack.cpp source? Given the -Winvalid-pch command line option, are you using PCH? Actually, it is very much PCH related: http://gcc.gnu.org/ml/gcc-patches/2010-06/msg00190.html fixed by: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=160185 I'll backport that. *** This bug has been marked as a duplicate of bug 735304 *** I have a problem of having this bug marked as a duplicate of bug 735304, which refers to a patch that was released 16+ months ago. The tools in a baseline CentOS 5.6 install work OK. When I "yum update" to the latest patches, I can no longer compile the same piece of code. It might have been shown up before, but that is of no help for me because it got re-introduced some how. A baseline CentOS 5.7 install (no "yum update") also shows the same error. |