public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* How to install gcc and g++ 6 on cygwin which are not on the setup.exe
@ 2019-05-15 20:58 Jose Isaias Cabrera
  2019-05-16  7:36 ` Csaba Raduly
  2019-05-18  5:13 ` Doug Henderson
  0 siblings, 2 replies; 22+ messages in thread
From: Jose Isaias Cabrera @ 2019-05-15 20:58 UTC (permalink / raw)
  To: cygwin


Greetings.

Is there a way an easy way to install gcc-6 and g++-6 on cygwin?  I just uninstalled v7.4.x or whatever was on the setup.  I am trying to build a software and gcc 7.x and g++ 7.x is giving too many compiler errors.  I want to try 6 to see if these errors minimize or go away.  Thanks for the help.

josé

--
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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: How to install gcc and g++ 6 on cygwin which are not on the setup.exe
  2019-05-15 20:58 How to install gcc and g++ 6 on cygwin which are not on the setup.exe Jose Isaias Cabrera
@ 2019-05-16  7:36 ` Csaba Raduly
  2019-05-16 16:47   ` Jose Isaias Cabrera
  2019-05-18  5:13 ` Doug Henderson
  1 sibling, 1 reply; 22+ messages in thread
From: Csaba Raduly @ 2019-05-16  7:36 UTC (permalink / raw)
  To: cygwin list

Hi Jose,

On Wed, May 15, 2019 at 10:58 PM Jose Isaias Cabrera <jicman@outlook.com> wrote:
>
>
> Greetings.
>
> Is there a way an easy way to install gcc-6 and g++-6 on cygwin?  I just uninstalled v7.4.x or whatever was on the setup.  I am trying to build a software and gcc 7.x and g++ 7.x is giving too many compiler errors.  I want to try 6 to see if these errors minimize or go away.  Thanks for the help.
>

Hi José,

You could perhaps try the Cygwin Time machine :
http://www.crouchingtigerhiddenfruitbat.org/cygwin/timemachine.html

I picked this random link :
http://ctm.crouchingtigerhiddenfruitbat.org/pub/cygwin/circa/2018/10/01/051644/index.html
and it has GCC 6.4

Another option is to download the source and build it yourself.

Csaba
-- 
You can get very substantial performance improvements
by not doing the right thing. - Scott Meyers, An Effective C++11/14 Sampler
So if you're looking for a completely portable, 100% standards-conformat way
to get the wrong information: this is what you want. - Scott Meyers (C++TDaWYK)

--
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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: How to install gcc and g++ 6 on cygwin which are not on the setup.exe
  2019-05-16  7:36 ` Csaba Raduly
@ 2019-05-16 16:47   ` Jose Isaias Cabrera
  2019-05-16 21:47     ` Csaba Ráduly
  0 siblings, 1 reply; 22+ messages in thread
From: Jose Isaias Cabrera @ 2019-05-16 16:47 UTC (permalink / raw)
  To: Csaba Raduly, cygwin list


Csaba Raduly, on Thursday, May 16, 2019 03:36 AM, wrote...
>
>Hi José,

>Another option is to download the source and build it yourself.

Yep.  Going with this option.  Seems the most logical one for now.  After running ./configure, got this error,

configure: error: Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.

So, now I am building GMP, then MPFR and then MPC.  It's going to be a lot of work, so... :-)  :Let's hope is worth it.  Thanks for your help.

josé



--
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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: How to install gcc and g++ 6 on cygwin which are not on the setup.exe
  2019-05-16 16:47   ` Jose Isaias Cabrera
@ 2019-05-16 21:47     ` Csaba Ráduly
  2019-05-17  3:28       ` Jose Isaias Cabrera
  0 siblings, 1 reply; 22+ messages in thread
From: Csaba Ráduly @ 2019-05-16 21:47 UTC (permalink / raw)
  To: Jose Isaias Cabrera, cygwin list

Hi José,

On 16/05/2019 18:47, Jose Isaias Cabrera wrote:
> 
> Csaba Raduly, on Thursday, May 16, 2019 03:36 AM, wrote...
>  >
>  >Hi José,
> 
>  >Another option is to download the source and build it yourself.
> 
> Yep.  Going with this option.  Seems the most logical one for now.  After 
> running ./configure, got this error,
> 
> configure: error: Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
> 
> So, now I am building GMP, then MPFR and then MPC.  It's going to be a lot of 
> work, so... :-)  :Let's hope is worth it.  Thanks for your help.

Building GMP, MPFR and MPC seems like overkill. The following packages are 
available for Cygwin:

libgmp-devel 6.1.2
libmpfr-devel 4.0.2
libmpc-devel 1.1.0


BTW, if you're trying to build Bedrockdb, G++ 6 is likely unable to help you. 
The Bedrockdb developers seem to suffer a bit from "all the world is Linux" 
syndrome.


Csaba
-- 
You can get very substantial performance improvements
by not doing the right thing. - Scott Meyers, An Effective C++11/14 Sampler
So if you're looking for a completely portable, 100% standards-conformat way
to get the wrong information: this is what you want. - Scott Meyers (C++TDaWYK)

--
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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: How to install gcc and g++ 6 on cygwin which are not on the setup.exe
  2019-05-16 21:47     ` Csaba Ráduly
@ 2019-05-17  3:28       ` Jose Isaias Cabrera
  2019-05-17 13:16         ` Eliot Moss
  0 siblings, 1 reply; 22+ messages in thread
From: Jose Isaias Cabrera @ 2019-05-17  3:28 UTC (permalink / raw)
  To: Csaba Ráduly, cygwin list

Csaba Ráduly, on Thursday, May 16, 2019 05:47 PM, wrote...

>Hi José,
Hi Csaba.

>Building GMP, MPFR and MPC seems like overkill. The following packages are
>available for Cygwin:
>
>libgmp-devel 6.1.2
>libmpfr-devel 4.0.2
>libmpc-devel 1.1.0
Yep, tried these, and for some reason, when I ran ./configure to build GCC6, it told me that I needed those libraries.  The error message was,

[clip]
checking for the correct version of gmp.h... no
configure: error: Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
[clip]

So, I said, let me just do this, and there will not be any excuse. :-)

>BTW, if you're trying to build Bedrockdb, G++ 6 is likely unable to help you.
>The Bedrockdb developers seem to suffer a bit from "all the world is Linux"
>syndrome.

Yeah.  Seems like the whole world is thinking like that. :-)  I do have linux boxes at home, but I also have windows.  Thanks for all the help.  I will let you know the outcome.  Already built GMP and MPFR.  Now running 'make' on MPC.  This one should take less time than MPFR.  GMP took a good 3 hours just to run make.  YIKES.  Later.

josé

--
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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: How to install gcc and g++ 6 on cygwin which are not on the setup.exe
  2019-05-17  3:28       ` Jose Isaias Cabrera
@ 2019-05-17 13:16         ` Eliot Moss
  2019-05-17 15:21           ` Jose Isaias Cabrera
  0 siblings, 1 reply; 22+ messages in thread
From: Eliot Moss @ 2019-05-17 13:16 UTC (permalink / raw)
  To: cygwin

On 5/16/2019 11:28 PM, Jose Isaias Cabrera wrote:
> Csaba Ráduly, on Thursday, May 16, 2019 05:47 PM, wrote...

>> BTW, if you're trying to build Bedrockdb, G++ 6 is likely unable to help you.
>> The Bedrockdb developers seem to suffer a bit from "all the world is Linux"
>> syndrome.
> 
> Yeah.  Seems like the whole world is thinking like that. :-)  I do have linux boxes at home, but I also have windows.  Thanks for all the help.  I will let you know the outcome.  Already built GMP and MPFR.  Now running 'make' on MPC.  This one should take less time than MPFR.  GMP took a good 3 hours just to run make.  YIKES.  Later.

I've been a Cygwin user for a long time, and I like it, but
another possibility here for you is WSL (Windows Subsystem
for Linux).  It's a pretty easy install, and because it is
done by Microsoft and can reliably use internal interfaces,
there are ways in which it is more Linux-like -- for many
packages you can just do apt-get install and they work.  In
my experience the performance is comparable to Cygwin, maybe
a touch faster (but no where near as fast for heavy forking
as running inside a Virtual Box Ubuntu virtual machine, for
example).  It has its limitations, for sure, but I have found
it helpful for some things.

Regards - Eliot Moss

--
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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: How to install gcc and g++ 6 on cygwin which are not on the setup.exe
  2019-05-17 13:16         ` Eliot Moss
@ 2019-05-17 15:21           ` Jose Isaias Cabrera
  2019-05-18  3:18             ` Jose Isaias Cabrera
  0 siblings, 1 reply; 22+ messages in thread
From: Jose Isaias Cabrera @ 2019-05-17 15:21 UTC (permalink / raw)
  To: cygwin, moss


Eliot Moss, on Friday, May 17, 2019 09:16 AM, wrote...
[clip]
>I've been a Cygwin user for a long time, and I like it, but
>another possibility here for you is WSL (Windows Subsystem
>for Linux).  It's a pretty easy install, and because it is
>done by Microsoft and can reliably use internal interfaces,
>there are ways in which it is more Linux-like -- for many
>packages you can just do apt-get install and they work.  In
>my experience the performance is comparable to Cygwin, maybe
>a touch faster (but no where near as fast for heavy forking
>as running inside a Virtual Box Ubuntu virtual machine, for
>example).  It has its limitations, for sure, but I have found
>it helpful for some things.

Thanks for this, Eliot.  Yes, I do have it installed at home, but at work, we're still running Windows 7-42bit systems. ;-)  So, you gotta work with what you gotta work. :-)

josé



--
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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: How to install gcc and g++ 6 on cygwin which are not on the setup.exe
  2019-05-17 15:21           ` Jose Isaias Cabrera
@ 2019-05-18  3:18             ` Jose Isaias Cabrera
  2019-05-18  5:14               ` Brian Inglis
  2019-05-18 12:01               ` Jose Isaias Cabrera
  0 siblings, 2 replies; 22+ messages in thread
From: Jose Isaias Cabrera @ 2019-05-18  3:18 UTC (permalink / raw)
  To: cygwin, moss


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: ‘ParkHelper’ does not name a type
   ParkHelper park_helper;

Did a few duckduckgo searches and nothing helpfult was found.  Before I go to the gcc email support, anyone has an idea?  Thanks.

josé


--
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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: How to install gcc and g++ 6 on cygwin which are not on the setup.exe
  2019-05-15 20:58 How to install gcc and g++ 6 on cygwin which are not on the setup.exe Jose Isaias Cabrera
  2019-05-16  7:36 ` Csaba Raduly
@ 2019-05-18  5:13 ` Doug Henderson
  2019-05-18 12:14   ` Jose Isaias Cabrera
  1 sibling, 1 reply; 22+ messages in thread
From: Doug Henderson @ 2019-05-18  5:13 UTC (permalink / raw)
  To: cygwin

On Wed, 15 May 2019 at 14:58, Jose Isaias Cabrera <> wrote:

> Is there a way an easy way to install gcc-6 and g++-6 on cygwin?  I just uninstalled v7.4.x or whatever was on the setup.  I am trying to build a software and gcc 7.x and g++ 7.x is giving too many compiler errors.  I want to try 6 to see if these errors minimize or go away.  Thanks for the help.

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 alternative solution.

What kind of compiler errors are you getting? Post the gcc command
line and a sample of the errors to see if anyone has suggestions for
resolving them in gcc7.x.

You can use the help option to get more information about a lot of topics.

 | --help={common|optimizers|params|target|warnings|[^]{joined|separate|undocumented}}[,...].
 |                          Display specific types of command line options.

You can use gcc options to determine which version of C the compiler
will compile. There are also options to control which warnings are
generated, and possibly turned into errors by a -Werror option.

Use the info command:

info gcc

and enter the info search command: (CR=press enter)

/-std=CR

to find the relavent section.

HTH
Doug

-- 
Doug Henderson, Calgary, Alberta, Canada - from gmail.com

--
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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: How to install gcc and g++ 6 on cygwin which are not on the setup.exe
  2019-05-18  3:18             ` Jose Isaias Cabrera
@ 2019-05-18  5:14               ` Brian Inglis
  2019-05-18  6:50                 ` Csaba Raduly
  2019-05-18 12:16                 ` Jose Isaias Cabrera
  2019-05-18 12:01               ` Jose Isaias Cabrera
  1 sibling, 2 replies; 22+ messages in thread
From: Brian Inglis @ 2019-05-18  5:14 UTC (permalink / raw)
  To: cygwin

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: ‘ParkHelper’ does not name a type
> ParkHelper park_helper;
> Did a few duckduckgo searches and nothing helpfult was found.  Before I go to
> the gcc email support, anyone has an idea?
Try google:	https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49499

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.

--
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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: How to install gcc and g++ 6 on cygwin which are not on the setup.exe
  2019-05-18  5:14               ` Brian Inglis
@ 2019-05-18  6:50                 ` Csaba Raduly
  2019-05-18 12:19                   ` Jose Isaias Cabrera
  2019-05-18 12:16                 ` Jose Isaias Cabrera
  1 sibling, 1 reply; 22+ messages in thread
From: Csaba Raduly @ 2019-05-18  6:50 UTC (permalink / raw)
  To: cygwin list

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: ‘ParkHelper’ does not name a type
> > ParkHelper park_helper;
> > Did a few duckduckgo searches and nothing helpfult was found.  Before I go to
> > the gcc email support, anyone has an idea?
> Try google:     https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49499

José, try passing

--enable-languages=c,c++

to configure. Unfortunately, you may need to rm -rf the build
directory and start from scratch.


Csaba
-- 
You can get very substantial performance improvements
by not doing the right thing. - Scott Meyers, An Effective C++11/14 Sampler
So if you're looking for a completely portable, 100% standards-conformat way
to get the wrong information: this is what you want. - Scott Meyers (C++TDaWYK)

--
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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: How to install gcc and g++ 6 on cygwin which are not on the setup.exe
  2019-05-18  3:18             ` Jose Isaias Cabrera
  2019-05-18  5:14               ` Brian Inglis
@ 2019-05-18 12:01               ` Jose Isaias Cabrera
  1 sibling, 0 replies; 22+ messages in thread
From: Jose Isaias Cabrera @ 2019-05-18 12:01 UTC (permalink / raw)
  To: cygwin, moss


Ran,

./configure --enable-languages=c,c++

to take out java.  Finished overnight.  Ran 'make test' and there were none.  So now running 'make install' and waiting...  Thanks for your help.

josé

________________________________
From: cygwin-owner@cygwin.com <cygwin-owner@cygwin.com> on behalf of Jose Isaias Cabrera <jicman@outlook.com>
Sent: Friday, May 17, 2019 11:18 PM
To: cygwin@cygwin.com; moss@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:
../.././libjava/include/jvm.h:795:3: error: ‘ParkHelper’ does not name a type
   ParkHelper park_helper;

Did a few duckduckgo searches and nothing helpfult was found.  Before I go to the gcc email support, anyone has an idea?  Thanks.

josé


--
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


--
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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: How to install gcc and g++ 6 on cygwin which are not on the setup.exe
  2019-05-18  5:13 ` Doug Henderson
@ 2019-05-18 12:14   ` Jose Isaias Cabrera
  0 siblings, 0 replies; 22+ messages in thread
From: Jose Isaias Cabrera @ 2019-05-18 12:14 UTC (permalink / raw)
  To: Doug Henderson, cygwin


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 alternative solution.

That is how I started.  But, when I started to compile Bedrockdb, there were too many compiler errors.  Since the source is gcc-6 compatible, the version I downloaded from cygwin was 7.4.0-01. So, I didn't want to go that way, since the source would have to be changed.

>What kind of compiler errors are you getting? Post the gcc command
>line and a sample of the errors to see if anyone has suggestions for
>resolving them in gcc7.x.
I could try this next, but I would need you to be there. :-)  Just kidding.

>
>HTH
>Doug

Thanks, Doug.  I have installed gcc-6,

e608313@HOR711318E ~/gcc/gcc-6.4.0
$ gcc --version
gcc (GCC) 6.4.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


e608313@HOR711318E ~/gcc/gcc-6.4.0
$ which gcc
/usr/local/bin/gcc

So, now I will start to compile Bedrockdb.  Thanks for all your help, folks.

josé

--
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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: How to install gcc and g++ 6 on cygwin which are not on the setup.exe
  2019-05-18  5:14               ` Brian Inglis
  2019-05-18  6:50                 ` Csaba Raduly
@ 2019-05-18 12:16                 ` Jose Isaias Cabrera
  1 sibling, 0 replies; 22+ messages in thread
From: Jose Isaias Cabrera @ 2019-05-18 12:16 UTC (permalink / raw)
  To: cygwin, Brian.Inglis


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: ‘ParkHelper’ does not name a type
> ParkHelper park_helper;
> Did a few duckduckgo searches and nothing helpfult was found.  Before I go to
> the gcc email support, anyone has an idea?
Try google:     https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49499

Thanks, Brian.  I saw that one last night.  Did you see the result?

 Andrew Pinski 2016-09-30 22:50:01 UTC

Closing as won't fix as libgcj (and the java front-end) has been removed from the trunk.

I could not do anything with it.

--
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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: How to install gcc and g++ 6 on cygwin which are not on the setup.exe
  2019-05-18  6:50                 ` Csaba Raduly
@ 2019-05-18 12:19                   ` Jose Isaias Cabrera
  2019-05-18 15:54                     ` Ken Brown
  0 siblings, 1 reply; 22+ messages in thread
From: Jose Isaias Cabrera @ 2019-05-18 12:19 UTC (permalink / raw)
  To: Csaba Raduly, cygwin list


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 ../.././libjava/jni-libjvm.cc:14:0:
>> > ../.././libjava/include/jvm.h:795:3: error: ‘ParkHelper’ does not name a type
>> > ParkHelper park_helper;
>> > Did a few duckduckgo searches and nothing helpfult was found.  Before I go to
>> > the gcc email support, anyone has an idea?
>> Try google:     https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49499
>
>José, try passing
>
>--enable-languages=c,c++
>
>to configure. Unfortunately, you may need to rm -rf the build
>directory and start from scratch.

Yep, that is how I restarted make.  And, by the way, no, there is no need to 'rm -rf ' the directory.  It actually starts and whatever has been built, does not need to be.  So, this is a pretty smart make script.  I am finished and now to start building Bedrockdb. Thanks.

josé

--
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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: How to install gcc and g++ 6 on cygwin which are not on the setup.exe
  2019-05-18 12:19                   ` Jose Isaias Cabrera
@ 2019-05-18 15:54                     ` Ken Brown
  2019-05-18 20:15                       ` Csaba Raduly
  2019-05-18 23:15                       ` Jose Isaias Cabrera
  0 siblings, 2 replies; 22+ messages in thread
From: Ken Brown @ 2019-05-18 15:54 UTC (permalink / raw)
  To: cygwin

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 like this person is porting the source code to gcc-7.4.0.

Ken

--
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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: How to install gcc and g++ 6 on cygwin which are not on the setup.exe
  2019-05-18 15:54                     ` Ken Brown
@ 2019-05-18 20:15                       ` Csaba Raduly
  2019-05-18 23:15                       ` Jose Isaias Cabrera
  1 sibling, 0 replies; 22+ messages in thread
From: Csaba Raduly @ 2019-05-18 20:15 UTC (permalink / raw)
  To: cygwin list

On Sat, May 18, 2019 at 5:55 PM Ken Brown <kbrown@cornell.edu> wrote:
>
> 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 like this person is porting the source code to gcc-7.4.0.
>
> Ken
>
> --
> 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
>

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).

Csaba
-- 
You can get very substantial performance improvements
by not doing the right thing. - Scott Meyers, An Effective C++11/14 Sampler
So if you're looking for a completely portable, 100% standards-conformat way
to get the wrong information: this is what you want. - Scott Meyers (C++TDaWYK)

--
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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: How to install gcc and g++ 6 on cygwin which are not on the setup.exe
  2019-05-18 15:54                     ` Ken Brown
  2019-05-18 20:15                       ` Csaba Raduly
@ 2019-05-18 23:15                       ` Jose Isaias Cabrera
  2019-05-19  1:24                         ` Jose Isaias Cabrera
  1 sibling, 1 reply; 22+ messages in thread
From: Jose Isaias Cabrera @ 2019-05-18 23:15 UTC (permalink / raw)
  To: Ken Brown, cygwin

Ken Brown, on Saturday, May 18, 2019 11:54 AM, wrote...
>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 like this person is porting the source code to gcc-7.4.0.

Thanks, Ken.  Maybe I should go back to my original plan to build with gcc-7.4.0.  These are all the errors that I am getting with gcc 6.4.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 -c libstuff/libstuff.h
libstuff/libstuff.h:424:17: error: ‘recursive_mutex’ does not name a type
         mutable recursive_mutex m;
                 ^~~~~~~~~~~~~~~
libstuff/libstuff.h: In member function ‘std::__cxx11::string std::atomic<std::__cxx11::basic_string<char> >::operator=(std::__cxx11::string)’:
libstuff/libstuff.h:399:23: error: ‘m’ was not declared in this scope
             SAUTOLOCK(m);
                       ^
libstuff/libstuff.h:388:48: note: in definition of macro ‘SAUTOLOCK’
 #define SAUTOLOCK(_MUTEX_) lock_guard<decltype(_MUTEX_)> __SAUTOLOCK_##__LINE__(_MUTEX_);
                                                ^~~~~~~
libstuff/libstuff.h:388:56: error: template argument 1 is invalid
 #define SAUTOLOCK(_MUTEX_) lock_guard<decltype(_MUTEX_)> __SAUTOLOCK_##__LINE__(_MUTEX_);
                                                        ^
libstuff/libstuff.h:399:13: note: in expansion of macro ‘SAUTOLOCK’
             SAUTOLOCK(m);
             ^~~~~~~~~
libstuff/libstuff.h:388:58: error: unused variable ‘__SAUTOLOCK___LINE__’ [-Werror=unused-variable]
 #define SAUTOLOCK(_MUTEX_) lock_guard<decltype(_MUTEX_)> __SAUTOLOCK_##__LINE__(_MUTEX_);
                                                          ^
libstuff/libstuff.h:399:13: note: in expansion of macro ‘SAUTOLOCK’
             SAUTOLOCK(m);
             ^~~~~~~~~
libstuff/libstuff.h: In member function ‘void std::atomic<std::__cxx11::basic_string<char> >::store(std::__cxx11::string, std::memory_order)’:
libstuff/libstuff.h:407:23: error: ‘m’ was not declared in this scope
             SAUTOLOCK(m);
                       ^
libstuff/libstuff.h:388:48: note: in definition of macro ‘SAUTOLOCK’
 #define SAUTOLOCK(_MUTEX_) lock_guard<decltype(_MUTEX_)> __SAUTOLOCK_##__LINE__(_MUTEX_);
                                                ^~~~~~~
libstuff/libstuff.h:388:56: error: template argument 1 is invalid
 #define SAUTOLOCK(_MUTEX_) lock_guard<decltype(_MUTEX_)> __SAUTOLOCK_##__LINE__(_MUTEX_);
                                                        ^
libstuff/libstuff.h:407:13: note: in expansion of macro ‘SAUTOLOCK’
             SAUTOLOCK(m);
             ^~~~~~~~~
libstuff/libstuff.h:388:58: error: unused variable ‘__SAUTOLOCK___LINE__’ [-Werror=unused-variable]
 #define SAUTOLOCK(_MUTEX_) lock_guard<decltype(_MUTEX_)> __SAUTOLOCK_##__LINE__(_MUTEX_);
                                                          ^
libstuff/libstuff.h:407:13: note: in expansion of macro ‘SAUTOLOCK’
             SAUTOLOCK(m);
             ^~~~~~~~~
libstuff/libstuff.h: In member function ‘std::__cxx11::string std::atomic<std::__cxx11::basic_string<char> >::load(std::memory_order) const’:
libstuff/libstuff.h:411:23: error: ‘m’ was not declared in this scope
             SAUTOLOCK(m);
                       ^
libstuff/libstuff.h:388:48: note: in definition of macro ‘SAUTOLOCK’
 #define SAUTOLOCK(_MUTEX_) lock_guard<decltype(_MUTEX_)> __SAUTOLOCK_##__LINE__(_MUTEX_);
                                                ^~~~~~~
libstuff/libstuff.h:388:56: error: template argument 1 is invalid
 #define SAUTOLOCK(_MUTEX_) lock_guard<decltype(_MUTEX_)> __SAUTOLOCK_##__LINE__(_MUTEX_);
                                                        ^
libstuff/libstuff.h:411:13: note: in expansion of macro ‘SAUTOLOCK’
             SAUTOLOCK(m);
             ^~~~~~~~~
libstuff/libstuff.h:388:58: error: unused variable ‘__SAUTOLOCK___LINE__’ [-Werror=unused-variable]
 #define SAUTOLOCK(_MUTEX_) lock_guard<decltype(_MUTEX_)> __SAUTOLOCK_##__LINE__(_MUTEX_);
                                                          ^
libstuff/libstuff.h:411:13: note: in expansion of macro ‘SAUTOLOCK’
             SAUTOLOCK(m);
             ^~~~~~~~~
libstuff/libstuff.h: In member function ‘std::__cxx11::string std::atomic<std::__cxx11::basic_string<char> >::exchange(std::__cxx11::string, std::memory_order)’:
libstuff/libstuff.h:416:23: error: ‘m’ was not declared in this scope
             SAUTOLOCK(m);
                       ^
libstuff/libstuff.h:388:48: note: in definition of macro ‘SAUTOLOCK’
 #define SAUTOLOCK(_MUTEX_) lock_guard<decltype(_MUTEX_)> __SAUTOLOCK_##__LINE__(_MUTEX_);
                                                ^~~~~~~
libstuff/libstuff.h:388:56: error: template argument 1 is invalid
 #define SAUTOLOCK(_MUTEX_) lock_guard<decltype(_MUTEX_)> __SAUTOLOCK_##__LINE__(_MUTEX_);
                                                        ^
libstuff/libstuff.h:416:13: note: in expansion of macro ‘SAUTOLOCK’
             SAUTOLOCK(m);
             ^~~~~~~~~
libstuff/libstuff.h:388:58: error: unused variable ‘__SAUTOLOCK___LINE__’ [-Werror=unused-variable]
 #define SAUTOLOCK(_MUTEX_) lock_guard<decltype(_MUTEX_)> __SAUTOLOCK_##__LINE__(_MUTEX_);
                                                          ^
libstuff/libstuff.h:416:13: note: in expansion of macro ‘SAUTOLOCK’
             SAUTOLOCK(m);
             ^~~~~~~~~
libstuff/libstuff.h: In function ‘bool SIEquals(const string&, const string&)’:
libstuff/libstuff.h:479:105: error: ‘strcasecmp’ was not declared in this scope
 inline bool SIEquals(const string& lhs, const string& rhs) { return !strcasecmp(lhs.c_str(), rhs.c_str()); }
                                                                                                         ^
In file included from libstuff/libstuff.h:858:0:
libstuff/STCPManager.h: At global scope:
libstuff/STCPManager.h:39:9: error: ‘recursive_mutex’ does not name a type
         recursive_mutex sendRecvMutex;
         ^~~~~~~~~~~~~~~
libstuff/STCPManager.h:63:67: error: ‘recursive_mutex’ has not been declared
     Socket* openSocket(const string& host, SX509* x509 = nullptr, recursive_mutex* listMutexPtr = nullptr);
                                                                   ^~~~~~~~~~~~~~~
In file included from libstuff/libstuff.h:859:0:
libstuff/STCPServer.h:40:5: error: ‘mutex’ does not name a type
     mutex portListMutex;
     ^~~~~
In file included from libstuff/libstuff.h:860:0:
libstuff/STCPNode.h:64:9: error: ‘recursive_mutex’ does not name a type
         recursive_mutex socketMutex;
         ^~~~~~~~~~~~~~~
In file included from libstuff/libstuff.h:861:0:
libstuff/SHTTPSManager.h:61:5: error: ‘recursive_mutex’ does not name a type
     recursive_mutex _listMutex;
     ^~~~~~~~~~~~~~~
In file included from libstuff/libstuff.h:864:0:
libstuff/SRandom.h:7:27: error: ‘uint’ has not been declared
     static string randStr(uint& length);
                           ^~~~
In file included from libstuff/libstuff.h:867:0:
libstuff/SSynchronizedQueue.h:39:13: error: ‘recursive_mutex’ does not name a type
     mutable recursive_mutex _queueMutex;
             ^~~~~~~~~~~~~~~
libstuff/SSynchronizedQueue.h: In member function ‘bool SSynchronizedQueue<T>::empty() const’:
libstuff/SSynchronizedQueue.h:83:15: error: ‘_queueMutex’ was not declared in this scope
     SAUTOLOCK(_queueMutex);
               ^
libstuff/libstuff.h:388:48: note: in definition of macro ‘SAUTOLOCK’
 #define SAUTOLOCK(_MUTEX_) lock_guard<decltype(_MUTEX_)> __SAUTOLOCK_##__LINE__(_MUTEX_);
                                                ^~~~~~~
libstuff/libstuff.h:388:56: error: template argument 1 is invalid
 #define SAUTOLOCK(_MUTEX_) lock_guard<decltype(_MUTEX_)> __SAUTOLOCK_##__LINE__(_MUTEX_);
                                                        ^
libstuff/SSynchronizedQueue.h:83:5: note: in expansion of macro ‘SAUTOLOCK’
     SAUTOLOCK(_queueMutex);
     ^~~~~~~~~
libstuff/SSynchronizedQueue.h: In member function ‘virtual const T& SSynchronizedQueue<T>::front() const’:
libstuff/SSynchronizedQueue.h:89:15: error: ‘_queueMutex’ was not declared in this scope
     SAUTOLOCK(_queueMutex);
               ^
libstuff/libstuff.h:388:48: note: in definition of macro ‘SAUTOLOCK’
 #define SAUTOLOCK(_MUTEX_) lock_guard<decltype(_MUTEX_)> __SAUTOLOCK_##__LINE__(_MUTEX_);
                                                ^~~~~~~
libstuff/libstuff.h:388:56: error: template argument 1 is invalid
 #define SAUTOLOCK(_MUTEX_) lock_guard<decltype(_MUTEX_)> __SAUTOLOCK_##__LINE__(_MUTEX_);
                                                        ^
libstuff/SSynchronizedQueue.h:89:5: note: in expansion of macro ‘SAUTOLOCK’
     SAUTOLOCK(_queueMutex);
     ^~~~~~~~~
libstuff/SSynchronizedQueue.h: In member function ‘virtual T SSynchronizedQueue<T>::pop()’:
libstuff/SSynchronizedQueue.h:98:15: error: ‘_queueMutex’ was not declared in this scope
     SAUTOLOCK(_queueMutex);
               ^
libstuff/libstuff.h:388:48: note: in definition of macro ‘SAUTOLOCK’
 #define SAUTOLOCK(_MUTEX_) lock_guard<decltype(_MUTEX_)> __SAUTOLOCK_##__LINE__(_MUTEX_);
                                                ^~~~~~~
libstuff/libstuff.h:388:56: error: template argument 1 is invalid
 #define SAUTOLOCK(_MUTEX_) lock_guard<decltype(_MUTEX_)> __SAUTOLOCK_##__LINE__(_MUTEX_);
                                                        ^
libstuff/SSynchronizedQueue.h:98:5: note: in expansion of macro ‘SAUTOLOCK’
     SAUTOLOCK(_queueMutex);
     ^~~~~~~~~
libstuff/SSynchronizedQueue.h: In member function ‘virtual void SSynchronizedQueue<T>::push(T&&)’:
libstuff/SSynchronizedQueue.h:109:15: error: ‘_queueMutex’ was not declared in this scope
     SAUTOLOCK(_queueMutex);
               ^
libstuff/libstuff.h:388:48: note: in definition of macro ‘SAUTOLOCK’
 #define SAUTOLOCK(_MUTEX_) lock_guard<decltype(_MUTEX_)> __SAUTOLOCK_##__LINE__(_MUTEX_);
                                                ^~~~~~~
libstuff/libstuff.h:388:56: error: template argument 1 is invalid
 #define SAUTOLOCK(_MUTEX_) lock_guard<decltype(_MUTEX_)> __SAUTOLOCK_##__LINE__(_MUTEX_);
                                                        ^
libstuff/SSynchronizedQueue.h:109:5: note: in expansion of macro ‘SAUTOLOCK’
     SAUTOLOCK(_queueMutex);
     ^~~~~~~~~
libstuff/SSynchronizedQueue.h: In member function ‘size_t SSynchronizedQueue<T>::size() const’:
libstuff/SSynchronizedQueue.h:120:15: error: ‘_queueMutex’ was not declared in this scope
     SAUTOLOCK(_queueMutex);
               ^
libstuff/libstuff.h:388:48: note: in definition of macro ‘SAUTOLOCK’
 #define SAUTOLOCK(_MUTEX_) lock_guard<decltype(_MUTEX_)> __SAUTOLOCK_##__LINE__(_MUTEX_);
                                                ^~~~~~~
libstuff/libstuff.h:388:56: error: template argument 1 is invalid
 #define SAUTOLOCK(_MUTEX_) lock_guard<decltype(_MUTEX_)> __SAUTOLOCK_##__LINE__(_MUTEX_);
                                                        ^
libstuff/SSynchronizedQueue.h:120:5: note: in expansion of macro ‘SAUTOLOCK’
     SAUTOLOCK(_queueMutex);
     ^~~~~~~~~
libstuff/SSynchronizedQueue.h: In member function ‘void SSynchronizedQueue<T>::each(std::function<void(T&)>)’:
libstuff/SSynchronizedQueue.h:126:15: error: ‘_queueMutex’ was not declared in this scope
     SAUTOLOCK(_queueMutex);
               ^
libstuff/libstuff.h:388:48: note: in definition of macro ‘SAUTOLOCK’
 #define SAUTOLOCK(_MUTEX_) lock_guard<decltype(_MUTEX_)> __SAUTOLOCK_##__LINE__(_MUTEX_);
                                                ^~~~~~~
libstuff/libstuff.h:388:56: error: template argument 1 is invalid
 #define SAUTOLOCK(_MUTEX_) lock_guard<decltype(_MUTEX_)> __SAUTOLOCK_##__LINE__(_MUTEX_);
                                                        ^
libstuff/SSynchronizedQueue.h:126:5: note: in expansion of macro ‘SAUTOLOCK’
     SAUTOLOCK(_queueMutex);
     ^~~~~~~~~
cc1plus: all warnings being treated as errors
make: *** No rule to make target 'libstuff/libstuff.d', needed by '.build/libstuff/libstuff.d'.  Stop.


--
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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: How to install gcc and g++ 6 on cygwin which are not on the setup.exe
  2019-05-18 23:15                       ` Jose Isaias Cabrera
@ 2019-05-19  1:24                         ` Jose Isaias Cabrera
  2019-05-19  2:57                           ` Jack
  0 siblings, 1 reply; 22+ messages in thread
From: Jose Isaias Cabrera @ 2019-05-19  1:24 UTC (permalink / raw)
  To: Ken Brown, cygwin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="utf-8", Size: 14852 bytes --]


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 v6.4.0.

e608313@HOR711318E ~/gcc/gcc-6.4.0
$ which gcc​
/usr/local/bin/gcc​
​
e608313@HOR711318E ~/gcc/gcc-6.4.0​
$ /usr/bin/gcc --version​
gcc (GCC) 7.4.0​
Copyright (C) 2017 Free Software Foundation, Inc.​
This is free software; see the source for copying conditions.  There is NO​
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.​
​
​
e608313@HOR711318E ~/gcc/gcc-6.4.0​
$ gcc --version​
gcc (GCC) 6.4.0​
Copyright (C) 2017 Free Software Foundation, Inc.​
This is free software; see the source for copying conditions.  There is NO​
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.​
​
How can I have just v7.4.0?  I tried searching around and nothing.  Any help would be greatly appreciated.  I know I can delete the folder and start all over, but I prefer to keep this one as it was.  Or do you think that I should start from scratch?  Thanks.

josé



________________________________
From: cygwin-owner@cygwin.com <cygwin-owner@cygwin.com> on behalf of Jose Isaias Cabrera <jicman@outlook.com>
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 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 like this person is porting the source code to gcc-7.4.0.

Thanks, Ken.  Maybe I should go back to my original plan to build with gcc-7.4.0.  These are all the errors that I am getting with gcc 6.4.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 -c libstuff/libstuff.h
libstuff/libstuff.h:424:17: error: ‘recursive_mutex’ does not name a type
         mutable recursive_mutex m;
                 ^~~~~~~~~~~~~~~
libstuff/libstuff.h: In member function ‘std::__cxx11::string std::atomic<std::__cxx11::basic_string<char> >::operator=(std::__cxx11::string)’:
libstuff/libstuff.h:399:23: error: ‘m’ was not declared in this scope
             SAUTOLOCK(m);
                       ^
libstuff/libstuff.h:388:48: note: in definition of macro ‘SAUTOLOCK’
 #define SAUTOLOCK(_MUTEX_) lock_guard<decltype(_MUTEX_)> __SAUTOLOCK_##__LINE__(_MUTEX_);
                                                ^~~~~~~
libstuff/libstuff.h:388:56: error: template argument 1 is invalid
 #define SAUTOLOCK(_MUTEX_) lock_guard<decltype(_MUTEX_)> __SAUTOLOCK_##__LINE__(_MUTEX_);
                                                        ^
libstuff/libstuff.h:399:13: note: in expansion of macro ‘SAUTOLOCK’
             SAUTOLOCK(m);
             ^~~~~~~~~
libstuff/libstuff.h:388:58: error: unused variable ‘__SAUTOLOCK___LINE__’ [-Werror=unused-variable]
 #define SAUTOLOCK(_MUTEX_) lock_guard<decltype(_MUTEX_)> __SAUTOLOCK_##__LINE__(_MUTEX_);
                                                          ^
libstuff/libstuff.h:399:13: note: in expansion of macro ‘SAUTOLOCK’
             SAUTOLOCK(m);
             ^~~~~~~~~
libstuff/libstuff.h: In member function ‘void std::atomic<std::__cxx11::basic_string<char> >::store(std::__cxx11::string, std::memory_order)’:
libstuff/libstuff.h:407:23: error: ‘m’ was not declared in this scope
             SAUTOLOCK(m);
                       ^
libstuff/libstuff.h:388:48: note: in definition of macro ‘SAUTOLOCK’
 #define SAUTOLOCK(_MUTEX_) lock_guard<decltype(_MUTEX_)> __SAUTOLOCK_##__LINE__(_MUTEX_);
                                                ^~~~~~~
libstuff/libstuff.h:388:56: error: template argument 1 is invalid
 #define SAUTOLOCK(_MUTEX_) lock_guard<decltype(_MUTEX_)> __SAUTOLOCK_##__LINE__(_MUTEX_);
                                                        ^
libstuff/libstuff.h:407:13: note: in expansion of macro ‘SAUTOLOCK’
             SAUTOLOCK(m);
             ^~~~~~~~~
libstuff/libstuff.h:388:58: error: unused variable ‘__SAUTOLOCK___LINE__’ [-Werror=unused-variable]
 #define SAUTOLOCK(_MUTEX_) lock_guard<decltype(_MUTEX_)> __SAUTOLOCK_##__LINE__(_MUTEX_);
                                                          ^
libstuff/libstuff.h:407:13: note: in expansion of macro ‘SAUTOLOCK’
             SAUTOLOCK(m);
             ^~~~~~~~~
libstuff/libstuff.h: In member function ‘std::__cxx11::string std::atomic<std::__cxx11::basic_string<char> >::load(std::memory_order) const’:
libstuff/libstuff.h:411:23: error: ‘m’ was not declared in this scope
             SAUTOLOCK(m);
                       ^
libstuff/libstuff.h:388:48: note: in definition of macro ‘SAUTOLOCK’
 #define SAUTOLOCK(_MUTEX_) lock_guard<decltype(_MUTEX_)> __SAUTOLOCK_##__LINE__(_MUTEX_);
                                                ^~~~~~~
libstuff/libstuff.h:388:56: error: template argument 1 is invalid
 #define SAUTOLOCK(_MUTEX_) lock_guard<decltype(_MUTEX_)> __SAUTOLOCK_##__LINE__(_MUTEX_);
                                                        ^
libstuff/libstuff.h:411:13: note: in expansion of macro ‘SAUTOLOCK’
             SAUTOLOCK(m);
             ^~~~~~~~~
libstuff/libstuff.h:388:58: error: unused variable ‘__SAUTOLOCK___LINE__’ [-Werror=unused-variable]
 #define SAUTOLOCK(_MUTEX_) lock_guard<decltype(_MUTEX_)> __SAUTOLOCK_##__LINE__(_MUTEX_);
                                                          ^
libstuff/libstuff.h:411:13: note: in expansion of macro ‘SAUTOLOCK’
             SAUTOLOCK(m);
             ^~~~~~~~~
libstuff/libstuff.h: In member function ‘std::__cxx11::string std::atomic<std::__cxx11::basic_string<char> >::exchange(std::__cxx11::string, std::memory_order)’:
libstuff/libstuff.h:416:23: error: ‘m’ was not declared in this scope
             SAUTOLOCK(m);
                       ^
libstuff/libstuff.h:388:48: note: in definition of macro ‘SAUTOLOCK’
 #define SAUTOLOCK(_MUTEX_) lock_guard<decltype(_MUTEX_)> __SAUTOLOCK_##__LINE__(_MUTEX_);
                                                ^~~~~~~
libstuff/libstuff.h:388:56: error: template argument 1 is invalid
 #define SAUTOLOCK(_MUTEX_) lock_guard<decltype(_MUTEX_)> __SAUTOLOCK_##__LINE__(_MUTEX_);
                                                        ^
libstuff/libstuff.h:416:13: note: in expansion of macro ‘SAUTOLOCK’
             SAUTOLOCK(m);
             ^~~~~~~~~
libstuff/libstuff.h:388:58: error: unused variable ‘__SAUTOLOCK___LINE__’ [-Werror=unused-variable]
 #define SAUTOLOCK(_MUTEX_) lock_guard<decltype(_MUTEX_)> __SAUTOLOCK_##__LINE__(_MUTEX_);
                                                          ^
libstuff/libstuff.h:416:13: note: in expansion of macro ‘SAUTOLOCK’
             SAUTOLOCK(m);
             ^~~~~~~~~
libstuff/libstuff.h: In function ‘bool SIEquals(const string&, const string&)’:
libstuff/libstuff.h:479:105: error: ‘strcasecmp’ was not declared in this scope
 inline bool SIEquals(const string& lhs, const string& rhs) { return !strcasecmp(lhs.c_str(), rhs.c_str()); }
                                                                                                         ^
In file included from libstuff/libstuff.h:858:0:
libstuff/STCPManager.h: At global scope:
libstuff/STCPManager.h:39:9: error: ‘recursive_mutex’ does not name a type
         recursive_mutex sendRecvMutex;
         ^~~~~~~~~~~~~~~
libstuff/STCPManager.h:63:67: error: ‘recursive_mutex’ has not been declared
     Socket* openSocket(const string& host, SX509* x509 = nullptr, recursive_mutex* listMutexPtr = nullptr);
                                                                   ^~~~~~~~~~~~~~~
In file included from libstuff/libstuff.h:859:0:
libstuff/STCPServer.h:40:5: error: ‘mutex’ does not name a type
     mutex portListMutex;
     ^~~~~
In file included from libstuff/libstuff.h:860:0:
libstuff/STCPNode.h:64:9: error: ‘recursive_mutex’ does not name a type
         recursive_mutex socketMutex;
         ^~~~~~~~~~~~~~~
In file included from libstuff/libstuff.h:861:0:
libstuff/SHTTPSManager.h:61:5: error: ‘recursive_mutex’ does not name a type
     recursive_mutex _listMutex;
     ^~~~~~~~~~~~~~~
In file included from libstuff/libstuff.h:864:0:
libstuff/SRandom.h:7:27: error: ‘uint’ has not been declared
     static string randStr(uint& length);
                           ^~~~
In file included from libstuff/libstuff.h:867:0:
libstuff/SSynchronizedQueue.h:39:13: error: ‘recursive_mutex’ does not name a type
     mutable recursive_mutex _queueMutex;
             ^~~~~~~~~~~~~~~
libstuff/SSynchronizedQueue.h: In member function ‘bool SSynchronizedQueue<T>::empty() const’:
libstuff/SSynchronizedQueue.h:83:15: error: ‘_queueMutex’ was not declared in this scope
     SAUTOLOCK(_queueMutex);
               ^
libstuff/libstuff.h:388:48: note: in definition of macro ‘SAUTOLOCK’
 #define SAUTOLOCK(_MUTEX_) lock_guard<decltype(_MUTEX_)> __SAUTOLOCK_##__LINE__(_MUTEX_);
                                                ^~~~~~~
libstuff/libstuff.h:388:56: error: template argument 1 is invalid
 #define SAUTOLOCK(_MUTEX_) lock_guard<decltype(_MUTEX_)> __SAUTOLOCK_##__LINE__(_MUTEX_);
                                                        ^
libstuff/SSynchronizedQueue.h:83:5: note: in expansion of macro ‘SAUTOLOCK’
     SAUTOLOCK(_queueMutex);
     ^~~~~~~~~
libstuff/SSynchronizedQueue.h: In member function ‘virtual const T& SSynchronizedQueue<T>::front() const’:
libstuff/SSynchronizedQueue.h:89:15: error: ‘_queueMutex’ was not declared in this scope
     SAUTOLOCK(_queueMutex);
               ^
libstuff/libstuff.h:388:48: note: in definition of macro ‘SAUTOLOCK’
 #define SAUTOLOCK(_MUTEX_) lock_guard<decltype(_MUTEX_)> __SAUTOLOCK_##__LINE__(_MUTEX_);
                                                ^~~~~~~
libstuff/libstuff.h:388:56: error: template argument 1 is invalid
 #define SAUTOLOCK(_MUTEX_) lock_guard<decltype(_MUTEX_)> __SAUTOLOCK_##__LINE__(_MUTEX_);
                                                        ^
libstuff/SSynchronizedQueue.h:89:5: note: in expansion of macro ‘SAUTOLOCK’
     SAUTOLOCK(_queueMutex);
     ^~~~~~~~~
libstuff/SSynchronizedQueue.h: In member function ‘virtual T SSynchronizedQueue<T>::pop()’:
libstuff/SSynchronizedQueue.h:98:15: error: ‘_queueMutex’ was not declared in this scope
     SAUTOLOCK(_queueMutex);
               ^
libstuff/libstuff.h:388:48: note: in definition of macro ‘SAUTOLOCK’
 #define SAUTOLOCK(_MUTEX_) lock_guard<decltype(_MUTEX_)> __SAUTOLOCK_##__LINE__(_MUTEX_);
                                                ^~~~~~~
libstuff/libstuff.h:388:56: error: template argument 1 is invalid
 #define SAUTOLOCK(_MUTEX_) lock_guard<decltype(_MUTEX_)> __SAUTOLOCK_##__LINE__(_MUTEX_);
                                                        ^
libstuff/SSynchronizedQueue.h:98:5: note: in expansion of macro ‘SAUTOLOCK’
     SAUTOLOCK(_queueMutex);
     ^~~~~~~~~
libstuff/SSynchronizedQueue.h: In member function ‘virtual void SSynchronizedQueue<T>::push(T&&)’:
libstuff/SSynchronizedQueue.h:109:15: error: ‘_queueMutex’ was not declared in this scope
     SAUTOLOCK(_queueMutex);
               ^
libstuff/libstuff.h:388:48: note: in definition of macro ‘SAUTOLOCK’
 #define SAUTOLOCK(_MUTEX_) lock_guard<decltype(_MUTEX_)> __SAUTOLOCK_##__LINE__(_MUTEX_);
                                                ^~~~~~~
libstuff/libstuff.h:388:56: error: template argument 1 is invalid
 #define SAUTOLOCK(_MUTEX_) lock_guard<decltype(_MUTEX_)> __SAUTOLOCK_##__LINE__(_MUTEX_);
                                                        ^
libstuff/SSynchronizedQueue.h:109:5: note: in expansion of macro ‘SAUTOLOCK’
     SAUTOLOCK(_queueMutex);
     ^~~~~~~~~
libstuff/SSynchronizedQueue.h: In member function ‘size_t SSynchronizedQueue<T>::size() const’:
libstuff/SSynchronizedQueue.h:120:15: error: ‘_queueMutex’ was not declared in this scope
     SAUTOLOCK(_queueMutex);
               ^
libstuff/libstuff.h:388:48: note: in definition of macro ‘SAUTOLOCK’
 #define SAUTOLOCK(_MUTEX_) lock_guard<decltype(_MUTEX_)> __SAUTOLOCK_##__LINE__(_MUTEX_);
                                                ^~~~~~~
libstuff/libstuff.h:388:56: error: template argument 1 is invalid
 #define SAUTOLOCK(_MUTEX_) lock_guard<decltype(_MUTEX_)> __SAUTOLOCK_##__LINE__(_MUTEX_);
                                                        ^
libstuff/SSynchronizedQueue.h:120:5: note: in expansion of macro ‘SAUTOLOCK’
     SAUTOLOCK(_queueMutex);
     ^~~~~~~~~
libstuff/SSynchronizedQueue.h: In member function ‘void SSynchronizedQueue<T>::each(std::function<void(T&)>)’:
libstuff/SSynchronizedQueue.h:126:15: error: ‘_queueMutex’ was not declared in this scope
     SAUTOLOCK(_queueMutex);
               ^
libstuff/libstuff.h:388:48: note: in definition of macro ‘SAUTOLOCK’
 #define SAUTOLOCK(_MUTEX_) lock_guard<decltype(_MUTEX_)> __SAUTOLOCK_##__LINE__(_MUTEX_);
                                                ^~~~~~~
libstuff/libstuff.h:388:56: error: template argument 1 is invalid
 #define SAUTOLOCK(_MUTEX_) lock_guard<decltype(_MUTEX_)> __SAUTOLOCK_##__LINE__(_MUTEX_);
                                                        ^
libstuff/SSynchronizedQueue.h:126:5: note: in expansion of macro ‘SAUTOLOCK’
     SAUTOLOCK(_queueMutex);
     ^~~~~~~~~
cc1plus: all warnings being treated as errors
make: *** No rule to make target 'libstuff/libstuff.d', needed by '.build/libstuff/libstuff.d'.  Stop.


--
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

\x03B‹KCB”\x1c›Ø›\x19[H\x1c™\^[ܝ\x1cΈ\b\b\b\b\b\b\x1a\x1d\x1d\x1c\x0e‹ËØÞYÝÚ[‹˜ÛÛKÜ\x1c›Ø›\x19[\Ëš\x1d^[[\x03B‘TNˆ\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\x1a\x1d\x1d\x1c\x0e‹ËØÞYÝÚ[‹˜ÛÛKÙ˜\KÃB‘^[ØÝ[Y[\x18]\x1a[ÛŽˆ\b\b\b\b\b\b\b\b\x1a\x1d\x1d\x1c\x0e‹ËØÞYÝÚ[‹˜ÛÛKÙ^[ØÜËš\x1d^[[\x03B•[œÝXœØÜšX™H\x1a[™›Îˆ\b\b\b\b\b\x1a\x1d\x1d\x1c\x0e‹ËØÞYÝÚ[‹˜ÛÛKÛ[\vÈÝ[œÝXœØÜšX™K\Ú[\^[\x19CBƒB

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: How to install gcc and g++ 6 on cygwin which are not on the setup.exe
  2019-05-19  1:24                         ` Jose Isaias Cabrera
@ 2019-05-19  2:57                           ` Jack
  2019-05-19  8:37                             ` Csaba Raduly
  0 siblings, 1 reply; 22+ messages in thread
From: Jack @ 2019-05-19  2:57 UTC (permalink / raw)
  To: cygwin

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 v6.4.0.
If you did "make install" then you can do "make uninstall" unless you 
deleted the build folder.  In that case, you just have to find all the 
pieces and manually delete them.

--
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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: How to install gcc and g++ 6 on cygwin which are not on the setup.exe
  2019-05-19  2:57                           ` Jack
@ 2019-05-19  8:37                             ` Csaba Raduly
  2019-05-20 14:56                               ` Jose Isaias Cabrera
  0 siblings, 1 reply; 22+ messages in thread
From: Csaba Raduly @ 2019-05-19  8:37 UTC (permalink / raw)
  To: cygwin list

On Sun, May 19, 2019 at 4:57 AM Jack  wrote:
>
> 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 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 installed into /usr (so the default GCC 7.4 is
/usr/bin/g++). Unfortunately, whether one or the other is picked
depends on your PATH.

I tend to configure my hand-built GCC with --program-suffix= (e.g. GCC
6 with --program-suffix=-6, so the name of the compiler ends up being
g++-6).

> If you did "make install" then you can do "make uninstall" unless you
> deleted the build folder.  In that case, you just have to find all the
> pieces and manually delete them.

Unfortunately, gcc doesn't support "make uninstall". A workaround is
to make a fake install with "make install DESTDIR=/tmp/usr/local" and
then make a list of all the files under that directory, remove the
"/tmp" and delete the files based on the list, something like

find /tmp/usr/local -type f | perl -pwle 's!/tmp!!' | xargs rm

(disclaimer: untested)

This would leave empty directories behind.

Csaba
-- 
You can get very substantial performance improvements
by not doing the right thing. - Scott Meyers, An Effective C++11/14 Sampler
So if you're looking for a completely portable, 100% standards-conformat way
to get the wrong information: this is what you want. - Scott Meyers (C++TDaWYK)

--
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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: How to install gcc and g++ 6 on cygwin which are not on the setup.exe
  2019-05-19  8:37                             ` Csaba Raduly
@ 2019-05-20 14:56                               ` Jose Isaias Cabrera
  0 siblings, 0 replies; 22+ messages in thread
From: Jose Isaias Cabrera @ 2019-05-20 14:56 UTC (permalink / raw)
  To: Csaba Raduly, cygwin list


Csaba Raduly, on Sunday, May 19, 2019 04:37 AM, wrote...
>On Sun, May 19, 2019 at 4:57 AM Jack  wrote:
>>
>> 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 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 installed into /usr (so the default GCC 7.4 is
>/usr/bin/g++). Unfortunately, whether one or the other is picked
>depends on your PATH.
>
>I tend to configure my hand-built GCC with --program-suffix= (e.g. GCC
>6 with --program-suffix=-6, so the name of the compiler ends up being
>g++-6).
Good to know for the next one. :-(  I should have used this on my run of configure. It would have matched what Bedrockdb make was calling.

>Unfortunately, gcc doesn't support "make uninstall". A workaround is
>to make a fake install with "make install DESTDIR=/tmp/usr/local" and
>then make a list of all the files under that directory, remove the
>"/tmp" and delete the files based on the list, something like

I started from scratch. I had a nice cygwin setup with Xfce, which I have to go back and set it back up.  But, that's easier because I know what I am doing here. ;-)  Thanks for all your help.

josé

--
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

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2019-05-20 14:56 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-15 20:58 How to install gcc and g++ 6 on cygwin which are not on the setup.exe Jose Isaias Cabrera
2019-05-16  7:36 ` Csaba Raduly
2019-05-16 16:47   ` Jose Isaias Cabrera
2019-05-16 21:47     ` Csaba Ráduly
2019-05-17  3:28       ` Jose Isaias Cabrera
2019-05-17 13:16         ` Eliot Moss
2019-05-17 15:21           ` Jose Isaias Cabrera
2019-05-18  3:18             ` Jose Isaias Cabrera
2019-05-18  5:14               ` Brian Inglis
2019-05-18  6:50                 ` Csaba Raduly
2019-05-18 12:19                   ` Jose Isaias Cabrera
2019-05-18 15:54                     ` Ken Brown
2019-05-18 20:15                       ` Csaba Raduly
2019-05-18 23:15                       ` Jose Isaias Cabrera
2019-05-19  1:24                         ` Jose Isaias Cabrera
2019-05-19  2:57                           ` Jack
2019-05-19  8:37                             ` Csaba Raduly
2019-05-20 14:56                               ` Jose Isaias Cabrera
2019-05-18 12:16                 ` Jose Isaias Cabrera
2019-05-18 12:01               ` Jose Isaias Cabrera
2019-05-18  5:13 ` Doug Henderson
2019-05-18 12:14   ` Jose Isaias Cabrera

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).