Problems building bison on OpenBSD 4.3

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Problems building bison on OpenBSD 4.3

Gerardo Santana Gómez Garrido
I'm running OpenBSD 4.3-stable on i386. Ports are 4.3-stable too.
I tried to build bison and got the following error. Any ideas?

--------------------------- 8< ---------------------------
Making all in examples
Making all in calc++
make  all-am
if c++ -DHAVE_CONFIG_H -I. -I. -I../..    -I/usr/local/include  -O2
-pipe -MT calc++-scanner.o -MD -MP -MF ".deps/calc++-scanner.Tpo" -c
-o calc++-scanner.o calc++-scanner.cc;  then mv -f
".deps/calc++-scanner.Tpo" ".deps/calc++-scanner.Po"; else rm -f
".deps/calc++-scanner.Tpo"; exit 1; fi
In file included from ./calc++-scanner.ll:2:
/usr/include/g++/cstdlib:49:28: bits/c++config.h: No such file or directory
In file included from ./calc++-scanner.ll:5:
/usr/include/g++/string:45:28: bits/c++config.h: No such file or directory
In file included from /usr/include/g++/string:46,
                 from ./calc++-scanner.ll:5:
/usr/include/g++/bits/stringfwd.h:44:28: bits/c++config.h: No such
file or directory
In file included from /usr/include/g++/bits/char_traits.h:46,
                 from /usr/include/g++/string:47,
                 from ./calc++-scanner.ll:5:
/usr/include/g++/bits/fpos.h:44:24: bits/c++io.h: No such file or directory
In file included from /usr/include/g++/bits/fpos.h:45,
                 from /usr/include/g++/bits/char_traits.h:46,
                 from /usr/include/g++/string:47,
                 from ./calc++-scanner.ll:5:
/usr/include/g++/cwchar:49:28: bits/c++config.h: No such file or directory
In file included from /usr/include/g++/bits/fpos.h:45,
                 from /usr/include/g++/bits/char_traits.h:46,
                 from /usr/include/g++/string:47,
                 from ./calc++-scanner.ll:5:
/usr/include/g++/cwchar:65: error: conflicting types for `typedef struct
   mbstate_t mbstate_t'
/usr/include/stddef.h:64: error: previous declaration as `typedef union
   __mbstate_t mbstate_t'
In file included from /usr/include/g++/bits/char_traits.h:46,
                 from /usr/include/g++/string:47,
                 from ./calc++-scanner.ll:5:
/usr/include/g++/bits/fpos.h:63: error: 'streamoff' is used as a type, but is
   not defined as a type.
/usr/include/g++/bits/fpos.h:77: error: syntax error before `__off'
/usr/include/g++/bits/fpos.h:78: error: missing ';' before right brace
/usr/include/g++/bits/fpos.h:80: error: semicolon missing after declaration of
   `std::fpos<_StateT>'
/usr/include/g++/bits/fpos.h: In constructor `std::fpos<_StateT>::fpos()':
/usr/include/g++/bits/fpos.h:75: error: class `std::fpos<_StateT>' does not
   have any field named `_M_off'
/usr/include/g++/bits/fpos.h: At global scope:
/usr/include/g++/bits/fpos.h:80: error: syntax error before `(' token
/usr/include/g++/bits/fpos.h:80: error: ISO C++ forbids defining types within
   return type
/usr/include/g++/bits/fpos.h:80: error: non-member function `std::fpos<_StateT>
   std::<invalid operator>()' cannot have `const' method qualifier
/usr/include/g++/bits/fpos.h:80: error: semicolon missing after declaration of
   `class std::fpos<_StateT>'
/usr/include/g++/bits/fpos.h:82: error: syntax error before `&' token
In file included from /usr/include/g++/bits/char_traits.h:46,
                 from /usr/include/g++/string:47,
                 from ./calc++-scanner.ll:5:
/usr/include/g++/bits/fpos.h:39:1: unterminated #ifndef
In file included from /usr/include/g++/string:47,
                 from ./calc++-scanner.ll:5:
/usr/include/g++/bits/char_traits.h:40:1: unterminated #ifndef
In file included from ./calc++-scanner.ll:5:
/usr/include/g++/string:40:1: unterminated #ifndef
*** Error code 1

Stop in /usr/ports/devel/bison/w-bison-2.1p0/bison-2.1/examples/calc++
(line 104 of /usr/share/mk/sys.mk).
*** Error code 1

Stop in /usr/ports/devel/bison/w-bison-2.1p0/bison-2.1/examples/calc++
(line 246 of Makefile).
*** Error code 1

Stop in /usr/ports/devel/bison/w-bison-2.1p0/bison-2.1/examples (line
274 of Makefile).
*** Error code 1

Stop in /usr/ports/devel/bison/w-bison-2.1p0/bison-2.1 (line 344 of Makefile).
*** Error code 1

Stop in /usr/ports/devel/bison/w-bison-2.1p0/bison-2.1 (line 243 of Makefile).
*** Error code 1

Stop in /usr/ports/devel/bison (line 2092 of
/usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/devel/bison (line 1392 of
/usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/devel/bison (line 1890 of
/usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/devel/bison (line 1422 of
/usr/ports/infrastructure/mk/bsd.port.mk).
--------------------------- >8 ---------------------------


--
Gerardo Santana

Reply | Threaded
Open this post in threaded view
|

Re: Problems building bison on OpenBSD 4.3

Matthias Kilian
On Tue, Mar 25, 2008 at 02:28:07PM -0600, Gerardo Santana Gsmez Garrido wrote:
> I'm running OpenBSD 4.3-stable on i386. Ports are 4.3-stable too.

How? It's not even released.

Reply | Threaded
Open this post in threaded view
|

Re: Problems building bison on OpenBSD 4.3

Gerardo Santana Gómez Garrido
On 3/25/08, Matthias Kilian <[hidden email]> wrote:
> On Tue, Mar 25, 2008 at 02:28:07PM -0600, Gerardo Santana Gsmez Garrido
wrote:
>  > I'm running OpenBSD 4.3-stable on i386. Ports are 4.3-stable too.
>
>
> How? It's not even released.


Building it from source.

--
Gerardo Santana

Reply | Threaded
Open this post in threaded view
|

Re: Problems building bison on OpenBSD 4.3

Marc Espie-2
On Tue, Mar 25, 2008 at 02:51:27PM -0600, Gerardo Santana Gsmez Garrido wrote:

> On 3/25/08, Matthias Kilian <[hidden email]> wrote:
> > On Tue, Mar 25, 2008 at 02:28:07PM -0600, Gerardo Santana Gsmez Garrido
> wrote:
> >  > I'm running OpenBSD 4.3-stable on i386. Ports are 4.3-stable too.
> >
> >
> > How? It's not even released.
>
>
> Building it from source.

You managed to fuck up the build order, somehow. Your c++ compiler can't
find its headers.

You probably want to move /usr/include  out of the way and regenerate it
correctly.

Reply | Threaded
Open this post in threaded view
|

Re: Problems building bison on OpenBSD 4.3

Gerardo Santana Gómez Garrido
On 3/25/08, Marc Espie <[hidden email]> wrote:
> On Tue, Mar 25, 2008 at 02:51:27PM -0600, Gerardo Santana Gsmez Garrido
wrote:

>  > On 3/25/08, Matthias Kilian <[hidden email]> wrote:
>
> > > On Tue, Mar 25, 2008 at 02:28:07PM -0600, Gerardo Santana Gsmez Garrido
>
> > wrote:
>  > >  > I'm running OpenBSD 4.3-stable on i386. Ports are 4.3-stable too.
>  > >
>  > >
>  > > How? It's not even released.
>  >
>  >
>  > Building it from source.
>
>
> You managed to fuck up the build order, somehow. Your c++ compiler can't
>  find its headers.
>
>  You probably want to move /usr/include  out of the way and regenerate it
>  correctly.
>

Thank you Marc. That fixed the problem

--
Gerardo Santana