ddd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Problem compiling latest DDD under latest cygwin (try 2)


From: Michael Ambrus
Subject: RE: Problem compiling latest DDD under latest cygwin (try 2)
Date: Thu, 23 Oct 2003 17:37:00 +0200

Very good. I hope you'll enjoy your Cygwin version of DDD.

Note that if you want to play with the plotting abilities you'll need to
install gnuplot as well.

DDD uses gnuplot as an external program, but the error you'll get if gnuplot
is missing is somewhat obscure.

Gnuplot is to my knowledge not incorporated into the Cygwin feed, but to
install it is very straight-forward. Just download the sources from:
http://sourceforge.net/projects/gnuplot/

Then:
$XYZ/configure; make; make install

I installed DDD for Cygwin myself just a week ago and so far it seems to
work excellent. The only exception is when cross-debugging on a remote
target using the recommended method in the DDD manual - but with the slight
exception of using ssh instead of rsh. (However, tweaking DDD to cross-debug
with a remote *gdbserver* runs without problems.)

So far I haven't figured out if this is a Cygwin-DDD specific problem or
not.

I'll post a different note regarding this issue as soon as I've figured out
if and how to replicate the problem.

Regards
/Michael Ambrus


> -----Original Message-----
> From: Philip Schlesinger [mailto:address@hidden
> Sent: den 22 oktober 2003 07:55
> To: 'Andrew Gaylard'; address@hidden
> Cc: address@hidden
> Subject: RE: Problem compiling latest DDD under latest cygwin (try 2)
>
>
>
>
> Hi Michael and Andrew.  Both of you had good suggestions, so
> I'm going to
> respond in one email to make life simple.
>
> Michael - it appears the gcc downgrade from 3.3.1 to 3.2.3 helped.
>
> Note to everybody: the current cygwin's gcc version won't
> work.  Here's how
> to fix the problem:
> 1) Go to http://www.cygwin.com/mirrors.html
> 2) Navigate your way to one of the mirror sites and then
> navigate your way
> to the release/gcc directory.
> 3) Copy down to your local cygwin download directory's
> release/gcc folder
> the gcc-3.2-3.tar.bz2 file.
> 4) Re-run cygwin's setup.exe
> 5) Tell it you want to install from a local directory
> 6) When you get to the package list, expand the devel list
> and then look for
> the gcc entry
> 7) Repeatedly click where it says Default next to gcc until
> it reads 3.2.3.
> 8) Click next and wait for setup.exe to finish uninstalling
> the newer gcc
> and then install the older gcc.
>
> Now, Andrew - here's the answers to your questions:
>
> 1. g++ --version
>
> g++ (GCC) 3.2 20020927 (prerelease)
>
> Copyright (C) 2002 Free Software Foundation, Inc.
>
> 2:
> $ make LDFLAGS=/usr/lib
> Making all in themes
> make[1]: Entering directory `/cygdrive/d/ddd-3.3.7/themes'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/cygdrive/d/ddd-3.3.7/themes'
> Making all in vsllib
> make[1]: Entering directory `/cygdrive/d/ddd-3.3.7/vsllib'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/cygdrive/d/ddd-3.3.7/vsllib'
> Making all in ddd
> make[1]: Entering directory `/cygdrive/d/ddd-3.3.7/ddd'
> make  all-am
> make[2]: Entering directory `/cygdrive/d/ddd-3.3.7/ddd'
> make[2]: Nothing to be done for `all-am'.
> make[2]: Leaving directory `/cygdrive/d/ddd-3.3.7/ddd'
> make[1]: Leaving directory `/cygdrive/d/ddd-3.3.7/ddd'
> make[1]: Entering directory `/cygdrive/d/ddd-3.3.7'
> make[1]: Nothing to be done for `all-am'.
> make[1]: Leaving directory `/cygdrive/d/ddd-3.3.7'
>
> Result: DDD does compile and run, but I get two VSL errors
> (it can't seem to
> process ddd.vsl, even after I copied to the directory it
> wanted it in per
> the help info) plus the xterm window from where I launch ddd
> gives me a
> string of XmStringGetNextComponent warnings.
>
> Attached you'll find my ddd log file.  Please let me know
> your suggestions -
> we're 99% there! :)
>
> And thank you for all of your help up until now plus all your
> help in the
> future...
>
> - Phil
>
> -----Original Message-----
> From: Michael Ambrus [mailto:address@hidden
> Sent: Friday, October 17, 2003 1:41 PM
> To: 'Philip Schlesinger'
> Subject: RE: Problem compiling latest DDD under latest cygwin
>
>
> A better place to get the gcc-3.2-3.tar.bz2 package:
>
> ftp://sources.redhat.com/pub/cygwin/release/gcc/
>
> You might have to experiment a little until you get the
> option to downgrade
> right. Don't give up though, it *will* work.
>
> Also try this (after you've downloaded your package and
> placed it in the
> right directory):
>
>
>
> /Michael
>
>
> -----Original Message-----
> From: Michael Ambrus [mailto:address@hidden
> Sent: den 17 oktober 2003 21:27
> To: 'Philip Schlesinger'
> Subject: RE: Problem compiling latest DDD under latest cygwin
>
>
> Strange, this is exactly how I did it....
>
> Might be that the reason is that you have a fresh
> installation and that you
> don't have an old package in your Cygwin "local package directory".
>
> I'll try to put the file on my private ftp server at
> ftp://house-ambrus.homelinux.org/
> It is a hidden server behind a normal ADSL connected host
> with a dynamic IP.
> It was a long time since I used this service from the
> outside... Hopefully
> you'll get the right IP from your DNS and hopefylly you'll
> get through my
> firewall.
>
> Use this account:
> User: guest
> Pass: phil
>
> You should find a gcc-3.2-3.tar.bz2
>
> Put this in your "local package directory" under gcc (i.e.
> ...\ftp%XXXX\release\gcc) and try to run setup.exe again.
>
> /Michael
>
> -----Original Message-----
> From: Philip Schlesinger [mailto:address@hidden
> Sent: den 17 oktober 2003 20:31
> To: address@hidden
> Subject: RE: Problem compiling latest DDD under latest cygwin
>
>
> Uh, I get 3 choices - Reinstall, Uninstall, or Keep...
>
> - Phil
> -----Original Message-----
> From: Michael Ambrus [mailto:address@hidden
> Sent: Friday, October 17, 2003 11:17 AM
> To: 'Philip Schlesinger'
> Subject: RE: Problem compiling latest DDD under latest cygwin
>
>
> Se the attached picture:
>
>
>
> Run setup ( http://sources.redhat.com/cygwin/setup.exe )
> Find gcc (under "devel")
> Press on the marked text to toggle various install options.
> The picture
> comes from my set-up, so I don't have the possibility to downgrade any
> further. But for you, one of the options should be 3.2-3.
>
> /Michael
>
>
>
>
>
> > -----Original Message-----
> > From: Philip Schlesinger [mailto:address@hidden
> > Sent: den 17 oktober 2003 19:54
> > To: address@hidden
> > Subject: RE: Problem compiling latest DDD under latest cygwin
> >
> >
> > Hmmm...ok, how do I downgrade my GCC? - Phil
> >
> > -----Original Message-----
> > From: Michael Ambrus [mailto:address@hidden
> > Sent: Friday, October 17, 2003 10:42 AM
> > To: 'Philip Schlesinger'
> > Subject: RE: Problem compiling latest DDD under latest cygwin
> >
> >
> > You've probably forgotten to downgrade your GCC version from
> > gcc-3.3 to
> > gcc-3.2. (yet another possibility you'll find later in this text).
> >
> > Read the additions I've made to Steves patches:
> >
> > http://mail.gnu.org/archive/html/ddd/2003-10/msg00025.html
> >
> > The link error you get (I believe) has to do with the
> > explanations I gave
> > there.
> >
> > IMPORTANT:
> > ==========
> > Don't forget to 'make clean' and re-run the configure script
> > before you try
> > rebuilding (OR best of all is to wipe your build out
> > completely and start
> > fresh).
> >
> > If you're very new to UNIX, you might benefit from this tip:
> >
> > Always build your code in separate directories than the
> > sources. It makes it
> > easier to be sure you've erased everything. If you actually
> > *did* downgrade
> > your gcc, I'm almost 100% sure this is your problem.
> >
> > I.e.
> > $WHATEVER/
> >   /src
> >     /ddd-x.y.z
> >   /build            <= You create these two directories yourself
> >     /ddd-x.y.z
> >
> > Then:
> >
> > cd $WHATEVER/build/ddd-x.y.z
> >
> > and run configure from there:
> >
> > ../../src/ddd-x.y.z/configure
> >
> > This is the recommended approach and *works for all SW from
> > FSF* and most
> > other too. Therefore always try this approach first (yes - it
> > works for
> > DDD).
> >
> > In some rare cases this approach won't work because the
> package is ill
> > written (or broken). Then (and only then) you build in the
> > same directory.
> >
> > Another tip is *NOT* to post long snippets. People loose
> > interest if they
> > don't recognize the issue directly. Cut out just the
> interesting parts
> > (usually the last 10 or so lines).
> >
> > Long and strange outputs (passably full of warnings) is quite
> > normal when
> > building most free SW.
> >
> > B.t.w. the linking error comes from a part of GCC itself
> (stdlibc++ I
> > think).
> >
> > Hope this helps.
> > Regards
> > /Michael
> >
> > > -----Original Message-----
> > > From: Philip Schlesinger [mailto:address@hidden
> > > Sent: den 17 oktober 2003 19:02
> > > To: address@hidden
> > > Subject: FW: Problem compiling latest DDD under latest cygwin
> > >
> > >
> > > Hi Michael.  I saw that you emailed the ddd list with some
> > suggestions
> > > to a user whom was having trouble compiling ddd under cygwin.  I
> > > emailed the list
> > > about the same time but never heard back from anybody.  I'm
> > a complete
> > > newbie to this, so I was wondering if you could take a peek
> > > at my email to
> > > the ddd list (attached) and let me know if you have any ideas?
> > >
> > > Thanks,
> > >
> > > Phil
> > >
> > >
> >
> >
> >
>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]