Every time I try to emerge gmp-4.2.1-r1 as part of a system update, the build fails. It fails at the following line: checking C++ compiler powerpc-unknown-linux-gnu-g++ -O2 -mcpu=G3 -mtune=G3 -pipe... no, std iostream Other programs do compile on the system. Reproducible: Always Steps to Reproduce: emerge dev-libs/gmp-4.2.1-r1 Actual Results: It fails on the following line: checking C++ compiler powerpc-unknown-linux-gnu-g++ -O2 -mcpu=G3 -mtune=G3 -pipe... no, std iostream Expected Results: I expected the software to compile successfully.
Created attachment 130938 [details] This is the build.log from emerge. I'm hoping that it will be useful
Created attachment 130939 [details] This is the config log from emerge. I'm hoping that it will be useful.
<snip> conftest.cc: In function 'void __static_initialization_and_destruction_0(int, int)': conftest.cc:9: internal compiler error: in simplify_ternary_operation, at simplify-rtx.c:3526 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. Preprocessed source stored into /var/tmp/portage/dev-libs/gmp-4.2.1-r1/temp/ccHNuy2N.out file, please attach this to your bugreport. </snip> Can you reproduce this at *exactly* the same place every time? If you can, then attach the preprocessed source as the message told you. Also emerge --info is missing.
Created attachment 130945 [details] Preprocessed source. I tried compiling on the exact same install (same HD) on another identical machine to rule out any possible problem with the 1st machine. (It is old after all.) I got exactly the same error. I think that the old preprocessed source got overwritten with the preprocessed source from this compile, so I've included the new preprocessed source. I hope that doesn't cause a problem.
Created attachment 130947 [details] emerge --info output
Thanks.
builds fine for me on my ppc with your flags can you verify that taking that preprocessed source file, naming it 'test.ii', and then running: g++ -c test.ii -O2 -mcpu=G3 -mtune=G3 causes gcc to ICE ?
The system I'm working on is at work, and I'm just about to leave town for the weekend. I will run the compile you asked for as soon as I get in there next week. Thanks for checking up on it so quickly :) (In reply to comment #7) > builds fine for me on my ppc with your flags > > can you verify that taking that preprocessed source file, naming it 'test.ii', > and then running: > g++ -c test.ii -O2 -mcpu=G3 -mtune=G3 > > causes gcc to ICE ? >
*** Bug 192558 has been marked as a duplicate of this bug. ***
(In reply to comment #7) > builds fine for me on my ppc with your flags > > can you verify that taking that preprocessed source file, naming it 'test.ii', > and then running: > g++ -c test.ii -O2 -mcpu=G3 -mtune=G3 > > causes gcc to ICE ? > I tried that and I get an internal compiler error. Here are the results: conftest.cc: In function 'void __static_initialization_and_destruction_0(int, int)': conftest.cc:9: internal compiler error: in simplify_ternary_operation, at simplify-rtx.c:3526 Please submit a full bug report, with preprocessed srouce if appropriate. <snip> Preprocessed source stored in /tmp/ccEDNaM9.out file <snip> I will leave this preprocessed source in another attachment. For now I'm going to try re-installing on another partition, with a new gcc and see if this is still a problem. I will preserve this install.
Created attachment 131479 [details] More preprocessed source This is the preprocessed source from trying to compile the other preprocessed source as requested.
I tried a new install on the same system, and this package compiled without any trouble. I'm going to assume that I had a bad gcc for some reason. Therefore, I've marked the bug as fixed.