Package Details: gcc49 4.9.4-3

Git Clone URL: https://aur.archlinux.org/gcc49.git (read-only, click to copy)
Package Base: gcc49
Description: The GNU Compiler Collection (4.9.x)
Upstream URL: http://gcc.gnu.org
Licenses: GPL, custom, LGPL, FDL
Submitter: rubenvb
Maintainer: severach
Last Packager: severach
Votes: 21
Popularity: 0.000000
First Submitted: 2015-07-01 12:48 (UTC)
Last Updated: 2023-02-22 04:47 (UTC)

Latest Comments

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

lonaowna commented on 2016-05-13 09:01 (UTC)

@GeorgeChao If you read two comments down you would see the cause of the problem. (i.e. this version doesn't compile with GCC 6. here is a working PKGBUILD: https://gist.github.com/slokhorst/029aa3c86bdb897cb47acc3f137aa11c )

GeorgeChao commented on 2016-05-13 05:15 (UTC)

When I use makepkg, I meet some error. -- /home/gg/softwares/gcc49/src/gcc-4.9.3/gcc/defaults.h:126:24: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix] fprintf ((FILE), ","HOST_WIDE_INT_PRINT_UNSIGNED",%u\n", \ ^ In file included from /home/gg/softwares/gcc49/src/gcc-4.9.3/gcc/cp/except.c:1013:0: cfns.gperf: In function ‘const char* libc_name_p(const char*, unsigned int)’: cfns.gperf:101:1: error: ‘const char* libc_name_p(const char*, unsigned int)’ redeclared inline with ‘gnu_inline’ attribute cfns.gperf:26:14: note: ‘const char* libc_name_p(const char*, unsigned int)’ previously declared here cfns.gperf: At global scope: cfns.gperf:26:14: warning: inline function ‘const char* libc_name_p(const char*, unsigned int)’ used but never defined Makefile:1058: recipe for target 'cp/except.o' failed make[3]: *** [cp/except.o] Error 1 make[3]: Leaving directory '/home/gg/softwares/gcc49/src/gcc-build/gcc' Makefile:4226: recipe for target 'all-stage1-gcc' failed make[2]: *** [all-stage1-gcc] Error 2 make[2]: Leaving directory '/home/gg/softwares/gcc49/src/gcc-build' Makefile:21618: recipe for target 'stage1-bubble' failed make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory '/home/gg/softwares/gcc49/src/gcc-build' Makefile:893: recipe for target 'all' failed make: *** [all] Error 2 ==> ERROR: A failure occurred in build().

lonaowna commented on 2016-05-10 09:37 (UTC)

I have created PKGBUILDs for both GCC 4.9 and GCC 5 which use the latest snapshot and compile with GCC 6. GCC 4.9: https://gist.github.com/slokhorst/029aa3c86bdb897cb47acc3f137aa11c GCC 5: https://aur.archlinux.org/packages/gcc5/

blash20 commented on 2016-05-08 01:05 (UTC)

Ionaowna, what would I have to do to get this to work? I have the same problem with GCC 6 and compiling this package and also when I change the PKGBUILD to use gcc-5.3.

lonaowna commented on 2016-05-04 11:55 (UTC) (edited on 2016-05-04 12:11 (UTC) by lonaowna)

This doesn't seem to compile with GCC 6 (currently in [testing])... Fails on: cfns.gperf:101:1: error: ‘const char* libc_name_p(const char*, unsigned int)’ redeclared inline with ‘gnu_inline’ attribute Edit: this seems to be fixed upstream in GCC 5, but I'm not sure about GCC 4: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69959

frzburn commented on 2016-05-03 22:12 (UTC)

Commenting -D_FORTIFY_SOURCE=2 in makepkg.conf did it for me. Thanks stvad!

stvad commented on 2016-01-10 20:34 (UTC)

Commenting the flags: -D_FORTIFY_SOURCE=2 in makepkg.conf helped. And I guess the other option is applying patch from @zarroc comment.

stvad commented on 2016-01-10 17:36 (UTC)

But I still can't build it. I'm getting this one now: In file included from /usr/include/stdio.h:936:0, from /home/stvad/yaourtmp/yaourt-tmp-stvad/aur-gcc49/src/gcc-4.9.3/libitm/util.cc:27: /usr/include/bits/stdio2.h: In function ‘void GTM::gtm_verror(const char*, __va_list_tag*)’: /usr/include/bits/stdio2.h:124:1: error: inlining failed in call to always_inline ‘int vfprintf(FILE*, const char*, __va_list_tag*)’: function body can be overwritten at link time vfprintf (FILE *__restrict __stream, ^ /home/stvad/yaourtmp/yaourt-tmp-stvad/aur-gcc49/src/gcc-4.9.3/libitm/util.cc:35:31: error: called from here vfprintf (stderr, fmt, list); ^ Makefile:517: recipe for target 'util.lo' failed make[4]: *** [util.lo] Error 1