New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #13648 (closed defect: fixed)

Opened 6 years ago

Last modified 4 years ago

mjpegtools 1.6.2 build failure: unable to infer tagged configuration

Reported by: dougvreid@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.5.2
Keywords: Cc: filippo.natali@…, boeyms@…
Port:

Description (last modified by jmpp@…) (diff)

sudo port install mjpegtools
--->  Building mjpegtools with target all
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_mjpegtools/work/mjpegtools-1.6.2" && make all LIBTOOL=/opt/local/bin/glibtool ASFLAGS="-f macho" " returned error 2
Command output: make  all-recursive
Making all in utils
Making all in altivec
if /opt/local/bin/glibtool --mode=compile /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../utils  -I/opt/local/include -L/opt/local/lib  -O2 -L/opt/local/lib -Wall -Wunused -O3 -faltivec -MT add_pred.lo -MD -MP -MF ".deps/add_pred.Tpo" \
  -c -o add_pred.lo `test -f 'add_pred.c' || echo './'`add_pred.c; \
then mv -f ".deps/add_pred.Tpo" ".deps/add_pred.Plo"; \
else rm -f ".deps/add_pred.Tpo"; exit 1; \
fi
glibtool: compile: unable to infer tagged configuration
glibtool: compile: specify a tag with `--tag'
make[3]: *** [add_pred.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Error: Status 1 encountered during processing.

Change History

comment:1 Changed 6 years ago by jmpp@…

  • Description modified (diff)
  • Milestone set to Port Bugs

comment:2 Changed 5 years ago by ryandesign@…

  • Cc filippo.natali@… added

Interesting, there's a report of the same error, but with the apache2 portfile, in #13653 (which I'm unable to duplicate).

What version of Mac OS X, Xcode and MacPorts are you using, and what architecture is your processor? Do you still see the problem if you "sudo port selfupdate" and then "sudo port clean --work mjpegtools" and then "sudo port install mjpegtools"?

Cc'ing the port's maintainer.

comment:3 Changed 5 years ago by ryandesign@…

  • Summary changed from mjpegtools install issue to mjpegtools 1.6.2 build failure: unable to infer tagged configuration

comment:4 Changed 5 years ago by tjk@…

Mac OS 10.4.11
XCode 2.4.1
==================================
computer:~ tjk$ sudo port selfupdate
Password:
MacPorts base version 1.520 installed
Downloaded MacPorts base version 1.600
Configuring, Building and Installing new MacPorts base
selfupdate done!
computer:~ tjk$ sudo port clean --work mjpegtools
--->  Cleaning mjpegtools
computer:~ tjk$ sudo port install mjpegtools
--->  Fetching mjpegtools
--->  Verifying checksum(s) for mjpegtools
--->  Extracting mjpegtools
--->  Applying patches to mjpegtools
--->  Configuring mjpegtools
--->  Building mjpegtools with target all
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_mjpegtools/work/mjpegtools-1.6.2" && make all LIBTOOL=/opt/local/bin/glibtool ASFLAGS="-f macho" " returned error 2
Command output: fi
if /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../utils  -I/opt/local/include -L/opt/local/lib  -O2 -L/opt/local/lib -Wall -Wunused -MT mpegtimecode.o -MD -MP -MF ".deps/mpegtimecode.Tpo" \
  -c -o mpegtimecode.o `test -f 'mpegtimecode.c' || echo './'`mpegtimecode.c; \
then mv -f ".deps/mpegtimecode.Tpo" ".deps/mpegtimecode.Po"; \
else rm -f ".deps/mpegtimecode.Tpo"; exit 1; \
fi
if /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../utils  -I/opt/local/include -L/opt/local/lib  -O2 -L/opt/local/lib -Wall -Wunused -MT yuv4mpeg.o -MD -MP -MF ".deps/yuv4mpeg.Tpo" \
  -c -o yuv4mpeg.o `test -f 'yuv4mpeg.c' || echo './'`yuv4mpeg.c; \
then mv -f ".deps/yuv4mpeg.Tpo" ".deps/yuv4mpeg.Po"; \
else rm -f ".deps/yuv4mpeg.Tpo"; exit 1; \
fi
if /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../utils  -I/opt/local/include -L/opt/local/lib  -O2 -L/opt/local/lib -Wall -Wunused -MT yuv4mpeg_ratio.o -MD -MP -MF ".deps/yuv4mpeg_ratio.Tpo" \
  -c -o yuv4mpeg_ratio.o `test -f 'yuv4mpeg_ratio.c' || echo './'`yuv4mpeg_ratio.c; \
then mv -f ".deps/yuv4mpeg_ratio.Tpo" ".deps/yuv4mpeg_ratio.Po"; \
else rm -f ".deps/yuv4mpeg_ratio.Tpo"; exit 1; \
fi
rm -f libmjpegutils.a
ar cru libmjpegutils.a mjpeg_logging.o mpegconsts.o mpegtimecode.o yuv4mpeg.o yuv4mpeg_ratio.o 
ranlib libmjpegutils.a
if /opt/local/bin/glibtool --mode=compile /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../utils  -I/opt/local/include -L/opt/local/lib  -O2 -L/opt/local/lib -Wall -Wunused -MT motionsearch.lo -MD -MP -MF ".deps/motionsearch.Tpo" \
  -c -o motionsearch.lo `test -f 'motionsearch.c' || echo './'`motionsearch.c; \
then mv -f ".deps/motionsearch.Tpo" ".deps/motionsearch.Plo"; \
else rm -f ".deps/motionsearch.Tpo"; exit 1; \
fi
glibtool: compile: unable to infer tagged configuration
glibtool: compile: specify a tag with `--tag'
make[3]: *** [motionsearch.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Error: Status 1 encountered during processing.

comment:5 Changed 5 years ago by dougvreid@…

Sorry for the long wait on the questions. I was out of town.

MacPorts Version:  1.600
MacOS X: 10.4.11
XCode: 2.4.1
Processor: PowerPC

Later,
DR

comment:6 Changed 5 years ago by dougvreid@…

I am downloading XCode 2.5 now. I do not develop code right now so I was not up to date.

DR

comment:7 Changed 5 years ago by dougvreid@…

Installed XCode 2.5 and still getting same issue.

DR

comment:8 Changed 5 years ago by philippe.bricout@…

Warning : I'm not understanding the solution I propose

I just read the ticket #12961 and search "libtool: compile: unable to infer tagged configuration" on google...

So here is a "solution" which seems to work on PowerPC / MacOSX 10.4.11 / XCode2.5 / MacPorts 1.600. Use it at your own risk!

$ sudo port selfupdate
$ sudo port clean --work mpegtools
$ cd /opt/local/var/macports/sources/rsync.macports.org/release/ports/multimedia/mjpegtools
$ sudo vi Portfile

then look for this line:

build.args      LIBTOOL=${prefix}/bin/glibtool ASFLAGS="-f macho"

and replace with:

build.args      LIBTOOL="${prefix}/bin/glibtool --tag=CC" ASFLAGS="-f macho"

Perhaps --tag=CXX would be better. I don't know :-P

Finally:

$ sudo port install mjpegtools
Portfile changed since last build; discarding previous state.
--->  Fetching mjpegtools
--->  Verifying checksum(s) for mjpegtools
--->  Extracting mjpegtools
--->  Applying patches to mjpegtools
--->  Configuring mjpegtools
--->  Building mjpegtools with target all
--->  Staging mjpegtools into destroot
--->  Packaging tgz archive for mjpegtools 1.6.2_2+darwin_8
--->  Installing mjpegtools 1.6.2_2+darwin_8
--->  Activating mjpegtools 1.6.2_2+darwin_8
--->  Cleaning mjpegtools

I hope this will help...

comment:9 Changed 5 years ago by ryandesign@…

  • Cc boeyms@… added

In #13653 we seem to have learned that if libtool is built with MacPorts < 1.6.0 but you're now trying to build software using that libtool with MacPorts >= 1.6.0, then the "unable to infer tagged configuration" error will occur. To fix this, I bumped the revision of the libtool port in r33739, so that everyone is forced to rebuild it, so that we can be sure that it was built with MacPorts 1.6.0. This should solve the problem. Please wait at least 12 hours from the time of this message, then:

$ sudo port selfupdate
$ sudo port upgrade libtool
$ sudo port clean --work mjpegtools
$ sudo port install mjpegtools

Does it work?

comment:10 Changed 5 years ago by ryandesign@…

  • Status changed from new to closed
  • Resolution set to fixed

I'm going to assume this fixes the issue. If it does not, please reopen this ticket.

comment:11 Changed 4 years ago by anonymous

  • Milestone Port Bugs deleted

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.