[Bug bootstrap/49072] New: Error building the compiler

2011-05-19 Thread jose.pascual-guti...@1-act.com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49072

   Summary: Error building the compiler
   Product: gcc
   Version: 4.6.0
Status: UNCONFIRMED
  Severity: critical
  Priority: P3
 Component: bootstrap
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: jose.pascual-guti...@1-act.com


I downloaded from one of the mirror sites the following tar balls:

gcc-4.6.0.tar.gz
gmp-4.3.2.tar.bz2
mpc-0.8.1.tar.gz
mpfr-2.4.2.tar.bz2

I decompressed and untarred the files, which resulted in four directories,
respectively: gcc-4.6.0, gmp-4.3.2, mpc-0.8.1, and mpfr-2.4.2. I then created
the directory ~/gcc4 and I moved gcc-4.6.0 in it. I then changed the names of
the directories gmp-4.3.2, mpc-0.8.1, and mpfr-2.4.2 to gmp, mpc, and mpfr,
respectively. These three directories, namely gmp, mpc, and mpfr were moved it
to ~/gcc4/gcc-4.6.0. In gcc4, I created the directory objdir. So, the directory
tree looks like the following:

|--gcc4
|  |--objdir
|  |--gcc-4.6.0
|  |  |--gmp
|  |  |--mpc
|  |  |--mpfr

I then proceeded to configure the installation. From ~/gcc4/objdir, I executed
“../gcc-4.6.0/configure”.
Once the Makefile was created, still from within ~/gcc4/objdir, I executed
“make bootstrap”. After about 24 hours of execution, the build failed with the
following error message:

../../../gcc-4.6.0/libgcc/../gcc/libgcc2.c:791:1: internal compiler error:
Floating point exception
Please submit a full bug report,
With preprocessed source if appropriate.
See http://gcc.gnu.org/bugs.html for instructinos.
make [3]: *** [_popcountsi2.o] Error 1
make [3]: Leaving directory
‘/home/Jose.Pascual-Gutierr/gcc4/objdir/i686-pc-cygwin/libgcc’
make [2]: *** [all-stage2-target-libgcc] Error 2
make [2]: Leaving directory ‘/home/Jose.Pascual-Gutierr/gcc4/objdir’
make [1]: *** [stage2-bubble] Error 2
make [1]: Leaving directory ‘/home/Jose.Pascual-Gutierr/gcc4/objdir’
make: *** [bootstrap] Error 2

All the help you can provide will be very appreciated.
Thank you very much,
José


[Bug bootstrap/49072] Error building the compiler

2011-05-20 Thread jose.pascual-guti...@1-act.com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49072

--- Comment #2 from Jose  2011-05-20 13:47:38 
UTC ---
Thank you very much, Jonathan, for your comments.

I tried as you suggested. Instead of using mpfr-2.4.2, I downloaded the latest
version, namely, mpfr-3.0.1. I also tried with mpc-0.8.1 and mpc-0.9. The same
file tree structure and directory names were maintained as in my original
message. Also, I simply did a "make" and not a "make bootstrap". The building
failed in all cases:

make [5]: *** [acos.lo] Error 1
make [5]: Leavimng directory
'/home/Jose.Pascual-Gutierr/gcc_compileres/objdir/mpc/src'
Making all in tests
make [5]: Entering directory
''/home/Jose.Pascual-Gutierr/gcc_compileres/objdir/mpc/tests'
make [5]: Nothing to be done for 'all'.
make [5]: Leavimng directory
'/home/Jose.Pascual-Gutierr/gcc_compileres/objdir/mpc/tests'
Making all in doc
make [5]: Entering directory
''/home/Jose.Pascual-Gutierr/gcc_compileres/objdir/mpc/doc'
make [5]: Nothing to be done for 'all'.
make [5]: Leaving directory
''/home/Jose.Pascual-Gutierr/gcc_compileres/objdir/mpc/doc'
make [5]: Entering directory
''/home/Jose.Pascual-Gutierr/gcc_compileres/objdir/mpc'
make [5]: Leaving directory
''/home/Jose.Pascual-Gutierr/gcc_compileres/objdir/mpc'
make [4]: *** [all-recursive] Error 1
make [4]: Leaving directory
''/home/Jose.Pascual-Gutierr/gcc_compileres/objdir/mpc'
make [3]: *** [all] Error 2
make [3]: Leaving directory
''/home/Jose.Pascual-Gutierr/gcc_compileres/objdir/mpc'
make [2]: *** [all-stage1-mpc] Error 2
make [2]: Leaving directory ''/home/Jose.Pascual-Gutierr/gcc_compileres/objdir'
make [1]: *** [stage1-bubble] Error 2
make [1]: Leaving directory ''/home/Jose.Pascual-Gutierr/gcc_compileres/objdir'
make: *** [all] Error 2


Thank you very much again for your further comments,
Jose


[Bug bootstrap/49072] Error building the compiler

2011-05-20 Thread jose.pascual-guti...@1-act.com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49072

--- Comment #3 from Jose  2011-05-20 21:22:03 
UTC ---
Another error encountered on a second try:

xgcc: internal compiler error: Segmentation fault (program cc1)

Thank you


[Bug fortran/49159] New: OpenMP compilation errors

2011-05-25 Thread jose.pascual-guti...@1-act.com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49159

   Summary: OpenMP compilation errors
   Product: gcc
   Version: 4.7.0
Status: UNCONFIRMED
  Severity: major
  Priority: P3
 Component: fortran
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: jose.pascual-guti...@1-act.com


I have the following OpenMP Fortran95 test program called test.f90. 

PROGRAM test
USE OMP_LIB, ONLY: OMP_SET_NUM_THREADS
IMPLICIT NONE

  INTEGER, PARAMETER :: numthreds = 4
  INTEGER, PARAMETER :: maxnumber = 12
  INTEGER :: totalsum, add, number

  CALL OMP_SET_NUM_THREADS (numthreads)
  totalsum = 0
  add = 1

  !$OMP PARALLEL DO  &
  !$OMP SCHEDULE(DYNAMIC,1) &
  !$OMP DEFAULT(SHARED) &
  !$OMP PRIVATE(number1,&
number2)&
  !$OMP REDUCTION(+:totalsum)
  DO nunmber = 1, maxnumber
totalsum = add + totalsum + number
  END DO
  !$OMP END PARALLEL DO
  WRITE (*,*) totalsum

END PROGRAM test

I try to compile it with the command "gfortran -fopenmp test.f90". The compiler
returns with the following error message:

test.f90:16.24:

  !$OMP PRIVATE(number1,  &
1 
Error: Syntax error in OpenMP variable list at (1)
test.f90:17.16:

number2)  &
1
Error: Unclassifiable statement at (1)
test.f90:18.8:

  !$OMP REDUCTION(+:totalsum)
1
Error: Unclassifiable OpenMP directive at (1)
test.f90:24.23:

  !$OMP END PARALLEL DO
   1
Error: Unexpectged !$OMP END PARALLEL DO statement at (1)

It is clear that the erros are caused by the !$OMP PRIVATE line. It seems that
a list of variables cannot be broken in two lines. Had I had 
  !$OMP PRIVATE(number1,number2) &
instead of the two lines connected with the & sign, I would have not had any
compilation errors. I wanted to try breaking the line, though, because in my
codes I have very long lists of private variables. In the previous compiler I
used, namely Intel's ifort, I had no issues. Do you have any suggestions when
it comes to long lists of private variables? Should I simply have several
 !$OMP PRIVATE ([var1],[var2],...,[varn])
lines each opening and closing the bracket?

Thank you very much


[Bug fortran/49159] OpenMP compilation errors

2011-05-25 Thread jose.pascual-guti...@1-act.com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49159

--- Comment #3 from Jose  2011-05-25 19:37:08 
UTC ---
>   !$OMP PRIVATE(number1,&
>   !$OMP number2)&

It seems to work this way. thank you very much.