Package Details: gcc5 5.5.0-3

Git Clone URL: https://aur.archlinux.org/gcc5.git (read-only, click to copy)
Package Base: gcc5
Description: The GNU Compiler Collection (5.x)
Upstream URL: https://gcc.gnu.org/gcc-5/
Licenses: GPL, custom, LGPL, FDL
Submitter: Svenstaro
Maintainer: severach
Last Packager: severach
Votes: 15
Popularity: 0.86
First Submitted: 2018-05-07 18:23 (UTC)
Last Updated: 2021-09-28 17:20 (UTC)

Latest Comments

ztftrue commented on 2021-11-06 10:08 (UTC) (edited on 2021-11-06 10:09 (UTC) by ztftrue)

isl.gforge.inria.fr is closed.

replace http://isl.gforge.inria.fr/isl-${_islver}.tar.bz2 to this https://libisl.sourceforge.io/isl-${_islver}.tar.bz2

run makepkg --install

rkost commented on 2021-10-20 16:43 (UTC)

isl.gforge.inria.fr is down right now (2021-10-20 16:40 UTC) and it seems that it is down for quite a while now, see recent comments on https://aur.archlinux.org/packages/isl/

severach commented on 2021-09-28 17:24 (UTC)

PKGEXT is from back when the default was the atrociously slow xz, completely unnecessary for large AUR packages. Now the default is zst which is no better than gz but tolerable.

bartus commented on 2021-09-26 10:23 (UTC) (edited on 2021-09-26 10:34 (UTC) by bartus)

@severach: Why PKGBUILD overrides the compression scheme defined in makepkg.conf any reason for preventing user selection they desired compression?

This sort of messes up my local repo configuration (╯°益°)╯彡┻━┻

Problematic declaration: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=gcc5#n36

Also, could you drop the autodetect of processor threads count and allow users to define their preferred multithreading scheme with MAKEFLAGS in makepkg.conf or as env var passed with makepkg MAKEFLAGS="-jxxx call.

gnaggnoyil commented on 2021-09-19 20:32 (UTC)

@yangwenbo99 You should set your MAKEFLAGS to -j1 and rerun makepkg to locate where the error is.

yangwenbo99 commented on 2021-09-08 20:50 (UTC)

I got the error during compilation. However, I cannot locate the exact source of the error.

...
mkdir -p -- .deps
make[1]: *** [Makefile:21181: stage1-bubble] Error 2
make: *** [Makefile:905: all] Error 2
==> ERROR: A failure occurred in build().
/usr/share/makepkg/util/message.sh: line 51: QUIET: unbound variable
/usr/bin/makepkg: line 131: logpipe: unbound variable
error making: gcc5

gnaggnoyil commented on 2021-05-30 16:04 (UTC) (edited on 2021-05-30 16:22 (UTC) by gnaggnoyil)

Thanks. Confirmed this fix solves my issue.

BTW (probably) the same issue happens on gcc48 package too. Maybe we can apply the same fix to that one?

severach commented on 2021-05-28 20:48 (UTC)

That's not the best fix but it's the only one I could find.

gnaggnoyil commented on 2021-05-26 12:46 (UTC)

GCC 11 upgrades its default language standard mode from gnu++14 to gnu++17, meanwhile GCC 5 src contains code that is no longer valid since C++17.

Thus, building this package with GCC 11 reports the following error:

../../gcc/reload1.c: In function ‘void init_reload()’:
../../gcc/reload1.c:115:24: error: use of an operand of type ‘bool’ in ‘operator++’ is forbidden in C++17
  115 |   (this_target_reload->x_spill_indirect_levels)
      |   ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
../../gcc/reload1.c:470:7: note: in expansion of macro ‘spill_indirect_levels’
  470 |       spill_indirect_levels++;
      |       ^~~~~~~~~~~~~~~~~~~~~
../../gcc/reload1.c: In function ‘void elimination_effects(rtx, machine_mode)’:
../../gcc/reload1.c:3085:31: warning: this statement may fall through [-Wimplicit-fallthrough=]
 3085 |       if (code == POST_MODIFY || code == PRE_MODIFY)
      |           ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
../../gcc/reload1.c:3089:5: note: here
 3089 |     case STRICT_LOW_PART:
      |     ^~~~
make[3]: *** [Makefile:1066: reload1.o] Error 1

ghollisjr commented on 2020-04-30 08:56 (UTC)

I'm getting the same error as @asfjjv and @daniel_shub, but @8472's modified PKGBUILD and patch file do solve the problem.

daniel_shub commented on 2020-04-23 13:15 (UTC)

It does not build for me in a clean chroot. I get the same error as @adfjjv. It looks like there are some patches in the comments. Can someone more savvy than I update the PKGBUILD.

ecomaikgolf commented on 2020-03-22 23:52 (UTC)

Doesn't compile, needs to be patched

8472 commented on 2020-03-04 16:05 (UTC) (edited on 2020-03-04 16:18 (UTC) by 8472)

@midori: I've been playing with that just yesterday, and compilation has finished ok, so I guess my adaptation attempts could be alright, here:

PKGBUILD content: https://pastebin.com/inU6GxtT

glibc2.30-ipc_perm.patch content: https://pastebin.com/m2ngMHUe

midori commented on 2020-03-03 17:44 (UTC)

Hello adfjjv. Sorry, can you please explain me how to apply your fix? Also, in the link you shared, the patch that I have to download is the one commented by Joseph Myers?

adfjjv commented on 2020-02-28 12:14 (UTC) (edited on 2020-02-28 12:15 (UTC) by adfjjv)

The aforementioned problem is due to glibc 2.30 https://patchwork.ozlabs.org/patch/1136271/ I've attached the fix.

---
 PKGBUILD                 |  9 ++++++---
 glibc2.30-ipc_perm.patch | 12 ++++++++++++
 2 files changed, 18 insertions(+), 3 deletions(-)
 create mode 100644 glibc2.30-ipc_perm.patch

diff --git a/PKGBUILD b/PKGBUILD
index 008f04b..9b57bc0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -16,17 +16,20 @@ depends=('glibc' 'binutils' 'libmpc')
 options=('!emptydirs')
 source=(https://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-${pkgver}.tar.xz
         http://isl.gforge.inria.fr/isl-${_islver}.tar.bz2
-        glibc2.28-ustat.patch)
+        glibc2.28-ustat.patch
+        glibc2.30-ipc_perm.patch)
 sha512sums=('670ff52c2ae12c7852c12987e91798c5aa8bd6daf21f0d6e0cd57a4aa59cc4f06a837fe76426eaa1424cfddca937bed377680700eadc04d76b9180d462364fa1'
             '85d0b40f4dbf14cb99d17aa07048cdcab2dc3eb527d2fbb1e84c41b2de5f351025370e57448b63b2b8a8cf8a0843a089c3263f9baee1542d5c2e1cb37ed39d94'
-            '633d96bf2d78d3187d8b26dd4c12b1b8fcbe784cbaa6f3b312326dc4ea118b3f0980bfd0e50cd6be79563dd29c296a2fafe056f4dbbb486414331cebcc1109bf')
+            SKIP
+            SKIP)

 prepare() {
   cd gcc-$pkgver

   # Fix build with glibc 2.28, which removes <sys/ustat.h>
   patch -p0 -i "$srcdir/glibc2.28-ustat.patch"
-
+  patch -p0 -i "$srcdir/glibc2.30-ipc_perm.patch"
+ 
   # link isl for in-tree build
   ln -s ../isl-${_islver} isl

diff --git a/glibc2.30-ipc_perm.patch b/glibc2.30-ipc_perm.patch
new file mode 100644
index 0000000..a655317
--- /dev/null
+++ b/glibc2.30-ipc_perm.patch
@@ -0,0 +1,12 @@
+--- libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h    2020-02-28 11:49:29.763277856 +0000
++++ libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h    2020-02-28 11:49:45.092909823 +0000
+@@ -198,8 +198,7 @@
+     unsigned long long __unused1;
+     unsigned long long __unused2;
+ #else
+-    unsigned short mode;
+-    unsigned short __pad1;
++    unsigned int mode;
+     unsigned short __seq;
+     unsigned short __pad2;
+ #if defined(__x86_64__) && !defined(_LP64)
-- 
2.25.0

adfjjv commented on 2020-02-28 10:54 (UTC)

Doesn't build on up-to-date Arch. Error:

In file included from /home/user/gcc5/src/gcc-5.5.0/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc:174:0:
/home/user/gcc5/src/gcc-5.5.0/libsanitizer/sanitizer_common/sanitizer_internal_defs.h:272:72: error: size of array ‘assertion_failed__1077’ is negative
     typedef char IMPL_PASTE(assertion_failed_##_, line)[2*(int)(pred)-1]
                                                                        ^
/home/user/gcc5/src/gcc-5.5.0/libsanitizer/sanitizer_common/sanitizer_internal_defs.h:266:30: note: in expansion of macro ‘IMPL_COMPILER_ASSERT’
 #define COMPILER_CHECK(pred) IMPL_COMPILER_ASSERT(pred, __LINE__)
                              ^
/home/user/gcc5/src/gcc-5.5.0/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h:1357:3: note: in expansion of macro ‘COMPILER_CHECK’
   COMPILER_CHECK(sizeof(((__sanitizer_##CLASS *) NULL)->MEMBER) == \
   ^
/home/user/gcc5/src/gcc-5.5.0/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc:1077:1: note: in expansion of macro ‘CHECK_SIZE_AND_OFFSET’
 CHECK_SIZE_AND_OFFSET(ipc_perm, mode);
 ^
make[4]: *** [Makefile:449: sanitizer_platform_limits_posix.lo] Error 1

lonaowna commented on 2018-09-28 15:20 (UTC)

Sorry for the late response zurozuro and cpuheater. The glibc 2.28 issue is fixed in gcc5 5.5.0-3.

cpuheater commented on 2018-09-28 13:10 (UTC)

Same issue here. The reason is that the function ustat was removed in glibc-2.28: https://lists.gnu.org/archive/html/info-gnu/2018-08/msg00000.html

There's an AUR package for glibc-2.27 which installs into /opt/glibc-2.27/ but I couldn't figure out yet how to compile with this custom glibc. Probably the easiest approach would be to modify the glibc-2.27 package such that it replaces the system's glibc.

zurozuro commented on 2018-09-18 14:28 (UTC) (edited on 2018-09-18 14:36 (UTC) by zurozuro)

I have encountered problem compiling gcc. Any ideas?

../x86_64-pc-linux-gnu/libgo/.libs/libgo.so: undefined reference to `ustat'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:626: go] Error 1
make[2]: Leaving directory '~/Downloads/gcc5/src/gcc-build/gotools'
make[1]: *** [Makefile:13197: all-gotools] Error 2
make[1]: Leaving directory '~/Downloads/gcc5/src/gcc-build'
make: *** [Makefile:907: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

brando56894 commented on 2018-09-16 23:07 (UTC) (edited on 2018-09-16 23:22 (UTC) by brando56894)

It fails to compile for me after about 20 minutes of compiling, which is pretty far into it since I have a 6 core/12 thread Xeon with 64 GB of DDR4 ECC and I'm compiling in /tmp

configure output, since the comments section destroyed the formatting: https://hastebin.com/

After looking at line 907 in the Makefile, it's apparently failing during the final stage of compilation. "The target built for a native non-bootstrap build"

fuan_k commented on 2018-09-16 21:10 (UTC)

Don't want to compile such a beast. Not enough space and CPU power. :(

Wish someone would share their pre-built binaries and make a -bin package instead.

lonaowna commented on 2018-06-04 10:28 (UTC)

@k0ste, ok good. I've added that line to the PKGBUILD as multiple people are having the same issue without it.

k0ste commented on 2018-06-04 06:11 (UTC)

@lonaowna, yes was I have outdated makepkg.conf (2015 year last change), but this not help.

Preload was help, build successful, thanks.

lonaowna commented on 2018-06-03 20:44 (UTC)

@k0ste, did you try adding export LD_PRELOAD=/usr/lib/libstdc++.so above make?

Also, is CHOST="x86_64-pc-linux-gnu" in /etc/makepkg.conf or did you change it?

k0ste commented on 2018-06-03 17:11 (UTC)

I get segfault (make without yaourt, just makepkg. Suggestions?

../libtool: line 1132: 14019 Segmentation fault      (core dumped) ar rc .libs/libstdc++.a compatibility.o compatibility-debug_list.o compatibility-debug_list-2.o compatibility-c++0x.o compatibility-atomic-c++0x.o compatibility-thread-c++0x.o compatibility-chrono.o compatibility-condvar.o .libs/libstdc++.lax/libsupc++convenience.a/array_type_info.o .libs/libstdc++.lax/libsupc++convenience.a/atexit_arm.o .libs/libstdc++.lax/libsupc++convenience.a/atexit_thread.o .libs/libstdc++.lax/libsupc++convenience.a/bad_alloc.o .libs/libstdc++.lax/libsupc++convenience.a/bad_array_length.o .libs/libstdc++.lax/libsupc++convenience.a/bad_array_new.o .libs/libstdc++.lax/libsupc++convenience.a/bad_cast.o .libs/libstdc++.lax/libsupc++convenience.a/bad_typeid.o .libs/libstdc++.lax/libsupc++convenience.a/class_type_info.o .libs/libstdc++.lax/libsupc++convenience.a/del_op.o .libs/libstdc++.lax/libsupc++convenience.a/del_ops.o .libs/libstdc++.lax/libsupc++convenience.a/del_opnt.o .libs/libstdc++.lax/libsupc++convenience.a/del_opv.o .libs/libstdc++.lax/libsupc++convenience.a/del_opvs.o .libs/libstdc++.lax/libsupc++convenience.a/del_opvnt.o .libs/libstdc++.lax/libsupc++convenience.a/dyncast.o .libs/libstdc++.lax/libsupc++convenience.a/eh_alloc.o .libs/libstdc++.lax/libsupc++convenience.a/eh_arm.o .libs/libstdc++.lax/libsupc++convenience.a/eh_aux_runtime.o .libs/libstdc++.lax/libsupc++convenience.a/eh_call.o .libs/libstdc++.lax/libsupc++convenience.a/eh_catch.o .libs/libstdc++.lax/libsupc++convenience.a/eh_exception.o .libs/libstdc++.lax/libsupc++convenience.a/eh_globals.o .libs/libstdc++.lax/libsupc++convenience.a/eh_personality.o .libs/libstdc++.lax/libsupc++convenience.a/eh_ptr.o .libs/libstdc++.lax/libsupc++convenience.a/eh_term_handler.o .libs/libstdc++.lax/libsupc++convenience.a/eh_terminate.o .libs/libstdc++.lax/libsupc++convenience.a/eh_tm.o .libs/libstdc++.lax/libsupc++convenience.a/eh_throw.o .libs/libstdc++.lax/libsupc++convenience.a/eh_type.o .libs/libstdc++.lax/libsupc++convenience.a/eh_unex_handler.o .libs/libstdc++.lax/libsupc++convenience.a/enum_type_info.o .libs/libstdc++.lax/libsupc++convenience.a/function_type_info.o .libs/libstdc++.lax/libsupc++convenience.a/fundamental_type_info.o .libs/libstdc++.lax/libsupc++convenience.a/guard.o .libs/libstdc++.lax/libsupc++convenience.a/guard_error.o .libs/libstdc++.lax/libsupc++convenience.a/hash_bytes.o .libs/libstdc++.lax/libsupc++convenience.a/nested_exception.o .libs/libstdc++.lax/libsupc++convenience.a/new_handler.o .libs/libstdc++.lax/libsupc++convenience.a/new_op.o .libs/libstdc++.lax/libsupc++convenience.a/new_opnt.o .libs/libstdc++.lax/libsupc++convenience.a/new_opv.o .libs/libstdc++.lax/libsupc++convenience.a/new_opvnt.o .libs/libstdc++.lax/libsupc++convenience.a/pbase_type_info.o .libs/libstdc++.lax/libsupc++convenience.a/pmem_type_info.o .libs/libstdc++.lax/libsupc++convenience.a/pointer_type_info.o .libs/libstdc++.lax/libsupc++convenience.a/pure.o .libs/libstdc++.lax/libsupc++convenience.a/si_class_type_info.o .libs/libstdc++.lax/libsupc++convenience.a/tinfo.o .libs/libstdc++.lax/libsupc++convenience.a/tinfo2.o .libs/libstdc++.lax/libsupc++convenience.a/vec.o .libs/libstdc++.lax/libsupc++convenience.a/vmi_class_type_info.o .libs/libstdc++.lax/libsupc++convenience.a/vterminate.o .libs/libstdc++.lax/libsupc++convenience.a/cp-demangle.o .libs/libstdc++.lax/libc++98convenience.a/bitmap_allocator.o .libs/libstdc++.lax/libc++98convenience.a/pool_allocator.o .libs/libstdc++.lax/libc++98convenience.a/mt_allocator.o .libs/libstdc++.lax/libc++98convenience.a/codecvt.o .libs/libstdc++.lax/libc++98convenience.a/complex_io.o .libs/libstdc++.lax/libc++98convenience.a/globals_io.o .libs/libstdc++.lax/libc++98convenience.a/hash_tr1.o .libs/libstdc++.lax/libc++98convenience.a/hashtable_tr1.o .libs/libstdc++.lax/libc++98convenience.a/ios_failure.o .libs/libstdc++.lax/libc++98convenience.a/ios_init.o .libs/libstdc++.lax/libc++98convenience.a/ios_locale.o .libs/libstdc++.lax/libc++98convenience.a/list.o .libs/libstdc++.lax/libc++98convenience.a/list-aux.o .libs/libstdc++.lax/libc++98convenience.a/list-aux-2.o .libs/libstdc++.lax/libc++98convenience.a/list_associated.o .libs/libstdc++.lax/libc++98convenience.a/list_associated-2.o .libs/libstdc++.lax/libc++98convenience.a/locale.o .libs/libstdc++.lax/libc++98convenience.a/locale_init.o .libs/libstdc++.lax/libc++98convenience.a/locale_facets.o .libs/libstdc++.lax/libc++98convenience.a/localename.o .libs/libstdc++.lax/libc++98convenience.a/math_stubs_float.o .libs/libstdc++.lax/libc++98convenience.a/math_stubs_long_double.o .libs/libstdc++.lax/libc++98convenience.a/stdexcept.o .libs/libstdc++.lax/libc++98convenience.a/strstream.o .libs/libstdc++.lax/libc++98convenience.a/tree.o .libs/libstdc++.lax/libc++98convenience.a/istream.o .libs/libstdc++.lax/libc++98convenience.a/istream-string.o .libs/libstdc++.lax/libc++98convenience.a/streambuf.o .libs/libstdc++.lax/libc++98convenience.a/valarray.o .libs/libstdc++.lax/libc++98convenience.a/cow-istream-string.o .libs/libstdc++.lax/libc++98convenience.a/collate_members_cow.o .libs/libstdc++.lax/libc++98convenience.a/messages_members_cow.o .libs/libstdc++.lax/libc++98convenience.a/monetary_members_cow.o .libs/libstdc++.lax/libc++98convenience.a/numeric_members_cow.o .libs/libstdc++.lax/libc++98convenience.a/atomicity.o .libs/libstdc++.lax/libc++98convenience.a/codecvt_members.o .libs/libstdc++.lax/libc++98convenience.a/collate_members.o .libs/libstdc++.lax/libc++98convenience.a/messages_members.o .libs/libstdc++.lax/libc++98convenience.a/monetary_members.o .libs/libstdc++.lax/libc++98convenience.a/numeric_members.o .libs/libstdc++.lax/libc++98convenience.a/time_members.o .libs/libstdc++.lax/libc++98convenience.a/basic_file.o .libs/libstdc++.lax/libc++98convenience.a/c++locale.o .libs/libstdc++.lax/libc++98convenience.a/allocator-inst.o .libs/libstdc++.lax/libc++98convenience.a/concept-inst.o .libs/libstdc++.lax/libc++98convenience.a/ext-inst.o .libs/libstdc++.lax/libc++98convenience.a/misc-inst.o .libs/libstdc++.lax/libc++98convenience.a/parallel_settings.o .libs/libstdc++.lax/libc++11convenience.a/chrono.o .libs/libstdc++.lax/lt1-codecvt.o .libs/libstdc++.lax/libc++11convenience.a/condition_variable.o .libs/libstdc++.lax/libc++11convenience.a/cow-stdexcept.o .libs/libstdc++.lax/libc++11convenience.a/ctype.o .libs/libstdc++.lax/libc++11convenience.a/debug.o .libs/libstdc++.lax/libc++11convenience.a/functexcept.o .libs/libstdc++.lax/libc++11convenience.a/functional.o .libs/libstdc++.lax/libc++11convenience.a/futex.o .libs/libstdc++.lax/libc++11convenience.a/future.o .libs/libstdc++.lax/libc++11convenience.a/hash_c++0x.o .libs/libstdc++.lax/libc++11convenience.a/hashtable_c++0x.o .libs/libstdc++.lax/libc++11convenience.a/ios.o .libs/libstdc++.lax/libc++11convenience.a/limits.o .libs/libstdc++.lax/libc++11convenience.a/mutex.o .libs/libstdc++.lax/libc++11convenience.a/placeholders.o .libs/libstdc++.lax/libc++11convenience.a/random.o .libs/libstdc++.lax/libc++11convenience.a/regex.o .libs/libstdc++.lax/libc++11convenience.a/shared_ptr.o .libs/libstdc++.lax/libc++11convenience.a/snprintf_lite.o .libs/libstdc++.lax/libc++11convenience.a/system_error.o .libs/libstdc++.lax/libc++11convenience.a/thread.o .libs/libstdc++.lax/libc++11convenience.a/cow-locale_init.o .libs/libstdc++.lax/libc++11convenience.a/cow-shim_facets.o .libs/libstdc++.lax/libc++11convenience.a/cxx11-hash_tr1.o .libs/libstdc++.lax/libc++11convenience.a/cxx11-ios_failure.o .libs/libstdc++.lax/libc++11convenience.a/cxx11-shim_facets.o .libs/libstdc++.lax/libc++11convenience.a/cxx11-stdexcept.o .libs/libstdc++.lax/libc++11convenience.a/ctype_configure_char.o .libs/libstdc++.lax/libc++11convenience.a/ctype_members.o .libs/libstdc++.lax/libc++11convenience.a/cow-fstream-inst.o .libs/libstdc++.lax/libc++11convenience.a/cow-sstream-inst.o .libs/libstdc++.lax/libc++11convenience.a/cow-string-inst.o .libs/libstdc++.lax/libc++11convenience.a/cow-wstring-inst.o .libs/libstdc++.lax/libc++11convenience.a/cxx11-locale-inst.o .libs/libstdc++.lax/libc++11convenience.a/cxx11-wlocale-inst.o .libs/libstdc++.lax/libc++11convenience.a/ext11-inst.o .libs/libstdc++.lax/libc++11convenience.a/fstream-inst.o .libs/libstdc++.lax/libc++11convenience.a/ios-inst.o .libs/libstdc++.lax/libc++11convenience.a/iostream-inst.o .libs/libstdc++.lax/libc++11convenience.a/istream-inst.o .libs/libstdc++.lax/libc++11convenience.a/locale-inst.o .libs/libstdc++.lax/libc++11convenience.a/ostream-inst.o .libs/libstdc++.lax/libc++11convenience.a/sstream-inst.o .libs/libstdc++.lax/libc++11convenience.a/streambuf-inst.o .libs/libstdc++.lax/libc++11convenience.a/string-inst.o .libs/libstdc++.lax/libc++11convenience.a/wlocale-inst.o .libs/libstdc++.lax/libc++11convenience.a/wstring-inst.o
make[6]: *** [Makefile:605: libstdc++.la] Error 139
make[6]: Leaving directory '/mnt/filez/builder/gcc5/src/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/src'
make[5]: *** [Makefile:637: all-recursive] Error 1
make[5]: Leaving directory '/mnt/filez/builder/gcc5/src/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/src'
make[4]: *** [Makefile:507: all-recursive] Error 1
make[4]: Leaving directory '/mnt/filez/builder/gcc5/src/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3'
make[3]: *** [Makefile:414: all] Error 2
make[3]: Leaving directory '/mnt/filez/builder/gcc5/src/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3'
make[2]: *** [Makefile:13894: all-stage1-target-libstdc++-v3] Error 2
make[2]: Leaving directory '/mnt/filez/builder/gcc5/src/gcc-build'
make[1]: *** [Makefile:22897: stage1-bubble] Error 2
make[1]: Leaving directory '/mnt/filez/builder/gcc5/src/gcc-build'
make: *** [Makefile:905: all] Error 2

lonaowna commented on 2018-05-27 10:24 (UTC)

@ArnaudNux it builds fine for me. Have you tried without Yaourt? If so, does adding export LD_PRELOAD=/usr/lib/libstdc++.so above make change anything?

(next time, please wrap code/output in a block with triple backticks; see this)

ArnaudNux commented on 2018-05-27 00:38 (UTC) (edited on 2018-05-27 18:42 (UTC) by ArnaudNux)

.a/placeholders.o .libs/libstdc++.lax/libc++11convenience.a/ctype_members.o .libs/libstdc++.lax/libc++11convenience.a/ostream-inst.o .libs/libstdc++.lax/libc++11convenience.a/cxx11-stdexcept.o
make[6]: *** [Makefile:605: libstdc++.la] Error 139
make[6]: Leaving directory '/home/arnaud/tempo/yaourt-tmp-arnaud/aur-gcc5/src/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/src'
make[5]: *** [Makefile:637: all-recursive] Error 1
make[5]: Leaving directory '/home/arnaud/tempo/yaourt-tmp-arnaud/aur-gcc5/src/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/src'
make[4]: *** [Makefile:507: all-recursive] Error 1
make[4]: Leaving directory '/home/arnaud/tempo/yaourt-tmp-arnaud/aur-gcc5/src/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3'
make[3]: *** [Makefile:414: all] Error 2
make[3]: Leaving directory '/home/arnaud/tempo/yaourt-tmp-arnaud/aur-gcc5/src/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3'
make[2]: *** [Makefile:13894: all-stage1-target-libstdc++-v3] Error 2
make[2]: Leaving directory '/home/arnaud/tempo/yaourt-tmp-arnaud/aur-gcc5/src/gcc-build'
make[1]: *** [Makefile:22897: stage1-bubble] Error 2
make[1]: Leaving directory '/home/arnaud/tempo/yaourt-tmp-arnaud/aur-gcc5/src/gcc-build'
make: *** [Makefile:905: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Makepkg was unable to build gcc5.
==> Restart building gcc5 ? [y/N]

lonaowna commented on 2018-05-15 12:46 (UTC) (edited on 2018-05-15 13:02 (UTC) by lonaowna)

@dviktor: it works but takes a really long time. I have switched back to using the tarball releases for now.

dviktor commented on 2018-05-15 08:42 (UTC)

Building from git is not possible. I'm waiting for "Cloning into bare repository" for eternity