On Thu, 20 Aug 2020 at 18:04, Bruce Dubbs via lfs-dev <lfs-dev@lists.linuxfromscratch.org> wrote: > > On 8/20/20 11:28 AM, John Burrell via lfs-dev wrote: > > I get this result > > > > make[3]: Entering directory '/mnt/lfs/build/m4/m4-1.4.18/lib' > > CC gl_avltree_oset.o > > CC binary-io.o > > CC c-ctype.o > > CC c-stack.o > > CC c-strcasecmp.o > > CC c-strncasecmp.o > > CC clean-temp.o > > In file included from /mnt/lfs/usr/include/stdlib.h:1018, > > from ./stdlib.h:36, > > from clean-temp.c:29: > > /mnt/lfs/usr/include/bits/stdlib.h: In function 'wctomb': > > /mnt/lfs/usr/include/bits/stdlib.h:91:3: error: #error "Assumed value > > of MB_LEN_MAX wrong" > > 91 | # error "Assumed value of MB_LEN_MAX wrong" > > | ^~~~~ > > make[3]: *** [Makefile:1910: clean-temp.o] Error 1 > > make[3]: Leaving directory '/mnt/lfs/build/m4/m4-1.4.18/lib' > > make[2]: *** [Makefile:1674: all] Error 2 > > > > Arch applies quite a substantial patch which allows it to compile. I > > don't know which bit of the patch fixes the above problem I'm afraid > > Something weird on your host. MB_LEN_MAX should be defined as 16. Try > to figure out where it is defined differently. > > Tell us about your host. > > -- Bruce I think Pierre is correct. My script didn't execute this glibc line correctly:
$LFS/tools/libexec/gcc/$LFS_TGT/10.2.0/install-tools/mkheaders and that's because I tried to execute it as a glibc package user. Glibc can't install the gcc files under /mnt/lfs/tools/lib/gcc/x86_64-lfs-linux-gnu/10.2.0/include-fixed. I didn't notice this in the logs until Pierre mentioned it. I'll have to change the script to install the files as root and then change the owner to gcc. This LFS install change is certainly a challenge for package user installation. Everything was easy with the old system because chapter 5 and 6 were completely separate entities. Now, to make it work, chapters 5 to 10 have to be done by package users and this is stretching my bash skills. Getting there though, slowly. jb. -- http://lists.linuxfromscratch.org/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page