This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: sparc/sparc.c:502: error: initializer element is not constant


On Wed, 29 Dec 2004 08:14:46 +0100, Christian Joensson
<christian.joensson@gmail.com> wrote:
> On Tue, 28 Dec 2004 21:01:19 +0100, Christian Joensson
> <christian.joensson@gmail.com> wrote:
> > Recent changes make gcc not bootstrap on sparc-linux.
> 
> well, maybe I was too sparse this time, here's what I have:
> 
> Aurora SPARC Linux Corona (FC3-ish) UltraSparc IIi (Sabre) sun4u:
> 
> binutils-2.15.92.0.2-5 - sparc
> bison-1.875c-2 - sparc
> dejagnu-1.4.4-1 - noarch
> expect-5.42.1-1 - sparc
> gcc-3.4.2-6.fc3 - sparc
> gcc4-4.0.0-0.8sparc - sparc
> glibc-2.3.3-99 - sparcv9
> glibc-2.3.3-99 - sparc64
> glibc-headers-2.3.3-99 - sparc64
> glibc-kernheaders-2.6-17sparc - sparc
> kernel-2.6.8-1.571sp1 - sparc64
> kernel-2.6.9-1.1032sp1 - sparc64
> package kernel-smp is not installed
> tcl-8.4.5-7 - sparc
> 
> LAST_UPDATED: Tue Dec 28 20:03:55 UTC 2004
> 
> configure   sparc-linux --enable-__cxa_atexit --enable-shared
> --enable-languages=c,c++,f95,objc,treelang
> 
> gcc -m32 -c   -g -DENABLE_CHECKING -DENABLE_ASSERT_CHECKING -DIN_GCC
> -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
> -Wold-style-definition -fno-common   -DHAVE_CONFIG_H    -I. -I.
> -I/usr/local/src/trunk/gcc/gcc -I/usr/local/src/trunk/gcc/gcc/.
> -I/usr/local/src/trunk/gcc/gcc/../include
> -I/usr/local/src/trunk/gcc/gcc/../libcpp/include  \
>         /usr/local/src/trunk/gcc/gcc/config/sparc/sparc.c -o sparc.o
> /usr/local/src/trunk/gcc/gcc/config/sparc/sparc.c:500:1: warning:
> "TARGET_RELAXED_ORDERING" redefined
> In file included from /usr/local/src/trunk/gcc/gcc/config/sparc/sparc.c:49:
> /usr/local/src/trunk/gcc/gcc/target-def.h:398:1: warning: this is the
> location of the previous definition
> /usr/local/src/trunk/gcc/gcc/config/sparc/sparc.c:502: error:
> initializer element is not constant
> /usr/local/src/trunk/gcc/gcc/config/sparc/sparc.c:502: error: (near
> initialization for `targetm.relaxed_ordering')
> /usr/local/src/trunk/gcc/gcc/config/sparc/sparc.c:502: warning:
> missing initializer
> /usr/local/src/trunk/gcc/gcc/config/sparc/sparc.c:502: warning: (near
> initialization for `targetm.relaxed_ordering')
> make[2]: *** [sparc.o] Error 1
> make[2]: Leaving directory `/usr/local/src/trunk/objdir32/gcc'
> make[1]: *** [stage1_build] Error 2
> make[1]: Leaving directory `/usr/local/src/trunk/objdir32/gcc'
> make: *** [bootstrap-lean] Error 2
> 
> my only hunch is that it might be related to
> http://gcc.gnu.org/ml/gcc-cvs/2004-12/msg01051.html
> so I will back that patch out and see what happens.

well, I found this
http://gcc.gnu.org/ml/gcc-patches/2004-12/msg01992.html and backed it
out, the compile now passed the above problem... I guess this is what
rth was saying here
http://gcc.gnu.org/ml/gcc-patches/2004-12/msg01997.html .

-- 
Cheers,

/ChJ


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]