libtool: compile: unable to infer tagged configuration

macOS specific usage questions
jinlsg
Blank Cone
Blank Cone
Posts: 26
Joined: 11 Aug 2012 11:38

libtool: compile: unable to infer tagged configuration

Postby jinlsg » 22 Sep 2012 16:01

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

fkuehne
Developer
Developer
Posts: 7264
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

Re: libtool: compile: unable to infer tagged configuration

Postby fkuehne » 24 Sep 2012 12:45

Remove your current checkout or run "make distclean" to do a clean cut, get the latest version of the source and try again.
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net

sylvain.berger
Blank Cone
Blank Cone
Posts: 11
Joined: 20 Feb 2012 17:30

Re: libtool: compile: unable to infer tagged configuration

Postby sylvain.berger » 08 Oct 2012 07:12

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

fkuehne
Developer
Developer
Posts: 7264
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

Re: libtool: compile: unable to infer tagged configuration

Postby fkuehne » 08 Oct 2012 15:10

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.
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net

sylvain.berger
Blank Cone
Blank Cone
Posts: 11
Joined: 20 Feb 2012 17:30

Re: libtool: compile: unable to infer tagged configuration

Postby sylvain.berger » 10 Oct 2012 01:47

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

fkuehne
Developer
Developer
Posts: 7264
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

Re: libtool: compile: unable to infer tagged configuration

Postby fkuehne » 10 Oct 2012 13:03

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.
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net

sylvain.berger
Blank Cone
Blank Cone
Posts: 11
Joined: 20 Feb 2012 17:30

Re: libtool: compile: unable to infer tagged configuration

Postby sylvain.berger » 12 Oct 2012 01:12

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?

make4ppc
New Cone
New Cone
Posts: 1
Joined: 18 Oct 2012 08:08

Re: libtool: compile: unable to infer tagged configuration

Postby make4ppc » 18 Oct 2012 08:27

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

crackstone
Blank Cone
Blank Cone
Posts: 56
Joined: 01 Apr 2010 17:25
VLC version: 2.1.0-git
Operating System: Mac OS X
Location: Vienna, Austria

Re: libtool: compile: unable to infer tagged configuration

Postby crackstone » 02 Nov 2012 11:59

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


Return to “VLC media player for macOS Troubleshooting”

Who is online

Users browsing this forum: No registered users and 14 guests