This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: libtool error while building setup as a Cygwin app


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.

> 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]