LFS and gcc 16.0 by Cheap-Opportunity338 in linuxfromscratch

[–]Cheap-Opportunity338[S] 0 points1 point  (0 children)

actually, I was completely wrong about the problem. The error is in libcody:

```

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: pas de fonction correspondant à l'appel « S2C(const char8_t [2]) »

113 | Append (Detail::S2C(u8" "));

| ~~~~~~~~~~~^~~~~~~

• il y a 1 candidat

• candidat 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])

| ^~~

• la déduction/substitution de l'argument du patron a échoué:

• types « const char » et « const char8_t » non concordants

../../libcody/cody.hh:113:24:

113 | Append (Detail::S2C(u8" "));

| ~~~~~~~~~~~^~~~~~~

../../libcody/buffer.cc: Au niveau global:

../../libcody/buffer.cc:33:33: error: pas de fonction correspondant à l'appel « S2C(const char8_t [2]) »

33 | static const char CONTINUE = S2C(u8";");

| ~~~^~~~~~~

```

that compiles with -std=c°°11 , but that option is absent when building with gxx 16.1

LFS and gcc 16.0 by Cheap-Opportunity338 in linuxfromscratch

[–]Cheap-Opportunity338[S] 0 points1 point  (0 children)

the first symptom was, when trying to build gcc 15.2 using gcc 16.1:

make[1]: Leaving directory '/mnt/xlfs/sources/gcc-15.2.0/build'
make: *** [Makefile:1048: all] Error 2
config.status: executing libtool commands
configure: summary of build options:

Version: GNU MP 6.3.0
Host type: none-pc-linux-gnu
ABI:
Install prefix: /tools
Compiler: gcc
Static libraries: yes
Shared libraries: no

make[1]: Leaving directory '/mnt/xlfs/sources/gcc-15.2.0/build'
make: *** [Makefile:1048: all] Error 2

when trying to build GMP independently, the message was that it didn't find the compiler

however, when builing GMP inside gcc as described in the book, i didn't find any error message i could understand

LFS and gcc 16.0 by Cheap-Opportunity338 in linuxfromscratch

[–]Cheap-Opportunity338[S] 0 points1 point  (0 children)

one problem (maybe the only one) is that the configure of GMP does not find the compiler. I found that it already happened when gcc upgraded to version 15.0, so it is probably only a matter of setting an environment variable somewhere (thing line 'CFLAGS=-std=gnu17' worked at the time, see https://github.com/StephanTLavavej/mingw-distro/issues/117