Re: Failed to build graphviz
On Feb 13, 2022, at 02:59, Rainer Müller wrote: > > On 10/02/2022 13.12, Greg Bell wrote: >> I'm trying to update yt-dlp (a youtube-dl fork with additional features and >> fixes) >> >> and incurred this… >> Error: Failed to build graphviz: command execution failed >> >> I'm unsure how to interpret the log. >> Log output attached in zipped folder. > > The most relevant error message from the log is this one: > > :info:build > /opt/local/libexec/llvm-11/bin/../include/c++/v1/__bit_reference:172:38: > error: no member named 'min' in namespace 'std::__1' > > There is already a ticket which describes the same problem for graphviz: > https://trac.macports.org/ticket/60962 That ticket and all of its duplicates were only experienced by users on macOS Catalina who had failed to update their command line tools to a Catalina-compatible version; therefore no further investigation was planned. Learning that Snow Leopard is now affected as well would be a significant new detail. Maybe it has been caused by MacPorts base recently switching to using a newer MacPorts clang on 10.6 and other older systems. >> Running OS X 10.6.8 (my maximum OS for 2 GHz Intel Core 2 Duo) Did you mean Core Duo? Core Duo and Core Solo systems are limited to 10.6.8 maximum, but Core 2 Duo system should be able to upgrade to at least 10.7.5. > That is a very old system... I honestly do not know the state of > libstdc++ vs. libc++ these days on legacy systems, but could it be some > mismatch between the two C++ runtime libraries? Graphviz built successfully on 10.6.8 last time we tried to do so on December 26; see the port health indicators: https://ports.macports.org/port/graphviz/details/ In MacPorts, 10.6 and later use libc++, but since 10.6-10.8 don't default to libc++, some ports have bugs that cause them to fail to build on 10.6-10.8 due to stdlib mismatch (such as failing to supply the MacPorts-specified CXXFLAGS to the build system); in that case, these bugs should be fixed. I don't think that's the case here, because, grepping through Greg's log, every invocation of clang++ does indeed already have the required -stdlib=libc++ argument.
Re: Failed to build graphviz
Hello Greg, On 10/02/2022 13.12, Greg Bell wrote: > I'm trying to update yt-dlp (a youtube-dl fork with additional features and > fixes) > > and incurred this… > Error: Failed to build graphviz: command execution failed > > I'm unsure how to interpret the log. > Log output attached in zipped folder. The most relevant error message from the log is this one: :info:build /opt/local/libexec/llvm-11/bin/../include/c++/v1/__bit_reference:172:38: error: no member named 'min' in namespace 'std::__1' There is already a ticket which describes the same problem for graphviz: https://trac.macports.org/ticket/60962 > Running OS X 10.6.8 (my maximum OS for 2 GHz Intel Core 2 Duo) That is a very old system... I honestly do not know the state of libstdc++ vs. libc++ these days on legacy systems, but could it be some mismatch between the two C++ runtime libraries? Rainer
Failed to build graphviz
Hello folks. I'm trying to update yt-dlp (a youtube-dl fork with additional features and fixes) and incurred this… Error: Failed to build graphviz: command execution failed I'm unsure how to interpret the log. Log output attached in zipped folder. Running OS X 10.6.8 (my maximum OS for 2 GHz Intel Core 2 Duo) Any advice would be appreciated. Greg. Last login: Thu Feb 10 08:01:05 on ttys000 Greg-iMac:~ gregbell$ yt-dlp --version 2021.11.10.1 Greg-iMac:~ gregbell$ yt-dlp --update Latest version: 2022.02.04, Current version: 2021.11.10.1 ERROR: It looks like you installed yt-dlp with MacPorts. Please use "sudo port selfupdate && sudo port upgrade yt-dlp" to update. Greg-iMac:~ gregbell$ sudo port selfupdate && sudo port upgrade yt-dlp Password: ---> Updating MacPorts base sources using rsync MacPorts base version 2.7.1 installed, MacPorts base version 2.7.1 downloaded. ---> Updating the ports tree ---> MacPorts base is already the latest version The ports tree has been updated. To upgrade your installed ports, you should run port upgrade outdated ---> Computing dependencies for graphviz ---> Fetching archive for graphviz ---> Attempting to fetch graphviz-2.50.0_0+pangocairo+x11.darwin_10.x86_64.tbz2 from http://packages.macports.org/graphviz ---> Attempting to fetch graphviz-2.50.0_0+pangocairo+x11.darwin_10.x86_64.tbz2 from http://mse.uk.packages.macports.org/graphviz ---> Attempting to fetch graphviz-2.50.0_0+pangocairo+x11.darwin_10.x86_64.tbz2 from http://ema.uk.packages.macports.org/graphviz ---> Building graphviz Error: Failed to build graphviz: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_graphviz/graphviz/main.log for details. Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug. Greg-iMac:~ gregbell$ sudo port upgrade outdated ---> Computing dependencies for graphviz ---> Fetching archive for graphviz ---> Attempting to fetch graphviz-2.50.0_0+pangocairo+x11.darwin_10.x86_64.tbz2 from http://packages.macports.org/graphviz ---> Attempting to fetch graphviz-2.50.0_0+pangocairo+x11.darwin_10.x86_64.tbz2 from http://mse.uk.packages.macports.org/graphviz ---> Attempting to fetch graphviz-2.50.0_0+pangocairo+x11.darwin_10.x86_64.tbz2 from http://ema.uk.packages.macports.org/graphviz ---> Building graphviz Error: Failed to build graphviz: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_graphviz/graphviz/main.log for details. Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug. Greg-iMac:~ gregbell$ sudo port clean graphviz Password: ---> Cleaning graphviz Greg-iMac:~ gregbell$ sudo port selfupdate ---> Updating MacPorts base sources using rsync MacPorts base version 2.7.1 installed, MacPorts base version 2.7.1 downloaded. ---> Updating the ports tree ---> MacPorts base is already the latest version The ports tree has been updated. To upgrade your installed ports, you should run port upgrade outdated Greg-iMac:~ gregbell$ sudo port upgrade outdated ---> Computing dependencies for graphviz ---> Fetching archive for graphviz ---> Attempting to fetch graphviz-2.50.0_0+pangocairo+x11.darwin_10.x86_64.tbz2 from http://packages.macports.org/graphviz ---> Attempting to fetch graphviz-2.50.0_0+pangocairo+x11.darwin_10.x86_64.tbz2 from http://mse.uk.packages.macports.org/graphviz ---> Attempting to fetch graphviz-2.50.0_0+pangocairo+x11.darwin_10.x86_64.tbz2 from http://ema.uk.packages.macports.org/graphviz ---> Fetching distfiles for graphviz ---> Verifying checksums for graphviz ---> Extracting graphviz ---> Configuring graphviz ---> Building graphviz Error: Failed to build graphviz: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_graphviz/graphviz/main.log for details. Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug. Greg-iMac:~ gregbell$ <>
Re: Failed to build graphviz: command execution failed
> On Sep 4, 2020, at 07:27, Ryan Schmidt wrote: > > It's especially non-straightforward when Apple breaks things, like removing > the receipt of the command line tools periodically, which is what that > problem hotlist entry is about. OK, now I understand why what I tried didn't work and why you need the little "touch" trick. Thanks.
Re: Failed to build graphviz: command execution failed
On Sep 3, 2020, at 19:05, Michael Newman wrote: > On Sep 4, 2020, at 05:51, Ryan Schmidt wrote: > >>> Warning: cltversion: For a possible fix, please see: >>> https://trac.macports.org/wiki/ProblemHotlist#reinstall-clt >> >> Follow the instructions at that URL. > > Thank you. Graphviz built after updating the command line tools. > > I'm still not sure why this didn't work: > > MrMuscle:~ mnewman$ xcode-select --install > xcode-select: error: command line tools are already installed, use "Software > Update" to install updates > > But, after doing that, Software Update didn't find any updates available. > > My browser history shows that after graphviz failed to build I visited: > >> https://trac.macports.org/wiki/ProblemHotlist#reinstall-clt > > But my bash history doesn't go back far enough to show me what went wrong the > first time I tried that. > > Thanks again for your help. As you may have discovered, I need primary school > level instructions. No worries, it's not all straightforward so you're right to ask here. It's especially non-straightforward when Apple breaks things, like removing the receipt of the command line tools periodically, which is what that problem hotlist entry is about. Maybe your command line tools were incomplete for some reason, or were too old or too new, and reinstalling them has gotten you the right version. I haven't updated the graphviz ports substantially in about 3 years so it's possible they're no longer compatible with some more recent Xcodes or command line tools. I clearly need to update them but with 3 years of changes built up it'll take a bit to see what all I need to do.
Re: Failed to build graphviz: command execution failed
> On Sep 4, 2020, at 05:51, Ryan Schmidt wrote: > >> Warning: cltversion: For a possible fix, please see: >> https://trac.macports.org/wiki/ProblemHotlist#reinstall-clt >> <https://trac.macports.org/wiki/ProblemHotlist#reinstall-clt> > > Follow the instructions at that URL. Thank you. Graphviz built after updating the command line tools. I'm still not sure why this didn't work: MrMuscle:~ mnewman$ xcode-select --install xcode-select: error: command line tools are already installed, use "Software Update" to install updates But, after doing that, Software Update didn't find any updates available. My browser history shows that after graphviz failed to build I visited: > https://trac.macports.org/wiki/ProblemHotlist#reinstall-clt > <https://trac.macports.org/wiki/ProblemHotlist#reinstall-clt> But my bash history doesn't go back far enough to show me what went wrong the first time I tried that. Thanks again for your help. As you may have discovered, I need primary school level instructions. Mike
Re: Failed to build graphviz: command execution failed
On Sep 3, 2020, at 17:37, Michael Newman wrote: > On Sep 3, 2020, at 22:01, Ryan Schmidt wrote: > >> There have been a few other reports lately of graphviz build failures for >> other reasons; if you're experiencing a graphviz build failure, see if one >> of them applies. > > I spent some time searching around, but all I found were other instance of > graphviz related tickets, the details of which are beyond my ability to > comprehend. > > When graphviz builds, I get this warning: > > Warning: cltversion: The Command Line Tools are installed, but MacPorts > cannot determine the version. > Warning: cltversion: For a possible fix, please see: > https://trac.macports.org/wiki/ProblemHotlist#reinstall-clt Follow the instructions at that URL. > Error: Failed to build graphviz: command execution failed > Error: See > /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_graphviz/graphviz/main.log > for details. > Error: Follow https://guide.macports.org/#project.tickets to report a bug. > > The log file referred to is rather large (almost 1MB) and incomprehensible to > me. Show me the log. File a ticket at https://trac.macports.org/newticket and upload the compressed log there. If it's the same problem as in another ticket, I'll mark it as a duplicate and you can see what to do in that ticket.
Re: Failed to build graphviz: command execution failed
> On Sep 3, 2020, at 22:01, Ryan Schmidt wrote: > > There have been a few other reports lately of graphviz build failures for > other reasons; if you're experiencing a graphviz build failure, see if one of > them applies. I spent some time searching around, but all I found were other instance of graphviz related tickets, the details of which are beyond my ability to comprehend. When graphviz builds, I get this warning: Warning: cltversion: The Command Line Tools are installed, but MacPorts cannot determine the version. Warning: cltversion: For a possible fix, please see: https://trac.macports.org/wiki/ProblemHotlist#reinstall-clt So, I run this: MrMuscle:~ mnewman$ xcode-select --install xcode-select: error: command line tools are already installed, use "Software Update" to install updates But, that doesn't fix the "MacPorts cannot determine the version" warning. Xcode is at Version 11.7 (11E801a) The details: ---> Computing dependencies for graphviz ---> Fetching archive for graphviz ---> Attempting to fetch graphviz-2.40.1_3+pangocairo+x11.darwin_19.x86_64.tbz2 from http://jog.id.packages.macports.org/macports/packages/graphviz ---> Attempting to fetch graphviz-2.40.1_3+pangocairo+x11.darwin_19.x86_64.tbz2 from https://kmq.jp.packages.macports.org/graphviz ---> Attempting to fetch graphviz-2.40.1_3+pangocairo+x11.darwin_19.x86_64.tbz2 from http://nue.de.packages.macports.org/graphviz ---> Building graphviz Error: Failed to build graphviz: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_graphviz/graphviz/main.log for details. Error: Follow https://guide.macports.org/#project.tickets to report a bug. The log file referred to is rather large (almost 1MB) and incomprehensible to me. I don't know how to proceed from here.
Failed to build graphviz: command execution failed
I realize that there is a ticket on this (57137) that has been open for quite some time. However, this is the first time I've seen this error. What concerns me is this: MrMuscle:~ mnewman$ port rdependents graphviz The following ports are dependent on graphviz: vala gssdp gupnp gupnp-igd libnice gstreamer1-gst-plugins-bad libproxy glib-networking libsoup gstreamer1-gst-plugins-good neon librsvg ffmpeg chromaprint I use both gstreamer and ffmpeg regularly. Does this mean that these may stop working until the graphviz problem is fixed? If so, what can I do? Mike Newman Korat, Thailand