Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 182374 - [ICE/4.1/4.2] building CAPS Audio Plugin Suite causes gcc to ICE
Summary: [ICE/4.1/4.2] building CAPS Audio Plugin Suite causes gcc to ICE
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: http://gcc.gnu.org/PR32389
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-4.2
  Show dependency tree
 
Reported: 2007-06-17 18:47 UTC by Dominique Michel
Modified: 2007-07-18 09:58 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
my emerge.info (emerge.info,12.62 KB, text/plain)
2007-06-17 18:57 UTC, Dominique Michel
Details
my emerge.info (emerge.info,12.62 KB, text/plain)
2007-06-18 20:41 UTC, Dominique Michel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dominique Michel 2007-06-17 18:47:14 UTC
I downloaded the source for the CAPS audio plugins from http://quitte.de/dsp/caps.html and try to install it by hand before to do an ebuild.

During compilation, I get a gcc internal error and segfault.


Reproducible: Always

Steps to Reproduce:
1. download http://quitte.de/dsp/caps_0.4.0.tar.gz
2. untar it
3. ./configure.py
4. make


Actual Results:  
g++ -O3 -ffast-math -funroll-loops -Wall -fPIC -DPIC -msse -mfpmath=sse -I/usr/local/include -c ToneStack.cc
Descriptor.h: In static member function ‘static void Descriptor<T>::_run_adding(void*, ulong) [with T = ToneStackLT]’:
Descriptor.h:209: erreur interne du compilateur: Erreur de segmentation
// Mean "Compilator internal error: segfault
Veuillez soumettre un rapport complet d'anomalies,
avec le source pré-traité si nécessaire.
Consultez <URL:http://bugs.gentoo.org/> pour plus de détail.
Preprocessed source stored into /tmp/ccebPbaG.out file, please attach this to your bugreport.


Expected Results:  
At those plugins did compile.
Comment 1 Dominique Michel 2007-06-17 18:52:57 UTC
The preprocessed sources is too big for bugzilla, so here it is: http://www.alsaplayer.org/tmp/ccebPbaG.out
Comment 2 Dominique Michel 2007-06-17 18:57:16 UTC
Created attachment 122351 [details]
my emerge.info
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-06-17 19:33:36 UTC
We don't support stuff that's not in the tree.
Comment 4 Dominique Michel 2007-06-17 20:35:47 UTC
I know that, but the segfault is not when running this audio plugin but with gcc. And gcc is in the tree.

Mo matter, i will commit this bug upstream.
Comment 5 Dominique Michel 2007-06-17 20:50:57 UTC
BTW, I get this plugion to compile be removing -funroll-loops from the cflags in the Makefile.
Comment 6 Harald van Dijk (RETIRED) gentoo-dev 2007-06-18 00:37:32 UTC
You're right, gcc bugs should be filed here.
Comment 7 Harald van Dijk (RETIRED) gentoo-dev 2007-06-18 00:39:41 UTC
Reduced testcase:

double f1();
int f2() {
  __builtin_ia32_stmxcsr();
  return f1();
}

$ i686-pc-linux-gnu-gcc -msse -c bug.c
bug.c: In function ‘f2’:
bug.c:5: error: insn does not satisfy its constraints:
(insn 36 34 37 (set (reg:SI 1 dx)
        (reg/f:SI 54 virtual-stack-vars)) 34 {*movsi_1} (nil)
    (expr_list:REG_DEAD (reg/f:SI 54 virtual-stack-vars)
        (nil)))
bug.c:5: internal compiler error: in extract_constrain_insn_cached, at recog.c:2002
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
Preprocessed source stored into /tmp/ccG01j5p.out file, please attach this to your bugreport.
$ i686-pc-linux-gnu-gcc -msse -O -c bug.c
bug.c: In function ‘f2’:
bug.c:5: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
Preprocessed source stored into /tmp/ccWKLSxZ.out file, please attach this to your bugreport.
Comment 8 SpanKY gentoo-dev 2007-06-18 00:49:23 UTC
gcc-4.1.1 is old, gcc-4.1.2 is stable now

upgrade to that and if it still ICEs, then try with LC_ALL=C and post your results
Comment 9 SpanKY gentoo-dev 2007-06-18 00:52:23 UTC
ah Harald posted a reduced test case ... this still ICEs on gcc-4.2
Comment 10 Dominique Michel 2007-06-18 20:41:15 UTC
Created attachment 122451 [details]
my emerge.info
Comment 11 SpanKY gentoo-dev 2007-06-22 01:04:11 UTC
added the fix from upstream to our gcc patchsets ... it'll be fixed in next release