Re: cygwin1.dll and cygstdc++-6.dll account for over 70% of application runtime cost
Thanks Corinna. My application does not explicitly use XSI IPC functions. It's an ordinary C++ application compiled with gcc. BTW, are ZN4muto7releaseEP7_cygtls and ZN4muto7acquireEm also XSI function? Regards, - Olumide -- 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: cygwin1.dll and cygstdc++-6.dll account for over 70% of application runtime cost
On 18/11/2014 00:45, Olumide wrote: According to the AMD CodeXL profiler, the modules cygwin1.dll and cygstdc++-6.dll account for 65.67% and 5.13% respectively of the runtime of my code. The breakdown is shown below: Reposting breakdown (hopefully will be less mangled this time) FunctionModule Timer samples Timer samples percent shmat cygwin1.dll 36357 37.7186 ZN4muto7releaseEP7_cygtls cygwin1.dll 19539 20.2708 ZN4muto7acquireEm cygwin1.dll 16843 17.4738 memmove cygwin1.dll 7906 8.2021 operator new(unsigned int) cygstdc++-6.dll 6470 6.71231 dlfree cygwin1.dll 3350 3.47546 dlmalloccygwin1.dll 2519 2.61334 malloc cygwin1.dll 1159 1.20241 freecygwin1.dll 7990.828924 _gcclibcxx_demangle_callbackcygstdc++-6.dll 2770.287374 __wrap__ZdlPv cygwin1.dll 2600.269738 __wrap__Znwjcygwin1.dll 2390.247951 operator delete(void*) cygstdc++-6.dll 2360.244839 malloc cygwin1.dll 2160.22409 freecygwin1.dll 2130.220977 tmalloc_small(malloc_state*,..) cygwin1.dll 7 0.00726216 -- 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
cygwin1.dll and cygstdc++-6.dll account for over 70% of application runtime cost
According to the AMD CodeXL profiler, the modules cygwin1.dll and cygstdc++-6.dll account for 65.67% and 5.13% respectively of the runtime of my code. The breakdown is shown below: Function ModuleTimer samples Timer samples percent shmat cygwin1.dll36357 37.7186 ZN4muto7releaseEP7_cygtls cygwin1.dll19539 20.2708 ZN4muto7acquireEm cygwin1.dll16843 17.4738 memmove cygwin1.dll7906 8.2021 operator new(unsigned int)cygstdc++-6.dll6470 6.71231 dlfreecygwin1.dll3350 3.47546 dlmalloc cygwin1.dll2519 2.61334 malloccygwin1.dll1159 1.20241 free cygwin1.dll799 0.828924 _gcclibcxx_demangle_callback cygstdc++-6.dll277 0.287374 __wrap__ZdlPv cygwin1.dll260 0.269738 __wrap__Znwj cygwin1.dll239 0.247951 operator delete(void*)cygstdc++-6.dll236 0.244839 malloccygwin1.dll216 0.22409 free cygwin1.dll213 0.220977 tmalloc_small(malloc_state*,..) cygwin1.dll7 0.00726216 As the the performance bottlenecks are shmat, ZN4muto7releaseEP7_cygtls and ZN4muto7acquireEm. What do these functions do? I cannot find any information about them online. More importantly how might I prevent these functions from being called? My guess is that the latter two are are lock/unlocking functions associated with memory requests (my guess would be the stack, because there are fewer timer samples associated with malloc/free etc. Thanks, - Olumide If it matters, my (C++) application is recursive and contains -- 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
Displaying extended ASCII characters in output of octal dump as hexadecimal
When I run octal dump (od) I notice that extended ASCII characters are displayed incorrectly as ordinary characters. For example, the extended characters 191, 196, and 218 are displayed as '?' , 'D' and 'Z' respectively. I thought od was 'anding' the each character with 127, but I've been informed that this because my shell/terminal is not configured to display non-ASCII characters. How can I configure Cygwin to display extended characters as in hexadecimal format? Thanks - Olumide -- 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
Compilation error: error: ‘glDeleteVertexArrays’ was not declared in this scope
I'm trying to compile a graphics library (NGL, http://nccastaff.bournemouth.ac.uk/jmacey/GraphicsLib/index.html), with OpenGL dependencies. in the Cygwin environment but I'm getting the error message, ‘glDeleteVertexArrays’ was not declared in this scope What might the reason for this error? Thanks, - Olumide -- 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: Is it okay to delete Cygwin (mirror) download directories?
On 5/8/2011 7:23 AM, Jens Schweikhardt wrote: On Sun, May 08, 2011 at 01:32:12AM +0100, Olumide wrote: ... # Now I'm running out of HD space I'm looking to reclaim some of that # space. Is it okay to delete some or all of these directories? I'm # concerned that the Cygwin setup program uses one of these folders to # determine what programs I've currently got installed. That's recorded in /etc/setup/installed.db which you can inspect with a text editor. Thanks! (reaches for the delete key ...) -- 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
Is it okay to delete Cygwin (mirror) download directories?
Hi - Over the years I've updated my gotten my Cygwin fix from a number of mirrors each one of which has left a massive download directory (in excess of 700Mb) on my hard disk. For example: ftp%3a%2f%2flinux.rz.ruhr-uni-bochum.de%2fcygwin http%3a%2f%2fftp.uni-kl.de%2fpub%2fwindows%2fcygwin%2f http%3a%2f%2fftp.gwdg.de%2fpub%2flinux%2fsources.redhat.com%2fcygwin%2f Now I'm running out of HD space I'm looking to reclaim some of that space. Is it okay to delete some or all of these directories? I'm concerned that the Cygwin setup program uses one of these folders to determine what programs I've currently got installed. Thanks, - Olumide -- 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
Populating pkg-config database (PKG_CONFIG_PATH)
I'm trying to update my pkg-config database(?). I've tried export PKG_CONFIG_PATH=/lib/pkgconfig/ but pkg-config.exe --list-all returns nothing. I need this in order to compile a program. I'm currently getting the error: checking for GTK version... Package gtk+-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `gtk+-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'gtk+-2.0' found configure: error: you probably don't have GTK installed See `config.log' for more details. Thanks - Olumide -- 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 commands in the Windows command line
Hi - I've noticed for sometime that Cygwin commands such as "ps" and "ls" (now) work in the Windows command line (cmd), and I'm not sure if its because something extra I installed on/did to my machine. (In fact, the command "pwd", when run in the cmd, shows a Cygwin path like /cygdrive/c/Documents and Settings/my_name.) Is this as a result of tighter integration of Cygwin with cmd? Background to this question: I'm helping someone build a library whose Makefile calls Visual Studio's link command, and I find that its best to run the makefile the Visual Studio command prompt. Thanks, - Olumide -- 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: Convert Cygwin .a library to Windows .lib
I'm aware this question has been asked before (I googled), but found no satisfactory answer. I've just compiled a Unix library (to *.a) in Cygwin and I would like to convert it into a .lib file that I can link with the Visual Studio toolchain. Have you tried to rename it? I'm aware of that option, but I'm also aware that ABI incompatibilities between gcc and Windows(?) mean that is not the always the right approach. -- 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/
Convert Cygwin .a library to Windows .lib
Hello, I'm aware this question has been asked before (I googled), but found no satisfactory answer. I've just compiled a Unix library (to *.a) in Cygwin and I would like to convert it into a .lib file that I can link with the Visual Studio toolchain. Thanks, - Olumide -- 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: Using Cygwin compiled libs in Visual Studio
I guess what I find surprising is that gcc can be used to produce Windows XP runnable code. Here's a typical compilation command generated by the build process: ... Why is this surprising? Cygwin *is* Windows XP runnable code. Is it? Pardon my n00bness but I recall once trying to run a Cygwin utility from Window's cmd, just for the fun of it. It didn't work. But back to the main question: will a library compiled under Cygwin in the manner I described be linkable in Visual Studio .NET? Your answer taken to the extreme, would suggest that I can link any of the core Cygwin (*.a) libraries and link it with the MS VS.NET toolchain. Thanks for not flaming. -- 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: Using Cygwin compiled libs in Visual Studio
Is it possible or recommended to use a Cygwin compiled lib file or dll in Visual studio? The problem is that although I'm doing my development in Visual Studio, a number of the sources I intend to use have Cygwin makefiles but no Visual studio projects. ... You're probably more interested in the MinGW project . It uses MS's CRT, which will likely make your intended melding easier. Thanks, but manual recommends Cygwin for compiling the library Goto BLAS (http://www.tacc.utexas.edu/resources/software/#blas) for the Windows XP/2000 environments. I'm a bit surprised that the build process uses the GNU compiler to build the library (which by the way has a *.a file extension). Other than linking the library in a Win32 application (trial and see method), how can I verify if the library produced is a Win32 linkable library? I guess what I find surprising is that gcc can be used to produce Windows XP runnable code. Here's a typical compilation command generated by the build process: gcc -c -O2 -D_GNU_SOURCE -DWINDOWS_ABI -Wall -m32 -DF_INTERFACE_F2C -DNEED_F2CCO NV -DMAX_CPU_NUMBER=2 -DNUM_BUFFERS=\(2*2\) -DASMNAME=_cpotri -DASMFNAME=_cpotri _ -DNAME=cpotri_ -DCNAME=cpotri -DFUNDERSCORE=_ -DNEEDFUNDERSCORE -DBUNDERSCORE=_ -DNEEDBUNDERSCORE -I../.. -DARCH_X86 -DPENTIUMM -DL1_CODE_SIZE=32768 -DL1_CODE_ASSOCIATIVE=8 -DL1_CODE_LINESIZE=64 -DL1_DATA_SIZE=32768 -DL1_DATA_ASSOCIATIVE=8 -DL1_DATA_LINESIZE=64 -DL2_SIZE=1048576 -DL2_ASSOCIATIVE=8 -DL2_LINESIZE=64 -DITB_SIZE=4096 -DITB_ASSOCIATIVE=4 -DITB_ENTRIES=128 -DDTB_SIZE=4096 -DDTB_ASSOCIATIVE=4 -DDTB_ENTRIES=128 -DHAVE_CMOV -DHAVE_MMX -DHAVE_SSE -DHAVE_SSE2 -DHAVE_CFLUSH -DNUM_SHAREDCACHE=1 -DNUM_CORES=1 -DCORE_BANIAS -DCOMPLEX -UDOUBLE zpotri.c -o cpotri.o Thanks. -- 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/
Using Cygwin compiled libs in Visual Studio
Hello, Is it possible or recommended to use a Cygwin compiled lib file or dll in Visual studio? The problem is that although I'm doing my development in Visual Studio, a number of the sources I intend to use have Cygwin makefiles but no Visual studio projects. Thanks, - Olumide -- 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: mcshield.exe hangs update installation
Larry Hall (Cygwin) wrote: The best solution would be to uninstall McAfee (I'm serious!) But if you don't want to do that, try disabling real-time scanning. I did it differently. I "asked" McAfee to consider setup.exe a low risk process :-) . -- 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/
mcshield.exe hangs update installation
Hi - I've got the version 1.5.23 of cygwin (downloaded from http://linux.rz.ruhr-uni-bochum.de/download/cygwin ) and I'm trying to update my installation. The older setup executable (setup.exe) that I have recommends that I download a new version if I have trouble installing -- which happens to be the case. The installer stops running after a few seconds and appears to hang (no page faults), while mcshield.exe takes 100% of the CPU. So I download the new setup.exe, and I try running it, but again mcshield.exe seizes the CPU :( I've searched the net and found what looks like a workaround (here http://www.cygwin.com/ml/cygwin/2000-04/msg00657.html) but I would like to know if there is a better solution. Thanks, - Olumide -- 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/
Linker Error: cannot find -lGL [in Cygwin]
Hi - I'm sure theres' a straightforward answer to this question. I'm trying to link an object file (main.o) with the OpenGL libraries but I'm getting the following error: $ g++ main.o -lglut -lGL -lGLU -o demo /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lGL collect2: ld returned 1 exit status Which is quite surprising because I only just reinstalled the latest version of Cygwin (all of it). What am I not doing right? Thanks, - Olumide -- 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: kpathsea problem in Cygwin (noob here)
Olumide wrote: I actually did the impossible and looked at the document (gasp ;) ). Theres a mktexlsr script (in /usr/bin) that fixes the problems. But there are a few ls-R files all over the filesyetem that require write permissions before the mktexlsr can write to them. For posterity's sake: $ mktexlsr mktexlsr: Updating /cygdrive/h/.texmf/config/ls-R... mktexlsr: Updating /cygdrive/h/.texmf/var/ls-R... mktexlsr: Updating /usr/share/lilypond/2.4.3/ls-R... mktexlsr: Updating /usr/share/texmf/ls-R... mktexlsr: Updating /var/cache/fonts/ls-R... mktexlsr: Updating /var/lib/texmf/ls-R... mktexlsr: Done. :D -- 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: kpathsea problem in Cygwin (noob here)
Olumide wrote: I typed 'texdoc kpathsea' and the kpathsea Library (DVI document, 60 pages) popped up, but I still dont know what to do. I actually did the impossible and looked at the document (gasp ;) ). Theres a mktexlsr script (in /usr/bin) that fixes the problems. But there are a few ls-R files all over the filesyetem that require write permissions before the mktexlsr can write to them. -- 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: kpathsea problem in Cygwin (noob here)
Larry Hall wrote: At 03:15 PM 9/21/2005, you wrote: Looks like there are no usable entries in /var/cache/fonts/ls-R. If I were you, I would see the manual for how to generate ls-R. Which manual is that? Try 'info kpathsea'. I typed 'texdoc kpathsea' and the kpathsea Library (DVI document, 60 pages) popped up, but I still dont know what to do. Thanks for not flaming me ;) -- 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: kpathsea problem in Cygwin (noob here)
Larry Hall wrote: At 03:15 PM 9/21/2005, you wrote: Looks like there are no usable entries in /var/cache/fonts/ls-R. If I were you, I would see the manual for how to generate ls-R. Which manual is that? Try 'info kpathsea'. Sorry, nothing :( -- 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: kpathsea problem in Cygwin (noob here)
BTW, one possible reason might be that the perms got messed up and the postinstall script couldn't write to the file. Take a look at http://www.cygwin.com/ml/cygwin/2004-03/msg00454.html and check the user/group names and privs on that file. The file ls-R is empty (zero bytes) and read only. (Help!) -- 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: kpathsea problem in Cygwin (noob here)
Looks like there are no usable entries in /var/cache/fonts/ls-R. If I were you, I would see the manual for how to generate ls-R. Which manual is that? -- 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/
kpathsea problem in Cygwin (noob here)
Hi - Whenever I start up Cygwin (on my WinXP machine) I get the following error messages: warning: kpathsea: No usable entries in /var/cache/fonts/ls-R warning: kpathsea: See the manual for how to generate ls-R. warning: kpathsea: No usable entries in /var/cache/fonts/ls-r warning: kpathsea: See the manual for how to generate ls-R. What can I do about it? I think its affecting my LaTeX builds Thanks - Olumide -- 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: Creating superuser (root) in Cygwin
Ok, ok. Those who know more than I do. Today. I'm trying to compile and install kalarm, which I have downloaded and decompressed. Now the instructions go as follows: cd kalarm-1.1.6 ./configure make [ Log in as root ] <- !!! HOW !!! cd /path/kalarm-1.1.6 make install My question is. How does a Cygwin user (without a root account) get round this kidda problem? Please resist the urge to flame. (Some of us are just new, that's all.) Thanks, - Olumide - -- 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: Creating superuser (root) in Cygwin
You cannot just create a superuser in cygwin because cygwin is a translation layer for UNIX applications. Cygwin is not actual UNIX and there are limitations. Basically cygwin is using the host machine's security model rather than unix's own native security model and porting is not straight forward for some applications. It is even worse when it comes to WIndows 9x than with Windows NT where as 9x has no security model of its own (that I am aware about). The passwd and group files are there for compatibility and allows some applications to work. At least that is my understanding. Thanks Robert. I'm on WindowsXP and I'm trying to run sudo (http://www.courtesan.com/sudo/) what do you think I should do. -- 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: Creating superuser (root) in Cygwin
Based on the above statements, it seems you don't understand the differences in the security model between Unix-based platforms and Windows NT-based platforms. Why is this the answer that's always offered whenever someone asks this question? Some of us do know what we are talking about. Does anyone know how to create a superuser account in Cygwin please. Thanks, Olumide -- 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/
Creating superuser (root) in Cygwin
Hi, I need to create or access a superuser account in Cygwin. The problem is that I'm trying to compile sudo (http://www.courtesan.com/sudo/) and unfortunately, I need superuser privilegdes to install or run the program, or even edit its configuration files. Again, I'm writing a multithreaded program that needs to raise the priority of certain threads. The thread library function that does this again requires superuser priviledges to run. These are just two of the problems I've encountered lately. I really need to create a root account in Cygwin. Thanks Olumide -- 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/