From: Christian Jönsson <c.christian.joensson@telia.com>
To: cygwin@cygwin.com
Cc: "Billinghurst, David (CRTS)" <David.Billinghurst@riotinto.com>,
"'gcc@gcc.gnu.org'" <gcc@gcc.gnu.org>,
"'tprince@computer.org'" <tprince@computer.org>
Subject: Re: Getting GCC's testsuite, i.e., dejagnu, under cygwin-1.1.7
Date: Mon, 01 Jan 2001 15:10:00 -0000 [thread overview]
Message-ID: <3A510E40.F2CFE4EA@telia.com> (raw)
In-Reply-To: <A9E96A79C068D211A6A90000C07BDF0D88F471@crtsmail.corp.riotinto.org>
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 5189 bytes --]
This is indeed a mystery to me. Perhaps the people working
with cygwin and related matters, such as tcl/tk and dejagnu
thereunder, on cygwin list have any comments?
My e-mail to David had this question in it:
-----
Hello David.
I'm just curious, how did you get the testsuite running?
I always get can't find /usr/share/dejagnu/runtest.exp
regardless if I set DEJAGNULIBS as /usr/share/dejagnu or
something like /cygdrive/c/cygwin/usr/share/dejagnu...
Oh, I have a win2k/pro/sp1 with an up to date cygwin-1.1.7.
Cheers,
/ChJ
-----
and it was because of his "report" to the gcc-testresults list
http://gcc.gnu.org/ml/gcc-testresults/2000-12/msg00326.html
I'm quite interested in hearing about how to get dejagnu/tcl
working more "properly" under cygwin, i.e., I can have cygwin
installed wherever I want to, like the recommended C:\cygwin,
and still be able to run the GCC testsuite.
TIA for any comments.
/ChJ
"Billinghurst, David (CRTS)" wrote:
>
> Christian.
>
> This is how I did it. Some of the changes are hacks looking for better
> solutions. cygwin needs to be installed in the root directory of the drive
> (C:\ or D:\). This is against the general advise, but is the only known way
> to get dejagnu to work.
>
> ----------------------------------------------------------------------------
> ----------------------------
> The g77 execute tests fail as cygwin g77 does not like "-lm". I removed it
> from /usr/share/dejagnu/target.exp. There is probably a neater way to do
> it, but ...
>
> --- usr/share/dejagnu/target.exp.bak Fri Dec 29 22:02:12 2000
> +++ usr/share/dejagnu/target.exp Fri Dec 29 22:02:35 2000
> @@ -471,7 +471,7 @@
> if [board_info $dest exists mathlib] {
> append add_flags " [board_info $dest mathlib]"
> } else {
> - append add_flags " -lm"
> + append add_flags " "
> }
>
> # This must be added here.
>
> ----------------------------------------------------------------------------
> ---------------------------
> The g++ testsuite will not run as dejagnu cannot exec
> ${odir_v3}/tests_flags. Fixed thus. This has been submitted to
> gcc-patches.
>
> 2000-12-30 David Billinghurst <David.Billinghurst@riotinto.com>
>
> * lib/g++.exp: Use sh to exec ${odir_v3}/tests_flags
>
> --- gcc/testsuite/lib/g++.exp.orig Fri Dec 29 20:43:44 2000
> +++ gcc/testsuite/lib/g++.exp Fri Dec 29 20:39:43 2000
> @@ -86,7 +86,7 @@
> if { ${HAVE_LIBSTDCXX_V3} } {
> set odir_v3 [lookfor_file ${gccpath} libstdc++-v3]
> set sdir_v3 [lookfor_file ${srcdir} libstdc++-v3]
> - append flags [exec ${odir_v3}/tests_flags --compiler ${odir_v3}
> ${sdir_v3}]
> + append flags [exec sh ${odir_v3}/tests_flags --compiler ${odir_v3}
> ${sdir_v3}]
> } else {
> set odir_v2 [lookfor_file ${gccpath} libstdc++]
> set sdir_v2 [lookfor_file ${srcdir} libstdc++]
> ----------------------------------------------------------------------------
> ----------------------
> Configure and build with
>
> #!/bin/sh
> SRC_DIR=/usr/local/src/gcc
> BUILD_DIR=/usr/local/obj/gcc
> CFLAGS="-O2 -pipe -g"
> CXXFLAGS="-O2 -pipe -g"
> BOOT_CFLAGS="-O2 -pipe -g"
> mkdir ${BUILD_DIR}
> cd ${BUILD_DIR}
> ${SRC_DIR}/configure --with-included-gettext > config.out 2>&1 || exit
> make bootstrap-lean > Make.log 2>&1 || exit
>
> ----------------------------------------------------------------------------
> -------------------------
> Flags in i686-pc-cygwin/libstdc++-v3/tests_flags are wrong. (This is a
> generated file in the build directory). Need to patch it thus.
>
> --- i686-pc-cygwin/libstdc++-v3/tests_flags.bak Fri Dec 29 10:22:23 2000
> +++ i686-pc-cygwin/libstdc++-v3/tests_flags Fri Dec 29 10:24:02 2000
> @@ -154,7 +154,7 @@
> ${LIB_PATH}/../libsupc++/libsupc++.la ${LIB_PATH}/libstdc++.la
> -no-install"
> LTEXE="${LIBTOOL} --mode=execute"
> - LIBS="-nodefaultlibs -lc -lgcc -lc"
> + LIBS="-nodefaultlibs -lgcc -lcygwin -luser32 -lkernel32 -ladvapi32
> -lshell32"
> ;;
> --installed-library)
> # For the installed version, we really only need to use libtool and
> ----------------------------------------------------------------------------
> --------------------------
> Then run the testsuite, and wait
>
> DEJAGNULIBS=/usr/share/dejagnu
> export DEJAGNULIBS
> TCL_LIBRARY=/usr/share/tcl8.0
> export TCL_LIBRARY
> make -k check > Make-check.log 2>&1
>
> > -----Original Message-----
> > From: Christian Jönsson [SMTP:c.christian.joensson@telia.com]
> > Sent: Sunday, 31 December 2000 2:42
> > To: Billinghurst, David (CRTS)
> > Subject: Getting GCC's testsuite, i.e., dejagnu, under cygwin-1.1.7
> >
> > Hello David.
> >
> > I'm just curious, how did you get the testsuite running?
> >
> > I always get can't find /usr/share/dejagnu/runtest.exp
> > regardless if I set DEJAGNULIBS as /usr/share/dejagnu or
> > something like /cygdrive/c/cygwin/usr/share/dejagnu...
> >
> > Oh, I have a win2k/pro/sp1 with an up to date cygwin-1.1.7.
> >
> > Cheers,
> >
> > /ChJ
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple
next parent reply other threads:[~2001-01-01 15:10 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <A9E96A79C068D211A6A90000C07BDF0D88F471@crtsmail.corp.riotinto.org>
2001-01-01 15:10 ` Christian Jönsson [this message]
2001-01-01 15:16 ` Christopher Faylor
2001-01-01 18:49 ` Earnie Boyd
2001-01-01 18:54 ` Christopher Faylor
2001-01-01 19:10 ` Earnie Boyd
2001-01-02 13:49 ` Gerrit P. Haase
2001-01-02 15:14 ` Christopher Faylor
2001-01-02 16:38 ` Christopher Faylor
2001-01-02 7:32 ` Dave Korn
2000-12-31 17:19 Billinghurst, David (CRTS)
2001-01-01 12:02 ` Tim Prince
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3A510E40.F2CFE4EA@telia.com \
--to=c.christian.joensson@telia.com \
--cc=David.Billinghurst@riotinto.com \
--cc=cygwin@cygwin.com \
--cc=gcc@gcc.gnu.org \
--cc=tprince@computer.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).