Bug 692720

Summary: Failed to compile C++ codes using g++
Product: Red Hat Enterprise Linux 5 Reporter: Alan <wwj.max>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED INSUFFICIENT_DATA QA Contact: qe-baseos-tools-bugs
Severity: medium Docs Contact:
Priority: unspecified    
Version: 5.6CC: law
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: 2013-03-12 17:43:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Alan 2011-03-31 22:34:21 UTC
Description of problem:
- Failed to compile C++ codes using g++ 
- Flags for g++:  -fopenmp

Version-Release number of selected component (if applicable):

- Linux version 2.6.18-194.el5 (mockbuild.bos.redhat.com) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Tue Mar 16 21:52:39 EDT 2010

How reproducible:
- It happens when compiling.

Steps to Reproduce:
1.
2.
3.
  
Actual results:

[Error message]
...
g++   -fopenmp -D_OMP_TFmp  -I/_path_deleted_/TF_iml_solver -I/_path_deleted_/TF_iml_solver/iml++  -c MaterialBal.cpp
MaterialBal.cpp: In member function ‘void CMaterialBal::massInEachPhase()’:
MaterialBal.cpp:701: internal compiler error: in create_tmp_var, at gimplify.c:485
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /tmp/ccbKZGfq.out file, please attach this to your bugreport.
make[1]: *** [MaterialBal.o] Error 1
make[1]: Leaving directory `/_deleted_/tfmp_Lx_on'
make: *** [tfmp64gnu] Error 2


Expected results:


Additional info:

[Other tests]
1. Intel compiler: Good using "icpc -openmp .... " 
2. g++ with debugging option without OpenMP: Good using "g++  -g ...."

If you need source codes, plz let me know.
Thanks.

Comment 1 Jakub Jelinek 2011-04-05 15:48:16 UTC
Please first try
yum install gcc44-c++
g++44 -fopenmp ...
If that works, you can either use that (gcc 4.4.x is supported in RHEL 5.6+),
or you'd need to provide that /tmp/ccbKZGfq.out gcc asked you to submit.

Comment 2 Jeff Law 2013-03-12 17:43:21 UTC
Bug is nearly 2 years old with no additional data provided by the reporter despite Jakub's request in c#1.