Re: Request for test by users seeing 0.00 load average in spite of a busy system

2024-10-02 Thread Mark Geisert via Cygwin
On 10/2/2024 7:36 PM, Mark Geisert via Cygwin wrote: [My problem] system is running Windows 10 21H2, build 19043.2251. Oops, should have copy/pasted. It's Windows 10 Pro 21H1, build 19043.2251. ..mark -- Problem reports: https://cygwin.com/problems.html FAQ:

Re: Request for test by users seeing 0.00 load average in spite of a busy system

2024-10-02 Thread Mark Geisert via Cygwin
Hi Christian, On 10/2/2024 1:09 AM, Christian Franke via Cygwin wrote: [...] Same result on Win10 22H2 (10.0.19045.4780, i7-2600K) and Win11 23H2 (10.0.22631.4037, i7-14700K): $ ./test PdhOpenQueryW   returns PDH_CSTATUS_VALID_DATA PdhAddEnglishCounterW#1 returns PDH_CSTATUS_VALID_DATA

Request for test by users seeing 0.00 load average in spite of a busy system

2024-10-01 Thread Mark Geisert via Cygwin
Hi folks, I may have a handle on why you're seeing 0.00 load averages. Would you kindly compile the attached program, run it, and post its results along with which version of Windows you are running? For example, gcc -Wall -ggdb -o test test.c -lpdh ./test Thanks for your help, ..mark/

Re: pthread_sigqueue(): First parameter is incompatible with glibc

2024-09-12 Thread Mark Geisert via Cygwin
Hi Christian, On 9/12/2024 9:21 AM, Christian Franke via Cygwin wrote: Cygwin /usr/include/pthread.h: int pthread_sigqueue (pthread_t *, int, const union sigval); Linux /usr/include/x86_64-linux-gnu/bits/sigthread.h: extern int pthread_sigqueue (pthread_t __threadid, int __signo,    

Re: ssh broken after updating cygwin

2024-08-30 Thread Mark Geisert via Cygwin
On 8/29/2024 6:10 PM, Lee via Cygwin wrote: OK.. I didn't read the release notes. If I knew the upgrade was going to break ssh I wouldn't have upgraded, but hopefully there's a work-around besides downgrading. This used to work: $ ssh 10.10.2.4 /home/Lee/.ssh/config line 22: Bad key types '+ssh

Re: How to repair the symlinks in a copied cygwin64 tree

2024-08-07 Thread Mark Geisert via Cygwin
Hi David, On 8/7/2024 1:26 PM, David Karr via Cygwin wrote: At my work, I had to have my laptop reimagined for various reasons. I had them save my cygwin64 tree to external storage first. I now have the laptop back, and I copied the entire tree back in, but now I realize I should have done this

Re: Analyze dependencies of a cygwin package

2024-06-21 Thread Mark Geisert via Cygwin
On 6/20/2024 11:21 PM, Federico Kircheis via Cygwin wrote: Hello to everyone, yesterday I've uploaded a new cmus package, with some optional features enabled. Today, through setup.exe, I noticed that now cmus brings clang as dependency. Is there something I can use for analyzing transitive

Re: Native posix_spawn() in Cygwin?

2024-06-06 Thread Mark Geisert via Cygwin
On 6/6/2024 4:09 PM, Dan Shelton via Cygwin wrote: On Wed, 6 Mar 2024 at 01:08, Mark Geisert via Cygwin wrote: On 3/5/2024 2:42 PM, Dan Shelton via Cygwin wrote: [...] posix_spawn() was added to POSIX so a Win32 implementation can use Win32 spawn() ...now I see what you're getting at

Re: frequent hangs running ldd

2024-05-24 Thread Mark Geisert via Cygwin
On 5/24/2024 3:26 PM, Jeremy Drake via Cygwin wrote: On Sat, 25 May 2024, Takashi Yano wrote: On Fri, 24 May 2024 14:46:40 -0700 (PDT) Jeremy Drake wrote: Thanks for the report. However, I cannot reproduce the issue. If it always hangs in GetConsoleProcessList (), I doubt it is not a cygwin bu

Re: frequent hangs running ldd

2024-05-24 Thread Mark Geisert via Cygwin
On 5/24/2024 3:17 PM, Takashi Yano via Cygwin wrote: On Fri, 24 May 2024 14:46:40 -0700 (PDT) Jeremy Drake wrote: Thanks for the report. However, I cannot reproduce the issue. If it always hangs in GetConsoleProcessList (), I doubt it is not a cygwin bug but a windows bug. By any chance, is the

Re: Technical reason why 32bit Cygwin cannot be installed on 64bit Windows?

2024-05-18 Thread Mark Geisert via Cygwin
Is there a technical reason why 32bit Cygwin cannot be installed on 64bit Windows? https://cygwin.com/install.html has the following... =A note about 32-bit Cygwin =The limited address space of 32-bit Windows means that random failures =in the fork(2) system call are more likely. Therefore, w

Re: util-linux-2.39.3-1: libblkid returns invalid physical_sector_size

2024-04-03 Thread Mark Geisert via Cygwin
On 4/2/2024 9:50 AM, Christian Franke via Cygwin wrote: Christian Franke via Cygwin wrote: ,,, BTW, according to the Linux kernel sources, BLKPBSZGET etc return 'unsigned int' and not 'unsigned long' since first appearance in 2.6.32-rc3 (2009?): https://elixir.bootlin.com/linux/v2.6.32-rc3/s

Re: Cygwin&Win32 file prefetch, block sizes?

2024-04-02 Thread Mark Geisert via Cygwin
On 4/2/2024 3:35 PM, Martin Wege via Cygwin wrote: On Tue, Apr 2, 2024 at 3:17 PM Corinna Vinschen via Cygwin wrote: On Apr 2 02:04, Martin Wege via Cygwin wrote: Hello, Is there any document which describes how Cygwin and Win32 file prefetch and readahead work, and which sizes are used (e.

Re: util-linux-2.39.3-1: libblkid returns invalid physical_sector_size

2024-04-02 Thread Mark Geisert via Cygwin
Hi Christian, On 3/31/2024 1:11 AM, Christian Franke via Cygwin wrote: Testcase: # cygcheck -f /sbin/fdisk.exe util-linux-2.39.3-1 # /sbin/fdisk.exe -l /dev/sdd Disk /dev/sdd: 465.76 GiB, 500107862016 bytes, 976773168 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical)

Re: /usr/bin/fallocate -v -d -l 2 myfile takes forever

2024-03-08 Thread Mark Geisert via Cygwin
On 3/5/2024 2:43 AM, Mark Geisert via Cygwin wrote: On 3/5/2024 12:46 AM, Cedric Blancher via Cygwin wrote: On Mon, 29 Jan 2024 at 10:46, Mark Geisert via Cygwin wrote: On 1/28/2024 11:56 PM, Mark Geisert via Cygwin wrote: On 1/28/2024 10:44 PM, Cedric Blancher via Cygwin wrote: Good

Updated: util-linux 2.39.3-1 (test)

2024-03-08 Thread Mark Geisert via Cygwin
The following packages have been uploaded to the Cygwin distribution: * util-linux-2.39.3-1 * util-linux-debuginfo-2.39.3-1 * libblkid-devel-2.39.3-1 * libblkid1-2.39.3-1 * libfdisk-devel-2.39.3-1 * libfdisk1-2.39.3-1 * libsmartcols-devel-2.39.3-1 * libsmartcols1-2.39.3-1 * libuuid-devel-2.39.3

Re: Native posix_spawn() in Cygwin?

2024-03-05 Thread Mark Geisert via Cygwin
On 3/5/2024 2:42 PM, Dan Shelton via Cygwin wrote: On Mon, 4 Mar 2024 at 07:45, Mark Geisert via Cygwin wrote: On 3/3/2024 7:27 PM, Dan Shelton via Cygwin wrote: [...] strace does not help, as I need the Win32 calls BELOW posix_spawn(), to see the implementation details. Check the source

Re: /usr/bin/fallocate -v -d -l 2 myfile takes forever

2024-03-05 Thread Mark Geisert via Cygwin
On 3/5/2024 12:46 AM, Cedric Blancher via Cygwin wrote: On Mon, 29 Jan 2024 at 10:46, Mark Geisert via Cygwin wrote: On 1/28/2024 11:56 PM, Mark Geisert via Cygwin wrote: On 1/28/2024 10:44 PM, Cedric Blancher via Cygwin wrote: Good morning! rm -f myfile touch myfile /usr/bin/fallocate -v

Re: /usr/bin/fallocate -v -d -l 2 myfile takes forever

2024-03-05 Thread Mark Geisert via Cygwin
On 3/5/2024 12:46 AM, Cedric Blancher via Cygwin wrote: On Mon, 29 Jan 2024 at 10:46, Mark Geisert via Cygwin wrote: On 1/28/2024 11:56 PM, Mark Geisert via Cygwin wrote: On 1/28/2024 10:44 PM, Cedric Blancher via Cygwin wrote: Good morning! rm -f myfile touch myfile /usr/bin/fallocate -v

Re: Convert a file descriptor from Cygwin openat() to Win32 file HANDLE?

2024-03-03 Thread Mark Geisert via Cygwin
On 3/3/2024 10:16 PM, Cedric Blancher via Cygwin wrote: How can I convert a file descriptor from Cygwin openat() to Win32 file HANDLE? In general, this can be done with: hFile = (HANDLE) _get_osfhandle (int fd); That works for simple cases such as disk file descriptors. I've learned one

Re: Native posix_spawn() in Cygwin?

2024-03-03 Thread Mark Geisert via Cygwin
On 3/3/2024 7:27 PM, Dan Shelton via Cygwin wrote: On Tue, 27 Feb 2024 at 07:34, wrote: On Tue, Feb 27, 2024 at 06:54:42AM +0100, Dan Shelton via Cygwin wrote: On Tue, 27 Feb 2024 at 06:47, Brian Inglis via Cygwin wrote: On 2024-02-26 20:23, Dan Shelton via Cygwin wrote: Does Cygwin imple

Re: Can util-linux 2.33.1-3 come out of [test] ?

2024-02-05 Thread Mark Geisert via Cygwin
On 2/2/2024 3:52 AM, Bruce Jerrick via Cygwin wrote: util-linux 2.33.1-3 depends on cygwin >= 3.5.0 .  The latter has come out of test, so can util-linux 2.33.1-3 also come out of test? Done. Note that this means if you select util-linux 2.33.1-3 for installation, your Cygwin version will also

Re: /usr/bin/fallocate -v -d -l 2 myfile takes forever

2024-01-29 Thread Mark Geisert via Cygwin
On 1/28/2024 11:56 PM, Mark Geisert via Cygwin wrote: On 1/28/2024 10:44 PM, Cedric Blancher via Cygwin wrote: Good morning! rm -f myfile touch myfile /usr/bin/fallocate -v -d -l myfile takes forever with latest Cygwin 3.5 ^ length goes here, before filename I

Re: /usr/bin/fallocate -v -d -l 2 myfile takes forever

2024-01-28 Thread Mark Geisert via Cygwin
On 1/28/2024 10:44 PM, Cedric Blancher via Cygwin wrote: Good morning! rm -f myfile touch myfile /usr/bin/fallocate -v -d -l myfile takes forever with latest Cygwin 3.5 ^ length goes here, before filename I believe you need to chattr +S myfile after the 'touch'

Re: /usr/bin/fallocate missing in Cygwin 3.5's "util-linux" ...

2024-01-28 Thread Mark Geisert via Cygwin
On 1/27/2024 7:47 AM, Marco Atzeri via Cygwin wrote: On 27/01/2024 11:06, Mark Geisert via Cygwin wrote: On 1/26/2024 11:26 PM, ASSI via Cygwin wrote: Mark Geisert via Cygwin writes: A new build of the util-linux package, 2.33.1-3, now includes fallocate and its man page.  The updated package

Re: /usr/bin/fallocate missing in Cygwin 3.5's "util-linux" ...

2024-01-27 Thread Mark Geisert via Cygwin
On 1/26/2024 11:26 PM, ASSI via Cygwin wrote: Mark Geisert via Cygwin writes: A new build of the util-linux package, 2.33.1-3, now includes fallocate and its man page. The updated package is now making its way to the Cygwin mirrors. fallocate requires Cygwin version >= 3.5.0. It a

Re: /usr/bin/fallocate missing in Cygwin 3.5's "util-linux" ...

2024-01-24 Thread Mark Geisert via Cygwin
On 1/23/2024 4:41 PM, Mark Geisert via Cygwin wrote: On 1/23/2024 3:36 AM, Roland Mainz via Cygwin wrote: Small bug report: Cygwin 3.5. now has support for SEEK_HOLE (thanks! :-) ), but /usr/bin/fallocate is still missing in the "util-linux" package. Can someone please enable

Re: /usr/bin/fallocate missing in Cygwin 3.5's "util-linux" ...

2024-01-23 Thread Mark Geisert via Cygwin
On 1/23/2024 3:36 AM, Roland Mainz via Cygwin wrote: Small bug report: Cygwin 3.5. now has support for SEEK_HOLE (thanks! :-) ), but /usr/bin/fallocate is still missing in the "util-linux" package. Can someone please enable that tool ? I'll look into this. ..mark -- Problem reports: ht

Re: inkscape installed but does nothing --- solved to my satisfaction

2023-12-01 Thread Mark Geisert via Cygwin
Hi John, J.F. Huesman via Cygwin wrote: [...] If I call inkscape -V from the prompt, I get an error:(inkscape:1451): Gtk-WARNING **: 07:07:30.361: cannot open display: :0 Inkscape is expecting a running X server to display on. But even for "-V"? That seems a little presumptuous :-). But

Re: inkscape installed but does nothing

2023-11-30 Thread Mark Geisert via Cygwin
Mark Geisert via Cygwin wrote: I've found that Cygwin's latest inkscape 0.92.3 cannot be built with either gcc-g++ 11.4 or 11.2.  There are incompatibilities with recent C++ include files. Inkscape *can* be built with gcc-g++ 7.4; that version even seems to run okay. So it seems th

Re: inkscape installed but does nothing

2023-11-25 Thread Mark Geisert via Cygwin
Mark Geisert via Cygwin wrote: I'm now going through the laborious process of building inkscape on my test system to see if the same issue happens with my build.  I'll give an update when I have something to report. I've found that Cygwin's latest inkscape 0.92.3 cannot

Re: inkscape installed but does nothing

2023-11-23 Thread Mark Geisert via Cygwin
Hi John, J.F. Huesman via Cygwin wrote: [...my previous info about reproducing the issue elided here...] I get those same error codes (of course the process ID and thread numbers are different).exception 139 indicates, I think, a missing required file or link. Maybe it's an issue with the cyg

Re: inkscape installed but does nothing.

2023-11-23 Thread Mark Geisert via Cygwin
FWIW I can reproduce the issue. See below... René Berber via Cygwin wrote: On 11/22/2023 10:27 PM, J.F. Huesman via Cygwin wrote: (I tried to reply to this message twice and got mailer-daemon failure notices both times. My apologies if this is a duplicate message.) Yes, they are installed. w

Re: Qt6 in Cygwin?

2023-10-14 Thread Mark Geisert via Cygwin
Mark Geisert via Cygwin wrote: Are there Qt6 - https://www.qt.io/product/qt6 - packages for Cygwin available? Does setup.exe show it/them as a choice?  No?  No they aren't available.  We could use a maintainer for Qt.  Check the Cygwin home page for how to contribute. Now that I

Re: Qt6 in Cygwin?

2023-10-14 Thread Mark Geisert via Cygwin
Are there Qt6 - https://www.qt.io/product/qt6 - packages for Cygwin available? Does setup.exe show it/them as a choice? No? No they aren't available. We could use a maintainer for Qt. Check the Cygwin home page for how to contribute. ..mark -- Problem reports: https://cygwin.com/

Re: Run a Cygwin process with "higher" scheduler priority

2023-10-14 Thread Mark Geisert via Cygwin
Cedric Blancher via Cygwin wrote: On Fri, 11 Aug 2023 at 19:14, Brian Inglis wrote: On 2023-08-11 09:44, Cedric Blancher via Cygwin wrote: How can we set the scheduler priority for a Cygwin process to "higher" than normal on start? Basically we want a Cygwin compatible script version of the

Re: EXTERNAL SENDER: Re: Fork errors

2023-09-09 Thread Mark Geisert via Cygwin
ssage- From: Cygwin On Behalf Of Mark Geisert via Cygwin Sent: Wednesday, September 6, 2023 6:32 PM To: Cygwin Mailing List Subject: EXTERNAL SENDER: Re: Fork errors Dale Lobb via Cygwin wrote: Since upgrading to the latest version of Cygwin a few weeks ago on a server I manage, I&#x

Re: [pkg cygwin-devel] /usr/include/sys/cpuset.h:52 error: missing return type

2023-09-07 Thread Mark Geisert via Cygwin
Hi Marco, Marco Mason via Cygwin wrote: I just updated to 3.4.9-1 and compiled some code, and it complained about cpuset.h. Specifically, "C++ requires a type specifier for all declarations", and sure enough, there's no return type on line 52. So I changed my local copy to the following, and it

Re: Fork errors

2023-09-07 Thread Mark Geisert via Cygwin
Bill Stewart via Cygwin wrote: On Wed, Sep 6, 2023 at 5:32 PM Mark Geisert wrote: Speculation: The specific exit code 0xC142 may or may not have something to do with Windows error 142, which is ERROR_BUSY_DRIVE. I cannot help further on this. Correction: The low word of 0xC142 = hex 1

Re: Fork errors

2023-09-06 Thread Mark Geisert via Cygwin
Dale Lobb via Cygwin wrote: Since upgrading to the latest version of Cygwin a few weeks ago on a server I manage, I've been experiencing an issue with fork errors. The Cygwin installation had not been updated for almost a year before that. The issue happens every time a script is invoke

Re: posix thread scaling issue

2023-09-02 Thread Mark Geisert via Cygwin
Sorry, I mis-spoke in my previous post... Mark Geisert via Cygwin wrote:   Briefly, you can't move a thread outside the processor group it's currently in; you have to move its process to the new group first. That's backward.

Re: posix thread scaling issue

2023-09-02 Thread Mark Geisert via Cygwin
Hi folks, Brian Inglis via Cygwin wrote: On 2023-09-02 12:27, jeff via Cygwin wrote: [...] When I run cinebench, I can get to 100% cpu utulization (at around 3ghz) on windows. Chances are the benchmark is designed to handle that: "When the program is running inside the group, unless it is p

Re: can't compile coreutils-9.3 any more after upgrade to cygwin-3.4.8

2023-08-29 Thread Mark Geisert via Cygwin
Corinna Vinschen via Cygwin wrote: On Aug 25 22:50, Mark Geisert via Cygwin wrote: Hi Corinna, Corinna Vinschen via Cygwin wrote: On Aug 24 14:39, Mark Geisert via Cygwin wrote: Denis Excoffier via Cygwin wrote: Hello, When i try to compile coreutils-9.3 under cygwin-3.4.8 i get the

Re: can't compile coreutils-9.3 any more after upgrade to cygwin-3.4.8

2023-08-25 Thread Mark Geisert via Cygwin
Hi Corinna, Corinna Vinschen via Cygwin wrote: On Aug 24 14:39, Mark Geisert via Cygwin wrote: Denis Excoffier via Cygwin wrote: Hello, When i try to compile coreutils-9.3 under cygwin-3.4.8 i get the following error messages (see below). There seems to be a kind of loop in the hierarchy of

Re: can't compile coreutils-9.3 any more after upgrade to cygwin-3.4.8

2023-08-24 Thread Mark Geisert via Cygwin
Hi Denis, Thanks for the report. More below... Denis Excoffier via Cygwin wrote: Hello, When i try to compile coreutils-9.3 under cygwin-3.4.8 i get the following error messages (see below). There seems to be a kind of loop in the hierarchy of #includes. Moreover, with cygwin-3.4.7, this is o

Re: Test for Windows Administrator permissions from Cygwin terminal|script?

2023-08-18 Thread Mark Geisert via Cygwin
Mark Geisert via Cygwin wrote: Backwoods BC via Cygwin wrote: [...] I don't know if this is the official method, but it works for me: # Shell Options # Elevated privilege windows have $SESSIONNAME set if [ "$SESSIONNAME" == "" ] ;then    printf -v adminPmt &#

Re: Test for Windows Administrator permissions from Cygwin terminal|script?

2023-08-18 Thread Mark Geisert via Cygwin
Backwoods BC via Cygwin wrote: On Thu, Aug 17, 2023 at 7:01 PM Martin Wege via Cygwin wrote: How can I find out whether the current Cygwin terminal has Administrator rights? I want to safeguard our admin scripts with a simple test and bail out with an error if someone wants to do admin stuff (s

Re: Linking a native msvc dll library to CYGWIN g++ compiler

2023-07-17 Thread Mark Geisert via Cygwin
Mümin A. via Cygwin wrote: Hi, reminder.. Mümin A. , 11 Tem 2023 Sal, 09:47 tarihinde şunu yazdı: Hi, I'm facing a problem while linking my native dll library into the g++ compiler. There is a name mangling problem when calling a msvc function from g++ compiler therefore linker gives an er

Re: iostream doesn't work (clang++)

2023-07-12 Thread Mark Geisert via Cygwin
Hi once again, ggl329 via Cygwin wrote: On 2023/07/05 12:06, Mark Geisert via Cygwin wrote: My previous reply addressed the specific error reported by your testcase. But I am unable to make progress on the root cause because I can't reproduce your report. [... useful info elided from

Re: iostream doesn't work (clang++)

2023-07-07 Thread Mark Geisert via Cygwin
Brian Inglis via Cygwin wrote: On 2023-07-05 09:54, ggl329 via Cygwin wrote: Hi Mark, On 2023/07/05 12:06, Mark Geisert via Cygwin wrote: My previous reply addressed the specific error reported by your testcase. But I am unable to make progress on the root cause because I can't repr

Re: iostream doesn't work (clang++)

2023-07-04 Thread Mark Geisert via Cygwin
Hi again, ggl329 via Cygwin wrote: Hi, clang++ fails with iostream. Does it go well in your environment? # I noticed that clang is orphaned. clang requires a maintainer? It would indeed be nice to have a clang maintainer. Until that happens various other folks might be able to assist if the

Re: iostream doesn't work (clang++)

2023-07-04 Thread Mark Geisert via Cygwin
Hi there, ggl329 via Cygwin wrote: Hi, clang++ fails with iostream. Does it go well in your environment? # I noticed that clang is orphaned. clang requires a maintainer? $ cat sample.cc #include int main() {     std::cout << "Hello World.\n";     return 0; } $ g++ sample.cc $ ./a Hello Wo

Re: cygwin1.dll calls assert before cygwin command hangs

2023-03-23 Thread Mark Geisert via Cygwin
Sorry, the second gdb command should be info line *__assert+0x42a4 (Note the change in symbol name: two "_" there) ..mark -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs.html Unsubscribe i

Re: cygwin1.dll calls assert before cygwin command hangs

2023-03-23 Thread Mark Geisert via Cygwin
Hi Derek, Derek Pagel via Cygwin wrote: We've had problems with slow Cygwin commands, so we were able to capture a stack trace when the 'cp' program taking a long time to complete, and we noticed in the stack trace that the last thing cygwin1.dll does is calls assert. What might that suggest?

Re: type mismatch on cpuset.h

2023-03-06 Thread Mark Geisert via Cygwin
Hi Corinna, Marco, I will look into this shortly. Sorry for the inconvenience. ..mark On Mon, 6 Mar 2023, Corinna Vinschen wrote: Hi Mark, On Mar 6 07:57, Marco Atzeri via Cygwin wrote: Hi, building latest gdal I noticed a type mismatch, that forced me to build with "-fpermissive" on /u