Summary: | gcc-3.3.2-r5 - internal compiler error while trying to compile opencv computer vision library. | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Roman Stanchak <rstanchak> |
Component: | [OLD] Development | Assignee: | Please assign to toolchain <gcc-porting> |
Status: | RESOLVED CANTFIX | ||
Severity: | minor | CC: | henryk |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Preprocessed source |
Description
Roman Stanchak
2004-02-22 09:25:43 UTC
Created attachment 26113 [details]
Preprocessed source
The problem seems to be the -ffast-math flag, specifically -funsafe-math-optimizations. Removing this eliminates the error. The error has been seen on both a p4 and athlon system, and was not present on the previous version of gcc I had been using (3.2.3). And gcc-3.3.3? The ebuild for gcc-3.3.3 refused to compile for me on Friday. I'll try it again tonight. gcc-3.3.3 compiled. Same problem w/ compiler error. can you try to explicitly add -fno-stack-protector to the build and leave out all -Ox optimizations? thanks, pappy no -O optimizations: compilation success -01 optimization: success -02 : failure -fno-stack-protector doesn't seem to affect the outcome. after a random search through gcc flag space, the following g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I. -I../include -I../.. -g -mcpu=i686 -march=i686 -fomit-frame-pointer -DNDEBUG -Wall -fno-rtti -fno-stack-protector -pipe -c cvfundam.cpp -MT cvfundam.lo -MD -MP -MF .deps/cvfundam.TPlo -fPIC -DPIC -O1 -fno-math-errno -funsafe-math-optimizations -fcse-follow-jumps -frerun-cse-after-loop -fgcse -fexpensive-optimizations -o cvfundam.lo is the minimum flag set I could figure that produced the error. Interestingly, if I replace -O1 with the flags that "man gcc" tells me -O1 adds, compilation completes successfully. This is not an ebuild and compiling applications with too aggressive optimizations is a known cause for problems. Closing as CANTFIX. |