V
V
Vadim Pirx2019-02-04 23:18:05
linux
Vadim Pirx, 2019-02-04 23:18:05

Linux From Scratch questions?

Building Linux From Scratch - Version 8.2
Stuck chapter 6 on Bzip2-1.0.6 and Pkg-config-0.29.2 make started giving error

/usr/include/stdlib.h:31:10: fatal error: stddef.h: No such file or directory
#include
^~~~~~~~~~
compilation terminated.

found the file stddef.h and copied it
cp /tools/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include/stddef.h /usr/lib/gcc/x86_64-pc-linux-gnu/7.3. 0/include
then gave the same error for a dozen more .h files,
I copied them in the same way.
then he began to swear at the wrong values ​​​​of variables,
he decided to start collecting the sixth chapter again.
now what was going before is already giving errors
(lfs chroot) root:/sources/linux-4.15.3# make INSTALL_HDR_PATH=dest headers_install
CHK include/generated/uapi/linux/version.h
HOSTCC scripts/basic/fixdep
In file included from scripts/basic/fixdep.c: 107:0:
/usr/include/sys/mman.h:57:34: error: unknown type name 'size_t'; did you mean 'ssize_t'?
extern void *mmap (void *__addr, size_t __len, int __prot,
^~~~~~
ssize_t
/usr/include/sys/mman.h:76:34: error: unknown type name 'size_t'; did you mean ' ssize_t'?
extern int munmap(void *__addr, size_t __len) __THROW;
^~~~~~

Questions.
I think the problem arose because crookedly gathered glibc and gcc. How to solve it? I would not like to start all over again.
Someone collected everything to the end?
What problems did you encounter and how did you solve them?
Are there any forums or chats on this topic?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
CityCat4, 2019-02-05
@CityCat4

It is interesting - it was not crowbars to type so much text, but in Google to type about LFS - crowbars ...

F
fdroid, 2019-02-05
@fdroid

Linux From Scratch questions?

Sailors have no questions!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question