Re: [lfs-support] How to build a multilib LFS?

2012-12-12 Thread Eric Plummer
Henrik /KaarPoSoft hen...@kaarposoft.dk wrote:

Dear all,

I have build LFS and much of BLFS on my ancient 32bit machine.
With a bit of tweaking, I have also got most of it to work on my new 
x86_64 machine.
However, I do have a problem:
I need xen virtualization. xen builds a BIOS using the dev86 package.
This worked fine on i?86, but dev86 relies on a 32bit glibc, which is 
not available on a native x86_64 build.
I have looked at xen package definitions for other distros, and they 
also seem to want dev86 at build-time.
So, it seems I need a multilib LFS.

If I try to build gcc pass1 with --enable-multilib, I end up with:
checking whether the gcc  -m32 linker (ld -m elf_x86_64 -m elf_i386) 
supports shared libraries... yes
checking dynamic linker characteristics... configure: error: Link tests

are not allowed after GCC_NO_EXECUTABLES.
make: *** [configure-zlib] Error 1

I tried to google this, and got a few hits, but nothing that
enlightened 
me...

I also tried to build binutils first with target x86_64 then i686, but 
gcc still fails.

I have also looked a CLFS.
They build a couple of packages before binutils and then gcc.
But I cannot see any substantial differences in the gcc build itself...

So: Any help / suggestions / info regarding LFS multilib would be most 
appreciated!

I am new to multilib, so I a wondering about stuff like:
- where in the toolchain building sequence should I target multilib? I 
tried pass 1, but maybe it would be enough to target multilib later?
- what options should be used to configure the different packages at 
each phase?

Thanks in advance!

/Henrik

Try cross-LFS
--
Messages in plain text. No HTML
Please do not top post on reply. 
--
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] Virtual box

2012-11-04 Thread Eric Plummer
Rahul Udasi  rahulud...@hotmail.com wrote:

Hi, has anyone built lfs on a virtual machine?


Sent from my BlackBerry device on the Rogers Wireless Network

Several.. Just search the mail list archives. 
--
Messages in plain text. No HTML
Please do not top post on reply. 
--
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: Booting LFS Error -VFS: Unable to mount root

2011-08-02 Thread Eric Plummer
Oz Nahum Tiram wrote:
 Hi Everyone,

 I know this error has been encountered many times before, but I just
 can't get over this last hurdle.
 I have been digging the net for more than a month now, and recompiled my
 kernel over and over.
 But still no luck.
 Here is some background:
 I installed a debian system on VMWARE; this Debian host was my build
 host. To the build host I attached another virtual drive (sdb) which I
 used to build LFS. Now, I try to boot the machine and always get stuck
 with the same error see screen shot here:

 http://imageshack.us/photo/my-images/11/booterror.png/

 I tried booting that hard drive using GRUB2 command line, see screen
 shot here:
 http://imageshack.us/photo/my-images/163/bootcommand.png/

 Below there is some more info about drive structure, fstab and my latest
 config file.

 Thanks in advance to everyone!

 Oz

 # sh enterLFS.sh
 /dev/sdb1 on /mnt/lfs type ext4 (rw)
 root:/# blkid
 /dev/sda1: UUID=d0733640-c56f-4cfb-9744-3a65bf8049cb TYPE=ext4
 /dev/sda2: UUID=7b8cde8f-58fc-4a35-a366-c79b4cd7b97b TYPE=swap
 /dev/sdb1: UUID=a9111fbe-3669-4577 tel:3669-4577-a77a-f82d71994113
 TYPE=ext4
 /dev/sdb2: UUID=9bffed7c-e5b9-4756-b925-91eba2747457 TYPE=swap
 root:/# vim /etc/fstab
 root:/# cat /etc/fstab
 # Begin /etc/fstab
 # file system  mount-point type   optionsdump fsck
 # order
 /dev/sdb1  /   ext4   defaults1 1
 /dev/sdb2  swapswap   pri=1   0 0
 proc   /proc   proc   defaults0 0
 sysfs  /syssysfs  defaults0 0
 devpts /dev/ptsdevpts gid=4,mode=620  0 0
 tmpfs  /dev/shmtmpfs  defaults0 0
 # End /etc/fstab
 root:/#


Try changing you grub command to root=/dev/sdb1 and see if that helps.


-- 
Eric Plummer
anadox...@gmail.com
--
Messages in plain text, please, no HTML.
No top posting, please.
--
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: Kernel Panic (LFS 6.8)

2011-08-01 Thread Eric Plummer
Frederick Muriithi wrote:
 After installing grub according to chapter 8 of the LFS book (LFS
 6.8), I tried to boot into my new lfs system and got the following
 sample output on the screen:

 [ 3.584997] VFS: Cannot open root device hda6 or unknown-block(0,0)
 [ 3.585205] Please append a correct root= boot option; here are the
 available partitions:
 [ 3.585482] Kernel panic - not syncing: VFS: Unable to mount root fs
 on unknown-block(0,0)

Sounds like you do not have the proper kernel drivers for your hardware.

 [ 3.585754] Pid: 1, comm: swapper Not tainted 2.6.37 #1
 [ 3.585911] Call Trace:
 [ 3.586084]  [c145f114] ? printk+0xf/0x11
 [ 3.586243]  [c145f00a] panic+0x50/0x14b
 [ 3.586404]  [c16a9b9d] mount_block_root+0x1e3/0x1f2
 [ 3.586565]  [c10c0678] ? sys_mknod+0x13/0x15
 [ 3.586722]  [c16a9cf3] mount_root+0x8e/0x96
 [ 3.586880]  [c16a9e40] prepare_namespace+0x145/0x16c
 [ 3.587045]  [c16a98f7] kernel_init+0x195/0x1a4
 [ 3.587204]  [c16a9762] ? kernel_init+0x0/0x1a4
 [ 3.587363]  [c1002ef6] kernel_thread_helper+0x6/0x10

 I could not find the boot log file (/var/log/boot.log), so I
 transcribed the screen output as faithfully as I could.
 I'd appreciate any pointers to my error, so I may correct them.


If you have a working Linux system installed or a live cd try this site
http://kmuto.jp/debian/hcl/
and follow the instructions. It can greatly help you identify what 
drivers are required for your hardware.


-- 
Eric Plummer
anadox...@gmail.com
--
Messages in plain text, please, no HTML.
No top posting, please.
--
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: GCC pass 1 - .lib is missing in gmp dir

2011-07-29 Thread Eric Plummer
sandip sitapara wrote:
 Please find below the detail of configuration.

 *Current working directory gcc-4.5.2
 *lfs@nomad:~/gcc-build/gcc-4.5.2$ pwd
 /home/lfs/gcc-build/gcc-4.5.2
Your pwd output looks off for starters.

Quote:
The GCC documentation recommends building GCC outside of the source 
directory in a dedicated build directory:

Re follow the instructions from the book more closely.
Unzip GCC-4.5.2
cd into gcc-4.5.4
then:
mkdir -v ../gcc-build
cd ../gcc-build

your build directory should be outside of the source tree..
for example:
lfs@nomad:~/gcc-build/


 *Searcihng for gmp directory in gcc-4.5.2*
 lfs@nomad:~/gcc-build/gcc-4.5.2$ ls | grep -r gmp
 gmp

 *Configuration*
 ./configure --target=$LFS_TGT --prefix=/tools --disable-nls
 --disable-shared --disable-multilib --disable-decimal-float
 --disable-threads --disable-libmudflap --disable-libssp
 --disable-libgomp --enable-languages=c --with-gmp-include=$(pwd)/gmp
 --with-gmp-lib=$(pwd)/gmp/.libs --without-ppl --without-cloog

-- 
Eric Plummer
anadox...@gmail.com
--
Messages in plain text, please, no HTML.
No top posting, please.
--
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: glibc

2011-07-28 Thread Eric Plummer
Bruce Dubbs wrote:
 Mike McCarty wrote:

 CDO is like OCD, but the letters are in the right order.

 Isn't OCD a required trait to build LFS?   :)

 -- Bruce
Not required... but it sure helps!!!

-- 
Eric Plummer
anadox...@gmail.com
--
Messages in plain text, please, no HTML.
No top posting, please.
--
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: error: C compiler cannot create executables when I compile gcc

2011-07-26 Thread Eric Plummer
Ruben Comino Gallego wrote:
 Hi, I am using the 6.8 LFS-book in a Debian testing i686 host machine.
 When I was making the first compilation I get the following error:

 /checking for i686-pc-linux-gnu-gcc...
 /mnt/lfs/sources/gcc-build/./prev-gcc/xgcc
 -B/mnt/lfs/sources/gcc-build/./prev-gcc/
 -B/tools/i686-pc-linux-gnu/bin/ -B/tools/i686-pc-linux-gnu/bin/
 -B/tools/i686-pc-linux-gnu/lib/ -isystem
 /tools/i686-pc-linux-gnu/include -isystem
 /tools/i686-pc-linux-gnu/sys-include /
 /checking for C compiler default output file name... /
 /configure: error: in `/mnt/lfs/sources/gcc-build/intl':/
 /configure: error: C compiler cannot create executables/
 /See `config.log' for more details./
 /make[2]: *** [configure-stage2-intl] Error 77/
 /make[2]: Leaving directory `/mnt/lfs/sources/gcc-build'/
 /make[1]: *** [stage2-bubble] Error 2/
 /make[1]: Leaving directory `/mnt/lfs/sources/gcc-build'/
 /make: *** [all] Error 2/


 I have searched in Google but I can't find the solution.


First thing I would look at is config.log as stated in the error message.

Also verify your host distro meets all requirements.
Preface vii. Host System Requirements.

Other than that we need some more information to be able to help you 
properly.

-- 
Eric Plummer
anadox...@gmail.com
--
Messages in plain text, please, no HTML.
No top posting, please.
--
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: gcc (first pass) compilation error

2011-06-23 Thread Eric Plummer
Frederick Muriithi wrote:
 I am a beginning LFS student/builder.
 I was using the LFS livecd (Version x86-6.3-r2160) for my build. The
 binutils build went well.
 The gcc build (with the command 'make bootstrap') however, failed with
 the following being the last 20 lines of the error output:

Your are using version 6.3 of the LFS book that was included on the 
live cd.

I recommend you use the current stable version 6.8
download:
http://www.linuxfromscratch.org/lfs/downloads/6.8/LFS-BOOK-6.8-HTML.tar.bz2

You should still be able to use the live cd as a build platform, but 
use the newer instructions and packages.


-- 
Eric Plummer
anadox...@gmail.com
--
Messages in plain text, please, no HTML.
No top posting, please.
--
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: 6.9. Glibc-2.12.1

2011-06-22 Thread Eric Plummer
Simon Geard wrote:
 On Mon, 2011-06-20 at 12:00 -0500, Mike McCarty wrote:
 Interesting. I have more faith in my own code than I do in others'.
 You apparently trust others' works more than you do your own.

 It's more that I see automated testing as being for the developer's
 benefit - so when writing code, it's essential to have tests a) covering
 as much of the code as possible, and b) passing reliably. That's
 important, because if I make a change and break something else, *I'm*
 the one who has to explain that to a customer. And that's not fun. It's
 my reputation on the line.

 As to trust, it's more that I assume that other developers have their
 own standards, and if they're willing to call something a stable
 release, they've done the work to ensure they have confidence in it. And
 if they haven't, well - what confidence should I have that their
 automated tests are useful?

Simon:
That is one heck of an assumption... If you assume everyone else does 
their job properly, I have a used car you might be interested in...

Testing is not only for the program in question, it can also check for 
proper interaction with external required libs/progs. Have you ever 
heard that an ounce of prevention is worth a pound of cure? I would 
much rather test something before depending on it to perform a task in 
a predictable manner.


-- 
Eric Plummer
anadox...@gmail.com
--
Messages in plain text, please, no HTML.
No top posting, please.
--
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: What is 21?

2011-06-21 Thread Eric Plummer
Webmaster wrote:
 For example:
 |ls -l /usr/bin | more  redirect_test.log 21| (BLFS 6.3 Page 37)
 What does 21 mean?

Input and output redirection.
2 is Standard Error
1 is Standard Output
0 is Standard Input
  redirects output in general

long story short

the command takes the standard error messages along with the standard 
output and redirects the both to a file specified.



-- 
Eric Plummer
anadox...@gmail.com
--
Messages in plain text, please, no HTML.
No top posting, please.
--
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: shadow-4.1.4.3 not available

2011-06-20 Thread Eric Plummer
robert wrote:
 as per instruction at 3.2 All packages ...

 wget ftp://pkg-shadow.alioth.debian.org/pub/pkg-shadow/shadow-4.1.4.3.tar.bz2
 --2011-06-20 08:45:32--
 ftp://pkg-shadow.alioth.debian.org/pub/pkg-shadow/shadow-4.1.4.3.tar.bz2
  =  `shadow-4.1.4.3.tar.bz2'
 Resolving pkg-shadow.alioth.debian.org... 217.196.43.134
 Connecting to pkg-shadow.alioth.debian.org|217.196.43.134|:21... failed:
 Connection refused.

 further, a visit to http://pkg-shadow.alioth.debian.org/ reveals nothing of 
 note
 for shadow-4.1.4.3.tar.bz2

 suggestions? proceed with shadow-4.1.4.2.tar.bz2???
Do a search for 'shadow-4.1.4.3.tar.bz2'

found:
http://mir0.gentoo-fr.org/distfiles/shadow-4.1.4.3.tar.bz2


-- 
Eric Plummer
anadox...@gmail.com
--
Messages in plain text, please, no HTML.
No top posting, please.
--
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Image Upload?

2011-06-08 Thread Eric Plummer
This may be off topic but I have made my own LFS themed image for use 
as wallpaper and am looking for a place to upload the image to share 
with the rest of LFS community. I came up with a slogan of Friends 
don't let friends apt-get.
-- 
Thanks Anadox
Don't worry about it sir/maam, it's an eye-dee-ten-tee error
-- takes too long to explain -- have a nice day.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: lfs-support Digest, Vol 2312, Issue 1

2011-05-23 Thread Eric Plummer
janu mam wrote:


 1. BLFS-svn-Xorg Libraries (janu mam)


janu mam wrote:
   hi all [i done lfs-6.7 success]
   i dont know-blfs-support-[so i am posting on lfs-support]
   can any one to put this q to blfs-support
 i downloaded required packages,files into /xc/lib
   http://www.linuxfromscratch.org/blfs/view/svn/x/x7lib.html
   now - Installation of Xorg Libraries
   here i will done like below
  
   *step1*) janu[~Downloads/xc/lib]$bash -e
   *step2**) janu[*~Downloads/xc/lib]
  
   for package in $(grep -v'^#'  ../lib-7.6-1.wget)
   do
   packagedir=${package%.tar.bz2}
   tar -xf $package
   cd $packagedir
  case$packagedir  in
  libX11-1.4.0 )
# Uncomment if you did not build libxcb[i done libxcb
 successfully]
  
#CONFIGPARAMS=--without-xcb
  
  esac
  ./configure $XORG_CONFIG $CONFIGPARAMS
  make
  make install
  unset CONFIGPARAMS
  ldconfig
  cd ..
  rm -rf $packagedir
   done 21 | tee -a ../lib-7.6-1-compile.log
  
  
   when i do above following error
  
   _*result is:[at last]  this is exact message on screen:::*
  
   checking for X11 ...configure:error:package quirements(xproto
  =7.0.13
   exeproto xtrans xcb=1.1.92 kbproto)were not met:
  
  
   no package'xtrans'  found
  
   consider adjusting the PKG_COFIG_PATH environment variable if you
 installed software in a non-standard prefix
  
   Alternatively, you may set the environment variable X11_CFLAGS
 and X11_LIBS to avoid the need to call pkg-config.
  
  
   see the pkg-config man page for mor details_
  
 can one help me plzz?
  


 janu[~Downloads/xc/lib]echo $XORG_CONFIG

 result :nothing






Go back to the beginning pages of the X Window System Environment, 
section Introduction to Xorg-7.6. Read the section Setting up the Xorg 
Build Environment. Here you will see instructions to set the system 
variables.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: BLFS-svn-Xorg Libraries

2011-05-22 Thread Eric Plummer
janu mam wrote:
 hi all [i done lfs-6.7 success]
 i dont know-blfs-support-[so i am posting on lfs-support]
 can any one to put this q to blfs-support
   i downloaded required packages,files into /xc/lib
 http://www.linuxfromscratch.org/blfs/view/svn/x/x7lib.html
 now - Installation of Xorg Libraries
 here i will done like below

 *step1*) janu[~Downloads/xc/lib]bash -e
 *step2**) janu[*~Downloads/xc/lib]

 for package in $(grep -v'^#'  ../lib-7.6-1.wget)
 do
 packagedir=${package%.tar.bz2}
 tar -xf $package
 cd $packagedir
case$packagedir  in
libX11-1.4.0 )
  # Uncomment if you did not build libxcb[i done libxcb successfully]

  #CONFIGPARAMS=--without-xcb

esac
./configure $XORG_CONFIG $CONFIGPARAMS
make
make install
unset CONFIGPARAMS
ldconfig
cd ..
rm -rf $packagedir
 done 21 | tee -a ../lib-7.6-1-compile.log


 when i do above following error

 _*result is:[at last]  this is exact message on screen:::*

 checking for X11 ...configure:error:package quirements(xproto =7.0.13
 exeproto xtrans xcb=1.1.92 kbproto)were not met:


 no package'xtrans'  found

 consider adjusting the PKG_COFIG_PATH environment variable if you installed 
 software in a non-standard prefix

 Alternatively, you may set the environment variable X11_CFLAGS and X11_LIBS 
 to avoid the need to call pkg-config.


 see the pkg-config man page for mor details_

   can one help me plzz?


try:
echo $XORG_CONFIG

see if the environment variable is still set properly see instructions 
in Introduction to Xorg-7.6. If you had logged out or started a new 
shell your environment variables will need to be reset.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page