pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Bison Incompatible Types



Still trying to build scmgit, I'm now blocked on bison:

/opt/sns-test-1/bin/bmake  all-am
source='AnnotationList.c' object='AnnotationList.o' libtool=no
DEPDIR=.deps depmode=none /opt/sns-test-1/bin/pdksh
../build-aux/depcomp  cc  -I. -I../lib  -I../lib
-I/opt/sns-test-1/include   -O -I/opt/sns-test-1/include -c
AnnotationList.c
source='InadequacyList.c' object='InadequacyList.o' libtool=no
DEPDIR=.deps depmode=none /opt/sns-test-1/bin/pdksh
../build-aux/depcomp  cc  -I. -I../lib  -I../lib
-I/opt/sns-test-1/include   -O -I/opt/sns-test-1/include -c
InadequacyList.c
source='LR0.c' object='LR0.o' libtool=no  DEPDIR=.deps depmode=none
/opt/sns-test-1/bin/pdksh ../build-aux/depcomp  cc  -I. -I../lib
-I../lib  -I/opt/sns-test-1/include   -O -I/opt/sns-test-1/include -c
LR0.c
source='Sbitset.c' object='Sbitset.o' libtool=no  DEPDIR=.deps
depmode=none /opt/sns-test-1/bin/pdksh ../build-aux/depcomp  cc  -I.
-I../lib  -I../lib  -I/opt/sns-test-1/include   -O
-I/opt/sns-test-1/include -c Sbitset.c
source='assoc.c' object='assoc.o' libtool=no  DEPDIR=.deps
depmode=none /opt/sns-test-1/bin/pdksh ../build-aux/depcomp  cc  -I.
-I../lib  -I../lib  -I/opt/sns-test-1/include   -O
-I/opt/sns-test-1/include -c assoc.c
source='closure.c' object='closure.o' libtool=no  DEPDIR=.deps
depmode=none /opt/sns-test-1/bin/pdksh ../build-aux/depcomp  cc  -I.
-I../lib  -I../lib  -I/opt/sns-test-1/include   -O
-I/opt/sns-test-1/include -c closure.c
source='complain.c' object='complain.o' libtool=no  DEPDIR=.deps
depmode=none /opt/sns-test-1/bin/pdksh ../build-aux/depcomp  cc  -I.
-I../lib  -I../lib  -I/opt/sns-test-1/include   -O
-I/opt/sns-test-1/include -c complain.c
source='conflicts.c' object='conflicts.o' libtool=no  DEPDIR=.deps
depmode=none /opt/sns-test-1/bin/pdksh ../build-aux/depcomp  cc  -I.
-I../lib  -I../lib  -I/opt/sns-test-1/include   -O
-I/opt/sns-test-1/include -c conflicts.c
source='derives.c' object='derives.o' libtool=no  DEPDIR=.deps
depmode=none /opt/sns-test-1/bin/pdksh ../build-aux/depcomp  cc  -I.
-I../lib  -I../lib  -I/opt/sns-test-1/include   -O
-I/opt/sns-test-1/include -c derives.c
source='files.c' object='files.o' libtool=no  DEPDIR=.deps
depmode=none /opt/sns-test-1/bin/pdksh ../build-aux/depcomp  cc  -I.
-I../lib  -I../lib  -I/opt/sns-test-1/include   -O
-I/opt/sns-test-1/include -c files.c
source='getargs.c' object='getargs.o' libtool=no  DEPDIR=.deps
depmode=none /opt/sns-test-1/bin/pdksh ../build-aux/depcomp  cc  -I.
-I../lib  -I../lib  -I/opt/sns-test-1/include   -O
-I/opt/sns-test-1/include -c getargs.c
source='gram.c' object='gram.o' libtool=no  DEPDIR=.deps depmode=none
/opt/sns-test-1/bin/pdksh ../build-aux/depcomp  cc  -I. -I../lib
-I../lib  -I/opt/sns-test-1/include   -O -I/opt/sns-test-1/include -c
gram.c
source='lalr.c' object='lalr.o' libtool=no  DEPDIR=.deps depmode=none
/opt/sns-test-1/bin/pdksh ../build-aux/depcomp  cc  -I. -I../lib
-I../lib  -I/opt/sns-test-1/include   -O -I/opt/sns-test-1/include -c
lalr.c
source='ielr.c' object='ielr.o' libtool=no  DEPDIR=.deps depmode=none
/opt/sns-test-1/bin/pdksh ../build-aux/depcomp  cc  -I. -I../lib
-I../lib  -I/opt/sns-test-1/include   -O -I/opt/sns-test-1/include -c
ielr.c
source='location.c' object='location.o' libtool=no  DEPDIR=.deps
depmode=none /opt/sns-test-1/bin/pdksh ../build-aux/depcomp  cc  -I.
-I../lib  -I../lib  -I/opt/sns-test-1/include   -O
-I/opt/sns-test-1/include -c location.c
source='main.c' object='main.o' libtool=no  DEPDIR=.deps depmode=none
/opt/sns-test-1/bin/pdksh ../build-aux/depcomp  cc  -I. -I../lib
-I../lib  -I/opt/sns-test-1/include   -O -I/opt/sns-test-1/include -c
main.c
source='muscle-tab.c' object='muscle-tab.o' libtool=no  DEPDIR=.deps
depmode=none /opt/sns-test-1/bin/pdksh ../build-aux/depcomp  cc  -I.
-I../lib  -I../lib  -I/opt/sns-test-1/include   -O
-I/opt/sns-test-1/include -c muscle-tab.c
source='named-ref.c' object='named-ref.o' libtool=no  DEPDIR=.deps
depmode=none /opt/sns-test-1/bin/pdksh ../build-aux/depcomp  cc  -I.
-I../lib  -I../lib  -I/opt/sns-test-1/include   -O
-I/opt/sns-test-1/include -c named-ref.c
source='nullable.c' object='nullable.o' libtool=no  DEPDIR=.deps
depmode=none /opt/sns-test-1/bin/pdksh ../build-aux/depcomp  cc  -I.
-I../lib  -I../lib  -I/opt/sns-test-1/include   -O
-I/opt/sns-test-1/include -c nullable.c
source='output.c' object='output.o' libtool=no  DEPDIR=.deps
depmode=none /opt/sns-test-1/bin/pdksh ../build-aux/depcomp  cc  -I.
-I../lib  -I../lib  -I/opt/sns-test-1/include   -O
-I/opt/sns-test-1/include -c output.c
source='parse-gram.c' object='parse-gram.o' libtool=no  DEPDIR=.deps
depmode=none /opt/sns-test-1/bin/pdksh ../build-aux/depcomp  cc  -I.
-I../lib  -I../lib  -I/opt/sns-test-1/include   -O
-I/opt/sns-test-1/include -c parse-gram.c
source='print.c' object='print.o' libtool=no  DEPDIR=.deps
depmode=none /opt/sns-test-1/bin/pdksh ../build-aux/depcomp  cc  -I.
-I../lib  -I../lib  -I/opt/sns-test-1/include   -O
-I/opt/sns-test-1/include -c print.c
source='print_graph.c' object='print_graph.o' libtool=no  DEPDIR=.deps
depmode=none /opt/sns-test-1/bin/pdksh ../build-aux/depcomp  cc  -I.
-I../lib  -I../lib  -I/opt/sns-test-1/include   -O
-I/opt/sns-test-1/include -c print_graph.c
source='print-xml.c' object='print-xml.o' libtool=no  DEPDIR=.deps
depmode=none /opt/sns-test-1/bin/pdksh ../build-aux/depcomp  cc  -I.
-I../lib  -I../lib  -I/opt/sns-test-1/include   -O
-I/opt/sns-test-1/include -c print-xml.c
source='reader.c' object='reader.o' libtool=no  DEPDIR=.deps
depmode=none /opt/sns-test-1/bin/pdksh ../build-aux/depcomp  cc  -I.
-I../lib  -I../lib  -I/opt/sns-test-1/include   -O
-I/opt/sns-test-1/include -c reader.c
source='reduce.c' object='reduce.o' libtool=no  DEPDIR=.deps
depmode=none /opt/sns-test-1/bin/pdksh ../build-aux/depcomp  cc  -I.
-I../lib  -I../lib  -I/opt/sns-test-1/include   -O
-I/opt/sns-test-1/include -c reduce.c
source='relation.c' object='relation.o' libtool=no  DEPDIR=.deps
depmode=none /opt/sns-test-1/bin/pdksh ../build-aux/depcomp  cc  -I.
-I../lib  -I../lib  -I/opt/sns-test-1/include   -O
-I/opt/sns-test-1/include -c relation.c
source='scan-code-c.c' object='scan-code-c.o' libtool=no  DEPDIR=.deps
depmode=none /opt/sns-test-1/bin/pdksh ../build-aux/depcomp  cc  -I.
-I../lib  -I../lib  -I/opt/sns-test-1/include   -O
-I/opt/sns-test-1/include -c scan-code-c.c
"scan-code.l", line 453: operands have incompatible types:
         struct  {struct  {..} start, struct  {..} end} ":" const
struct  {struct  {..} start, struct  {..} end}
"scan-code.l", line 683: warning: statement not reached
cc: acomp failed for scan-code-c.c
*** Error code 2

Stop.
bmake: stopped in /opt/pkgsrc/devel/bison/work/bison-2.5/src
*** Error code 1

Stop.
bmake: stopped in /opt/pkgsrc/devel/bison/work/bison-2.5/src
*** Error code 1

Stop.
bmake: stopped in /opt/pkgsrc/devel/bison/work/bison-2.5
*** Error code 1

Stop.
bmake: stopped in /opt/pkgsrc/devel/bison/work/bison-2.5
*** Error code 1

Stop.
bmake: stopped in /opt/pkgsrc/devel/bison
*** Error code 1

Stop.
bmake: stopped in /opt/pkgsrc/devel/bison
*** Error code 1

Stop.
bmake: stopped in /opt/pkgsrc/security/heimdal
*** Error code 1

Stop.
bmake: stopped in /opt/pkgsrc/security/p5-GSSAPI
*** Error code 1

Stop.
bmake: stopped in /opt/pkgsrc/security/p5-Authen-SASL
*** Error code 1

Stop.
bmake: stopped in /opt/pkgsrc/devel/scmgit-base
*** Error code 1

Stop.
bmake: stopped in /opt/pkgsrc/devel/scmgit

The struct in question is:

http://hpaste.org/67645

My guess is that var->hidden_by->loc isn't const and var->loc is (or
vice versa), so the compiler doesn't know what the constness of the
ternary is.  I tried forcing both arms of the ternary with (const):

  location id_loc = var->hidden_by ? (const) var->hidden_by->loc : (const)
            var->loc;

But the subsequent bmake gives:

"/opt/pkgsrc/devel/bison/work/bison-2.5/src/scan-code.l":line 21:
Error: missing translation value

At this point, I'm thoroughly out of my depth, so I'm not sure where to go next.

Any suggestions?

S.


Home | Main Index | Thread Index | Old Index