Package Details: gcc49 4.9.4-3

Git Clone URL: https://aur.archlinux.org/gcc49.git (read-only)
Package Base: gcc49
Description: The GNU Compiler Collection
Upstream URL: http://gcc.gnu.org
Licenses: GPL, custom, LGPL, FDL
Submitter: rubenvb
Maintainer: rubenvb
Last Packager: rubenvb
Votes: 20
Popularity: 0.138147
First Submitted: 2015-07-01 12:48
Last Updated: 2018-09-16 16:24

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 Next › Last »

rubenvb commented on 2017-09-17 19:19

The new update should do it.

severach commented on 2017-09-13 20:16

glibc 2.26 has broken your compiler. See patches in gcc49-multilib.

rubenvb commented on 2017-07-23 11:42

I have pushed an update removing the -fno-plt option from C{XX}FLAGS.

The -V and -qversion test aren't harmful; these are "get version information" options that autotools configure tries automatically. Please test the new changes and let me know if it works properly now :).

bartus commented on 2017-07-22 11:02

Working PKGBUILD: https://pastebin.com/rwGxnbZS
fixed issue
* -fno-plt removed from buildflags to fix gcc49 building libgcc not supporting this flag
* remove -V and -qversion from all configs as gcc7 no longer support those switches

PostRun commented on 2017-07-19 06:31

Thanks, editing /etc/makepkg.conf and removing -fno-plt solved the issue.

I just backed up /etc/makepkg.conf made the edit, built gcc49 and restored the back up.

severach commented on 2017-07-18 17:40

https://www.reddit.com/r/archlinux/comments/6nxxre/build_error_gcc5_fail_on_fnoplt_flag/

That's it! I updated /etc/makepkg.conf and now I'm crashing at the same error. Remove -fno-plt and it compiles. I'll wait to see if someone has a better solution.

sinanmut commented on 2017-07-18 09:17

-mkdir -p $HOME/build/
-cd $HOME/build/
-git clone https://aur.archlinux.org/gcc49.git
-cd gcc49
-makepkg -g >> PKGBUILD && makepkg

It will download three packages. Uncompress them and find all the files which has "qversion" in it. Remove "-V, -qversion" strings from all configure files.

- Then compress the folders again.
- Change the PKGBUILD. Give the direct path of the packages, it should not download them again.

- But it still does not built on my machine:
configure:3620: error: in `.../build/gcc49-multilib/src/gcc-4.9.4/gcc-build/x86_64-pc-linux-gnu/libgcc':
configure:3623: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.

- If you check the log files you will see more errors. I read somewhere these are due to autoconf. So instead of using package manager, build isl/cloog/gcc4
separately. For each of them do configure, make, make install ...
It worked for me. https://github.com/nghttp2/nghttp2/issues/863

But I don't understand why autoconf or package manager does not compile.

PostRun commented on 2017-07-18 03:11

I am also having the issue
gcc: error: unrecognized command line option '-V'

How did you rebuild after editing the configure files?

sinanmut commented on 2017-07-18 00:15

Hi,

I tried again with gcc49-multilib after installing gcc-multilib 7.1.1-4. I still have the similar errors:

1) gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
It should be -v instead of -V I guess, after cleaning "-V, -qversion" from all configure files I do not have this error anymore. I did it for gcc49 version. Is there a way around this instead of changing the configure files?

Thanks



severach commented on 2017-07-17 22:06

I just built this and gcc49-multilib using gcc-multilib 7.1.1-4 without any problems.