Re: gcc 4.9

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 31 Jul 2016 11:32:03 -0700, stan wrote:

> On Sun, 31 Jul 2016 11:06:18 -0700 stan <stanl-fedorauser@xxxxxxxxxxx>
> wrote:
> 
>> On Sun, 31 Jul 2016 17:24:16 +0000 (UTC) "Amadeus W.M."
>> <amadeus84@xxxxxxxxxxx> wrote:
>> 
>> > On Sun, 31 Jul 2016 16:36:10 +0000, Rick Stevens wrote:
>> >   
>> > > IIRC the cuda installer lets you override the check for the gcc
>> > > version (try running the installer ".run" file with the "--help"
>> > > option).
>> > > 
>> > > 
>> > > Note that overrides the gcc check during installation--there's no
>> > > guarantee that compilations will work. Cuda uses certain gcc flags
>> > > that may be deprecated or non-existent in newer gcc
>> > > implementations.
>> > > 
>> > > 
>> > > 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, 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.
> 
> Some further thoughts.  The 4.9 compiler is from F21.  So you could
> build a virtual machine of F21 to use for this, or do a minimal install
> just for this purpose. I can't remember the link, but Fedora keeps a
> snapshot of the last version of each version, so there is an F21
> repository with all the software in it, current at the end of the
> version.  Then just install from the cuda repository, and off you go.
> 
> This would be a lot easier than trying to bolt gcc 4.9 onto the latest
> Fedora.
> --
> users mailing list users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe or
> change subscription options:
> https://lists.fedoraproject.org/admin/lists/users@xxxxxxxxxxxxxxxxxxxxxxx
> Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a
> question? Ask away: http://ask.fedoraproject.org


Unfortunately nothing worked. 


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!

#endif /* __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 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.



Second, the gcc-4.9.src.rpm did not build with gcc-6.1. Initially it did 
not build because it required /lib/libc.so.6 and /usr/lib/libc.so.6 (in 
addition to the lib64 versions), so I just removed /lib/libc.so.6 and
/usr/lib/libc.so.6 from the gcc.spec file. The rebuild process did start 
after that, and I thought it would go through, but it bombed out with some 
compilation error which I don't feel inclined to fix, as it must be due to 
some incompatibility between my gcc-6.1 and what I'm trying to compile. I 
might get it to compile if I can specify gcc --std=gnu89 when compiling 
the old compiler, but I don't know how to pass compiler options to 
rpmbuild. 


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 up the live image, not the one I installed 
to disk. Not sure how install to disk works in a VM. 


--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://lists.fedoraproject.org/admin/lists/users@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux