tinyos / nesc

Master nesc repository
GNU General Public License v2.0
100 stars 53 forks source link

Build Fails if Emacs, gperf, bison, flex are not installed #1

Closed ppannuto closed 10 years ago

ppannuto commented 11 years ago

The configure script does not detect the presence / absence of emacs, causing the build to fail unexpectedly. Does some piece of nesC actually require emacs?

Making all in src
make[1]: Entering directory `/home/ppannuto/code/nesc/src'
cd . && emacs  -batch -load build-types.el AST nodetypes.def 42
/bin/bash: emacs: command not found
make[1]: *** [AST_defs.h] Error 127
make[1]: Leaving directory `/home/ppannuto/code/nesc/src'
make: *** [all-recursive] Error 1
dgay42 commented 11 years ago

On Feb 13, 2013, at 9:22 PM, ppannuto wrote:

The configure script does not detect the presence / absence of emacs, causing the build to fail unexpectedly. Does some piece of nesC actually require emacs?

Building from scratch requires emacs. However, the release tarballs don't (the files generated by emacs are included).

David Gay

Making all in src make[1]: Entering directory /home/ppannuto/code/nesc/src' cd . && emacs -batch -load build-types.el AST nodetypes.def 42 /bin/bash: emacs: command not found make[1]: *** [AST_defs.h] Error 127 make[1]: Leaving directory/home/ppannuto/code/nesc/src' make: *\ [all-recursive] Error 1

— Reply to this email directly or view it on GitHub.

cire831 commented 11 years ago

We should put the release tar balls up on the git repository.

I haven't done it in a while, David, can you generate the tar balls?

On Wed, Feb 13, 2013 at 9:27 PM, dgay42 notifications@github.com wrote:

On Feb 13, 2013, at 9:22 PM, ppannuto wrote:

The configure script does not detect the presence / absence of emacs, causing the build to fail unexpectedly. Does some piece of nesC actually require emacs?

Building from scratch requires emacs. However, the release tarballs don't (the files generated by emacs are included).

David Gay

Making all in src make[1]: Entering directory /home/ppannuto/code/nesc/src' cd . && emacs -batch -load build-types.el AST nodetypes.def 42 /bin/bash: emacs: command not found make[1]: *** [AST_defs.h] Error 127 make[1]: Leaving directory/home/ppannuto/code/nesc/src' make: *\ [all-recursive] Error 1

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHubhttps://github.com/tinyos/nesc/issues/1#issuecomment-13533780.

Eric B. Decker Senior (over 50 :-) Researcher

ppannuto commented 11 years ago

The configure script also fails to detect if gperf, bison, or flex are present. The latter two are often unnecessary when shipping tarballs, and some Googling around didn't present an obvious best practice.

None of these issues are particularly critical, but they're hard to find unless you're building on a fresh system so I figured they merited documenting here.