Red Hat Bugzilla – Bug 452972
Internal compiler error with G++. OpenMP and GSL RNG
Last modified: 2009-01-20 16:25:08 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.4 (like Gecko)
Description of problem:
I have a simple C++ test program using OpenMP, GSL and Blitz that gives an
internal compiler error. The error message said that I should report it here.
I have installed a self-compiled GSL in my home folder. Maybe you guys can
test with a standard GSL/Blitz++ if that comes precompiled with RHEL5.2.
Here is the simple test program openmp_gsl_rng.cpp:
using namespace std; using namespace blitz;
#pragma omp parallel private(R)
const gsl_rng* r = gsl_rng_alloc(gsl_rng_mt19937);
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. I try to compile with:
openmp_gsl_rng.cpp -I/mn/anatu/cma-u3/tmac/usr/include -L/mn/anatu/cma-u3/tmac/usr/lib -lgsl -lgslcblas -fopenmp
I get the following error message:
openmp_gsl_rng.cpp: In function 'int main()':
openmp_gsl_rng.cpp:0: internal compiler error: in lower_stmt, at
If I don't try to make the variable R private, then it compiles without
Please attach preprocessed testcase. I.e. run
g++ -E openmp_gsl_rng.cpp -I/mn/anatu/cma-u3/tmac/usr/include
-L/mn/anatu/cma-u3/tmac/usr/lib -fopenmp -o openmp_gsl_rng.ii
and attach the *.ii file. Thanks.
Created attachment 310323 [details]
Preprocessed test case
This is the output that was automatically produced by g++, and stored by it in
the file /tmp/ccWuAWvr.out.
This is upstream PR36237, fixed last month.
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release. Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products. This request is not yet committed for inclusion in an Update
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.