Re: Errors when building from source

Wouter Beek <[email protected]>
Newsgroups gmane.comp.parsers.bison.general
Message-ID <CAEh2WcPXhy7XFpgWxvdwgbUewZje+6emYkMeW1+vk8LOChCTRg@mail.gmail.com>
Hi Akim,

On more thing I noticed:

```
$ bison --version
bison (GNU Bison) 3.2.1.139-5fb0d-dirty
Written by Robert Corbett and Richard Stallman.

Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
```

This is after building the latest commit on master.  The `5fb0d' bit
correctly identifies this commit, but for the version number I was
expecting to see 3.2.4 or later...

---
Best,
Wouter.

Email: [email protected]
WWW: https://triply.cc
Tel: +31647674624

On Thu, Dec 27, 2018 at 5:04 AM Wouter Beek <[email protected]> wrote:
>
> Hi Akim,
>
> > > From the above I had concluded that I should first compile Bison and
> > > Flex later.
> >
> > Can't you get Flex from your distro?
>
> Yes, I'm now installing Flex through the package system (2.6.1).
>
> > > BTW, I also ran into the following error while running the `bootstrap'
> > > script in my local Bison directory for the first time:
> > >
> > >    configure.ac:110: error: possibly undefined macro: AC_PROG_GNU_M4
> > >        If this token and others are legitimate, please use m4_pattern_allow.
> > >        See the Autoconf documentation.
> > >    autoreconf: /usr/bin/autoconf failed with exit status: 1
> > >
> > > The link `m4/m4.m4' was not present in my local Bison directory.
> > > Following the discussion in
> > > https://lists.gnu.org/archive/html/bug-bison/2011-05/msg00012.html, I
> > > learned that running `git submodule update --init' prior to running
> > > `bootstrap' fixes this.
> >
> > That's weird.  What "git status" noticing any difference?
>
> Yes, the missing file seems to have been deleted:
>
> ```
> $ git status
> On branch master
> Your branch is up to date with 'origin/master'.
>
> Changes not staged for commit:
>   (use "git add/rm <file>..." to update what will be committed)
>   (use "git checkout -- <file>..." to discard changes in working directory)
>
>     deleted:    m4/m4.m4
>
> Untracked files:
>   (use "git add <file>..." to include in what will be committed)
>
>     .bootstrap13738.0
>     .bootstrap13738.1
> ```
>
> I now have a working build on another distribution (Fedora).  I still
> encountered the above issue with the missing m4/m4.m4 file.
>
> ---
> Cheers,
> Wouter.

_______________________________________________
[email protected] https://lists.gnu.org/mailman/listinfo/help-bison
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.