On 30/10/2017 07:48, Nickolay Sosnitsky wrote:
>> On 27/10/2017 18:15, Nickolay Sosnitsky wrote:
>>>> On 10/27/17 11:32 AM, Nickolay Sosnitsky wrote:
>>>>> Hello all!
>>>>>
>>>>> I  build  my  LFS  in  VMware and after boot into it I haven't
>>>>> network.  "ip  link"  show me two interfaces: loopback (lo0) and sit0,
>>>>> but sit0 has strange attributes (no MAC assigned):
>>>>>
>>>>> [/source/1inux-4.4.2]# ip link
>>>>> 1: lo: <L00PBACK,UP,L0WER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode 
>>>>> DEFAULT group default
>>>>> link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
>>>>> 2: sit0@NONE: <N0ARP,UP,L0WER_UP> mtu 1480 qdisc noqueue state UNKNOWN 
>>>>> mode DEFAULT group default
>>>>> link/sit 0.0.0.0 brd 0.0.0.0
>>>>>
>>>>> [/source/linux-4.4.2]# make menuconfig
>>>>>     HOSTCC  scripts/basic/fixdep
>>>>> In file included from scripts/basic/fixdep.c:106:0:
>>>>> /usr/include/sys/types.h:146:20: fatal error: stddef.h: No such file or 
>>>>> directory
>>>>> compilation terminated.
>>>>> scripts/Makefile.host:91: recipe for target 'scripts/basic/fixdep' failed
>>>>> make[1]: *** [scripts/basic/fixdep] Error 1
>>>>> Makefile:439: recipe for target 'scripts_basic' failed
>>>>> make: *** [scripts_basic] Error 2
>>>>> [/source/linux-4.4.2]#
>>>> Hi Nickolay,
>>>> You could try to clean out the Kernel Source Tree: (Backup .config if
>>>> you have configured the kernel before)
>>>> make mrproper
>>>> make distclean
>>>> make defconfig
>>>> make menuconfig
>>>
>>>> To see which Network Interface you need to enable, run this command:
>>>> lspci | grep -i eth
>>>
>>>> Configuring the Kernel, you'll find the Network Drivers here:
>>> Device Drivers ->> Network Device Support -> Ethernet Driver Support ->
>>>
>>>
>>>> ./Michael
>>>
>>> Oh, Michael!
>>>
>>> 1.
>>> make mrproper - OK
>>> make distclean - OK
>>> make defconfig - The same error (sse above in "make menuconfig")
>>>
>>> 2. There is no lspci in LFS 7.9.
>>>
> 
>> Use lspci from the host you used to build lfs. You may also try to build
>> the kernel in chroot, to see whether it makes a difference. If it does
>> not, you'll have to understand what has changed since you first compiled
>> the kernel in chroot.
> 
>> Pierre
> 
> 
> 1. lspci on host system show me PCnet32 Ethernet Controller. But I know it 
> without lspci.
> My problem is not in recognising eternet adapter, but in kernel without 
> driver for that adapetr!
> 
> 2. As I wrote in start message, I have same error in chroot. I didn't do any
> changes in my LFS between two kernel compilations. Have you more ideas?

I understand you cannot run "make menuconfig". When you can, just look for
PCNET32 (type "/ PCNET32" in "make menuconfig"). You should obtain the
information to include that driver.

As of the stddef error, I cannot tell you much more, sorry. I guess you have
tried to completely remove the kernel tree:
rm -r linux-x.y.z
tar xf linux-x.y.z.tar.xz
cd linux-x.y.z
make mrproper
make menuconfig


Can you compile the following program?
-----
#include <sys/types.h>

int main(){}
-----

Make a file named "try.c" containing the text above, then try "gcc try.c".

If it works then "rm a.out try.c", and I have no idea what is going on, sorry...
If it does not work, there is a problem with your gcc/glibc/binutils
installation. You'll have to do chapter 6 again...

Pierre
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style

Reply via email to