Re: gcc 4.9

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

 



On Mon, 1 Aug 2016 04:30:03 +0000 (UTC)
"Amadeus W.M." <amadeus84@xxxxxxxxxxx> wrote:
[snip]
> 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.

You don't have write access to that file?  If you do, you could just
comment out that check.

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

It's been awhile, but IIRC most spec files have a COPTIONS variable
that appends to (and overrides earlier options, since that is how gcc
works) the default options in the rpmbuild setup file.  There are a set
of default options for rpmbuild common to fedora, but I took a quick
look and couldn't find it, though I've seen it before.  If you can find
that file, you could change the options there instead.

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

Outside my area of expertise, maybe someone else can help you.
--
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