You are not logged in.

#1 2017-06-20 00:27:39

Jmillwood
Member
Registered: 2016-09-19
Posts: 10

[Solved] Installing Older Version of GCC

I need an older version of gcc for a project I'm trying to compile.
I did successfully install gcc5 but then I tried to install "gcc53-alternative-multilib" but it failed because it couldn't find a particular directory.
Is this something I should report to the package maintainer or an issue on my end?

The install took a really long time. I just let it run through the night. Here is the end of the print out

cp: cannot stat '/home/jesse/yaourt/yaourt-tmp-jesse/aur-gcc53-alternative-multilib/src/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/doc/doxygen/man/man3': No such file or directory
make: *** [Makefile:820: doc-install-man] Error 1
make: Leaving directory '/home/jesse/yaourt/yaourt-tmp-jesse/aur-gcc53-alternative-multilib/src/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/doc'
==> ERROR: A failure occurred in package_gcc53-alternative-multilib().
    Aborting...
==> ERROR: Makepkg was unable to build gcc53-alternative-multilib.
==> Restart building gcc53-alternative-multilib ? [y/N]


Thanks for any pointers.

Last edited by Jmillwood (2017-06-25 20:04:41)

Offline

#2 2017-06-20 00:50:00

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,612

Re: [Solved] Installing Older Version of GCC

How are you compiling it?  It looks like you are having problems only with the doc files -- try changing the configuration so as not to do that.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#3 2017-06-20 01:32:08

Jmillwood
Member
Registered: 2016-09-19
Posts: 10

Re: [Solved] Installing Older Version of GCC

Thanks for the quick reply!
I was just using yaourt and didn't change anything

So the PKGBUILD is here: https://aur.archlinux.org/cgit/aur.git/ … e-multilib

It looks like there is two make commands dealing with documentation, line 93 and 285. Would you advise commenting those out and rerunning?

Also as I have never had two installations of gcc on my machine before. Does this PKGBUILD script look like it'll wipe out my current libraries for gcc 7? It kind of looks that way to me now. I want to keep all of my stock system stuff but just have an older gcc and libs for a different project.

Thanks

Offline

#4 2017-06-20 01:45:04

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: [Solved] Installing Older Version of GCC

It doesn't look like it will. It doesn't say it replaces gcc. So if it conflicts, pacman will simply refuse to install it.

Also, when troubleshooting AUR packages, you should build directly with makepkg. AUR helpers like yaourt can introduce errors of their own.


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#5 2017-06-20 01:46:14

Jmillwood
Member
Registered: 2016-09-19
Posts: 10

Re: [Solved] Installing Older Version of GCC

Ahh thanks,
I'll look into using makepkg, thanks for the tip!

Offline

#6 2017-06-20 02:32:11

Jmillwood
Member
Registered: 2016-09-19
Posts: 10

Re: [Solved] Installing Older Version of GCC

@fsckd so I git cloned the pkgbuild and am running makepkg on it. I'll check it in the morning thanks!

Offline

#7 2017-06-21 09:46:36

Jmillwood
Member
Registered: 2016-09-19
Posts: 10

Re: [Solved] Installing Older Version of GCC

@fsckd I ran "makepkg --nocheck" (because it already passed the check section the other times I tried to install it) and commented out those two lines that had to do with the "make doc" and it finished!
I'll try and install it later today and make sure I can compile my project. Thanks!

Offline

#8 2017-06-21 12:54:41

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: [Solved] Installing Older Version of GCC

Great! If it works to your satisfaction, remember to mark this thread as [SOLVED].


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#9 2017-06-25 20:02:42

Jmillwood
Member
Registered: 2016-09-19
Posts: 10

Re: [Solved] Installing Older Version of GCC

Well it installed after commenting out the doc lines. Thanks!
So I'll mark it as solved.

but I am having some issues with the linker complaining about incompatible libgcc.a for -lgcc
But that might be something else.

Offline

Board footer

Powered by FluxBB