Cygwin setup: DL rate should show as kB/s not kb/s ?
or maybe KB/s for kilobytes/sec ? Bill Meier -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Cygwin setup: DL rate should show as kB/s not kb/s ?
Gary R. Van Sickle worldnet.att.net> writes: > > > From: Bill Meier > > or maybe KB/s for kilobytes/sec ? > > > > It should be an option, but that begs an "Options..." dialog, which doesn't > exist. > Unfortunately I didn't express myself clearly in my original message. The numeric DLL rate shown by the Cygwin setup program is actually in units of K Bytes/sec and thus either kB/s or KB/s should be used as the text following the numeric rate. Looking at the code I also note that maybe the 2nd sprintf should be changed to use %03.1f to be consistent with the 1st sprintf ... Bill Meier = >From geturl.cc static void progress (int bytes) { if (is_local_install) return; static char buf[100]; double kbps; kbps = ((double)bytes) / (double)(tics - start_tics); if (max_bytes > 0) { int perc = (int)(100.0 * ((double)bytes) / (double)max_bytes); Progress.SetBar1(bytes, max_bytes); sprintf (buf, "%d %% (%dk/%dk) %03.1f kb/s", perc, bytes / 1000, max_bytes / 1000, kbps); if (total_download_bytes > 0) Progress.SetBar2(total_download_bytes_sofar + bytes, total_download_bytes); } else sprintf (buf, "%d %2.1f kb/s", bytes, kbps); Progress.SetText3(buf); } -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Bug: "grep -P" crash when grepping a file containing a byte 0xF5
Hi: I recently noticed that cygwin 'grep -P' crashes when grepping over a file which contains a byte 0xF5. $ od -t x1 tfx.txt 000 f5 001 $ grep -P "a" tfx.txt Aborted (core dumped) $ grep -E "a" tfx.txt $ Cygwin Configuration Diagnostics Current System Time: Sat Jan 18 15:46:23 2014 Windows 7 Ultimate Ver 6.1 Build 7601 Service Pack 1 Path: C:\cygwin\bin C:\Windows\system32 C:\Windows C:\progra~1\system C:\progra~1\SlikSvn\bin Output from C:\cygwin\bin\id.exe UID: 1004(wmeier) GID: 513(None) 513(None) 545(Users) SysDir: C:\Windows\system32 WinDir: C:\Windows PWD = '/cygdrive/c/Users/wmeier' CYGWIN = 'nodosfilewarning' HOME = '/home/wmeier' wmroot = 'c:\Users\wmeier' HOMEPATH = '\Users\wmeier' APPDATA = 'C:\Users\wmeier\AppData\Roaming' TERM = 'cygwin' PROCESSOR_IDENTIFIER = 'x86 Family 6 Model 15 Stepping 13, GenuineIntel' WINDIR = 'C:\Windows' PUBLIC = 'C:\Users\Public' USERDOMAIN = '...' [[obscured]] OS = 'Windows_NT' ALLUSERSPROFILE = 'C:\ProgramData' !:: = '::\' TEMP = '/cygdrive/c/Users/wmeier/AppData/Local/Temp' COMMONPROGRAMFILES = 'C:\Program Files\Common Files' configsetroot = 'C:\Windows\ConfigSetRoot' QTJAVA = 'C:\Program Files\Java\jre7\lib\ext\QTJava.zip' USERNAME = 'wmeier' PROCESSOR_LEVEL = '6' include = ' ' PSModulePath = 'C:\Windows\system32\WindowsPowerShell\v1.0\Modules\' FP_NO_HOST_CHECK = 'NO' SYSTEMDRIVE = 'C:' PATH_WIN = 'C:\Windows\system32;C:\Windows;c:\progra~1\system;c:\progra~1\SlikSvn\bin;' USERPROFILE = 'C:\Users\wmeier' LANG = 'en_US.UTF-8' LOGONSERVER = '\\...' [[obscured]] PROCESSOR_ARCHITECTURE = 'x86' LOCALAPPDATA = 'C:\Users\wmeier\AppData\Local' ProgramData = 'C:\ProgramData' SHLVL = '1' PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC' HOMEDRIVE = 'C:' GREP_OPTIONS = '--color=auto' PROMPT = '$$' COMSPEC = 'C:\Windows\system32\cmd.exe' TMP = '/cygdrive/c/Users/wmeier/AppData/Local/Temp' SYSTEMROOT = 'C:\Windows' PROCESSOR_REVISION = '0f0d' lib = ' ' PROGRAMFILES = 'C:\Program Files' NUMBER_OF_PROCESSORS = '2' SESSIONNAME = 'Console' COMPUTERNAME = '...' [[Obscured]] !ExitCode = '' _ = '/usr/bin/cygcheck' HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options HKEY_CURRENT_USER\Software\Cygwin HKEY_CURRENT_USER\Software\Cygwin\Installations (default) = '\??\C:\cygwin' HKEY_CURRENT_USER\Software\Cygwin\Program Options HKEY_CURRENT_USER\Software\Cygwin\setup HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\Cygnus Solutions\Cygwin HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2 (default) = 0x0022 cygdrive prefix = '/cygdrive' HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/ (default) = 0x000a native = 'C:\cygwin' HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin (default) = 0x000a native = 'C:\cygwin/bin' HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib (default) = 0x000a native = 'C:\cygwin/lib' HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\Cygwin HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\Cygwin\Installations (default) = '\??\c:\cygwin' 855c65b694f05462 = '' 4a523e6bb9c68204 = '\??' 62c87ee6465d2a02 = '\??' HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\Cygwin\Program Options HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\Cygwin\setup (default) = 'C:\cygwin' HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2 (default) = 0x0022 cygdrive prefix = '/cygdrive' HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/ (default) = 0x000a native = 'C:\cygwin' HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin (default) = 0x000a native = 'C:\cygwin/bin' HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib (default) = 0x000a native = 'C:\cygwin/lib' HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\Installations (default) = '\??\c:\cygwin' 855c65b694f05462 = '' 4a523e6bb9c68204 = '\??' 62c87ee6465d2a02 = '\??' HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\Program Options HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\setup (default) = 'C:\cygwin' obcaseinsensitive set to 1 Cygwin installations found in the registry: System: Key: c5e39b7a9d22bafb Path: c:\cygwin User: Key: c5e39b7a9d22bafb Path: C:\cygwin c: hd NTFS183159Mb 71% CP CS UN PA FC d: fd N/AN/A
cygwin crash: 'assertion "root_idx != -1" failed ...' reliably reproduced on my system
From time to time I've been getting 'assertion "root_idx != -1" failed ...' cygwin crashes. (I think the crashes started after I upgraded cygwin to 1.7...). I finally decided to see if I could reliably reproduce the crash. I've found that if I run a command as follows simultaneously in 2 separate 'cmd' windows that cygwin will reliably crash. W1: for /L %i in (1,1,1000) do @touch t1/foo%i W2: for /L %i in (1,1,1000) do @touch t2/foo%i (The t1 and t2 directories are empty before doing the above). One of the 'cmd' windows will show an 'assertion "root_idx != -1" failed ...' message and will be "dead". The other 'cmd' window will just be "dead". I tried running a similar command simultaneously in two bash windows; the crash did not happen for the several retries that I did. -- C:\users\wmeier> for /L %i in (1,1,1000) do @touch t2/foo%i assertion "root_idx != -1" failed: file "/ext/build/netrel/src/cygwin-1.7.1-1/winsup/cygwin/mount.cc", line 363, functio n: void mount_info::init() Stack trace: Frame Function Args 00229984 7648F003 (0030, EA60, , 00229AA8) 00229998 7648EFB2 (0030, EA60, 00A4, 00229A8C) 00229AA8 610BADB3 (, 0030, 00229AC8, ) 00229B88 610B7A37 (, , , ) 00229BD8 610B7E4B (2EB4, 00229C00, 00229C14, 00229C14) 00229C98 610B7F71 (2EB4, 0006, 00229CC8, 610B8015) 00229CA8 610B7FAC (0006, 0022CE88, 00229CC8, BEBA1A11) 00229CC8 610B8015 (6115D054, 61195284, 61195294, 016B) 00229CF8 6100109B (61195294, 016B, 611956EC, 61195284) 0022CD28 6107BD5D (60FD000C, 611D8798, 0040E1B4, 6106E8A9) 0022CD88 610B2AE0 (, 0022CDC0, 610066E0, 7FFD9000) -- AFAIK I'm running a pretty simple, nothing special Cygwin 1.7.1 configuration on Windows 7. See the attached cygcheck-cmd.out for the details. If there's additional information which would be useful, please let me know. Bill Meier Cygwin Configuration Diagnostics Current System Time: Sun Feb 28 14:21:17 2010 Windows 7 Home Premium Ver 6.1 Build 7600 Path: c \cygwin\bin Output from c:\cygwin\bin\id.exe UID: 1004(wmeier) GID: 513(None) 513(None) 545(Users) SysDir: C:\Windows\system32 WinDir: C:\Windows HOME = 'c:\cygwin\home\wmeier' Path = 'c:\cygwin\bin' ALLUSERSPROFILE = 'C:\ProgramData' APPDATA = 'C:\Users\wmeier\AppData\Roaming' CLASSPATH = '.;C:\Program Files\Java\jre6\lib\ext\QTJava.zip' CommonProgramFiles = 'C:\Program Files\Common Files' COMPUTERNAME = 'EWAO' ComSpec = 'C:\Windows\system32\cmd.exe' configsetroot = 'C:\Windows\ConfigSetRoot' ENV_TRACE_PRODUCT_NAME = 'Acronis True Image Home' ENV_TRACE_STORAGE_DIR = 'TrueImageHome' FP_NO_HOST_CHECK = 'NO' HOMEDRIVE = 'C:' HOMEPATH = '\Users\wmeier' LOCALAPPDATA = 'C:\Users\wmeier\AppData\Local' LOGONSERVER = '\\EWAO' NUMBER_OF_PROCESSORS = '2' OS = 'Windows_NT' PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC' PROCESSOR_ARCHITECTURE = 'x86' PROCESSOR_IDENTIFIER = 'x86 Family 6 Model 15 Stepping 13, GenuineIntel' PROCESSOR_LEVEL = '6' PROCESSOR_REVISION = '0f0d' ProgramData = 'C:\ProgramData' ProgramFiles = 'C:\Program Files' PROMPT = '$P$G' PSModulePath = 'C:\Windows\system32\WindowsPowerShell\v1.0\Modules\' PUBLIC = 'C:\Users\Public' QTJAVA = 'C:\Program Files\Java\jre6\lib\ext\QTJava.zip' RoxioCentral = 'C:\Program Files\Common Files\Roxio Shared\9.0\Roxio Central33\' SESSIONNAME = 'Console' SystemDrive = 'C:' SystemRoot = 'C:\Windows' TEMP = 'C:\Users\wmeier\AppData\Local\Temp' TMP = 'C:\Users\wmeier\AppData\Local\Temp' USERDOMAIN = 'EWAO' USERNAME = 'wmeier' USERPROFILE = 'C:\Users\wmeier' VBOX_INSTALL_PATH = 'C:\Program Files\Sun\VirtualBox\' VS90COMNTOOLS = 'C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\' windir = 'C:\Windows' HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options HKEY_CURRENT_USER\Software\Cygwin HKEY_CURRENT_USER\Software\Cygwin\Installations (default) = '\??\c:\cygwin' HKEY_CURRENT_USER\Software\Cygwin\Program Options HKEY_CURRENT_USER\Software\Cygwin\setup HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\Cygnus Solutions\Cygwin HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2 (default) = 0x0022 cygdrive pref
Re: Can't reliably redirect standard output from C# program in recent Cygwin
I've just noticed what sounds like the same issue: On Windows 7, in a 'cmd' window (at a 'cmd' prompt) doing the following fails more often than not: perl -e 'print "abc";' | \cygwin\bin\more That is: "abc" does not always display on the screen after the command is executed. I note that the problem does not seem to happen in a mintty window or in bash started from a 'cmd' window. I'm running cygwin perl 5.14 with an up-to-date cygwin. Bill Meier (I'm replying using gmane so as to keep the reply threaded not knowing how else to do this). aspell-en 7.1.0-1 OK base-cygwin 3.0-1OK base-files 4.1-1OK base-passwd 3.1-2OK bash4.1.10-4 OK binutils2.22.51-1OK bison 2.4.2-1 OK build-docbook-catalog 1.5-2OK bzip2 1.0.6-2 OK ca-certificates 1.81-1 OK coreutils 8.15-1 OK cpio2.11-1 OK crypt 1.1-1OK csih0.9.5-1 OK ctags 5.8-1OK cygrunsrv 1.40-1 OK cygutils1.4.8-1 OK cygwin 1.7.11-1 OK cygwin-doc 1.7-1OK dash0.5.7-1 OK ... patchutils 0.3.2-1 OK perl5.14.1-2 OK perl_manpages 5.10.1-5 OK ping1.0-1OK ... -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Cygwin Bash ^R ... and then left-arrow sometimes inserts control char in cmd buffer ?
Example: [Start cygwin bash in a terminal] $ asdfghjkl asdfghjkl bash: asdfghjkl: command not found [enter ^rghj] [enter left-arrow] [result after redisplay of the line is:] $ asdf[Dghjkl Similar result for right-arror (shows ...[C... ) Doesn't always happen. Load/Timing dependent ? Doesn't seem to happen with mintty (not exhaustively tested). Does happen when starting via cygwin.bat. (windows 'cmd' terminal ?) This has been happening for a while (months ?) (I've just done a cygwin update after not having done so for a while to verify that the problem exists in an up-to-date cygwin). If further info is needed, please let me know Bill Meier -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: real beginer
On 10/23/2012 10:19 AM, Andrew DeFaria wrote: On 10/23/2012 06:28 AM, Trixie wrote: I'm real beginner with cygwin, actually linux and everything related. But i need to instal and use certain fortran based program. I installed cygwin and several packages. I'm trying to call certain module and all Later on you mention that "that program" is "BigDFT <http://inac.cea.fr/L_Sim/BigDFT/>". This appears to be a package distributed in source form. So now you have get it and build it. The build instructions mention nothing about Cygwin at all. I would highly recommend you contact the developers of BigDFT and ask if they have considered porting it to Cygwin. I agree with the previous poster. Phrases like "massively parallel electronic structure code" and etc suggest this is a large complex package probably making intensive use of *nix functionality. I suspect strongly doing a port would be a *big* project. My 2c: You'd probably be *far* better off getting access to a Linux system. If you absolutely must use Windows, running the program on a Linux virtual machine under Windows might work, but I would suspect that the program may very well require "serious" hardware and might not run effectively on a virtual machine. As noted previously, the build process looks a bit complex so I'd also suggest finding someone with Linux lnowledge to build and install the system. Bill Meier -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple