This is the mail archive of the
cygwin-apps@cygwin.com
mailing list for the Cygwin project.
Re: libtool error while building setup as a Cygwin app
- From: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
- To: Max Bowsher <maxb at ukf dot net>
- Cc: cygwin-apps at cygwin dot com
- Date: Mon, 24 Feb 2003 13:00:45 -0500 (EST)
- Subject: Re: libtool error while building setup as a Cygwin app
- Reply-to: cygwin-apps at cygwin dot com
On Mon, 24 Feb 2003, Max Bowsher wrote:
> Igor Pechtchanski wrote:
> > I was attempting to build setup as a Cygwin app. I gave the following
> > configure command:
> >
> > /usr/src/setup-cvs/setup/configure -C --enable-dependencies
> > --disable-shared --host=i686-pc-cygwin --build=i686-pc-cygwin
> ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^
> > CC='gcc' CXX='g++' --enable-maintainer-mode
> ^^^^^^^^ ^^^^^^^^^
>
> Those bits are unnecessary.
Thanks, took them out.
> > and then did "make". Make failed with the following error:
> >
> > Making all in libgetopt++
> > make[2]: Entering directory
> > `/usr/src/setup-cvs/build-cygwin/libgetopt++'
> > if /bin/bash ./libtool --mode=compile g++ -DHAVE_CONFIG_H -I.
> > -I/usr/src/setup-cvs/setup/libgetopt++ -I./include
> > -I/usr/src/setup-cvs/setup/libgetopt++/include -g -O2 -MT
> > src/GetOption.lo -MD -MP -MF "src/.deps/GetOption.Tpo" \
> > -c -o src/GetOption.lo `test -f 'src/GetOption.cc' || echo
> > '/usr/src/setup-cvs/setup/libgetopt++/'`src/GetOption.cc; \
> > then mv "src/.deps/GetOption.Tpo" "src/.deps/GetOption.Plo"; \
> > else rm -f "src/.deps/GetOption.Tpo"; exit 1; \
> > fi
> > libtool: compile: unable to infer tagged configuration
> > libtool: compile: specify a tag with `--tag'
> > make[2]: *** [src/GetOption.lo] Error 1
> > make[2]: Leaving directory
> > `/usr/src/setup-cvs/build-cygwin/libgetopt++'
> >
> > I'm using
> >
> > $ cygcheck -c cygwin gcc libtool libtool-devel
> > Cygwin Package Information
> > Package Version
> > cygwin 1.3.20-1
> > gcc 3.2-3
> > libtool 20020705-1
> > libtool-devel 20030103-1
>
> Works for me, even including the bits I marked as unneccessary above.
> Versions the same except libtool-devel, but I know it worked with the
> version you are using, as well.
>
> Perhaps you should get rid of the remains of any previous compile, and start
> from a clean source tree?
>
> Max.
Hmm, this *was* from a clean source tree, in a separate build directory...
A workaround I found on the 'net is to append "--tag=CC" to the value of
$(LIBTOOL) in the Makefiles, and this allowed the build to proceed. I'm
afraid this is an ugly hack, though. Could it be that my versions of
autoconf/automake are old?
$ cygcheck -c autoconf autoconf-devel autoconf-stable automake automake-devel automake-stable
Cygwin Package Information
Package Version
autoconf 2.54-1
autoconf-devel 2.57-1
autoconf-stable 2.13-4
automake 1.7.1-1
automake-devel 1.7.2-1
automake-stable 1.4p5-5
I'd much rather not have to muck around with generated Makefiles by hand.
Anyone have any pointers?
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha at cs dot nyu dot edu
ZZZzz /,`.-'`' -. ;-;;,_ igor at watson dot ibm dot com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
-- /usr/games/fortune