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
what's your complete list of CFLAGS and CXXFLAGS please?
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
might just add this too... when I changed the optmization to -O2 or -O it didn't compile either
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)
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
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
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.
Now works for me, too. Thanks!
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
I'm pretty sure I had libpng installed, as I was getting graphviz->doxygen to use kdevelop. But that could be the case ;)