Page 1 of 1
libtool: compile: unable to infer tagged configuration
Posted: 22 Sep 2012 16:01
by jinlsg
recently,when i build vlc on mac lion by Xcode 4.4. i Always get this error:
libtool: compile: unable to infer tagged configuration
libtool: compile: specify a tag with `--tag'
make[5]: *** [libaccess_eyetv_plugin_la-eyetv.lo] Error 1
make[4]: *** [all-recursive] Error 1
make[3]: *** [all] Error 2
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
how i can fix it?
thanks
Re: libtool: compile: unable to infer tagged configuration
Posted: 24 Sep 2012 12:45
by fkuehne
Remove your current checkout or run "make distclean" to do a clean cut, get the latest version of the source and try again.
Re: libtool: compile: unable to infer tagged configuration
Posted: 08 Oct 2012 07:12
by sylvain.berger
I also have the same error:
Code: Select all
CCLD libvlc_srtp.la
CCLD librtp_plugin.la
CC libcdda_plugin_la-cdda.lo
OBJC libaccess_eyetv_plugin_la-eyetv.lo
CC libcdda_plugin_la-cdrom.lo
CC libdvdnav_plugin_la-dvdnav.lo
libtool: compile: unable to infer tagged configuration
libtool: compile: specify a tag with `--tag'
make[5]: *** [libaccess_eyetv_plugin_la-eyetv.lo] Error 1
make[5]: *** Waiting for unfinished jobs....
make[4]: *** [all-recursive] Error 1
make[3]: *** [all] Error 2
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
I made a "make distclean"
git pull to get the latest version
ran configure again
This is the info I get after the confogure
Code: Select all
libvlc configuration
--------------------
version : 2.1.0-git
system : darwin
architecture : x86_64 mmx sse sse2
optimizations : yes
vlc aliases : cvlc rvlc
before running the make I made sure I was using the libtool executable included in vlc
Code: Select all
sylvain.berger build/$ which libtool
/Users/sylvain.berger/Dev/openSource/vlc/extras/tools/build/bin//libtool
And I get the error... I have googled all over trying to find a solution but I am still out of luck
Re: libtool: compile: unable to infer tagged configuration
Posted: 08 Oct 2012 15:10
by fkuehne
This was caused by a bug in our build system. Please update your git checkout, run bootstrap and configure again. Afterwards, it should be working now.
Re: libtool: compile: unable to infer tagged configuration
Posted: 10 Oct 2012 01:47
by sylvain.berger
I redid the entire build from a clean pull and now I get a similar error with "libdvdnav_plugin_la-dvdnav.lo"
Code: Select all
CCLD libvlc_srtp.la
CCLD librtp_plugin.la
CC libcdda_plugin_la-cdda.lo
CC libcdda_plugin_la-cdrom.lo
OBJC libaccess_eyetv_plugin_la-eyetv.lo
CC libdvdnav_plugin_la-dvdnav.lo
libtool: compile: unable to infer tagged configuration
libtool: compile: specify a tag with `--tag'
make[5]: *** [libaccess_eyetv_plugin_la-eyetv.lo] Error 1
make[5]: *** Waiting for unfinished jobs....
make[4]: *** [all-recursive] Error 1
make[3]: *** [all] Error 2
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Re: libtool: compile: unable to infer tagged configuration
Posted: 10 Oct 2012 13:03
by fkuehne
Sorry, I forgot to push another patch yesterday. Please update your git checkout (git pull --rebase) navigate to extras/tools, run "make clean && make" and bootstrap, configure, make VLC again. This way, it will work.
Re: libtool: compile: unable to infer tagged configuration
Posted: 12 Oct 2012 01:12
by sylvain.berger
I pulled and did what you suggested but still get the same exact error.
I then tried from scratch by pulling a clean copy of the repo.
my repo is at this commit at the time of writing this message:
commit 5b1d18e73415d0e6442387dd8140685e73429db5
Author: Pierre Ynard <
linkfanel@yahoo.fr>
Date: Fri Oct 12 00:50:26 2012 +0200
and it failed with the exact same error again.
Is there a log I could provided that would help you diagnose the bug?
Re: libtool: compile: unable to infer tagged configuration
Posted: 18 Oct 2012 08:27
by make4ppc
I am trying to build vlc from the git repository on a power Mac G5 running OS X Leopard 10.5.8.
I have the commit from 2012-10-17 08:54:59 SHA1 ID: 4a8d38843ad4012e2ea0c75e0c485edd6a41ce07
I am using make from the command line, not Xcode.
I saw these error messages:
Code: Select all
OBJC libaccess_eyetv_plugin_la-eyetv.lo
libtool: compile: unable to infer tagged configuration
libtool: compile: specify a tag with `--tag'
I worked around this problem by adding the following line to modules/access/Modules.am --
Code: Select all
libaccess_eyetv_plugin_la_LIBTOOLFLAGS = --tag=CC
Re: libtool: compile: unable to infer tagged configuration
Posted: 02 Nov 2012 11:59
by crackstone
I worked around this problem by adding the following line to modules/access/Modules.am --
Code: Select all
libaccess_eyetv_plugin_la_LIBTOOLFLAGS = --tag=CC
This works for 64bit builds: x86_64-apple-darwin11
You additionally need to add the tag for qtcapture and qtsound as well.
OR don't edit Modules.am and correctly set your environment
Code: Select all
$ export CC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
$ export CXX=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
$ export OBJC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
However I'm still getting Errors for 32bit builds such as:
http://pastebin.com/1q0XDAuU
I'm on Mac OS X 10.8.2