Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 9702 - Graphviz compile problem
Summary: Graphviz compile problem
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: George Shapovalov (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-26 06:30 UTC by Richard Lärkäng
Modified: 2003-02-04 19:42 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Lärkäng 2002-10-26 06:30:07 UTC
When I emerged graphviz I got a compilation error, something about  
internal compiler problem, when removing omptimization (-O3) it compiled  
fine. 
 
The version was 1.7.15-r2
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2002-10-26 15:21:51 UTC
what's your complete list of CFLAGS and CXXFLAGS please?
Comment 2 Richard Lärkäng 2002-10-26 16:12:21 UTC
CFLAGS="-march=pentium-mmx -O3 -pipe -fomit-frame-pointer"   CXXFLAGS="${CFLAGS}"    when I removed "-O3" (and possbly -march=..., I'm not really sure)  it compiled 
Comment 3 Richard Lärkäng 2002-10-26 16:14:13 UTC
might just add this too... 
when I changed the optmization to -O2 or -O it didn't compile either 
Comment 4 Dave Berenson 2002-11-01 15:20:00 UTC
I'm getting this error when I try to compile.  I commented out my flags and it still failed.  gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../cdt -O2 -mcpu=i686 -pipe -Wall -Wno-unknown-pragmas -Wp,-MD,.deps/refstr.pp -c refstr.c  -fPIC -DPIC -o refstr.lo flex -oscan.t scan.l sed "s/yy/ag_yy/g" < scan.t > scan.c rm scan.t /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../cdt    -O2 -mcpu=i686 -pipe -Wall -Wno-unknown-pragmas -c scan.c gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../cdt -O2 -mcpu=i686 -pipe -Wall -Wno-unknown-pragmas -Wp,-MD,.deps/scan.pp -c scan.c  -fPIC -DPIC -o scan.lo scan.t:1232:66: macro "ag_yywrap" passed 1 arguments, but takes just 0 scan.t:1579:74: macro "ag_yywrap" passed 1 arguments, but takes just 0 make[2]: *** [scan.lo] Error 1 make[2]: Leaving directory `/var/tmp/portage/graphviz-1.7.15-r2/work/graphviz-1.7.15/agraph' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/graphviz-1.7.15-r2/work/graphviz-1.7.15' make: *** [all-recursive-am] Error 2  !!! ERROR: The ebuild did not complete successfully. !!! Function src_compile, Line 36, Exitcode 2 !!! (no error message)  
Comment 5 John Kozak 2002-11-10 18:17:40 UTC
I get this problem, too; not fixed by removing -O3.  Build output: 
  
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../cdt -march=pentium4 -pipe -Wall 
-Wno-unknown-pragmas -Wp,-MD,.deps/scan.pp -c scan.c  -fPIC -DPIC -o 
scan.lo 
scan.t:1232:66: macro "ag_yywrap" passed 1 arguments, but takes just 0 
scan.t:1579:74: macro "ag_yywrap" passed 1 arguments, but takes just 0 
 
Comment 6 George Shapovalov (RETIRED) gentoo-dev 2002-11-11 05:35:14 UTC
Ok, this one was quite weird.
I was also getting that bad flex generation stuff and couldn't do much abou it.
So 1.7.15 seems to have problems on 1.4 profile.

Anyway, couple new versions were released since then. I updated the ebuild to
use 1.8.10 (this is also a stable version according to the site). Unfortunately
the package still uses libpng-1.0.x series. I corrected dependensies
correspondingly, but watch out - this lib has had some issues due to abrupt ABI
change. Lately 1.0 and 1.2 were made to coexist nicely, so this should not cause
any trouble, but please beware!

I have committed the ebuild for 1.8.10, it is keymasked. Please test.
If it will pass testing I'll unmask it and make it the default version.

George
Comment 7 Dave Berenson 2002-11-11 08:57:57 UTC
Oddly enough, it ended up installing for me yesterday.

Dunno what happened.. I ended up reinstalling as I goofed up some X packages.
But I now have that installed.  Doxygen got compiled properly too.  So... I'm
not 100% sure what went wrong, but apparently I wasn't the only one. but.. wfm now.
Comment 8 John Kozak 2002-11-11 14:49:16 UTC
Now works for me, too.  Thanks! 
Comment 9 George Shapovalov (RETIRED) gentoo-dev 2002-11-11 17:54:40 UTC
Thanks for testing!

I have unmasked 1.8.10 on x86 (ppc needs some test reports as well). I also made
1.7.15 depend on =gcc-2.95*.
Closing the bug now.

Dave:
Can it be, that during that reinstallation of various X-related stuff you got
libpng-1.0 installed (along with 1.2) and it was missing before?

George
Comment 10 Dave Berenson 2002-11-12 00:53:27 UTC
I'm pretty sure I had libpng installed, as I was getting graphviz->doxygen to
use kdevelop.  But that could be the case ;)