building gdb 4.18 w/ net cygwin 1.1.0

Michael Ring m.ring@ndh.net
Tue May 9 14:17:00 GMT 2000


On Fri, 05 May 2000 17:00:05 -0700, you wrote:

>Hello there!
>
>I recently installed the latest net cygwin 1.1.0 and everything worked
>great except for gdb. When I run gdb the UI (Insight I guess) reports an
>internal gdb error and asks if I wish to continue. Continuing only
>results in a whole stream of such errors making gdb unusable.
>
>I then fetched the latest gdb-4.18 source from ftp.gnu.org and attempted
>to build it in
>the following manner (both done from the top level gdb-4.18 directory):
>
>./configure i686-pc-cygwin32
>make
>
>Now, i686-pc-cygwin32 is what is reported by ./config.guess and the
>configuration goes off without a hitch. However, the make chokes while
>compiling win32-nat.c with the following message:

You will find a patch in the attachment for your problems and also a
spec-file for rpm which will give you an idea about the steps I did to
build gdb (Which also works fine on Win2000)

One hint:

fetch the latest libtool from ftp.gnu.org and the use libtoolize
--copy --force to make configure detect i686-pc-cygwin

>
>I am running NT 4.0 SP6 and using a completely unmodified net cygwin
>package (just installed yesterday.) I have been able to build a number
>of other GNU packages with success.
>
>Any hints would be appreciated as I *really* need a debugger right about
>now. I did not include cygcheck -r -s -v due to its length but if anyone
>thinks it might be a config issue I would be glad to post it.
>
>Thanks and regards,
>Jay Bromley
>jaywb@pacbell.net
>

Hope that helps,

Michael Ring
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gdb-4.18-cygwin.patch
Type: text/x-diff
Size: 427 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20000509/2ac02dbb/attachment.bin>
-------------- next part --------------
Summary: A GNU source-level debugger for C, C++ and Fortran.
Name: gdb
Version: 4.18
Release: 1
Copyright: GPL
Group: Development/Debuggers
Distribution: cygwin-rpm
Source: ftp://ftp.gnu.org/pub/gdb/%{name}-%{version}.tar.gz
Patch: %{name}-%{version}-cygwin.patch
Buildroot: /var/tmp/%{name}-root

%description
Gdb is a full featured, command driven debugger. Gdb allows you to
trace the execution of programs and examine their internal state at
any time.  Gdb works for C and C++ compiled with the GNU C compiler
gcc.

If you are going to develop C and/or C++ programs and use the GNU gcc
compiler, you may want to install gdb to help you debug your
programs.

%prep

%setup 

%patch -p1

%build

%configure

make

make info

%install
rm -rf $RPM_BUILD_ROOT

make install install-info prefix=$RPM_BUILD_ROOT%{_prefix}

rm -f $RPM_BUILD_ROOT%{_prefix}/info/dir $RPM_BUILD_ROOT%{_prefix}/info/dir.info*
rm -f $RPM_BUILD_ROOT%{_prefix}/info/bfd*
rm -f $RPM_BUILD_ROOT%{_prefix}/info/readline* $RPM_BUILD_ROOT%{_prefix}/info/history*
rm -f $RPM_BUILD_ROOT%{_prefix}/info/standard*
rm -f $RPM_BUILD_ROOT%{_prefix}/man/man3/readline.3
rm -f $RPM_BUILD_ROOT%{_prefix}/bin/{texindex,texi2dvi,makeinfo,install-info,info}
rm -f $RPM_BUILD_ROOT%{_prefix}/info/texinfo* .%{_prefix}/info/info*
gzip -9nf $RPM_BUILD_ROOT%{_prefix}/info/*info*
strip $RPM_BUILD_ROOT%{_prefix}/bin/* ||:
rm -rf $RPM_BUILD_ROOT%{_prefix}/include $RPM_BUILD_ROOT%{_prefix}/lib $RPM_BUILD_ROOT%{_prefix}/share


%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_prefix}

%changelog
* Mon Mar 27 2000 Michael Ring <m.ring@ndh.net>
- initial version created by m.ring@ndh.net


More information about the Cygwin mailing list