This is the mail archive of the gcc-bugs@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]

egcs-19990920 build error (2)


I tried to use SUNs compiler to build egcs-19990920 on sparc-sun-solaris2.7:

  cc -c  -DIN_GCC -DSVR4  -g  -W -Wall    -I. -I.. -I../../../gcc/cp -I../../../gcc/cp/.. -I../../../gcc/cp/../config -I../../../gcc/cp/../../include ../../../gcc/cp/call.c
  cc: illegal option -W-Wall
  *** Error code 1
  make: Fatal error: Command failed for target `call.o'
  Current working directory /home/patha/tmp/egcs-19990920/objdir/gcc/cp
  *** Error code 1
  make: Fatal error: Command failed for target `cc1plus'
  Current working directory /home/patha/tmp/egcs-19990920/objdir/gcc
  *** Error code 1
  make: Fatal error: Command failed for target `all-gcc'

I removed -W and -Wall.

  cc -c  -DIN_GCC -DSVR4  -g     -I. -I.. -I../../../gcc/cp -I../../../gcc/cp/.. -I../../../gcc/cp/../config -I../../../gcc/cp/../../include ../../../gcc/cp/decl.c
  "../../../gcc/cp/decl.c", line 589: left operand must be modifiable lvalue: op "="
  "../../../gcc/cp/decl.c", line 650: left operand must be modifiable lvalue: op "="
  "../../../gcc/cp/decl.c", line 665: left operand must be modifiable lvalue: op "="
  "../../../gcc/cp/decl.c", line 687: left operand must be modifiable lvalue: op "="
  "../../../gcc/cp/decl.c", line 700: left operand must be modifiable lvalue: op "="
  "../../../gcc/cp/decl.c", line 885: warning: enum type mismatch: arg #1
  "../../../gcc/cp/decl.c", line 2114: warning: enum type mismatch: arg #1
  "../../../gcc/cp/decl.c", line 4081: left operand must be modifiable lvalue: op "="
  "../../../gcc/cp/decl.c", line 4083: left operand must be modifiable lvalue: op "="
  "../../../gcc/cp/decl.c", line 4331: warning: enum type mismatch: arg #1
  "../../../gcc/cp/decl.c", line 5157: warning: enum type mismatch: arg #1
  "../../../gcc/cp/decl.c", line 5269: warning: enum type mismatch: arg #1
  "../../../gcc/cp/decl.c", line 5310: warning: enum type mismatch: arg #1
  "../../../gcc/cp/decl.c", line 5425: warning: enum type mismatch: arg #1
  "../../../gcc/cp/decl.c", line 5603: warning: enum type mismatch: arg #1
  "../../../gcc/cp/decl.c", line 6019: left operand must be modifiable lvalue: op "="
  "../../../gcc/cp/decl.c", line 6401: cannot recover from previous errors
  cc: acomp failed for ../../../gcc/cp/decl.c
  *** Error code 2
  make: Fatal error: Command failed for target `decl.o'
  Current working directory /home/patha/tmp/egcs-19990920/objdir/gcc/cp
  *** Error code 1
  make: Fatal error: Command failed for target `cc1plus'
  Current working directory /home/patha/tmp/egcs-19990920/objdir/gcc
  *** Error code 1
  make: Fatal error: Command failed for target `all-gcc'

Hmm.. the left operand of "=" seems to be #defined to an
arithmetic if statement.

--
Patrik Hägglund


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