Changes between Version 1 and Version 7 of Ticket #62423


Ignore:
Timestamp:
May 8, 2021, 2:30:47 PM (3 years ago)
Author:
ryandesign (Ryan Carsten Schmidt)
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 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

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #62423

    • Property Status changed from assigned to accepted
    • Property Cc cjones051073 Wowfunhappy added
    • Property Summary changed from graphviz 2.40: libtool: compile: unable to infer tagged configuration to graphviz @2.40.1: libtool: compile: unable to infer tagged configuration
    • Property Port graphviz-devel added
  • Ticket #62423 – Description

    v1 v7  
    1313
    1414{{{
    15 :info:build /bin/sh ../../libtool    --mode=compile /usr/bin/clang -DHAVE_CONFIG_H -I. -I../..  -I../.. -I../../lib/common -I../../lib/pathp
    16 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
    17 o -MD -MP -MF .deps/GVTextLayout.Tpo -c -o GVTextLayout.lo GVTextLayout.m
    18 
    19 :info:build libtool: compile:  /usr/bin/clang -std=gnu11 -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../lib/common -I../../lib/pathplan -I../..
    20 /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
    21 -dirs -Wswitch-default -Wfloat-equal -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wconversion -Wstrict-prototypes -Wmis
    22 sing-prototypes -Wnested-externs -fno-common -Wall -MT gvtextlayout_quartz.lo -MD -MP -MF .deps/gvtextlayout_quartz.Tpo -c gvtextlayout_quar
    23 tz.c  -fno-common -DPIC -o .libs/gvtextlayout_quartz.o
    24 
     15: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
     16: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
    2517:info:build libtool: compile: unable to infer tagged configuration
    26 
    2718:info:build libtool:   error: specify a tag with '--tag'
    28 
    2919:info:build make[3]: *** [GVTextLayout.lo] Error 1
    3020}}}