Re: gcc 4.9

2016-08-02 Thread Amadeus W.M.
On Mon, 01 Aug 2016 14:16:57 +0200, poma wrote: > On 01.08.2016 06:30, Amadeus W.M. wrote: > [...] >> In the cuda distribution there is a host_config.h file which contains >> the following lines: >> >> #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 9) >> >> #error -- unsupported GNU vers

Re: gcc 4.9

2016-08-02 Thread stan
On Tue, 2 Aug 2016 02:04:13 + (UTC) "Amadeus W.M." wrote: [snip] > > That's what I thought too, but try this: > > // Compile as > // g++ -o gnuc gnuc.cpp > // then as > // g++ --std=gnu++11 -o gnuc gnuc.cpp > > #include > #include > > using namespace std; > >

Re: gcc 4.9

2016-08-01 Thread Amadeus W.M.
_GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 9) >> >> >> >> #error -- unsupported GNU version! gcc versions later than 4.9 are >> >> not supported! >> >> >> >> #endif /* __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ &

Re: gcc 4.9

2016-08-01 Thread stan
GNU version! gcc versions later than 4.9 are > >> not supported! > >> > >> #endif /* __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 9) */ > >> > >> > >> This checks the version of the compiler and triggers an error with > >>

Re: gcc 4.9

2016-08-01 Thread Amadeus W.M.
OR__ > 9) */ >> >> >> This checks the version of the compiler and triggers an error with >> gcc-6.1 even if I pass --std=gnu89 which was the default C standard in >> gcc-4.9. > > You don't have write access to that file? If you do, you could just >

Re: gcc 4.9

2016-08-01 Thread Sjoerd Mullender
On 08/01/2016 06:30 AM, Amadeus W.M. wrote: > Third, I was only able to find a Fedora-21-Live image and I created a > virtual box from it, booted that up and installed to disk. But, as one > might expect, gnome-boxes only knew about the Live VM, and each time I > would boot it up, it would boot

Re: gcc 4.9

2016-08-01 Thread stan
On Mon, 1 Aug 2016 04:30:03 + (UTC) "Amadeus W.M." wrote: > Third, I was only able to find a Fedora-21-Live image and I created a > virtual box from it, booted that up and installed to disk. But, as > one might expect, gnome-boxes only knew about the Live VM, and each > time I would boot it

Re: gcc 4.9

2016-08-01 Thread stan
INOR__ > 9) > > #error -- unsupported GNU version! gcc versions later than 4.9 are > not supported! > > #endif /* __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 9) */ > > > This checks the version of the compiler and triggers an error with > gcc-6.

Re: gcc 4.9

2016-08-01 Thread poma
On 01.08.2016 06:30, Amadeus W.M. wrote: [...] > In the cuda distribution there is a host_config.h file which contains the > following lines: > > #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 9) > > #error -- unsupported GNU version! gcc versions later than 4.9 are not > supported! >

Re: gcc 4.9

2016-07-31 Thread Amadeus W.M.
> Rick Stevens, Systems Engineer AllDigital, Inc. >> > > >> > >> > NVIDIA provides a cuda rpm repository and I installed everything from >> > there with dnf, so it installed with whatever defaults it came with. >> > And

Re: gcc 4.9

2016-07-31 Thread Matthew Saltzman
or non-existent in newer gcc > > > > implementations. > > > > > > > > > > > > Rick Stevens, Systems Engineer AllDigital, Inc. > > > > > > > > > > NVIDIA provides a cuda rpm repos

Re: gcc 4.9

2016-07-31 Thread stan
rovides a cuda rpm repository and I installed everything > > from there with dnf, so it installed with whatever defaults it came > > with. And, as you said, even if it doesn't check for the compiler, > > it won't necessarily compile. I'm really looking for a clean way

Re: gcc 4.9

2016-07-31 Thread stan
even if it doesn't check for the compiler, it won't > necessarily compile. I'm really looking for a clean way of installing > gcc-4.9. A possible workaround would be to set the version of C that you want gcc to adhere to. I think there are flags in gcc that tell it to use, say,

Re: gcc 4.9

2016-07-31 Thread Amadeus W.M.
ory and I installed everything from there with dnf, so it installed with whatever defaults it came with. And, as you said, even if it doesn't check for the compiler, it won't necessarily compile. I'm really looking for a clean way of installing gcc-4.9. -- users mailing list us

Re: gcc 4.9

2016-07-31 Thread Rick Stevens
gs that may be deprecated or non-existent in newer gcc implementations. Rick Stevens, Systems Engineer AllDigital, Inc. From: Amadeus W.M. Sent: Sunday, July 31, 2016 9:08:35 AM To: users@lists.fedoraproject.org Subject: gcc 4.9 I want to do some parallel pro

gcc 4.9

2016-07-31 Thread Amadeus W.M.
I want to do some parallel programming on my nvidia GPU, and for that I need cuda. The latest is cuda 7.5 and that requires gcc 4.9. I installed cuda on my machine, but little did I know that fedora 24, which I recently installed, came with gcc 6.1. I wasn't able to compile any of the