[MacPorts] #62423: graphviz @2.40.1: libtool: compile: unable to infer tagged configuration (was: graphviz 2.40: libtool: compile: unable to infer tagged configuration)
MacPorts
noreply at macports.org
Sat May 8 14:30:47 UTC 2021
#62423: graphviz @2.40.1: libtool: compile: unable to infer tagged configuration
---------------------------------------+------------------------
Reporter: TonyCrawford | Owner: ryandesign
Type: defect | Status: accepted
Priority: Normal | Milestone:
Component: ports | Version: 2.6.4
Resolution: | Keywords:
Port: graphviz, graphviz-devel |
---------------------------------------+------------------------
Changes (by ryandesign):
* status: assigned => accepted
* port: graphviz => graphviz, graphviz-devel
Old description:
> Tried after cleaning and reconfiguring; it's well stuck.
>
> OS X 10.9.5;
>
> Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn);
>
> Appending main.log and port -v installed;
>
> here's the build command that seems to trip the error:
>
> {{{
> :info:build /bin/sh ../../libtool --mode=compile /usr/bin/clang
> -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../lib/common -I../../lib/pathp
> lan -I../../lib/gvc -I../../lib/cgraph -I../../lib/cdt
> -I/opt/local/include -I/opt/local/include -pipe -Os -arch x86_64 -MT
> GVTextLayout.l
> o -MD -MP -MF .deps/GVTextLayout.Tpo -c -o GVTextLayout.lo GVTextLayout.m
>
> :info:build libtool: compile: /usr/bin/clang -std=gnu11 -DHAVE_CONFIG_H
> -I. -I../.. -I../.. -I../../lib/common -I../../lib/pathplan -I../..
> /lib/gvc -I../../lib/cgraph -I../../lib/cdt -I/opt/local/include
> -I/opt/local/include -pipe -Os -arch x86_64 -Wall -Wextra -Wmissing-
> include
> -dirs -Wswitch-default -Wfloat-equal -Wundef -Wshadow -Wpointer-arith
> -Wbad-function-cast -Wcast-qual -Wconversion -Wstrict-prototypes -Wmis
> sing-prototypes -Wnested-externs -fno-common -Wall -MT
> gvtextlayout_quartz.lo -MD -MP -MF .deps/gvtextlayout_quartz.Tpo -c
> gvtextlayout_quar
> tz.c -fno-common -DPIC -o .libs/gvtextlayout_quartz.o
>
> :info:build libtool: compile: unable to infer tagged configuration
>
> :info:build libtool: error: specify a tag with '--tag'
>
> :info:build make[3]: *** [GVTextLayout.lo] Error 1
> }}}
New description:
Tried after cleaning and reconfiguring; it's well stuck.
OS X 10.9.5;
Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn);
Appending main.log and port -v installed;
here's the build command that seems to trip the error:
{{{
:info:build /bin/sh ../../libtool --mode=compile /usr/bin/clang
-DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../lib/common
-I../../lib/pathplan -I../../lib/gvc -I../../lib/cgraph -I../../lib/cdt
-I/opt/local/include -I/opt/local/include -pipe -Os -arch x86_64 -MT
GVTextLayout.lo -MD -MP -MF .deps/GVTextLayout.Tpo -c -o GVTextLayout.lo
GVTextLayout.m
:info:build libtool: compile: /usr/bin/clang -std=gnu11 -DHAVE_CONFIG_H
-I. -I../.. -I../.. -I../../lib/common -I../../lib/pathplan
-I../../lib/gvc -I../../lib/cgraph -I../../lib/cdt -I/opt/local/include
-I/opt/local/include -pipe -Os -arch x86_64 -Wall -Wextra -Wmissing-
include-dirs -Wswitch-default -Wfloat-equal -Wundef -Wshadow -Wpointer-
arith -Wbad-function-cast -Wcast-qual -Wconversion -Wstrict-prototypes
-Wmissing-prototypes -Wnested-externs -fno-common -Wall -MT
gvtextlayout_quartz.lo -MD -MP -MF .deps/gvtextlayout_quartz.Tpo -c
gvtextlayout_quartz.c -fno-common -DPIC -o .libs/gvtextlayout_quartz.o
:info:build libtool: compile: unable to infer tagged configuration
:info:build libtool: error: specify a tag with '--tag'
:info:build make[3]: *** [GVTextLayout.lo] Error 1
}}}
--
Comment:
It took me awhile to reacquaint myself with this error. We used to see a
lot of "unable to infer tagged configuration" errors around ten years ago.
That was when Apple switched compilers from gcc to briefly llvm-gcc and
finally to clang. At that time, the error only seemed to occur if the
compiler that had been used to make libtool was different from the
compiler being used to compile something else (i.e. graphviz) with libtool
now. I'm not certain whether that's the same thing that's happening now.
We don't know what compiler the two reporters used when compiling their
libtool, but the usual for OS X 10.9 would be to use the normal
/usr/bin/clang, in which case the problem should not have occurred.
I was not able to reproduce the problem on my macOS 10.13 machine where
both my libtool and graphviz were being compiled with /usr/bin/clang. I
also couldn't reproduce the problem by trying to compile graphviz with a
different (MacPorts clang) compiler. However we did recently reproduce the
problem on a [https://build.macports.org/builders/ports-10.5_ppc_legacy-
builder/builds/95567 MacPorts automated build machine], and there again
both libtool and graphviz were being compiled with the same compiler
(/usr/bin/gcc-4.2 in that case).
I can however see that that `--tag=CC` is indeed missing when invoking
libtool to compile GVTextLayout.m. It looks like upstream had tried to fix
this problem five years ago however their fix contained two mistakes so it
didn't work, and it doesn't appear to have been corrected yet in the
current version. I've reported the problem to them and proposed a fix:
https://gitlab.com/graphviz/graphviz/-/issues/2065
--
Ticket URL: <https://trac.macports.org/ticket/62423#comment:7>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list