public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* cygwin64 install g++ v 4.6.4
@ 2014-05-29  8:29 Philapol
  2014-05-29 10:52 ` Csaba Raduly
  2014-05-29 15:40 ` David Stacey
  0 siblings, 2 replies; 4+ messages in thread
From: Philapol @ 2014-05-29  8:29 UTC (permalink / raw)
  To: cygwin

Hi,
I would like to install g++ v 4.6.4 under cygwin64 but only v 4.8.2 is 
available. What is the procedure to install this older version?

Note: I have a large (~500K loc) C++ project that builds under Ubuntu 12.04 
LTS / g++ 4.6.4; however, it will not build under cygwin64 using g++ v 4.8.2. 

Thanks for your assistance.

Philapol


--
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] 4+ messages in thread

* Re: cygwin64 install g++ v 4.6.4
  2014-05-29  8:29 cygwin64 install g++ v 4.6.4 Philapol
@ 2014-05-29 10:52 ` Csaba Raduly
  2014-05-29 15:40 ` David Stacey
  1 sibling, 0 replies; 4+ messages in thread
From: Csaba Raduly @ 2014-05-29 10:52 UTC (permalink / raw)
  To: cygwin list

Hi Philapol,

On Thu, May 29, 2014 at 6:19 AM, Philapol  wrote:
> Hi,
> I would like to install g++ v 4.6.4 under cygwin64 but only v 4.8.2 is
> available. What is the procedure to install this older version?
>
> Note: I have a large (~500K loc) C++ project that builds under Ubuntu 12.04
> LTS / g++ 4.6.4; however, it will not build under cygwin64 using g++ v 4.8.2.

What was the error message?

Have you tried building it with g++ 4.8.2 under Ubuntu 12.04?
There are PPAs for it
(http://ubuntuhandbook.org/index.php/2013/08/install-gcc-4-8-via-ppa-in-ubuntu-12-04-13-04/,
http://askubuntu.com/questions/271388/how-to-install-gcc-4-8-in-ubuntu-12-04-from-the-terminal)
or you could build a gcc 4.8.2 from source.

There's a possibility that g++4.8.2 is stricter than g++4.6.4 and your
code won't build with g++4.8.2 on any platform, in which case the
Right Thing (tm) is to correct the errors in your project.

I'm typing this on an Ubuntu LTS 12.04 so I can't check what the
previous version of GCC is on Cygwin, but it's probably some other
4.8.x so choosing "previous" in Cygwin's setup.exe probably won't
help.

Your options include building a GCC 4.6.4 from source or the Cygwin
Time Machine ( http://www.fruitbat.org/Cygwin/ )

HTH,
Csaba
-- 
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds

--
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] 4+ messages in thread

* Re: cygwin64 install g++ v 4.6.4
  2014-05-29  8:29 cygwin64 install g++ v 4.6.4 Philapol
  2014-05-29 10:52 ` Csaba Raduly
@ 2014-05-29 15:40 ` David Stacey
  2014-05-30 19:56   ` Yaakov (Cygwin/X)
  1 sibling, 1 reply; 4+ messages in thread
From: David Stacey @ 2014-05-29 15:40 UTC (permalink / raw)
  To: cygwin

On 29/05/14 05:19, Philapol wrote:
> I would like to install g++ v 4.6.4 under cygwin64 but only v 4.8.2 is
> available. What is the procedure to install this older version?

64-bit Cygwin is relatively new, and the earliest version of gcc that 
was built for 64-bit was gcc-4.8.0 (IIRC). If you need an older version 
then you would have to build it yourself from source. But as others have 
pointed out, your time would be better spent maintaining the code so 
that it compiles with a more modern compiler.

Cheers,

Dave.


--
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] 4+ messages in thread

* Re: cygwin64 install g++ v 4.6.4
  2014-05-29 15:40 ` David Stacey
@ 2014-05-30 19:56   ` Yaakov (Cygwin/X)
  0 siblings, 0 replies; 4+ messages in thread
From: Yaakov (Cygwin/X) @ 2014-05-30 19:56 UTC (permalink / raw)
  To: cygwin

On 2014-05-29 03:58, David Stacey wrote:
> On 29/05/14 05:19, Philapol wrote:
>> I would like to install g++ v 4.6.4 under cygwin64 but only v 4.8.2 is
>> available. What is the procedure to install this older version?
>
> 64-bit Cygwin is relatively new, and the earliest version of gcc that
> was built for 64-bit was gcc-4.8.0 (IIRC). If you need an older version
> then you would have to build it yourself from source.

Not likely; the requisite Win64 SEH support was only introduced in 4.8, 
so building an earlier version simply isn't going to work.

> But as others have pointed out, your time would be better spent maintaining
> the code so that it compiles with a more modern compiler.

+1.  Unless you can *prove* that there is a bug in GCC (which does 
occasionally happen, granted), then this is usually the answer to this 
sort of question.


Yaakov


--
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] 4+ messages in thread

end of thread, other threads:[~2014-05-30 17:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-29  8:29 cygwin64 install g++ v 4.6.4 Philapol
2014-05-29 10:52 ` Csaba Raduly
2014-05-29 15:40 ` David Stacey
2014-05-30 19:56   ` Yaakov (Cygwin/X)

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