Summary: | internal error: segmentation fault | ||
---|---|---|---|
Product: | gcc | Reporter: | sayed israr <sd.israr> |
Component: | middle-end | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | CC: | dave.korn.cygwin, gcc-bugs |
Priority: | P3 | ||
Version: | 3.2.1 | ||
Target Milestone: | --- | ||
Host: | microsoft windows-XP | Target: | arm-elf |
Build: | i686-pc-cygwin | Known to work: | |
Known to fail: | Last reconfirmed: |
Description
sayed israr
2008-11-28 08:47:39 UTC
3.2.1 is so old, it is no longer supported. Plus we need the preprocessed source. Please read the website which the error contains (http://www.gnu.org/software/gcc/bugs.html) and provide all the needed information. I've just run across the exact same problem using 3.4.4 to build an arm-elf 3.2.1 cross-compiler on Cygwin. Building the same exact same compiler using 3.4.6 on Linux works fine, so it appears to be something Cygwin-specific. I'm not so sure (that it's cygwin specific). http://www.google.co.uk/search?q=locale_facets.tcc++internal++error:+Segmentation+fault&hl=en&client=firefox-a&rls=org.mozilla:en-US:official&filter=0 seems to show it as a chronic intermittent problem in early 3.x series, on a variety of platforms. Still, it could be that changes in the cygwin compiler hid/masked the problem in different revisions. These are all pretty old and obsolete versions I'm afraid and the problem isn't likely to get fixed now if it hasn't been so far. It might be worth futzing with the build flags and seeing if you can get it working with different -O options. cheers, DaveK (In reply to comment #4) > I'm not so sure (that it's cygwin specific). > http://www.google.co.uk/search?q=locale_facets.tcc++internal++error:+Segmentation+fault&hl=en&client=firefox-a&rls=org.mozilla:en-US:official&filter=0 > seems to show it as a chronic intermittent problem in early 3.x series, on a > variety of platforms. Still, it could be that changes in the cygwin compiler > hid/masked the problem in different revisions. > These are all pretty old and obsolete versions I'm afraid and the problem isn't > likely to get fixed now if it hasn't been so far. It might be worth futzing > with the build flags and seeing if you can get it working with different -O > options. > cheers, > DaveK Hi, all I met with the same problem. and I'v tried to change -O2 to -O in the makefile under the dir like /tmp/build/gcc. It does works. If have time, i will try the detail -O2 optimization flags specified and see which flag causes this problem. cheers! Roger The 3.x compilers are no longer supported and even if we got a sensible problem report I don't expect anyone to fix it. Please reopen this if you still have issues with a compiler in the current release series. cheers Ramana In playing with the -O2 and -O flags, it would appear to be that the -fgcse subflag of the -O2 flags causes the failure. So you can substitute the following and get the compiler to build the library -O2 -no-gcse. This builds a less great (no Global Common Subexpression Elimination) library, but it builds on 3.2.1... The result is a larger library, but at least it builds. (In reply to comment #7) Spoke too soon. Things just compiled slower and it took longer to get to the same failure, I was fooled. As it is, you have to fall all the way back to the -O option, and then add in -fXXX options from the -O2 list. The problematic item is in one of: -fschedule-insns -fschedule-insns2 -fsched-interblock -fsched-spec And appears to be either or both of: -fschedule-insns or -fschedule-insns2 The -O2 items below were removed because ARM-ELF 3.2.1 does not understand them: (They are newer -O2 items as documented in newer GCC man page). -fcrossjumping -finline-small-functions -fipa-sra -freorder-functions -fstrict-overflow -ftree-switch-conversion -ftree-pre -ftree-vrp -findirect-inlining I'm getting success with the below. This turns of instruction reordering optimizations=speed (but still uses common subexpression elimination = size). CXXFLAGS= -g -O -fgcse -fgcse-lm -fthread-jumps -falign-functions -falign-jumps -falign-loops -falign-labels -fcaller-saves -fcse-follow-jumps -fcse-skip-blocks -fdelete-null-pointer-checks -fexpensive-optimizations -foptimize-sibling-calls -fpeephole2 -fregmove -freorder-blocks -frerun-cse-after-loop -fstrict-aliasing |