Andrew, thank you very much for your answer. I have just used the
option you suggested for benchmark galgel, it works!

Since I can not modify the source code of SPEC2000 benchmark, I don't
quite understand when you say I need "alt sources which remove the
cast as lvalue".  Where I can find the alternative source for 176.gcc?

If anyone have experience to successfully compile 176.gcc, 252.eon and
253.perlbmk in SPEC2000 with gcc4.1.2 version, could you kindly tell
me what kind of compiler option you use for these three benchmarks?

Any help will be greatly appreciated!

On Sat, Nov 29, 2008 at 10:12 PM, Andrew Thomas Pinski
<[EMAIL PROTECTED]> wrote:
>
>
> Sent from my iPhone
>
> On Nov 29, 2008, at 6:34 PM, yx <[EMAIL PROTECTED]> wrote:
>
>> Hi,
>>
>> I am trying to compile SPEC2000 benchmark with gcc 4.1.2 (gfortran and
>> g++ were compiled successfully for gcc4.1.2.) However I got
>> compilation errors for 4 benchmarks in SPEC2000. The error messages
>> are listed as follows:
>>
>> 176. gcc:
>> reorg.c: In function 'find_end_label'
>> reorg.c:831: error: invalid lvalue in increment
>> reorg.c: In function delete_from_delay_slot?
>> reorg.c:1033: error: invalid lvalue in increment
>> reorg.c: In function make_return_insns?
>> reorg.c:4157: error: invalid lvalue in increment
>> reorg.c: In function dbr_schedule?
>> reorg.c:4237: error: invalid lvalue in increment
>> reorg.c:4312: warning: incompatible implicit declaration of built-in
>> function memset specmake: *** [reorg.o] Error 1
>> specmake  options 2> options.err | tee options.out
>
> You need the alt sources which remove the cast as lvalue.
>
>>
>>
>> 252.eon:
>> ggFrame2.cc: In function std::istream& operator>>(std::istream&,
>> ggFrame2&)?
>> ggFrame2.cc:64: error: no match for operator>> in is >> "("
>> 253.perlbmk:
>> perlio.c: In function PerlIO_setpos
>> perlio.c:472: error: incompatible type for argument 2 of fseek
>> perlio.c: In function PerlIO_getpos
>> perlio.c:490: error: incompatible types in assignment
>> specmake: *** [perlio.o] Error 1
>>
>> 178.galgel:
>> local412/bin/gfortran -c -o modules.o  -malign-double           -O3
>> modules.f90
>> In file modules.f90:1
>
> Try with -ffixed-form, the source is written in fixed form Fortran 90/95.
>  .f90 causes gfortran to default to free form.
>
> Thanks,
> Andrew Pinski
>
>>
>>
>> C ############ Maximal sizes ####################################
>> 1
>> Error: Unclassifiable statement at (1)
>> In file modules.f90:16
>>
>> C *********** Parameters of the problem ***********
>> 1
>> Error: Unclassifiable statement at (1)
>> In file modules.f90:36
>>
>> C ******* Coefficients for boundary conditions ***************
>> 1
>> Error: Unclassifiable statement at (1)
>> In file modules.f90:41
>>
>>         Real*8, Dimension(0:mm) ::
>>                                  1
>> Error: Syntax error in data declaration at (1)
>> In file modules.f90:42
>>
>>    *                F1, F2, F3, F4, G1, G2, G3, G4, A, B
>>   1
>> Error: Unclassifiable statement at (1)
>> In file modules.f90:51
>>
>> C ********* Inner products  of polynomials ******************
>> 1
>> Error: Unclassifiable statement at (1)
>> In file modules.f90:66
>>
>> C ********* Inner products  of functions ******************
>> 1
>> Error: Unclassifiable statement at (1)
>> In file modules.f90:71
>>
>>           Real*8, Dimension(mm,mm) ::
>>                                     1
>> Error: Syntax error in data declaration at (1)
>> In file modules.f90:72
>>
>>    *             VXX,  VXY,  VYX,  VYY,  VXX2, VXY2, VYX2, VYY2
>>   1
>> Error: Unclassifiable statement at (1)
>> In file modules.f90:84
>>
>>           Real*8, Dimension(mm,mm,mm) ::
>>                                        1
>> Error: Syntax error in data declaration at (1)
>> In file modules.f90:85
>>
>>    *             VXXX, VXXY, VXYX, VXYY, VYXX, VYXY, VYYX, VYYY
>>   1
>> Error: Unclassifiable statement at (1)
>> In file modules.f90:97
>>
>>           Real*8, Dimension(mm,mm) :: TXX, TYY, TXX2, TYY2,
>>                                                           1
>> Error: Syntax error in data declaration at (1)
>> In file modules.f90:98
>>
>>    *                                  PXX, PYY, PXX2, PYY2
>>   1
>> Error: Unclassifiable statement at (1)
>> In file modules.f90:104
>>
>>           Real*8, Dimension(mm,mm,mm) ::
>>                                        1
>> Error: Syntax error in data declaration at (1)
>> In file modules.f90:105
>>
>>    *              WXTX, WXTY, WYTX, WYTY, WXPX, WXPY, WYPX, WYPY
>>   1
>> Error: Unclassifiable statement at (1)
>> In file modules.f90:108
>>
>> C *********** Matrices of the Galerkin system ***********************
>> 1
>> Error: Unclassifiable statement at (1)
>> In file modules.f90:140
>>
>>         Real*8,  Dimension(N11,N11) ::
>>                                      1
>> Error: Syntax error in data declaration at (1)
>> In file modules.f90:141
>>
>>    *            POP, Poj1, Poj2, Poj3, Poj4
>>   1
>> Error: Unclassifiable statement at (1)
>>
>> Any help will be greatly appreciated!
>

Reply via email to