vmWare and lfs

cicciobello3 at libero.it cicciobello3 at libero.it
Sun Mar 21 04:48:06 PST 2004


Hi,

(in bottom of this message original post, sorry for the bad format)

In effect I wasn't clear when I said that I didn't make a separate partition for lfs.
I mean that I didn'n create a REAL partition on the real disk, but I make it inside the system hosted in vmWare. This virtual disk is correctly partitioned. Lfs separate partition exist and is mounted on /lfs

However I try to execute readelf -l a.out|grep ': /tools' command. removing grep and this is the result:

Elf file type is EXEC (Executable file)
Entry point 0x8048244
There are 6 program headers, starting at offset 52

Program Headers:
  
Type           Offset   VirtAddr   PhysAddr   FileSiz MemSiz  Flg Align
  PHDR           0x000034 0x08048034 0x08048034 0x000c0 0x000c0 R E 0x4
  INTERP         0x0000f4 0x080480f4 0x080480f4 0x00013 0x00013 R   0x1
      [Requesting program interpreter: /lib/ld-linux.so.2]
  LOAD           0x000000 0x08048000 0x08048000 0x003b8 0x003b8 R E 0x1000
  LOAD           0x0003b8 0x080493b8 0x080493b8 0x000fc 0x00100 RW  0x1000
  DYNAMIC        0x0003c4 0x080493c4 0x080493c4 0x000c8 0x000c8 RW  0x4
  NOTE           0x000108 0x08048108 0x08048108 0x00020 0x00020 R   0x4

 Section to Segment mapping:
  Segment Sections...
   00     
   01     .interp 
   02     .interp .note.ABI-tag .hash .dynsym .dynstr .gnu.version .gnu.version_r .rel.dyn .rel.plt .init .plt .text .fini .rodata .eh_frame 
   03     .data .dynamic .ctors .dtors .jcr .got .bss 
   04     .dynamic 
   05     .note.ABI-tag

I see that in effects, it point to the incorrect program interpreter, but I've looked at the spec file and I can assure that it point to /tools/lib/ld-linux.so2, so, from witch directory should I launch the command:

echo 'main(){}' > dummy.c
gcc dummy.c
readelf -l a.out | grep ': /tools'

Thanks.

- original message follow -

Max wrote:

 > I didn't set  up a separate partition for lfs, but I tried through vmware  > Workstation 4.05, where I installed RH9.

The lfs needs to be on a separate partition from redhat if you're going to follow the book. I suggest that you follow the book until you succed and understand what's going on before trying things differently.

 > readelf -l a.out|grep ': /tools' command.

This means your temporary toolchain isn't configured properly. Remove the grep from that command see what a.out used as program interpreter.

 > It isn't first time I try to create an lfs system, last time I failed too,  > but when I arrived till about page 100, I didn'failed so early!

Did you follow the book at least once? The faq sez

If this is your first time building LFS, using a version not in the book or varying from the book in any way is not a good idea. The IRC channel regulars have a saying, "FBBG". As rms, the resident bot, is quick to say, this means, "Follow Book, Book Good." They and the people on the lists have helped many an unhappy newbie who deviated from the book during that first build." Once you've built a system "by the book", you have a stable knowledge base from which to experiment to your heart's content (or pain, as is often the case.) "

Not using a separate partition, and using vmware, is definitely varying from the book. 





More information about the lfs-support mailing list