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