Re: Setuid exe (chmod u+s,g+s foo.exe) not working with Cygwin...

2023-09-24 Thread Brian Inglis via Cygwin
On 2023-09-24 11:21, Martin Wege via Cygwin wrote: Hello, I tried to setuid an executable, so that it runs as user "SYSTEM", but it does not work. I tried this as an user with administrator rights: chown SYSTEM:SYSTEM foo.exe chmod u+s,g+s foo.exe But running ./foo then

Setuid exe (chmod u+s,g+s foo.exe) not working with Cygwin...

2023-09-24 Thread Martin Wege via Cygwin
Hello, I tried to setuid an executable, so that it runs as user "SYSTEM", but it does not work. I tried this as an user with administrator rights: chown SYSTEM:SYSTEM foo.exe chmod u+s,g+s foo.exe But running ./foo then just runs it as the current user. What am I doing wrong? Than

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

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

2023-07-17 Thread Mümin A . via Cygwin
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

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

2023-07-12 Thread Csaba Ráduly via Cygwin
On 11/07/2023 08:47, Mümin A. via Cygwin wrote: 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 error undefined reference. Is there any method

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

2023-07-11 Thread Mümin A . via Cygwin
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 error undefined reference. Is there any method to directly link and call a function from native dll

Re: chmod g+ws unsuccessful, "NULL SID" icacls missing

2023-02-10 Thread Corinna Vinschen via Cygwin
On Feb 10 11:42, Norton Allen via Cygwin wrote: > On 2/9/2023 4:09 PM, Corinna Vinschen wrote: > > On Feb 9 13:25, Norton Allen via Cygwin wrote: > > > On 2/8/2023 4:05 PM, Norton Allen via Cygwin wrote: > > > > [...] > > > > The problem: > > &g

Re: chmod g+ws unsuccessful, "NULL SID" icacls missing

2023-02-10 Thread Norton Allen via Cygwin
users on one machine can share full control over a particular directory hierarchy. On Linux I have usually been able to make things work with:    $ mkdir shared_dir    $ chgrp shared_group shared_dir    $ chmod g+ws shared_dir    $ umask 2 User shells are configured with umask 2 so files

Re: chmod g+ws unsuccessful, "NULL SID" icacls missing

2023-02-09 Thread Corinna Vinschen via Cygwin
sers on one > > machine can share full control over a particular directory hierarchy. > > > > On Linux I have usually been able to make things work with: > > > >    $ mkdir shared_dir > >    $ chgrp shared_group shared_dir > >    $ chmod g+ws shared_dir >

Re: chmod g+ws unsuccessful, "NULL SID" icacls missing

2023-02-09 Thread Norton Allen via Cygwin
usually been able to make things work with:    $ mkdir shared_dir    $ chgrp shared_group shared_dir    $ chmod g+ws shared_dir    $ umask 2 User shells are configured with umask 2 so files they create have group write. Users belong to shared_group. Files and subdirs created under shared_dir are all

chmod g+ws unsuccessful, "NULL SID" icacls missing

2023-02-08 Thread Norton Allen via Cygwin
shared_dir $ chgrp shared_group shared_dir $ chmod g+ws shared_dir $ umask 2 User shells are configured with umask 2 so files they create have group write. Users belong to shared_group. Files and subdirs created under shared_dir are all in group shared_group. Files moved in retain

Re: g-ir-scanner fails with python-3.8

2023-01-12 Thread Jon Turney via Cygwin-apps
20:32, Ken Brown via Cygwin-apps wrote: Here are patches... * 0002-gobject-introspection-1.54.1-4.patch: python3.8 is used explicitly.    Shebangs of g-ir-doc-tool and g-ir-scanner are '/usr/bin/env python3.8'    _giscanner.dll is linked with libpython3.8.dll * 0001-Fix

Re: chmod g+s ineffective

2022-07-11 Thread Norton Allen
On 7/10/2022 10:33 PM, Eliot Moss wrote: On 7/10/2022 10:17 PM, Chris Wagner wrote: On 6/29/2022 9:18 AM, Norton Allen wrote: On one machine I have, chmod g+s fails to set the sticky bit. The >>> command does not return any error, but ls -l continues to show the bit not set. $

Re: chmod g+s ineffective

2022-07-10 Thread Eliot Moss
On 7/10/2022 10:17 PM, Chris Wagner wrote: On 6/29/2022 9:18 AM, Norton Allen wrote: On one machine I have, chmod g+s fails to set the sticky bit. The >>> command does not return any error, but ls -l continues to show the bit not set. $ mkdir foo $ chgrp flight foo $ c

Re: chmod g+s ineffective

2022-07-10 Thread Chris Wagner
On 6/29/2022 9:18 AM, Norton Allen wrote: On one machine I have, chmod g+s fails to set the sticky bit. The >>> command does not return any error, but ls -l continues to show the bit not set. $ mkdir foo $ chgrp flight foo $ chmod g+ws foo $ ls -ld foo drwx

Re: chmod g+s ineffective

2022-06-30 Thread Andrey Repin
Greetings, Norton Allen! > On 6/29/2022 9:18 AM, Norton Allen wrote: >> On 6/29/2022 7:39 AM, Andrey Repin wrote: >>> Greetings, Norton Allen! >>> >>>> On one machine I have, chmod g+s fails to set the sticky bit. The >>> >>>> command

Re: chmod g+s ineffective

2022-06-29 Thread Norton Allen
On 6/29/2022 9:18 AM, Norton Allen wrote: On 6/29/2022 7:39 AM, Andrey Repin wrote: Greetings, Norton Allen! On one machine I have, chmod g+s fails to set the sticky bit. The command does not return any error, but ls -l continues to show the bit not set. $ mkdir foo $ chgrp flight

Re: chmod g+s ineffective

2022-06-29 Thread Norton Allen
On 6/29/2022 7:39 AM, Andrey Repin wrote: Greetings, Norton Allen! On one machine I have, chmod g+s fails to set the sticky bit. The command does not return any error, but ls -l continues to show the bit not set. $ mkdir foo $ chgrp flight foo $ chmod g+ws foo $ ls -ld foo

Re: chmod g+s ineffective

2022-06-29 Thread Andrey Repin
Greetings, Norton Allen! > On one machine I have, chmod g+s fails to set the sticky bit. The command > does not return any error, but ls -l continues to show the bit not set. > $ mkdir foo > $ chgrp flight foo > $ chmod g+ws foo > $ ls -ld foo > drwxrw

chmod g+s ineffective

2022-06-29 Thread Norton Allen
On one machine I have, chmod g+s fails to set the sticky bit. The command does not return any error, but ls -l continues to show the bit not set. $ mkdir foo $ chgrp flight foo $ chmod g+ws foo $ ls -ld foo drwxrwxr-x+ 1 nort flight 0 Jun 29 06:50 foo I ran strace, and it looks

Re: g++ missing stddef.h

2022-01-26 Thread Andrey Repin
Greetings, Kevin Schnitzius! > On Wednesday, January 19, 2022, 12:46:26 AM EST, Marco Atzeri > Works fine from bash.  It reproes from cmd.exe Then your CMD environment is not set identical to your bash env. Simple fix - use bash. -- With best regards, Andrey Repin Wednesday, January 26,

Re: g++ missing stddef.h

2022-01-19 Thread Marco Atzeri
please use a decent mail program On 19.01.2022 21:58, Kevin Schnitzius via Cygwin wrote: On Wednesday, January 19, 2022, 12:46:26 AM EST, Marco Atzeri wrote: This works for me from CLI      g++ -Wall prova.cc -o prova So how are you setting your NetBeans ? g++ --version> g++ (GCC) 11.

Re: g++ missing stddef.h

2022-01-19 Thread Kevin Schnitzius via Cygwin
On Wednesday, January 19, 2022, 12:46:26 AM EST, Marco Atzeri wrote:>> On 19.01.2022 02:06, slipbits wrote:> > g++ (GCC) 10.2.0> > Win 7-64> > Netbeans 12.5> >> > g++ reported a compiler error in not finding stddef.h referenced in> > stdlib.h. I've

Re: g++ missing stddef.h

2022-01-18 Thread Marco Atzeri
On 19.01.2022 02:06, slipbits wrote: g++ (GCC) 10.2.0 Win 7-64 Netbeans 12.5 g++ reported a compiler error in not finding stddef.h referenced in stdlib.h. I've looked in /usr/include and /usr/include/c++/v1. I found an stddef.h in /usr/include/c++/v1. Should I copy this to /usr/include

g++ missing stddef.h

2022-01-18 Thread slipbits
g++ (GCC) 10.2.0 Win 7-64 Netbeans 12.5 g++ reported a compiler error in not finding stddef.h referenced in stdlib.h. I've looked in /usr/include and /usr/include/c++/v1. I found an stddef.h in /usr/include/c++/v1. Should I copy this to /usr/include? The command being executed is 'c

Re: g-ir-scanner fails with python-3.8

2021-05-23 Thread Jon Turney
bute__((__aligned__(__alignof(__float128;' at '__float128' This is 'expected', since (this version of?) g-ir-compiler doesn't know about __float128 as a built-in type. There's no input which can legitimately make gcc terminate with segv, so trying to blame this on gobject-introspection is inc

Re: g-ir-scanner fails with python-3.8

2021-05-23 Thread Jon Turney
On 23/05/2021 00:44, Lemures Lemniscati via Cygwin-apps wrote: And with them, following build and test by cygport has succeeded both in x86_64 and i686, on my local machine. cygport gobject-introspection.cygport download finish all test But on scallywag, only x86_64 build is successful:

Re: g-ir-scanner fails with python-3.8

2021-05-23 Thread Lemures Lemniscati via Cygwin-apps
nked with python2, but the shbang names 'python', > >> which is now python3. > >> > >> I have been working on rebuilding this package, but not quite there yet. > >> > >> You can work around this by fixing the shebang in /usr/bin/g-ir-scanner to &g

Re: g-ir-scanner fails with python-3.8

2021-05-23 Thread Brian Inglis
is linked with python2, but the shbang names 'python', which is now python3. I have been working on rebuilding this package, but not quite there yet. You can work around this by fixing the shebang in /usr/bin/g-ir-scanner to explicitly name python3. Here are patches... * 0002-gobject-introspect

Re: g-ir-scanner fails with python-3.8

2021-05-22 Thread Lemures Lemniscati via Cygwin-apps
en Brown via Cygwin-apps wrote: > > >> > >> Here are patches... > >> > >> * 0002-gobject-introspection-1.54.1-4.patch: > >> python3.8 is used explicitly. > >>    Shebangs of g-ir-doc-tool and g-ir-scanner are '/usr/bin/env > >> py

Re: g-ir-scanner fails with python-3.8

2021-05-22 Thread Marco Atzeri via Cygwin-apps
le.am 2020-08-04 09:49:26.122659100 -0400 @@ -68,7 +68,7 @@ endif libregress_la_LDFLAGS = $(AM_LDFLAGS) -if OS_WIN32 +if PLATFORM_WIN32 AM_LDFLAGS += -no-undefined endif @@ -155,7 +155,7 @@ barapp_SOURCES = $(srcdir)/barapp.c $(sr barapp_LDADD = $(top_builddir)/libgirepository-1.0.la barapp_LD

Re: g-ir-scanner fails with python-3.8

2021-05-22 Thread Marco Atzeri via Cygwin-apps
is used explicitly.    Shebangs of g-ir-doc-tool and g-ir-scanner are '/usr/bin/env python3.8'    _giscanner.dll is linked with libpython3.8.dll * 0001-Fix-a-patch-for-giscanner-shlibs.py-to-pass-a-pep8-c.patch: This has no effect while building. But needed in order to avoid

Re: g-ir-scanner fails with python-3.8

2021-05-22 Thread Marco Atzeri via Cygwin-apps
is linked with python2, but the shbang names 'python', which is now python3. I have been working on rebuilding this package, but not quite there yet. You can work around this by fixing the shebang in /usr/bin/g-ir-scanner to explicitly name python3. Here are patches... * 0002-gobject-introspect

Re: g-ir-scanner fails with python-3.8

2021-05-22 Thread Lemures Lemniscati via Cygwin-apps
ction package. > > _giscanner.dll is linked with python2, but the shbang names 'python', which > is now python3. > > I have been working on rebuilding this package, but not quite there yet. > > You can work around this by fixing the shebang in /usr/bin/g-ir-scanner to

Re: g-ir-scanner fails with python-3.8

2021-05-19 Thread Marco Atzeri via Cygwin-apps
On 19.05.2021 21:32, Ken Brown via Cygwin-apps wrote: Trying to build harfbuzz, I get the following python failure with python-3.8 Traceback (most recent call last):   File "/usr/bin/g-ir-scanner", line 65, in ...     from giscanner._giscanner import collect_attributes I

Re: g-ir-scanner fails with python-3.8

2021-05-19 Thread Jon Turney
On 19/05/2021 20:32, Ken Brown via Cygwin-apps wrote: Trying to build harfbuzz, I get the following python failure with python-3.8 Traceback (most recent call last):   File "/usr/bin/g-ir-scanner", line 65, in     from giscanner.scannermain import scanner_main   File "/

g-ir-scanner fails with python-3.8

2021-05-19 Thread Ken Brown via Cygwin-apps
Trying to build harfbuzz, I get the following python failure with python-3.8 Traceback (most recent call last): File "/usr/bin/g-ir-scanner", line 65, in from giscanner.scannermain import scanner_main File "/usr/lib/gobject-introspection/giscanner/scannerma

Sv: g++ and c++17 filesystem

2020-11-25 Thread Kristian Ivarsson via Cygwin
itations are > removed. I'm aware of that and I'm asking these question because I'm working on an open source project as well (so this is pure voluntarily as well:-), targeting *nix-system, but we have a task to make it working on Windows as well and we were hoping to not have the need to add platform

Sv: Sv: Sv: Sv: Sv: Sv: g++ and c++17 filesystem

2020-11-25 Thread Kristian Ivarsson via Cygwin
ulator > And it wouldn't help you. Or we could ask all Cygwin package maintainers > to try to patch their packages so that they recognize Win32 paths, but > that's simply not feasible, nor would many package maintainers be willing > to invest the required time. I'm not sure what pac

Sv: Sv: Sv: Sv: Sv: Sv: g++ and c++17 filesystem

2020-11-25 Thread Kristian Ivarsson via Cygwin
td::filesystem::canonical though because that is what fails (and unfortunately I guess there's a real bug in the (real) g++ distro of because the std::filesystem::path::generic-functions doesn't work as the standard mandates either) Once again, thanx for the tips Best regards, Kristian > Rega

Re: Sv: Sv: Sv: Sv: Sv: Sv: g++ and c++17 filesystem

2020-11-24 Thread Jonathan Yong via Cygwin
On 11/24/20 2:01 PM, sten.kristian.ivars...@gmail.com wrote: [snip] std::filesystem POSIX mode is common to all POSIX platforms where backslashes are NOT directory separators. How do you make them accept your demands? How are you going to force POSIX platforms allow Windows specific code?

Re: g++ and c++17 filesystem

2020-11-24 Thread Brian Inglis
eatures as Windows limitations are removed. Other projects gcc-g++, libstdc++ may have sponsored or employed contributors. They all have their respective standards focus and are uninterested in non-standard-compliant changes and any non-POSIX build changes. But they build and run just fine un

Re: Sv: Sv: Sv: Sv: Sv: g++ and c++17 filesystem

2020-11-24 Thread Eliot Moss
For the specific case C:\Temp, I found this: cygpath -ua 'C:\Temp' -> /cygdrive/c/Temp cygpath -ua /cygdrive/c/Temp -> /cygdrive/c/Temp cygpath -ua '\Temp' -> /cygdrive/c/Temp cygpath -ua '/Temp' -> /Temp Now Cygwin is open source, so you, too, could grab the code in cygpath and

Re: Sv: Sv: Sv: Sv: Sv: g++ and c++17 filesystem

2020-11-24 Thread Ken Brown via Cygwin
ble, nor would many package maintainers be willing to invest the required time. I tried it once with emacs, which I maintain, in response to a user request. I failed miserably. Every change I made broke something else, and I finally gave up. I don't think g++ will be any easier than emacs, an

Sv: Sv: Sv: Sv: Sv: g++ and c++17 filesystem

2020-11-24 Thread Kristian Ivarsson via Cygwin
> On 11/24/2020 4:32 AM, Kristian Ivarsson via Cygwin wrote: > > > all the std::filesystem implementations I've seen for Windows > > The implementation on top of Cygwin is not "for Windows", it's "for > Cygwin", i.e., "for Posix". And for Cygwin that's the right thing to do. > And that's where

Sv: Sv: Sv: Sv: Sv: Sv: g++ and c++17 filesystem

2020-11-24 Thread Kristian Ivarsson via Cygwin
> > [snip] > > > >> std::filesystem POSIX mode is common to all POSIX platforms where > >> backslashes are NOT directory separators. How do you make them accept > >> your demands? How are you going to force POSIX platforms allow > >> Windows specific code? > > > > I've been trying to say over and

Re: Sv: Sv: Sv: Sv: g++ and c++17 filesystem

2020-11-24 Thread Eliot Moss
On 11/24/2020 4:32 AM, Kristian Ivarsson via Cygwin wrote: all the std::filesystem implementations I've seen for Windows The implementation on top of Cygwin is not "for Windows", it's "for Cygwin", i.e., "for Posix". And for Cygwin that's the right thing to do. And that's where we keep

Re: Sv: Sv: Sv: Sv: Sv: g++ and c++17 filesystem

2020-11-24 Thread Jonathan Yong via Cygwin
On 11/24/20 11:35 AM, sten.kristian.ivars...@gmail.com wrote: [snip] std::filesystem POSIX mode is common to all POSIX platforms where backslashes are NOT directory separators. How do you make them accept your demands? How are you going to force POSIX platforms allow Windows specific code?

Sv: Sv: Sv: Sv: Sv: g++ and c++17 filesystem

2020-11-24 Thread Kristian Ivarsson via Cygwin
[snip] > std::filesystem POSIX mode is common to all POSIX platforms where > backslashes are NOT directory separators. How do you make them accept your > demands? How are you going to force POSIX platforms allow Windows specific > code? I've been trying to say over and over again that our code

Re: Sv: Sv: Sv: Sv: g++ and c++17 filesystem

2020-11-24 Thread Jonathan Yong via Cygwin
On 11/24/20 9:32 AM, sten.kristian.ivars...@gmail.com wrote: That's not what Cygwin is for, you ignore everything while conveniently claiming to be looking for "insightful thoughts". You still haven't answered where is it in the POSIX standard requires backslashes to be used as separator or how

Sv: Sv: Sv: Sv: g++ and c++17 filesystem

2020-11-24 Thread Kristian Ivarsson via Cygwin
> On 11/23/20 8:35 AM, sten.kristian.ivars...@gmail.com wrote: > >> On 11/20/20 8:31 AM, Kristian Ivarsson via Cygwin wrote: > that, for me, /c works.) Likewise, I would expect the normative > path separator to be / not \, and an absolute path to start with /. > Windows offers

Re: Sv: Sv: Sv: g++ and c++17 filesystem

2020-11-23 Thread Jonathan Yong via Cygwin
On 11/23/20 8:35 AM, sten.kristian.ivars...@gmail.com wrote: On 11/20/20 8:31 AM, Kristian Ivarsson via Cygwin wrote: that, for me, /c works.) Likewise, I would expect the normative path separator to be / not \, and an absolute path to start with /. Windows offers several kinds of symlinks,

Re: Sv: Sv: g++ and c++17 filesystem

2020-11-20 Thread Jonathan Yong via Cygwin
On 11/20/20 8:31 AM, Kristian Ivarsson via Cygwin wrote: that, for me, /c works.) Likewise, I would expect the normative path separator to be / not \, and an absolute path to start with /. Windows offers several kinds of symlinks, with varying semantics, so the detailed behavior of that would

Sv: Sv: Sv: g++ and c++17 filesystem

2020-11-20 Thread Kristian Ivarsson via Cygwin
[snip] > > Applications might wanna extract type, name, parent-folder, etc but do > > rarely care about what kind of separator it has (/ or \) and the style > > of the root directory etc and it would be very neat if the cygwin > > std::filesystem-library became more agnostic in these regards >

Re: Sv: Sv: g++ and c++17 filesystem

2020-11-20 Thread Brian Inglis
On 2020-11-20 02:37, Kristian Ivarsson via Cygwin wrote: [snip] As stated earlier, it seems like using mingw g++/libstdc++ (from the cygwin-package-manager) it seems like it works better, but then you can’t mix with other posix/cygwin mechanism (that uses cygstdc++) without breaking ODR

Sv: Sv: g++ and c++17 filesystem

2020-11-20 Thread Kristian Ivarsson via Cygwin
[snip] > >> As stated earlier, it seems like using mingw g++/libstdc++ (from the > >> cygwin-package-manager) it seems like it works better, but then you > >> can’t mix with other posix/cygwin mechanism (that uses cygstdc++) > >> without breaking ODR (and pro

Sv: Sv: g++ and c++17 filesystem

2020-11-20 Thread Kristian Ivarsson via Cygwin
> Ok, first, I admit that I was not familiar with the details of > std::filesystem. However, after looking at it, I remain unsurprised that > the Cygwin and Mingw versions might be different. (I would also not be > surprised if there is a real bug in there.) At least semantic bugs considering

Re: Sv: g++ and c++17 filesystem

2020-11-19 Thread Eliot Moss
Ok, first, I admit that I was not familiar with the details of std::filesystem. However, after looking at it, I remain unsurprised that the Cygwin and Mingw versions might be different. (I would also not be surprised if there is a real bug in there.) The behavior I would _expect_ is that the

Re: Sv: g++ and c++17 filesystem

2020-11-19 Thread Brian Inglis
defects and flaws in the cygwin-package and pretty much every lexical- and canonical operation works in mysterious ways (or not at all) https://cygwin.com/cygwin-ug-net/using.html#pathnames-win32 As stated earlier, it seems like using mingw g++/libstdc++ (from the cygwin-package-manager) it seems

Sv: g++ and c++17 filesystem

2020-11-19 Thread Kristian Ivarsson via Cygwin
ary as a part of C++17 seems to have some > >>>> defects and flaws in the cygwin-package and pretty much every > >>>> lexical- and canonical operation works in mysterious ways (or not > >>>> at all) > >>> [snip] > >>> > >

Sv: g++ and c++17 filesystem

2020-11-19 Thread Kristian Ivarsson via Cygwin
nistic behaviour from that library regardless of operating system, such as and absolute path should be an absolute path regardless That's the sole purpose of std::filesystem, i.e. to be platform independent (though all file-features is not applicable on all operating systems, but at least you ca

Re: g++ and c++17 filesystem

2020-11-18 Thread Brian Inglis
On 2020-11-18 17:08, Doug Henderson via Cygwin wrote: On Wed, 18 Nov 2020 at 13:50, Kristian Ivarsson wrote: The only purpose CYGWIN have is to make/build posix-applications runnable on Windows and applications usually have user defined input, such as paths etc, and on Windows that input is

Re: g++ and c++17 filesystem

2020-11-18 Thread Doug Henderson via Cygwin
On Wed, 18 Nov 2020 at 13:50, Kristian Ivarsson via Cygwin wrote: > > > The only purpose CYGWIN have is to make/build posix-applications runnable on > Windows and applications usually have user defined input, such as paths etc, > and on Windows that input is usually Windows-native-paths unless

Re: g++ and c++17 filesystem

2020-11-18 Thread Eliot Moss
On 11/18/2020 4:18 PM, Kristian Ivarsson wrote: I would agree that if you want an executable that acts and feels more like a Windows native application, then mingw is probably what you want. Cygwin is if you want something that acts and feels more like a Posix thing ... which means it

Re: g++ and c++17 filesystem

2020-11-18 Thread Norton Allen
On 11/18/2020 3:46 PM, Kristian Ivarsson via Cygwin wrote: Is there any other use cases for CYGWIN than to build applications running in Windows ? Do people use CYGWIN (shell) to operate or monitor their applications ? For all other use cases than the development (the shell) I cannot see why

Re: g++ and c++17 filesystem

2020-11-18 Thread Kristian Ivarsson via Cygwin
> I would agree that if you want an executable that acts and feels more like a > Windows native application, then mingw is probably what you want. Cygwin is > if you want something that acts and feels more like a Posix thing ... which > means it will be oriented to Posix style paths. To be

Re: g++ and c++17 filesystem

2020-11-18 Thread Eliot Moss
I would agree that if you want an executable that acts and feels more like a Windows native application, then mingw is probably what you want. Cygwin is if you want something that acts and feels more like a Posix thing ... which means it will be oriented to Posix style paths. EM -- Problem

Re: g++ and c++17 filesystem

2020-11-18 Thread Kristian Ivarsson via Cygwin
fined to defined without breaking changes, so does anyone know what the effort could be to fix this, i.e. make it work transparently/agnostic ? As stated earlier, it seems like using mingw g++/libstdc++ (from the cygwin-package-manager) it seems like it works better, but then you can’t mix wi

Re: Sv: g++ and c++17 filesystem

2020-11-18 Thread Eliot Moss
On 11/18/2020 11:24 AM, René Berber via Cygwin wrote: Cygwin handles the file system with no problem, but using Posix-like notation, not Windows-like. End of story. And I'll add, this is by design: Cygwin's goal is to provide a programming (and command line) environment as much like Posix

Re: Sv: g++ and c++17 filesystem

2020-11-18 Thread René Berber via Cygwin
On 11/18/2020 3:00 AM, Kristian Ivarsson via Cygwin wrote: On 11/17/2020 9:15 AM, Kristian Ivarsson via Cygwin wrote: The filesystem-library as a part of C++17 seems to have some defects and flaws in the cygwin-package and pretty much every lexical- and canonical operation works in mysterious

Sv: g++ and c++17 filesystem

2020-11-18 Thread Kristian Ivarsson via Cygwin
> On 11/17/2020 9:15 AM, Kristian Ivarsson via Cygwin wrote: > > > The filesystem-library as a part of C++17 seems to have some defects > > and flaws in the cygwin-package and pretty much every lexical- and > > canonical operation works in mysterious ways (or not at all) > [snip] > >

Re: g++ and c++17 filesystem

2020-11-17 Thread René Berber via Cygwin
On 11/17/2020 9:15 AM, Kristian Ivarsson via Cygwin wrote: The filesystem-library as a part of C++17 seems to have some defects and flaws in the cygwin-package and pretty much every lexical- and canonical operation works in mysterious ways (or not at all) [snip]

g++ and c++17 filesystem

2020-11-17 Thread Kristian Ivarsson via Cygwin
Hi folks The filesystem-library as a part of C++17 seems to have some defects and flaws in the cygwin-package and pretty much every lexical- and canonical operation works in mysterious ways (or not at all) Following output with g++cygwin $ uname -a CYGWIN_NT-10.0 JOKK 3.1.7(0.340/5/3) 2020

Re: g++ 9.3.0 segfaults

2020-04-13 Thread Csaba Raduly via Cygwin
On Sun, Apr 12, 2020 at 12:04 PM JonY via Cygwin wrote: > > Please file a bug entry on https://gcc.gnu.org/bugzilla/, and attach the > preprocessed source code. > > Do something like: > g++ -DHAVE_CONFIG_H -MF .deps/cdo-cdo.Tpo -E -o cdo-cdo.ii > ../../cd

Re: g++ with -fprofile-dir flag has a bug (backslash instead of forward-slash issue)

2020-04-12 Thread JonY via Cygwin
On 4/12/20 11:39 AM, John Selbie wrote: > I would file a bug, but that link you provided takes me to a sign-up page > that says, "Account creation restricted. Please contact ... response > within 24 hours..." > > A quick cursory glace of GCC sources would suggest the issue is in >

Re: g++ with -fprofile-dir flag has a bug (backslash instead of forward-slash issue)

2020-04-12 Thread John Selbie via Cygwin
I would file a bug, but that link you provided takes me to a sign-up page that says, "Account creation restricted. Please contact ... response within 24 hours..." A quick cursory glace of GCC sources would suggest the issue is in \gcc\coverage.c. This is a snippit of a function that builds the

Re: g++ with -fprofile-dir flag has a bug (backslash instead of forward-slash issue)

2020-04-12 Thread JonY via Cygwin
On 4/12/20 10:59 AM, John Selbie via Cygwin wrote: > Sure, but this bug is unique to cygwin. Why would that be there bug? > Because Cygwin does not modify gcc to use Windows paths. signature.asc Description: OpenPGP digital signature -- Problem reports: https://cygwin.com/problems.html

Re: g++ with -fprofile-dir flag has a bug (backslash instead of forward-slash issue)

2020-04-12 Thread John Selbie via Cygwin
Sure, but this bug is unique to cygwin. Why would that be there bug? On Sun, Apr 12, 2020 at 2:57 AM JonY via Cygwin wrote: > On 4/12/20 7:27 AM, John Selbie via Cygwin wrote: > > TLDR: With gcc/g++ 9.2.0 and 9.30 on Cygwin, when you use > > -fprofile-generate and -fprofi

Re: g++ 9.3.0 segfaults

2020-04-12 Thread JonY via Cygwin
ad/21529/cdo-1.9.9rc2.tar.gz > > ./configure > make > > > Entering directory '/cygdrive/d/cyg_pub/devel/cdo/cdo-1.9.9rc2_build/src' > g++ -DHAVE_CONFIG_H -I. -I../../cdo-1.9.9rc2/src > -I../../cdo-1.9.9rc2/libcdi/src -I../../cdo-1.9.9rc2/src/mpim_grid > -I/usr/include/lib

Re: g++ with -fprofile-dir flag has a bug (backslash instead of forward-slash issue)

2020-04-12 Thread JonY via Cygwin
On 4/12/20 7:27 AM, John Selbie via Cygwin wrote: > TLDR: With gcc/g++ 9.2.0 and 9.30 on Cygwin, when you use > -fprofile-generate and -fprofile-dir together, the target path for the > .gcda file is corrupted with a backslash instead of having a forward slash > used. > > Here's

g++ with -fprofile-dir flag has a bug (backslash instead of forward-slash issue)

2020-04-12 Thread John Selbie via Cygwin
TLDR: With gcc/g++ 9.2.0 and 9.30 on Cygwin, when you use -fprofile-generate and -fprofile-dir together, the target path for the .gcda file is corrupted with a backslash instead of having a forward slash used. Here's a sample run where profile guided optimization is getting enabled for a simple

g++ 9.3.0 segfaults

2020-04-12 Thread Marco Atzeri via Cygwin
/devel/cdo/cdo-1.9.9rc2_build/src' g++ -DHAVE_CONFIG_H -I. -I../../cdo-1.9.9rc2/src -I../../cdo-1.9.9rc2/libcdi/src -I../../cdo-1.9.9rc2/src/mpim_grid -I/usr/include/libxml2 -g -O2 -fopenmp -MT cdo-cdo.o -MD -MP -MF .deps/cdo-cdo.Tpo -c -o cdo-cdo.o `test -f 'cdo.cc' || echo '../../cdo-1.9.9rc2

Path issue with cygwin and g++ -fprofile-generate and -fprofile-use command

2020-04-02 Thread vivien.clauzon--- via Cygwin
Hi cygwin users, today I saw an issue when trying to use profile guided optimization of g++ (9.3.0) inside cygwin 3.1.4 with path specified uname -a gives CYGWIN_NT-10.0 3.1.4(0.340/5 /3) 2020-02-19 x86_64 Cygwin More specificaly if I try to give a path argument like -fprofile-generate

G++ creates unusable executable with -gdwarf-5 -Og, without any diagnostic issued

2020-03-26 Thread Tim Van Holder
Relevant package versions (all the current latest): * Cygwin: 3.1.4 * binutils: 2.43+1git.de9c1b7cfe-1 * gcc-core, gcc-g++, libgcc1, libstdc++6: 9.3.0-1 Sample program (foo.cc): #include using namespace std; int main(void) { cout << "OK" << endl; retur

Re: g++ doesn't diagnose implicit int error

2019-06-11 Thread Brian Inglis
ny diagnostics for implicit int. >> >> It is unfortunate, and arguably a bug, that this means that >> "g++ -std=c++11 -pedantic" fails to diagnose implicit int errors. >> I'm not sure whether this is a bug in gcc or in the way Windows >> versions of gcc are

Re: g++ doesn't diagnose implicit int error

2019-06-11 Thread Achim Gratz
unate, and arguably a bug, that this means that > "g++ -std=c++11 -pedantic" fails to diagnose implicit int errors. > I'm not sure whether this is a bug in gcc or in the way Windows > versions of gcc are built. In the case of Cygwin it is quite certainly a bug as Cygwin is not a Windows target

Re: g++ doesn't diagnose implicit int error

2019-06-11 Thread Keith Thompson
apparently inhibits any diagnostics for implicit int. It is unfortunate, and arguably a bug, that this means that "g++ -std=c++11 -pedantic" fails to diagnose implicit int errors. I'm not sure whether this is a bug in gcc or in the way Windows versions of gcc are built. Meanwhile, this ca

g++ doesn't diagnose implicit int error

2019-06-09 Thread Keith Thompson
See https://stackoverflow.com/q/56519330/827263 posted by user Fureeish g++ on Cygwin does not diagnose an implicit int error. The same version of g++ on Ubuntu correctly diagnoses the error. (I had initially thought that g++ was defaulting to "-fpermissive", but that would change

Re: How to install gcc and g++ 6 on cygwin which are not on the setup.exe

2019-05-20 Thread Jose Isaias Cabrera
duckduckgo for, >> > >> > cygwin how to uninstall gcc after building it >> > >> > and found nothing that could help me. Right now I have two installs of >> > gcc: v7.4.and v6.4.0. > >That is not necessarily a problem. "Hand-built" GC

Re: How to install gcc and g++ 6 on cygwin which are not on the setup.exe

2019-05-19 Thread Csaba Raduly
g it > > > > and found nothing that could help me. Right now I have two installs of > > gcc: v7.4.and v6.4.0. That is not necessarily a problem. "Hand-built" GCC usually gets installed into /usr/local (so g++-6 is /usr/local/bin/g++), whereas the built-in GCC is

Re: How to install gcc and g++ 6 on cygwin which are not on the setup.exe

2019-05-18 Thread Jack
On 5/18/19 9:24 PM, Jose Isaias Cabrera wrote: How do I uninstall the installation that I created with the building of gcc6? I did a search on duckduckgo for, cygwin how to uninstall gcc after building it and found nothing that could help me. Right now I have two installs of gcc: v7.4.and

Re: How to install gcc and g++ 6 on cygwin which are not on the setup.exe

2019-05-18 Thread Jose Isaias Cabrera
From: cygwin-ow...@cygwin.com on behalf of Jose Isaias Cabrera Sent: Saturday, May 18, 2019 07:15 PM To: Ken Brown; cygwin@cygwin.com Subject: Re: How to install gcc and g++ 6 on cygwin which are not on the setup.exe Ken Brown, on Saturday, May 18, 2019 11:54 AM, wrote... >On 5/18/2019 8:19

Re: How to install gcc and g++ 6 on cygwin which are not on the setup.exe

2019-05-18 Thread Jose Isaias Cabrera
0, which I just took two days to build: e608313@HOR711318E ~/Bedrock $ CC=gcc GXX=g++ make g++ -g -std=c++14 -fpic -O2 -Wall -Werror -Wformat-security -DGIT_REVISION=ce62c88 -I/home/e608313/Bedrock -I/home/e608313/Bedrock/mbedtls/include -MMD -MF libstuff/libstuff.d -MT libstuff/libstuff.h.gch -

Re: How to install gcc and g++ 6 on cygwin which are not on the setup.exe

2019-05-18 Thread Csaba Raduly
gt; Documentation: http://cygwin.com/docs.html > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > >From what I've seen, the errors are independent of the compiler version. I'm betting on the same errors showing up with g++-6 as with g++ 7.4 (Cygwin's default compiler).

Re: How to install gcc and g++ 6 on cygwin which are not on the setup.exe

2019-05-18 Thread Ken Brown
On 5/18/2019 8:19 AM, Jose Isaias Cabrera wrote: > I am finished and now to start building Bedrockdb. Thanks. By the way, you're not the only person building Bedrockdb on Cygwin. Someone has posted about 10 fixes in the last few days: https://github.com/Expensify/Bedrock/issues It looks

Re: How to install gcc and g++ 6 on cygwin which are not on the setup.exe

2019-05-18 Thread Jose Isaias Cabrera
Csaba Raduly, on Saturday, May 18, 2019 02:50 AM, wrote... >On Sat, May 18, 2019 at 7:14 AM Brian Inglis wrote: >> >> On 2019-05-17 21:18, Jose Isaias Cabrera wrote: >> > After more than 8 hours running, building gcc-6.4.0, this error popped up: >> > In file included from

Re: How to install gcc and g++ 6 on cygwin which are not on the setup.exe

2019-05-18 Thread Jose Isaias Cabrera
Brian Inglis, on Saturday, May 18, 2019 01:14 AM, wrote... On 2019-05-17 21:18, Jose Isaias Cabrera wrote: > After more than 8 hours running, building gcc-6.4.0, this error popped up: > In file included from ../.././libjava/jni-libjvm.cc:14:0: > ../.././libjava/include/jvm.h:795:3: error:

Re: How to install gcc and g++ 6 on cygwin which are not on the setup.exe

2019-05-18 Thread Jose Isaias Cabrera
Doug Henderson, Saturday, May 18, 2019 01:12 AM, wrote... >On Wed, 15 May 2019 at 14:58, Jose Isaias Cabrera <> wrote: >You seem to be having some difficulty getting an older version of the >compiler running. Perhaps it might be useful to go back to the >beginning and see if there is an

Re: How to install gcc and g++ 6 on cygwin which are not on the setup.exe

2019-05-18 Thread Jose Isaias Cabrera
Sent: Friday, May 17, 2019 11:18 PM To: cygwin@cygwin.com; m...@cs.umass.edu Subject: Re: How to install gcc and g++ 6 on cygwin which are not on the setup.exe After more than 8 hours running, building gcc-6.4.0, this error popped up: In file included from ../.././libjava/jni-libjvm.cc:14:0

Re: How to install gcc and g++ 6 on cygwin which are not on the setup.exe

2019-05-18 Thread Csaba Raduly
On Sat, May 18, 2019 at 7:14 AM Brian Inglis wrote: > > On 2019-05-17 21:18, Jose Isaias Cabrera wrote: > > After more than 8 hours running, building gcc-6.4.0, this error popped up: > > In file included from ../.././libjava/jni-libjvm.cc:14:0: > > ../.././libjava/include/jvm.h:795:3: error:

  1   2   3   4   5   6   7   8   9   10   >