Interesting error while building gcc pass 1
| Newsgroups | gmane.linux.lfs.support |
|---|---|
| Message-ID | <[email protected]> |
Linux From Scratch - Version r13.0-systemd
5.3. GCC-15.2.0 - Pass 1
# --enable-maintainer-mode to rebuild ../../libcody/config.h.in, or make
MAINTAINER=touch
g++ -O2 -pipe -Wp,-D_GLIBCXX_ASSERTIONS -fno-exceptions -fno-rtti
-include config.h -I../../libcody \
-MMD -MP -MF buffer.d -c -o buffer.o ../../libcody/buffer.cc
In file included from ../../libcody/internal.hh:5,
from ../../libcody/buffer.cc:6:
../../libcody/cody.hh: In member function 'void
Cody::Detail::MessageBuffer::Space()':
../../libcody/cody.hh:113:24: error: no matching function for call to
'S2C(const char8_t [2])'
113 | Append (Detail::S2C(u8" "));
| ~~~~~~~~~~~^~~~~~~
• there is 1 candidate
• candidate 1: 'template<unsigned int I> constexpr char
Cody::Detail::S2C(const char (&)[I])'
../../libcody/cody.hh:51:16:
51 | constexpr char S2C (char const (&s)[I])
| ^~~
• template argument deduction/substitution failed:
• mismatched types 'const char' and 'const char8_t'
../../libcody/cody.hh:113:24:
113 | Append (Detail::S2C(u8" "));
| ~~~~~~~~~~~^~~~~~~
../../libcody/buffer.cc: At global scope:
../../libcody/buffer.cc:33:33: error: no matching function for call to
'S2C(const char8_t [2])'
33 | static const char CONTINUE = S2C(u8";");
| ~~~^~~~~~~
• there is 1 candidate
• candidate 1: 'template<unsigned int I> constexpr char
Cody::Detail::S2C(const char (&)[I])'
../../libcody/cody.hh:51:16:
51 | constexpr char S2C (char const (&s)[I])
| ^~~
• template argument deduction/substitution failed:
• mismatched types 'const char' and 'const char8_t'
../../libcody/buffer.cc:33:33:
33 | static const char CONTINUE = S2C(u8";");
| ~~~^~~~~~~
../../libcody/buffer.cc: In member function 'void
Cody::Detail::MessageBuffer::BeginLine()':
../../libcody/buffer.cc:41:28: error: no matching function for call to
'S2C(const char8_t [2])'
41 | buffer.push_back (S2C(u8" "));
| ~~~^~~~~~~
This is on a system that currently has gcc (GCC) 16.1.1 20260430.
Is this because of trying to build gcc-15 on a system that has gcc-16?
From the duck:
Libcody is a C++11 library implementing a communication protocol between
compilers and build systems, used notably for GCC LTO jobserver
integration with GNU Make.
--
Hindi madali ang maging ako
--
http://lists.linuxfromscratch.org/sympa/info/lfs-support
Unsubscribe: See the above information page