[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gcc-toolchain-4.8 build failure
From: |
phodina |
Subject: |
gcc-toolchain-4.8 build failure |
Date: |
Mon, 26 Dec 2022 09:07:57 +0000 |
Hello,
I'm attempting to build downstream version of u-boot and it requires old
version of GCC toolchain.
So I grabbed the gcc-toolchain-4.8 and found out it's broken and doesn't build
without errors. [1]
Based on the log the error is:
```
../../gcc-4.8.5/gcc/cp/pt.c: In function ?tree_node*
most_specialized_class(tree, tsubst_flags_t)?:
17 ../../gcc-4.8.5/gcc/cp/pt.c:18086:25: warning: ?T? conversion used unquoted
[-Wformat=]
18 18086 | error ("%s %+#T", spaces ? spaces : str, TREE_TYPE (t));
19 | ^
20 In file included from ../../gcc-4.8.5/gcc/cp/except.c:1008:
21 cfns.gperf: At global scope:
22 cfns.gperf:101:1: error: ?const char* libc_name_p(const char*, unsigned
int)? redeclared inline with ?gnu_inline? attribute 23 cfns.gperf:26:14: note:
?const char* libc_name_p(const char*, unsigned int)? previously declared here
```
I've found this patch [2]. I removed the 'gcc/cp/ChangeLog' since it got
rejected.
Nevertheless the patch didn't help as you can see in the attached log file.
The patch is applied in the list of patches for gcc-4.8.5.
diff --git a/gnu/packages/gcc.scm b/gnu/packages/gcc.scm
index bb154cac62..3183a356e6 100644
--- a/gnu/packages/gcc.scm
+++ b/gnu/packages/gcc.scm
@@ -391,6 +391,7 @@ (define-public gcc-4.8
"08yggr18v373a1ihj0rg2vd6psnic42b518xcgp3r9k81xz1xyr2"))
(patches (search-patches "gcc-arm-link-spec-fix.patch"
"gcc-4.8-libsanitizer-fix.patch"
+ "gcc-4.8-gperf.patch"
"gcc-asan-missing-include.patch"
"gcc-fix-texi2pod.patch")) (modules '((guix build utils)))
1 http://ci.guix.gnu.org/build/98529/details2
https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=ec1cc0263f156f70693a62cf17b254a0029f4852----
Petr
gcc-4.8.5.drv.gz
Description: application/gzip
gcc-4.8-gperf.patch
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- gcc-toolchain-4.8 build failure,
phodina <=