Number: 469
Title: Compilation problem on Sun UltraSparc Solaris8
Submitter: Prasad Narasimha
Date: Thu Jun 10 08:08:38 2004
Subsys: Build/Installation
Version: 1.12
System: Sparc-Solaris-8
Severity: major
Problem:
After rununning the ./configure successfully, running make fails half way with with error message as shown below:

make  all-recursive
Making all in cdt
Making all in agraph
/usr/bin/sed "s/yy/aag/g" < y.tab.c > grammar.c
bash: y.tab.c: No such file or directory
*** Error code 1
make: Fatal error: Command failed for target `grammar.c'
Current working directory /usr/local/graphviz/graphviz-1.12/agraph
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /usr/local/graphviz/graphviz-1.12
*** Error code 1
make: Fatal error: Command failed for target `all'

Comments:
[ellson] What are the names of the files generated by yacc on your system?

Can you try installing GNU Bison ?

[prasad] I installed GNU bison and autoconf. Ran the commands "make distclean" and again restarted with ./configure and make commands. Same results as shown below. You asked " What are the names of the files generated by yacc on your system?" . I am not sure how to recognize such files. If you guide me how to capture the info you wanted, I can follow those instructions to provide you necessary info. The output of make command is below attached.


----------------------------------------------------------------------------
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../cdt -I/usr/local/include -g -O2
-Wall -Wno-unknown-pragmas -c flatten.c -MT flatten.lo -MD -MP -MF
.deps/flatten.TPlo  -fPIC -DPIC -o flatten.lo
bison -y -dv ../agraph/grammar.y
M4sugar requires GNU M4. Install it before installing M4sugar or
set the M4 environment variable to its path name.*** Signal 13
make: Fatal error: Command failed for target `y.output'
Current working directory /usr/local/graphviz/graphviz-1.12/agraph
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /usr/local/graphviz/graphviz-1.12
*** Error code 1
make: Fatal error: Command failed for target `all'
---------------------------------------------------------------

[ellson] It looks like you also need to install GNU m4.

Perhaps before you do that, could you try re-unpacking the tar.gz and doing just:


   ./configure
   make

The yacc products are (or at least, should be, according to GNU guidelines) included in the distribution, so yacc shouldn't even be necessary, unless you do a make distclean.

[prasad] I already had installed GNU M4 after seeing the output of make. Anyway I did not mention it in my previous email.

I removed the entire directory and freshly uninstalled the graphiz tar ball. But no luck. Again the same error and fails at the same place giving the very same output.

[ellson]

So what error do you see now with bison and m4 installed after make distclean?

You may also need to install: automake and libtool.

I notice that on our SunOS5.8 box (is that teh same as Solaris 8?) that I use for nightly test build of graphviz, that I have GNU sed installed as well. Sorry, but I don't remember the exact reason, but I wouldn't have installed it unless I had needed it for this build.

This maybe a problem with my packaging since it isn't supposed to be needed. I'll take a look.

Meanwhile, if you have enough of the toolchain installed, you should be able to do a full make after a make distclean on Solaris.

[ellson] I think I've fixed this packaging problem. It will be in tomorrow's snapshot
Owner: ellson
Status: Fixed (11 June 2004)