Git Product home page Git Product logo

Comments (13)

nickg avatar nickg commented on May 30, 2024

Can you pull and try again? I think you must have a newer version of autoconf.

from nvc.

qiukun avatar qiukun commented on May 30, 2024
➜  nvc git:(master) ./autogen.sh 
configure.ac:61: error: possibly undefined macro: AC_MSG_WARN
      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

from nvc.

nickg avatar nickg commented on May 30, 2024

Which version of autoconf, automake, etc do you have installed?

sudo apt-get install autoconf autoconf-archive automake pkg-config libreadline-dev

Should cover the dependencies needed to generate the configure script.

from nvc.

qiukun avatar qiukun commented on May 30, 2024

According to http://stackoverflow.com/questions/8811381/possibly-undefined-macro-ac-msg-error
I apt-get the pkg-config
and now

➜  nvc git:(master) ✗ ./autogen.sh 
configure.ac:4: require Automake 1.12, but have 1.11.6
autoreconf: automake failed with exit status: 1

from nvc.

nickg avatar nickg commented on May 30, 2024

Try applying this patch to your local copy, or else upgrade to a newer automake if it's easily available.

diff --git a/configure.ac b/configure.ac
index e0a0ba6..eb19713 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,7 +1,7 @@
 AC_INIT([nvc], [0.1],
         [Nick Gasson <[email protected]>],
         [nvc])
-AM_INIT_AUTOMAKE([1.12 color-tests serial-tests])
+AM_INIT_AUTOMAKE([1.11 color-tests])
 AM_SILENT_RULES([yes])

 AC_CONFIG_MACRO_DIR([m4])

from nvc.

qiukun avatar qiukun commented on May 30, 2024
checking for BZ2_bzclose in -lbz2... no
configure: error: bzip2 not found

from nvc.

nickg avatar nickg commented on May 30, 2024

You can install that with

sudo apt-get install libbz2-dev

from nvc.

qiukun avatar qiukun commented on May 30, 2024

tcl-dev is also needed. and also bison .

declared with attribute warn_unused_result [-Werror=unused-result]

from nvc.

nickg avatar nickg commented on May 30, 2024

Is that an error message you get when building? Can you include a bit more of it? (File/line specifically.)

from nvc.

qiukun avatar qiukun commented on May 30, 2024

..have hacked cover.c

char *t = fgets(buf, sizeof(buf), fp);
t =t;
Making all in lxt
Making all in fst
Making all in src
Making all in rt
  CC     lib.o
../../src/lib.c: In function ‘lib_default_search_paths’:
../../src/lib.c:248:18: error: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Werror=unused-result]
cc1: all warnings being treated as errors
make[4]: *** [lib.o] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

from nvc.

nickg avatar nickg commented on May 30, 2024

Should be fixed by commit c169897

from nvc.

qiukun avatar qiukun commented on May 30, 2024

flex


Making all in lxt
Making all in fst
Making all in src
Making all in rt
  LEX    lexer.c
make[4]: *** [lexer.c] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

from nvc.

qiukun avatar qiukun commented on May 30, 2024

by doing a clean build, finally got it done.
maybe you should consider adding the dependencies to the README file.
and also tools/fetch-ieee.sh

sudo apt-get install autoconf autoconf-archive automake pkg-config libreadline-dev bison flex tcl-dev pkg-config 

from nvc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.