* Re: Getting GCC's testsuite, i.e., dejagnu, under cygwin-1.1.7 [not found] <A9E96A79C068D211A6A90000C07BDF0D88F471@crtsmail.corp.riotinto.org> @ 2001-01-01 15:10 ` Christian Jönsson 2001-01-01 15:16 ` Christopher Faylor 2001-01-02 7:32 ` Dave Korn 0 siblings, 2 replies; 11+ messages in thread From: Christian Jönsson @ 2001-01-01 15:10 UTC (permalink / raw) To: cygwin Cc: Billinghurst, David (CRTS), 'gcc@gcc.gnu.org', 'tprince@computer.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 ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Getting GCC's testsuite, i.e., dejagnu, under cygwin-1.1.7 2001-01-01 15:10 ` Getting GCC's testsuite, i.e., dejagnu, under cygwin-1.1.7 Christian Jönsson @ 2001-01-01 15:16 ` Christopher Faylor 2001-01-01 18:49 ` Earnie Boyd 2001-01-02 7:32 ` Dave Korn 1 sibling, 1 reply; 11+ messages in thread From: Christopher Faylor @ 2001-01-01 15:16 UTC (permalink / raw) To: cygwin, 'gcc@gcc.gnu.org' [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #1: Type: text/plain, Size: 5703 bytes --] tcl is not a cygwin application so tcl+dejagnu don't understand cygwin mounts. cgf On Tue, Jan 02, 2001 at 12:09:52AM +0100, Christian J?nsson wrote: >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 -- cgf@cygnus.com Red Hat, Inc. http://sources.redhat.com/ http://www.redhat.com/ -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Getting GCC's testsuite, i.e., dejagnu, under cygwin-1.1.7 2001-01-01 15:16 ` Christopher Faylor @ 2001-01-01 18:49 ` Earnie Boyd 2001-01-01 18:54 ` Christopher Faylor 0 siblings, 1 reply; 11+ messages in thread From: Earnie Boyd @ 2001-01-01 18:49 UTC (permalink / raw) To: cygwin; +Cc: 'gcc@gcc.gnu.org' Christopher Faylor wrote: > tcl is not a cygwin application so tcl+dejagnu don't understand > cygwin mounts. > > cgf > However, the unix version of tcl will build with Cygwin and therefore understand Cygwin's mounts. You can also build the unix version of tk but that requires the X11 from cygwin-xfree. Cheers, Earnie. _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Getting GCC's testsuite, i.e., dejagnu, under cygwin-1.1.7 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 0 siblings, 2 replies; 11+ messages in thread From: Christopher Faylor @ 2001-01-01 18:54 UTC (permalink / raw) To: cygwin, 'gcc@gcc.gnu.org' On Mon, Jan 01, 2001 at 07:20:30PM -0500, Earnie Boyd wrote: >Christopher Faylor wrote: > >> tcl is not a cygwin application so tcl+dejagnu don't understand >> cygwin mounts. >> >> cgf >> > >However, the unix version of tcl will build with Cygwin and therefore understand >Cygwin's mounts. You can also build the unix version of tk but that requires the >X11 from cygwin-xfree. Yep. DJ actually got a version of dejagnu/tcl working some time ago but we haven't had the cycles to make a release. It's possible that the dejagnu + tcl + winsup in sources.redhat.com may just build and work though, if anyone wants to give it a shot. cgf -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Getting GCC's testsuite, i.e., dejagnu, under cygwin-1.1.7 2001-01-01 18:54 ` Christopher Faylor @ 2001-01-01 19:10 ` Earnie Boyd 2001-01-02 13:49 ` Gerrit P. Haase 1 sibling, 0 replies; 11+ messages in thread From: Earnie Boyd @ 2001-01-01 19:10 UTC (permalink / raw) To: cygwin; +Cc: 'gcc@gcc.gnu.org' Christopher Faylor wrote: > On Mon, Jan 01, 2001 at 07:20:30PM -0500, Earnie Boyd wrote: > >Christopher Faylor wrote: > > > >> tcl is not a cygwin application so tcl+dejagnu don't understand > >> cygwin mounts. > >> > >> cgf > >> > > > >However, the unix version of tcl will build with Cygwin and therefore understand > >Cygwin's mounts. You can also build the unix version of tk but that requires the > >X11 from cygwin-xfree. > > Yep. DJ actually got a version of dejagnu/tcl working some time ago but we haven't > had the cycles to make a release. It's possible that the dejagnu + tcl + winsup > in sources.redhat.com may just build and work though, if anyone wants to give it > a shot. > If anyone does try, remember to `CC='gcc -mno-win32'' first. Cheers, Earnie. __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Getting GCC's testsuite, i.e., dejagnu, under cygwin-1.1.7 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 1 sibling, 1 reply; 11+ messages in thread From: Gerrit P. Haase @ 2001-01-02 13:49 UTC (permalink / raw) To: cygwin <1 Jan 2001, 21:54 Uhr wars, als Christopher Faylor folgendes schrub:> < Re: Getting GCC's testsuite, i.e., > > Yep. DJ actually got a version of dejagnu/tcl working some time ago but we haven't had > the cycles to make a release. It's possible that the dejagnu + tcl + winsup in > sources.redhat.com may just build and work though, if anyone wants to give it a shot. I've downloaded dejagnu from sources.redhat.com/pub/dejagnu What else do i need to load down? There is a libiberty dir, but no header are included, i tried to use the header from cygwin-cvs sources, but make failed. -- =^..^= Gerrit Peter Haase ID: 0x28A05137 FP: 875C 745E 01CF 8A34 2767 BE39 305E 5261 28A0 5137 -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Getting GCC's testsuite, i.e., dejagnu, under cygwin-1.1.7 2001-01-02 13:49 ` Gerrit P. Haase @ 2001-01-02 15:14 ` Christopher Faylor 2001-01-02 16:38 ` Christopher Faylor 0 siblings, 1 reply; 11+ messages in thread From: Christopher Faylor @ 2001-01-02 15:14 UTC (permalink / raw) To: cygwin On Tue, Jan 02, 2001 at 10:51:08PM +0100, Gerrit P. Haase wrote: ><1 Jan 2001, 21:54 Uhr wars, als Christopher Faylor folgendes schrub:> >< Re: Getting GCC's testsuite, i.e., > > >> Yep. DJ actually got a version of dejagnu/tcl working some time ago but we haven't had >> the cycles to make a release. It's possible that the dejagnu + tcl + winsup in >> sources.redhat.com may just build and work though, if anyone wants to give it a shot. > >I've downloaded dejagnu from sources.redhat.com/pub/dejagnu You need to use the CVS version of dejagnu + the reset of the sources.redhat.com tools. cgf -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Getting GCC's testsuite, i.e., dejagnu, under cygwin-1.1.7 2001-01-02 15:14 ` Christopher Faylor @ 2001-01-02 16:38 ` Christopher Faylor 0 siblings, 0 replies; 11+ messages in thread From: Christopher Faylor @ 2001-01-02 16:38 UTC (permalink / raw) To: cygwin On Tue, Jan 02, 2001 at 06:14:54PM -0500, Christopher Faylor wrote: >On Tue, Jan 02, 2001 at 10:51:08PM +0100, Gerrit P. Haase wrote: >><1 Jan 2001, 21:54 Uhr wars, als Christopher Faylor folgendes schrub:> >>< Re: Getting GCC's testsuite, i.e., > >> >>> Yep. DJ actually got a version of dejagnu/tcl working some time ago but we haven't had >>> the cycles to make a release. It's possible that the dejagnu + tcl + winsup in >>> sources.redhat.com may just build and work though, if anyone wants to give it a shot. >> >>I've downloaded dejagnu from sources.redhat.com/pub/dejagnu > >You need to use the CVS version of dejagnu + the reset of the sources.redhat.com tools. ^^^^^ rest cgf -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Getting GCC's testsuite, i.e., dejagnu, under cygwin-1.1.7 2001-01-01 15:10 ` Getting GCC's testsuite, i.e., dejagnu, under cygwin-1.1.7 Christian Jönsson 2001-01-01 15:16 ` Christopher Faylor @ 2001-01-02 7:32 ` Dave Korn 1 sibling, 0 replies; 11+ messages in thread From: Dave Korn @ 2001-01-02 7:32 UTC (permalink / raw) To: Christian Jönsson, cygwin Cc: Billinghurst, David (CRTS), gcc, tprince [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #1: Type: text/plain, Size: 2760 bytes --] ----- Original Message ----- 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>; <tprince@computer.org> Sent: Monday, January 01, 2001 11:09 PM Subject: Re: Getting GCC's testsuite, i.e., dejagnu, under cygwin-1.1.7 > 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. Hi there, I'm also using cygwin on win2k, without any service packs. I hadn't heard the advice that dejagnu needs your cygwin installation to be in the root of a drive, so I haven't followed it, but I've managed to get dejagnu working on my system. The two things that seemed to make all the difference in my case were: - I had several futile attempts to build and install dejagnu using tarballs I found on ftp.gnu.org and cygwin mirror sites. None of these even built correctly. What finally worked for me was getting the CVS sources from the cygwin anon cvs server (which is also the gcc server). - I don't know how it happened, but I found that I had both tcl8.0 and tk8.0 installations existing in both /usr/share and /usr/local/share. OTOH, my dejagnu installation from the CVS put itself into /usr/local/share. I don't really know what's going on with that, but pointing DEJAGNULIBS at /usr/share really wouldn't work for me, because there's no dejagnu directory there. - Other possibly-relevant facts are that I'm working with the 2.95.3 branch of gcc, and that I'm running cross-compiler tests on a remote target board. Here's the contents of my .bashrc, which I think may be relevant: --------------------------------------------- export PATH=$PATH:/usr/local/lib export LD_RUN_PATH=/usr/local/lib export TCL_LIBRARY=/usr/share/tcl8.0 export DEJAGNULIBS=/usr/local/share/dejagnu export DEJAGNU=/home/dkadmin/gcc/build/cvs4/gcc/testsuite/site.exp --------------------------------------------- The DEJAGNU definition points at the site.exp in my current working version of the GCC CVS sources. I've attached my cygcheck output as well. I'm reading this from the Gcc list; apologies for crossposting to cygwin when I'm not going to see replies on that list, but I thought my information might be relevant anyway. cheers, DaveK [-- Attachment #2: cygchck.log --] [-- Type: text/x-Algol68, Size: 14438 bytes --] Cygnus Win95/NT Configuration Diagnostics Current System Time: Tue Jan 2 12:21:07 2001 WinNT Ver 5.0 build 2195 Path: /usr/local/bin /usr/bin /bin /win/c/WINNT/system32 /win/c/WINNT /win/c/WINNT/system32/WBEM /cygdrive/h/Codeutil /win/c/Program Files/Microsoft Visual Studio/Common/Tools/WinNT /win/c/Program Files/Microsoft Visual Studio/Common/MSDev98/Bin /win/c/Program Files/Microsoft Visual Studio/Common/Tools /win/c/Program Files/Microsoft Visual Studio/VC98/bin /usr/local/lib SysDir: C:\WINNT\System32 WinDir: C:\WINNT Here's some environment variables that may affect cygwin: PWD = `/home/dkadmin' DEJAGNU = `/home/dkadmin/gcc/build/cvs4/gcc/testsuite/site.exp' CYGWIN = `ntsec' USER = `dkadmin' TCL_LIBRARY = `/usr/share/tcl8.0' MAKE_MODE = `unix' HOME = `/home/dkadmin' Here's the rest of your environment variables: NUMBER_OF_PROCESSORS = `1' PROMPT = `$P$G' LD_RUN_PATH = `/usr/local/lib' LOGONSERVER = `\\UBIK' OS2LIBPATH = `C:\WINNT\system32\os2\dll;' COMSPEC = `C:\WINNT\system32\cmd.exe' !C: = `C:\cygwin\bin' SYSTEMDRIVE = `C:' HOSTNAME = `UBIK' INCLUDE = `C:\Program Files\Microsoft Visual Studio\VC98\atl\include;C:\Program Files\Microsoft Visual Studio\VC98\mfc\include;C:\Program Files\Microsoft Visual Studio\VC98\include' PROCESSOR_REVISION = `0402' MSDEVDIR = `C:\Program Files\Microsoft Visual Studio\Common\MSDev98' PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH' COMPUTERNAME = `UBIK' WIND_BASE = `C:\Tornado' WINDIR = `C:\WINNT' USERPROFILE = `C:\Documents and Settings\Administrator' DEJAGNULIBS = `/usr/local/share/dejagnu' PS1 = `^[]0;\w\a ^[[32m\u@\h ^[[33m\w^[[0m $ ' PROGRAMFILES = `C:\Program Files' MACHTYPE = `i686-pc-cygwin' PROCESSOR_IDENTIFIER = `x86 Family 6 Model 4 Stepping 2, AuthenticAMD' OS = `Windows_NT' OLDPWD = `/usr/bin' PROCESSOR_ARCHITECTURE = `x86' REVB = `1' TEMP = `/win/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp' PROCESSOR_LEVEL = `6' SYSTEMROOT = `C:\WINNT' HOMEDRIVE = `C:' LIB = `C:\Program Files\Microsoft Visual Studio\VC98\mfc\lib;C:\Program Files\Microsoft Visual Studio\VC98\lib' ALLUSERSPROFILE = `C:\Documents and Settings\All Users' SHLVL = `1' APPDATA = `C:\Documents and Settings\Administrator\Application Data' COMMONPROGRAMFILES = `C:\Program Files\Common Files' HOMEPATH = `\' USERDOMAIN = `UBIK' USERNAME = `DKAdmin' SHELL = `/bin/sh' HOSTTYPE = `i686' OSTYPE = `cygwin' TERM = `cygwin' _ = `/usr/bin/cygcheck' TZ = `GMTST0GMTDT-1,M3.5.0/1,M10.5.0/2' Scanning registry for keys with `Cygnus' in them... HKEY_CURRENT_USER\Software\Cygnus Solutions HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2 (default) = `/cygdrive' cygdrive flags = 0x00000022 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/dev2 (default) = `C:\Source' flags = 0x00000000 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/download (default) = `d:\download' flags = 0x00000002 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/gccdev (default) = `C:\CVS4' flags = 0x00000000 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0 HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\00 (default) = `\\.\tape1:' unix = `/dev/st1' fbinary = 0x00000000 fsilent = 0x00000001 HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\01 (default) = `\\.\tape0:' unix = `/dev/st0' fbinary = 0x00000000 fsilent = 0x00000001 HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\02 (default) = `\\.\b:' unix = `/dev/fd1' fbinary = 0x00000000 fsilent = 0x00000001 HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\03 (default) = `\\.\a:' unix = `/dev/fd0' fbinary = 0x00000000 fsilent = 0x00000001 HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\04 (default) = `C:' unix = `/' fbinary = 0x00000000 fsilent = 0x00000000 HKEY_CURRENT_USER\Software\Microsoft\Ftp\Accounts\sourceware.cygnus.com (default) = `ftp' Login Attributes = 0x00000002 HKEY_CURRENT_USER\Software\Microsoft\Ftp\Accounts\sourceware.cygnus.com\ftp (default) = `' HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start Menu\Programs\Cygnus Solutions (default) = (unsupported type) HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/ (default) = `C:/cygwin' flags = 0x0000000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/dos (default) = `C:\cygwin\mnt\dos' flags = 0x00000008 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin (default) = `C:/cygwin/bin' flags = 0x0000000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib (default) = `C:/cygwin/lib' flags = 0x0000000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/win/c (default) = `c:' flags = 0x00000008 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/win/d (default) = `d:' flags = 0x00000008 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/win/e (default) = `e:' flags = 0x00000008 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/zip0 (default) = `G:' flags = 0x0000000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\00 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\01 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\02 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\03 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\04 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\05 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\06 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\07 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\08 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\09 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0A HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0B HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0C HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0D HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0E HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0F HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\10 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\11 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\12 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\13 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\14 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\15 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\16 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\17 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\18 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\19 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\1A HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\1B HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\1C HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\1D Listing available drives... Drv Type Size Free Flags Name a: fd N/A N/A c: hd NTFS 7067Mb 62% CP CS UN PA FC TAZ d: hd FAT32 1824Mb 65% CP UN FNORD e: hd FAT32 2027Mb 63% CP UN MEOW f: cd N/A N/A g: fd N/A N/A h: hd FAT32 4094Mb 72% CP UN UBIK i: cd N/A N/A fd=floppy, hd=hard drive, cd=CD-ROM, net=Network Share CP=Case Preserving, CS=Case Sensitive, UN=Unicode PA=Persistent ACLS, FC=File Compression, VC=Volume Compression Mount entries: these map POSIX directories to your NT drives. -NT- -POSIX- -Type- -Flags- C:\cygwin\mnt\dos /dos system textmode C:\cygwin\bin /usr/bin system binmode C:\cygwin\lib /usr/lib system binmode d:\download /download user binmode C:\Source /dev2 user textmode C:\cygwin / system binmode C:\CVS4 /gccdev user textmode G: /zip0 system binmode c: /win/c system textmode d: /win/d system textmode e: /win/e system textmode Looking to see where common programs can be found, if at all... Found: C:\cygwin\bin\bash.exe Found: C:\cygwin\bin\cat.exe Found: C:\cygwin\usr\local\bin\cpp.exe Found: C:\cygwin\bin\cpp.exe Warning: C:\cygwin\usr\local\bin\cpp.exe hides C:\cygwin\bin\cpp.exe Found: C:\cygwin\bin\find.exe Found: C:\cygwin\bin\gcc.exe Found: C:\cygwin\usr\local\bin\gdb.exe Found: C:\cygwin\bin\gdb.exe Warning: C:\cygwin\usr\local\bin\gdb.exe hides C:\cygwin\bin\gdb.exe Found: C:\cygwin\usr\local\bin\ld.exe Found: C:\cygwin\bin\ld.exe Warning: C:\cygwin\usr\local\bin\ld.exe hides C:\cygwin\bin\ld.exe Found: C:\cygwin\bin\ls.exe Found: C:\cygwin\bin\make.exe Found: C:\cygwin\bin\sh.exe Looking for various Cygnus DLLs... (-v gives version info) 408k 2000/12/16 C:\cygwin\usr\local\bin\cygitcl30.dll - os=4.0 img=1.0 sys=4.0 "cygitcl30.dll" v0.0 ts=2000/12/16 19:56 301k 2000/12/16 C:\cygwin\usr\local\bin\cygitk30.dll - os=4.0 img=1.0 sys=4.0 "cygitk30.dll" v0.0 ts=2000/12/16 19:56 1480k 2000/12/16 C:\cygwin\usr\local\bin\cygtcl80.dll - os=4.0 img=1.0 sys=4.0 "cygtcl80.dll" v0.0 ts=2000/12/16 19:53 22k 2000/12/16 C:\cygwin\usr\local\bin\cygtclpip80.dll - os=4.0 img=1.0 sys=4.0 182k 2000/12/16 C:\cygwin\usr\local\bin\cygtclreg80.dll - os=4.0 img=1.0 sys=4.0 "cygtclreg80.dll" v0.0 ts=2000/12/16 19:53 2070k 2000/12/16 C:\cygwin\usr\local\bin\cygtk80.dll - os=4.0 img=1.0 sys=4.0 "cygtk80.dll" v0.0 ts=2000/12/16 19:55 56k 2000/12/03 C:\cygwin\bin\cygbz21.0.dll - os=4.0 img=1.0 sys=4.0 "cygbz21.0.dll" v0.0 ts=2000/11/20 23:53 83k 2000/11/25 C:\cygwin\bin\cygform5.dll - os=4.0 img=1.0 sys=4.0 "cygform5.dll" v0.0 ts=2000/11/25 5:42 18k 2000/10/23 C:\cygwin\bin\cyggdbm.dll - os=4.0 img=1.0 sys=4.0 "cyggdbm.dll" v0.0 ts=2000/10/23 3:26 17k 2000/11/30 C:\cygwin\bin\cyghistory4.dll - os=4.0 img=1.0 sys=4.0 "cyghistory4.dll" v0.0 ts=2000/11/30 2:28 14k 2000/10/23 C:\cygwin\bin\cygintl.dll - os=4.0 img=1.0 sys=4.0 "cygintl.dll" v0.0 ts=2000/10/23 20:02 81k 2000/12/05 C:\cygwin\bin\cygitcl30.dll - os=4.0 img=1.0 sys=4.0 "cygitcl30.dll" v0.0 ts=2000/11/26 1:43 35k 2000/12/05 C:\cygwin\bin\cygitk30.dll - os=4.0 img=1.0 sys=4.0 "cygitk30.dll" v0.0 ts=2000/11/26 1:43 45k 2000/10/22 C:\cygwin\bin\cygjbig1.dll - os=4.0 img=1.0 sys=4.0 "cygjbig1.dll" v0.0 ts=2000/10/23 0:06 119k 2000/10/23 C:\cygwin\bin\cygjpeg6b.dll - os=4.0 img=1.0 sys=4.0 "cygjpeg6b.dll" v0.0 ts=2000/10/23 1:58 53k 2000/11/25 C:\cygwin\bin\cygmenu5.dll - os=4.0 img=1.0 sys=4.0 "cygmenu5.dll" v0.0 ts=2000/11/25 5:42 300k 2000/11/25 C:\cygwin\bin\cygncurses5.dll - os=4.0 img=1.0 sys=4.0 "cygncurses5.dll" v0.0 ts=2000/11/25 5:40 35k 2000/11/25 C:\cygwin\bin\cygpanel5.dll - os=4.0 img=1.0 sys=4.0 "cygpanel5.dll" v0.0 ts=2000/11/25 5:41 162k 2000/10/23 C:\cygwin\bin\cygpng2.dll - os=4.0 img=1.0 sys=4.0 "cygpng2.dll" v0.0 ts=2000/10/23 1:40 108k 2000/11/30 C:\cygwin\bin\cygreadline4.dll - os=4.0 img=1.0 sys=4.0 "cygreadline4.dll" v0.0 ts=2000/11/30 2:28 390k 2000/12/05 C:\cygwin\bin\cygtcl80.dll - os=4.0 img=1.0 sys=4.0 "cygtcl80.dll" v0.0 ts=2000/11/26 1:39 5k 2000/12/05 C:\cygwin\bin\cygtclpip80.dll - os=4.0 img=1.0 sys=4.0 10k 2000/12/05 C:\cygwin\bin\cygtclreg80.dll - os=4.0 img=1.0 sys=4.0 "cygtclreg80.dll" v0.0 ts=2000/11/26 1:39 243k 2000/10/23 C:\cygwin\bin\cygtiff3.dll - os=4.0 img=1.0 sys=4.0 "cygtiff3.dll" v0.0 ts=2000/10/23 2:14 623k 2000/12/05 C:\cygwin\bin\cygtk80.dll - os=4.0 img=1.0 sys=4.0 "cygtk80.dll" v0.0 ts=2000/11/26 1:43 41k 2000/11/20 C:\cygwin\bin\cygXpm-noX4.dll - os=4.0 img=1.0 sys=4.0 "cygXpm-noX4.dll" v0.0 ts=2000/11/20 2:41 45k 2000/11/20 C:\cygwin\bin\cygXpm-X4.dll - os=4.0 img=1.0 sys=4.0 "cygXpm-X4.dll" v0.0 ts=2000/11/20 2:45 49k 2000/10/23 C:\cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0 "cygz.dll" v0.0 ts=2000/10/23 1:22 609k 2000/11/22 C:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0 "cygwin1.dll" v0.0 ts=2000/11/22 2:00 Cygwin DLL version info: dll major: 1001 dll minor: 6 dll epoch: 19 dll bad signal mask: 19005 dll old termios: 5 dll malloc env: 28 api major: 0 api minor: 30 shared data: 3 dll identifier: cygwin1 mount registry: 2 cygnus registry name: Cygnus Solutions cygwin registry name: Cygwin program options name: Program Options cygwin mount registry name: mounts v2 cygdrive flags: cygdrive flags cygdrive prefix: cygdrive prefix cygdrive default prefix: build date: Tue Nov 21 21:00:16 EST 2000 shared id: cygwin1S3 ^ permalink raw reply [flat|nested] 11+ messages in thread
* RE: Getting GCC's testsuite, i.e., dejagnu, under cygwin-1.1.7
@ 2000-12-31 17:19 Billinghurst, David (CRTS)
2001-01-01 12:02 ` Tim Prince
0 siblings, 1 reply; 11+ messages in thread
From: Billinghurst, David (CRTS) @ 2000-12-31 17:19 UTC (permalink / raw)
To: 'cygwin@sources.redhat.com'
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 4124 bytes --]
This is probably of interest to other cygwin users. It is for current gcc
cvs. I'll write up the -lm problem with g77 for the cygwin list, as it also
occurs with the current cygwin release.
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
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Getting GCC's testsuite, i.e., dejagnu, under cygwin-1.1.7 2000-12-31 17:19 Billinghurst, David (CRTS) @ 2001-01-01 12:02 ` Tim Prince 0 siblings, 0 replies; 11+ messages in thread From: Tim Prince @ 2001-01-01 12:02 UTC (permalink / raw) To: cygwin, Billinghurst, David (CRTS); +Cc: gcc-bugs [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #1: Type: text/plain, Size: 4720 bytes --] These fixes are working here, on W2KSP1. Thanks. I've run into addtional problems which are triggered by g77 -O -march=pentiumpro, and I'm still at a loss how to track them down. The compilers seem fairly stable without the pentiumpro option. Would someone be interested if I could show a gcc translation which replicates an ICE, on both linux and cygwin? ----- Original Message ----- From: "Billinghurst, David (CRTS)" <David.Billinghurst@riotinto.com> To: <cygwin@sources.redhat.com> Sent: Sunday, December 31, 2000 5:19 PM Subject: RE: Getting GCC's testsuite, i.e., dejagnu, under cygwin-1.1.7 This is probably of interest to other cygwin users. It is for current gcc cvs. I'll write up the -lm problem with g77 for the cygwin list, as it also occurs with the current cygwin release. 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 ^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2001-01-02 16:38 UTC | newest] Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <A9E96A79C068D211A6A90000C07BDF0D88F471@crtsmail.corp.riotinto.org> 2001-01-01 15:10 ` Getting GCC's testsuite, i.e., dejagnu, under cygwin-1.1.7 Christian Jönsson 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
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).