Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Ticket #13648 (closed defect: fixed)

Opened 11 months ago

Last modified 10 months ago

mjpegtools 1.6.2 build failure: unable to infer tagged configuration

Reported by: dougvreid@… Owned by: macports-tickets@…
Priority: Normal Milestone: Port Bugs
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

Changed 11 months ago by jmpp@…

  • description modified (diff)
  • milestone set to Port Bugs

Changed 11 months 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.

Changed 11 months ago by ryandesign@…

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

Changed 11 months 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.

Changed 11 months 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

Changed 11 months 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

Changed 11 months ago by dougvreid@…

Installed XCode 2.5 and still getting same issue.

DR

Changed 11 months 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...

Changed 10 months 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?

Changed 10 months 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.

Note: See TracTickets for help on using tickets.