Neil, If you want to switch between multiple cygwin trees, there are a couple of things to keep in mind: - always make sure that the cygwin.dll on the path (and other cygwin related dlls) is the one in the cygwin tree that you are using - don't just rename/move the directories, but also save/restore the registry keys related to cygwin (at least HKLM/SOFTWARE/Cygnus Solutions)
But still, as I wrote in my previous mail, having multiple cygwin installations on the same PC is not recommended. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Neil Hancock Sent: Thursday, March 20, 2008 4:19 PM To: [email protected] Subject: [Tinyos-help] RE: TinyOS 2.0 upgrade Hi Janos Thanks for the reply - I forgot to mention - I tried going to the latest Cygwin, having setup.exe download it from the cygwin.com/setup.exe, but the environment didn't even come up. I'm very uncomfortable with the lack of visible versioning. My experience is that you need to have a baseline to test everything against. Occasionally after some testing, the baseline is moved up. Since you say that should work, and looking at cygwin.com there is a 2008-Mar-09 Cygwin DLL 1.5.25-11 release that perhaps I should bring it up. My environment I have one cygwin tree that I work in c:\tinyos\cygwin\..... but I've rename trees into this space for testing/coding in earnest. After the rename I reboot so that the first invocation is fresh. I've got older copies as c:\tinyos\cygwin-T1.1.15works\.. as well tested working arrangements... gotta be able to go back to a known working environment. I've got a newer tree as c:\tinyos\cygwin-T2.0tools When I switch environments I rename the directory structure to c:\tinyos\cygwin\... I could move them to another disk if that is likely to be interfering somehow... but rename is much nicer. I have upgrade the Java to the latest jdk1.6.0_05 - but I don't think that should affect TinyOS compiler should it. So here is my T2 environment - the latest tools, and configured for the tinyos-1.x tree. When I compile tinyos-1.x/apps/Blink with make mica2 And it fails with a windowlet Nesc1.exe - Entry point not found The procedure entry point basename could not be located in the dynanmic link library cygwin1.dll So any thoughts Many thanks Neil Hancock [EMAIL PROTECTED] /opt/tinyos-1.x/apps/TestSnooze $ env !C:=C:\tinyos\cygwin\bin ALLUSERSPROFILE=C:\Documents and Settings\All Users APPDATA=C:\Documents and Settings\Neil\Application Data CLASSPATH=.\;C:\tinyos\cygwin\opt\tinyos-1.x\tools\java;C:\tinyos\cygwin \opt \tinyos-1.x\tools\java\jars\cup.jar; C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\Jama-1.0.1.jar; C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\javax.servlet.jar; C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\jazz.jar; C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\jdom.jar; C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\JLex.jar; C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\junit.jar; C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\log4j-1.2.11.jar; C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\oalnf.jar; C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\org.mortbay.jetty.jar; C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\pgjdbc2.jar; C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\plot.jar; C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\pxgraphapplet.jar; C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\xercesImpl.jar; C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\xmlParserAPIs.jar; C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\xmlrpc-1.2-b1.jar CLIENTNAME=Console COMMONPROGRAMFILES=C:\Program Files\Common Files COMPUTERNAME=NEILSXP COMSPEC=C:\WINDOWS\system32\cmd.exe CVS_RSH=/bin/ssh FP_NO_HOST_CHECK=NO HOME=/home/Neil HOMEDRIVE=C: HOMEPATH=\Documents and Settings\Neil HOSTNAME=NeilsXp INFOPATH=/usr/local/info:/usr/info:/usr/share/info:/usr/autotool/devel/i nfo: /usr/autotool/stable/info: LOGONSERVER=\\NEILSXP MAKERULES=/opt/tinyos-1.x/tools/make/Makerules MAKE_MODE=unix MANPATH=/usr/local/man:/usr/man:/usr/share/man:/usr/autotool/devel/man:: /usr /ssl/man NUMBER_OF_PROCESSORS=1 OLDPWD=/opt/tinyos-1.x/apps OS=Windows_NT PATH=/cygdrive/c/Program Files/Java/jdk1.6.0_05/bin: /usr/local/bin: /usr/bin: /bin: /usr/X11R6/bin: /cygdrive/c/WINDOWS/system32: /cygdrive/c/WINDOWS: /cygdrive/c/WINDOWS/System32/Wbem: /cygdrive/c/Python22: /cygdrive/c/Program Files/PC-Doctor for Windows/: /cygdrive/c/Program Files/WinZip: /cygdrive/c/Program Files/Microsoft SQL Server/90/Tools/binn/: /cygdrive/c/tinyos/ATT/Graphviz/bin: /cygdrive/c/Documents and Settings/Neil/My Documents/N/Bin/UTIL: /usr/local/mspgcc/bin PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH PRINTER=MFC-8840D-dbl PROCESSOR_ARCHITECTURE=x86 PROCESSOR_IDENTIFIER=x86 Family 15 Model 12 Stepping 0, AuthenticAMD PROCESSOR_LEVEL=15 PROCESSOR_REVISION=0c00 PROGRAMFILES=C:\Program Files PROMPT=$P$G PS1=\[\033]0;\w\007 [EMAIL PROTECTED] \[\033[33m\w\033[0m\] $ PWD=/opt/tinyos-1.x/apps/TestSnooze SESSIONNAME=Console SHLVL=1 SYSTEMDRIVE=C: SYSTEMROOT=C:\WINDOWS TEMP=/cygdrive/c/DOCUME~1/Neil/LOCALS~1/Temp TERM=cygwin TMP=/cygdrive/c/DOCUME~1/Neil/LOCALS~1/Temp TOSDIR=/opt/tinyos-1.x/tos TOSROOT=/opt/tinyos-1.x USER=Neil USERDOMAIN=NEILSXP USERNAME=Neil USERPROFILE=C:\Documents and Settings\Neil WINDIR=C:\WINDOWS _=/usr/bin/env [EMAIL PROTECTED] /opt/tinyos-1.x/apps/TestSnooze $ [EMAIL PROTECTED] /opt/tinyos-1.x/apps/TestSnooze $ cygcheck -s Cygwin Configuration Diagnostics Current System Time: Thu Mar 20 13:19:55 2008 Windows XP Professional Ver 5.1 Build 2600 Service Pack 2 Path: c:\Program Files\Java\jdk1.6.0_05\bin C:\tinyos\cygwin\usr\local\bin C:\tinyos\cygwin\bin C:\tinyos\cygwin\bin C:\tinyos\cygwin\usr\X11R6\bin c:\WINDOWS\system32 c:\WINDOWS c:\WINDOWS\System32\Wbem c:\Python22 c:\Program Files\PC-Doctor for Windows\ c:\Program Files\WinZip c:\Program Files\Microsoft SQL Server\90\Tools\binn\ c:\tinyos\ATT\Graphviz\bin c:\Documents and Settings\Neil\My Documents\N\Bin\UTIL C:\tinyos\cygwin\usr\local\mspgcc\bin Output from C:\tinyos\cygwin\bin\id.exe (nontsec) UID: 1011(Neil) GID: 513(None) 513(None) Output from C:\tinyos\cygwin\bin\id.exe (ntsec) UID: 1011(Neil) GID: 513(None) 0(root) 513(None) 544(Administrators) 545(Users) SysDir: C:\WINDOWS\system32 WinDir: C:\WINDOWS HOME = `C:\tinyos\cygwin\home\Neil' MAKE_MODE = `unix' PWD = `/opt/tinyos-1.x/apps/TestSnooze' USER = `Neil' Use `-r' to scan registry c: hd NTFS 183632Mb 43% CP CS UN PA FC PRESARIO d: hd NTFS 183632Mb 75% CP CS UN PA FC start1 e: hd FAT32 7125Mb 58% CP UN PRESARIO_RP f: hd FAT32 6983Mb 59% CP UN PRESARIO_RP g: cd N/A N/A h: fd N/A N/A i: fd N/A N/A j: fd N/A N/A k: fd N/A N/A C:\tinyos\cygwin / system binmode C:\tinyos\cygwin/bin /usr/bin system binmode C:\tinyos\cygwin/lib /usr/lib system binmode . /cygdrive system binmode,cygdrive Found: C:\tinyos\cygwin\bin\awk.exe Found: C:\tinyos\cygwin\bin\bash.exe Found: C:\tinyos\cygwin\bin\cat.exe Found: C:\tinyos\cygwin\bin\cp.exe Found: C:\tinyos\cygwin\bin\cpp.exe Found: C:\tinyos\cygwin\bin\find.exe Found: C:\tinyos\cygwin\bin\gcc.exe Found: C:\tinyos\cygwin\bin\gdb.exe Found: C:\tinyos\cygwin\bin\grep.exe Found: C:\tinyos\cygwin\bin\ld.exe Found: C:\tinyos\cygwin\bin\ls.exe Found: C:\tinyos\cygwin\bin\make.exe Found: C:\tinyos\cygwin\bin\mv.exe Found: C:\tinyos\cygwin\bin\rm.exe Found: C:\tinyos\cygwin\bin\sed.exe Found: C:\tinyos\cygwin\bin\sh.exe Found: C:\tinyos\cygwin\bin\tar.exe 55k 2004/09/14 C:\tinyos\cygwin\bin\cygbz2-1.dll 18k 2004/07/06 C:\tinyos\cygwin\bin\cygcharset-1.dll 7k 2003/10/19 C:\tinyos\cygwin\bin\cygcrypt-0.dll 839k 2004/09/27 C:\tinyos\cygwin\bin\cygcrypto-0.9.7.dll 22k 2004/02/10 C:\tinyos\cygwin\bin\cygcygipc-2.dll 895k 2004/04/28 C:\tinyos\cygwin\bin\cygdb-4.2.dll 1156k 2004/04/28 C:\tinyos\cygwin\bin\cygdb_cxx-4.2.dll 174k 2004/10/14 C:\tinyos\cygwin\bin\cygexpat-0.dll 40k 2004/10/10 C:\tinyos\cygwin\bin\cygform-8.dll 45k 2001/04/25 C:\tinyos\cygwin\bin\cygform5.dll 35k 2002/01/09 C:\tinyos\cygwin\bin\cygform6.dll 48k 2003/08/09 C:\tinyos\cygwin\bin\cygform7.dll 28k 2003/07/20 C:\tinyos\cygwin\bin\cyggdbm-3.dll 30k 2003/08/11 C:\tinyos\cygwin\bin\cyggdbm-4.dll 19k 2003/03/22 C:\tinyos\cygwin\bin\cyggdbm.dll 15k 2003/07/20 C:\tinyos\cygwin\bin\cyggdbm_compat-3.dll 15k 2003/08/11 C:\tinyos\cygwin\bin\cyggdbm_compat-4.dll 107k 2004/07/06 C:\tinyos\cygwin\bin\cyggettextlib-0-14-1.dll 17k 2004/07/06 C:\tinyos\cygwin\bin\cyggettextpo-0.dll 190k 2004/07/06 C:\tinyos\cygwin\bin\cyggettextsrc-0-14-1.dll 17k 2001/06/28 C:\tinyos\cygwin\bin\cyghistory4.dll 29k 2003/08/10 C:\tinyos\cygwin\bin\cyghistory5.dll 25k 2004/10/12 C:\tinyos\cygwin\bin\cyghistory6.dll 991k 2004/07/06 C:\tinyos\cygwin\bin\cygiconv-2.dll 22k 2001/12/13 C:\tinyos\cygwin\bin\cygintl-1.dll 37k 2003/08/10 C:\tinyos\cygwin\bin\cygintl-2.dll 54k 2004/07/06 C:\tinyos\cygwin\bin\cygintl-3.dll 144k 2004/08/29 C:\tinyos\cygwin\bin\cygmagic-1.dll 22k 2004/10/10 C:\tinyos\cygwin\bin\cygmenu-8.dll 26k 2001/04/25 C:\tinyos\cygwin\bin\cygmenu5.dll 20k 2002/01/09 C:\tinyos\cygwin\bin\cygmenu6.dll 29k 2003/08/09 C:\tinyos\cygwin\bin\cygmenu7.dll 21k 2004/10/22 C:\tinyos\cygwin\bin\cygminires.dll 74k 2004/10/10 C:\tinyos\cygwin\bin\cygncurses++-8.dll 156k 2001/04/25 C:\tinyos\cygwin\bin\cygncurses++5.dll 175k 2002/01/09 C:\tinyos\cygwin\bin\cygncurses++6.dll 216k 2004/10/10 C:\tinyos\cygwin\bin\cygncurses-8.dll 226k 2001/04/25 C:\tinyos\cygwin\bin\cygncurses5.dll 202k 2002/01/09 C:\tinyos\cygwin\bin\cygncurses6.dll 224k 2003/08/09 C:\tinyos\cygwin\bin\cygncurses7.dll 13k 2004/10/10 C:\tinyos\cygwin\bin\cygpanel-8.dll 15k 2001/04/25 C:\tinyos\cygwin\bin\cygpanel5.dll 12k 2002/01/09 C:\tinyos\cygwin\bin\cygpanel6.dll 19k 2003/08/09 C:\tinyos\cygwin\bin\cygpanel7.dll 62k 2003/12/11 C:\tinyos\cygwin\bin\cygpcre-0.dll 63k 2003/04/11 C:\tinyos\cygwin\bin\cygpcre.dll 9k 2003/12/11 C:\tinyos\cygwin\bin\cygpcreposix-0.dll 61k 2003/04/11 C:\tinyos\cygwin\bin\cygpcreposix.dll 1061k 2004/08/19 C:\tinyos\cygwin\bin\cygperl5_8_5.dll 22k 2002/06/09 C:\tinyos\cygwin\bin\cygpopt-0.dll 108k 2001/06/28 C:\tinyos\cygwin\bin\cygreadline4.dll 148k 2003/08/10 C:\tinyos\cygwin\bin\cygreadline5.dll 144k 2004/10/12 C:\tinyos\cygwin\bin\cygreadline6.dll 170k 2004/09/27 C:\tinyos\cygwin\bin\cygssl-0.9.7.dll 62k 2004/10/10 C:\tinyos\cygwin\bin\cygz.dll 1114k 2004/11/10 C:\tinyos\cygwin\bin\cygwin1.dll Cygwin DLL version info: DLL version: 1.5.12 DLL epoch: 19 DLL bad signal mask: 19005 DLL old termios: 5 DLL malloc env: 28 API major: 0 API minor: 116 Shared data: 4 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: Wed Nov 10 08:34:47 EST 2004 Shared id: cygwin1S4 Cygwin Package Information Package Version _update-info-dir 00230-1 ash 20040127-1 autoconf 2.59-1 autoconf-devel 2.59-1 autoconf-stable 2.13-5 automake 1.7.9-1 automake-devel 1.9.2-1 automake-stable 1.4p6-2 base-files 3.1-4 base-passwd 2.1-1 bash 2.05b-16 binutils 20040725-2 bison 20030307-1 bzip2 1.0.2-6 crypt 1.1-1 ctags 5.5-4 cvs 1.11.17-1 cygipc 2.03-2 cygrunsrv 1.0-1 cygutils 1.2.5-1 cygwin 1.5.12-1 diffutils 2.8.7-1 editrights 1.01-1 emacs 21.2-13 expat 1.95.8-1 file 4.10-1 fileutils 4.1-2 findutils 4.1.7-4 flex 2.5.4a-3 gawk 3.1.4-3 gcc 3.3.3-3 gcc-core 3.3.3-3 gcc-g++ 3.3.3-3 gcc-mingw 20040810-1 gcc-mingw-core 20040810-1 gcc-mingw-g++ 20040810-1 gdb 20030919-1 gdbm 1.8.3-7 gettext 0.14.1-1 gperf 2.7.2-1 grep 2.5-1 groff 1.18.1-2 gzip 1.3.5-1 less 381-1 libbz2_1 1.0.2-6 libcharset1 1.9.2-1 libdb4.2 4.2.52-1 libgdbm 1.8.0-5 libgdbm-devel 1.8.3-7 libgdbm3 1.8.3-3 libgdbm4 1.8.3-7 libgettextpo0 0.14.1-1 libiconv 1.9.2-1 libiconv2 1.9.2-1 libintl1 0.10.40-1 libintl2 0.12.1-3 libintl3 0.14.1-1 libncurses5 5.2-1 libncurses6 5.2-8 libncurses7 5.3-4 libncurses8 5.4-1 libpcre 4.1-1 libpcre0 4.5-1 libpopt0 1.6.4-4 libreadline4 4.1-2 libreadline5 4.3-5 libreadline6 5.0-1 login 1.9-7 m4 1.4.2-1 make 3.80-1 man 1.5o-1 mingw-runtime 3.5-1 minires 1.00-1 mktemp 1.5-3 more 2.11o-1 nano 1.2.2-1 ncurses 5.4-1 openssh 3.9p1-2 openssl 0.9.7d-2 patch 2.5.8-8 patchutils 0.2.30pre1-1 perl 5.8.5-3 perl_manpages 5.8.5-3 postgresql 7.4.5-1 python 2.3.4-2 rcs 5.7-3 readline 5.0-1 rpm 4.1-1 rpm-build 4.1-1 rpm-doc 4.1-1 rxvt 2.7.10-4 sed 4.1.2-1 sh-utils 2.0.15-4 tar 1.13.25-5 tcltk 20030901-1 tcsh 6.13.00-2 termcap 20021106-2 terminfo 5.4_20041009-1 texinfo 4.2-4 textutils 2.0.21-1 time 1.7-1 unzip 5.50-5 vim 6.3-1 w32api 3.1-1 wget 1.9.1-1 which 1.5-2 zip 2.3-6 zlib 1.2.2-1 Use -h to see help about each section [EMAIL PROTECTED] /opt/tinyos-1.x/apps/TestSnooze $ -----Message----- Janos Sallai sallai at isis.vanderbilt.edu Thu Mar 20 11:19:39 PDT 2008 It's a good practice to upgrade cygwin to the latest release when you upgrade from T1 to T2. Newer versions of the cygwin.dll are backwards compatible with the older ones, so the incompatibility issues you're facing would go away. Also, always make sure that you have only one cygwin tree installed on your computer, otherwise things can (and will) break... Janos -----Original Message----- From: Neil Hancock [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2008 10:58 AM To: '[email protected]' Subject: TinyOS 2.0 upgrade Hi All I'm wondering if anybody else has had problems upgrading from TinyOS 1.1.15 - and I can't find any recent suggestions on this topic in the archives. I've been running with the latest cygwin based environment from the pre-2.0 and which has been stable for the last 2+ years. I have a well beaten up windows workstation XP PROF with the latest updates and a laptop with Vista Business .. I followed the Cygwin Tutorial instructions on upgrading http://www.tinyos.net/tinyos-2.x/doc/html/upgrade-tinyos.html - when it came to install the tinyos-tools-1.2.4-2.cygwin.i386.rpm I got Giveio-install.exe complaining about "entry point_getreent could not be located in the dll cygwin1.dll" . I reinstalled the reference cygwin a couple of times and couldn't get past this - something really wrong in my setup that the install isn't fixing. So then I attempted a clean install of the reference tools - renaming my old c:\tinyos\cygwin and letting it build c:\tinyos\cygwin\... tool chain. So now I have TinyOs 2.0 tools. On adding my TinyOs tree (1.1.15) and knitting it into the tools it then started to compile my tree, hurrah .. but ended up with Nesc1.exe - Entry Point Not Found " The procedure entry point basename could not be located in the dll cygwn1.dll By this time - I'd taken at least 8 hours to get here. So is anybody using the Cygwin tools as per the tutorial.? Any suggestions as to where I should start. Is this supported under windows Vista. I tried to put an environment on my Vista portable a couple of months ago, and Cygwin didn't want to run on it from what I remember. So I tried the UbunTos route - thanks for Kevin Klueska 's good instructions and setting up the basic model - and after another 4 hours managed to get 2.0 App Blink to compile - Vmware/XP Prof and VmPlayer/Vista Business- but the environment isn't connected in with Windows - and I'm going to have trouble with the Windows tool chain - so I'm not seeing this as a viable option. So know I've downgraded my XP workstation (switched out my directories) back to the one where I rebuilt to the recommended Cygwin - and been running this for a week. Whats interesting is that it fails after about 20 compiles - kaput, does something weird, and requires a windows reboot. This has happened about 5 times in the last week . So the recommended Cygwin environment supplied is slightly different and less stable than the environment derived from following the Tinyos 1.1.15 upgrade path. Many thanks for any help Neil Hancock _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
