Package Details: gcc47 4.7.4-2

Git Clone URL: https://aur.archlinux.org/gcc47.git (read-only, click to copy)
Package Base: gcc47
Description: The GNU Compiler Collection (4.7.x)
Upstream URL: http://gcc.gnu.org
Licenses: GPL, custom, LGPL, FDL
Submitter: mosra
Maintainer: severach
Last Packager: severach
Votes: 21
Popularity: 0.000000
First Submitted: 2013-06-06 16:22
Last Updated: 2018-11-24 21:45

Latest Comments

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

rubenvb commented on 2015-09-29 12:39

This patch is needed to compile with GCC 5:

diff --git a/gcc/cp/cfns.h b/gcc/cp/cfns.h
index 62cdfab..4f63cc4 100644
--- a/gcc/cp/cfns.h
+++ b/gcc/cp/cfns.h
@@ -53,6 +53,9 @@ __inline
static unsigned int hash (const char *, unsigned int);
#ifdef __GNUC__
__inline
+#ifdef __GNUC_STDC_INLINE__
+__attribute__ ((__gnu_inline__))
+#endif
#endif
const char * libc_name_p (const char *, unsigned int);
/* maximum key range = 391, duplicates = 0 */
@@ -96,7 +99,7 @@ hash (register const char *str, register unsigned int len)
400, 400, 400, 400, 400, 400, 400, 400, 400, 400,
400, 400, 400, 400, 400, 400, 400
};
- register int hval = len;
+ register int hval = (int)len;

switch (hval)
{

(remember to put a newline at the end of the patch file)

petric789 commented on 2015-07-10 07:46

mosra: My apologies, error was due to my MAKEFLAGS tweaks. With the default MAKEFLAGS it builds flawlessly. Although the workaround from the gcc48 comments is needed. Thanks!

I will remove my other comment, so others don't get confused.

mosra commented on 2015-07-09 20:51

huh.

now please tell me what *I* am doing wrong. I tried to build the package four times in last six months, always completely from scratch and it always built successfully. I'm on latest [extra], nothing from [testing], x86_64, gcc 5.1 and clang 3.6.1 installed. Could MAKEFLAGS etc. affect this?

petric789 commented on 2015-07-09 16:49



mosra: as suggested in the gcc48 comments, the segfault vanishes when I delete the symlink to the LLVMgold.so library.

I then encountered another error, for which I found a description AND a patch here: https://github.com/DragonFlyBSD/DPorts/issues/136.

So I did the following:
> makepkg -o
> patch -b src/gcc-4.7.4/gcc/cp/cfns.h < patch-gcc_cp_cfns.h (see link for patchfile)
> makepkg -e
So far, the build() part runs fine.

But now, during the installing phase, another error occurs, see http://pastebin.com/PNSiMNhh funny thing is that the "missing" directory actually exists, I checked it. Any more ideas?

petric789 commented on 2015-07-09 16:48

mosra: as suggested in the gcc48 comments, the segfault vanishes when I delete the symlink to the LLVMgold.so library.

I then encountered another error, for which I found a description AND a patch here: https://github.com/DragonFlyBSD/DPorts/issues/136.

So I did the following:
> makepkg -o
> patch -b aur-gcc47/src/gcc-4.7.4/gcc/cp/cfns.h < patch-gcc_cp_cfns.h (see link for patchfile)
> makepkg -e
So far, the build() part runs fine.

But now, during the installing phase, another error occurs, see http://pastebin.com/PNSiMNhh funny thing is that the "missing" directory actually exists, I checked it. Any more ideas?

mosra commented on 2015-07-09 08:57

petric789: can you try the workarounds mentioned in the gcc48 package? the problems seem to be similar: https://aur.archlinux.org/packages/gcc48/

petric789 commented on 2015-07-09 08:46

It still fails to build at this point. I have the exact same problem as simgunz.

simgunz commented on 2015-06-02 14:12

It fails to build at this point.

Makefile:549: recipe for target 'libstdc++.la' failed
make[5]: *** [libstdc++.la] Error 139

More errors:
http://pastebin.com/h6EKJN6y

leugenea commented on 2014-12-04 20:32

Fails to build: collect2 of ld, Makefile:1841

mosra commented on 2014-07-24 17:15

Updated and fixed. Sorry for the delay.