From: Paul H. Hargrove (PHHargrove_at_lbl_dot_gov)
Date: Tue Dec 22 2009 - 02:10:57 PST
Nikita,
I managed to locate the download for the proper Sun cc and can reproduce
the problem. In fact, I can reproduce with the following simple C example:
$cat q.c
struct S { int * const b; };
struct S function(int * const b) {
struct S val = { b };
return val;
}
$ suncc -c q.c
"q.c", line 5: left operand must be modifiable lvalue: op "="
cc: acomp failed for q.c
So, I believe this is a bug in the Sun C compiler.
I will look for a work around.
-Paul
Andreev Nikita wrote:
> Hi,
>
> I'm trying to build BUPC 2.10.0 on HPC cluster built from Sun X2200 M2
> machines usind Sun compiler (Sun Ceres Studio IDE 9.0 Linux_i386
> 2009/03/06) as a backend.
>
> It configures ok but always builds with errors. I tried suncc, sunc89
> and sunc99 compilers with no luck. Top level directory config.log,
> make.log and configure line is in the attachment.
>
> I'm also using Paul H. Hargrove's dbg_inst.patch but it can't create
> any problems.
>
> Does Berkeley UPC support Sun compiler as a backend?
>
> Nikita
--
Paul H. Hargrove PHHargrove_at_lbl_dot_gov
Future Technologies Group Tel: +1-510-495-2352
HPC Research Department Fax: +1-510-486-6900
Lawrence Berkeley National Laboratory