| Summary: | media-gfx/graphviz-2.8-r1 fails to compile with dev-lang/ocaml-3.09.3 | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | spiralvoice <spiralvoice> |
| Component: | New packages | Assignee: | Gentoo Graphics Project <graphics+disabled> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | normal | CC: | anakin.skyw, balrogg, cshobe, gseba, jakub, janjitse, pacho, portage, sascha-gentoo-bugzilla, willard.dawson, zerthurd, znmeb |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Bug Depends on: | 148733 | ||
| Bug Blocks: | |||
| Attachments: |
graphviz-disable-ocaml.patch
Replacement tclkpkg/gv/gv_ocaml.cpp, bzipped |
||
|
Description
spiralvoice
2006-09-22 10:44:40 UTC
Just wanted to add a 'me 2' here. Same error. media-gfx/graphviz-2.8-r1, dev-lang/ocaml-3.09.3 $ emerge --info Portage 2.1.2_pre1 (default-linux/amd64/2006.1/desktop, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r8-20060912 x86_64) ================================================================= System uname: 2.6.17-gentoo-r8-20060912 x86_64 AMD Athlon(tm) 64 Processor 3700+ Gentoo Base System version 1.12.5 Last Sync: Fri, 22 Sep 2006 10:20:01 +0000 app-admin/eselect-compiler: [Not Present] dev-java/java-config: 1.3.7, 2.0.29 dev-lang/python: 2.4.3-r3 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.60 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.13-r3 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r1 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=k8 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O2 -march=k8 -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--alphabetical" FEATURES="autoconfig candy distlocks metadata-transfer parallel-fetch sandbox sfperms strict userpriv userpriv_fakeroot usersandbox" GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/" LANG="en_US.utf8" LC_ALL="en_US.utf8" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage/local" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="amd64 X alsa avi bitmap-fonts bzip2 cairo cdinstall cdr cjk cli crypt cups dbus dlloader dri dvb dvd dvdr elibc_glibc emboss encode fam firefox fortran gif gpm gstreamer gtk gtk2 hal input_devices_keyboard input_devices_mouse ipv6 isdnlog jpeg kde kdeenablefinal kernel_linux ldap libg++ mad mikmod mp3 mpeg mplayer ncurses nls nptl nptlonly nvidia ogg opengl pam pcre pdflib perl png ppds pppd python qt3 quicktime readline reflection sdl session spell spl ssl tcpd truetype truetype-fonts type1-fonts udev unicode userland_GNU userlocales video_cards_nv video_cards_vga vorbis xine xml xorg xv zlib" Unset: CTARGET, INSTALL_MASK, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS *** Bug 148709 has been marked as a duplicate of this bug. *** Someone should kill the automagic dependency. Created attachment 97802 [details, diff]
graphviz-disable-ocaml.patch
Like this? Someone should probably do the same for all the other language bindings (or, better: add USE flags for them), but this fixes the immediate problem.
Still broken on graphviz-2.8-r2. However, setting -ocaml USE flag lets it emerge successfully. Is this an ebuild problem or an upstream problem?? *** Bug 157468 has been marked as a duplicate of this bug. *** Confirming that media-gfx/graphviz-2.8-r2 is still broken when "ocaml" is in USE with same error message. After looking at it I'm convinced that the graphviz code is correct and it's dev-lang/swig that's broken, putting a CAMLreturn() where there should be a return and doing other nasty things. In this case the only valid fix is ignore "ocaml" from USE and hardcode --disable-ocaml like the patch in the attachment does. It's a dev-lang/swig upstream problem. (In reply to comment #7) > Confirming that media-gfx/graphviz-2.8-r2 is still broken when "ocaml" is in > USE with same error message. After looking at it I'm convinced that the > graphviz code is correct and it's dev-lang/swig that's broken, putting a > CAMLreturn() where there should be a return and doing other nasty things. In > this case the only valid fix is ignore "ocaml" from USE and hardcode > --disable-ocaml like the patch in the attachment does. It's a dev-lang/swig > upstream problem. > Have you tried this with the latest upstream SWIG source (1.3.31 IIRC)? Created attachment 103739 [details]
Replacement tclkpkg/gv/gv_ocaml.cpp, bzipped
Good call. I cloned today's subversion trunk SWIG and this one produced a gv_ocaml.cpp that builds with no warnings and works.
The file is 180 KB big and the diff against the original gv_cvaml.cpp is 230 KB so the attachment contains only the file and is bzipped.
*** Bug 158049 has been marked as a duplicate of this bug. *** I don't know if this is the same issue, but take a look at Bug 161600. Have you tried with media-gfx/graphviz-2.12 ? Good luck! I found soulution! Just upgrade swig up to 1.3.31 and then compile graphviz with ocaml in USE - all is fine! *** This bug has been marked as a duplicate of bug 161600 *** |