Re: [lfs-support] Error at GlibC

2012-08-15 Thread Mikie
Thanks Elly,

This worked:

sudo apt-get install gawk
sudo update-alternatives --set awk /usr/bin/gawk

Then I started from scratch and all is well.



From: lfs-support-boun...@linuxfromscratch.org 
[mailto:lfs-support-boun...@linuxfromscratch.org] On Behalf Of Eleanore Boyd
Sent: Tuesday, August 14, 2012 12:24 PM
To: LFS Support List
Subject: Re: [lfs-support] Error at GlibC

On 8/14/2012 12:09 PM, Mikie wrote:
Make sure that all of gawk's dependencies are resolved, get rid of packages 
that rely solely on mawk, then make sure everything is configured to use gawk 
and restart. Unless you're in runlevel 3 or using a server edition of Ubuntu, 
the power symbol on the top toolbar is probably red, which means that the 
system wants to restart. (The gui is still good for some things. Like the 
browser.)

Elly

Huh?

I am on server and did a reboot but no difference :

lfs@ubuntu:/mnt/lfs/sources/glibc-build$ make install
LANGUAGE=C LC_ALL=C; export LANGUAGE LC_ALL; \
make -r PARALLELMFLAGS= CVSOPTS= -C ../glibc-2.14.1 objdir=`pwd` 
install
make[1]: Entering directory `/mnt/lfs/sources/glibc-2.14.1'
mawk -f scripts/gen-sorted.awk \
   -v subdirs='csu assert ctype locale intl catgets math setjmp 
signal stdlib stdio-common libio malloc string wcsmbs time dirent grp pwd posix 
io termios resource misc socket sysvipc gmon gnulib iconv iconvdata wctype 
manual shadow gshadow po argp crypt nss localedata timezone rt conform debug 
libidn dlfcn elf' \
   -v srcpfx='' \
   nptl/sysdeps/pthread/Subdirs sysdeps/unix/inet/Subdirs 
sysdeps/unix/Subdirs assert/Depend intl/Depend catgets/Depend stdlib/Depend 
stdio-common/Depend libio/Depend malloc/Depend string/Depend wcsmbs/Depend 
time/Depend posix/Depend iconvdata/Depend nss/Depend localedata/Depend 
rt/Depend debug/Depend  /mnt/lfs/sources/glibc-build/sysd-sorted-tmp
/bin/sh: 1: mawk: not found
make[1]: *** No rule to make target 
`/mnt/lfs/sources/glibc-build/Versions.all', needed by 
`/mnt/lfs/sources/glibc-build/abi-versions.h'.  Stop.
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.14.1'
make: *** [install] Error 2
lfs@ubuntu:/mnt/lfs/sources/glibc-build$


Did you also try deleting the untarred files and the build folder and redoing 
the build from scratch? It might still be trying to find mawk.

If that fails as well, try rebuilding the entire LFS system, as the tools might 
be directing to mawk as well. If even that fails, make sure Ubuntu is using 
gawk as the default awk, and that all programs are using gawk as well. Though, 
at last check, I didn't think the server edition came with mawk at all...

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


Re: [lfs-support] Dazed and Confused

2012-08-15 Thread Bruce Dubbs
Mikie wrote:
 Hello all,

 I am at 5.8 Adjusting the Tools chain.

 ... and I am really confused.

 Here is the command:

 SPECS=`dirname $($LFS_TGT-gcc -print-libgcc-file-name)`/specs
 $LFS_TGT-gcc -dumpspecs | sed \ -e 's@/lib\(64\)\?/ld@/tools@g' \
  -e /^\*cpp:$/{n;s,$, -isystem /tools/include,}  $SPECS
  echo New specs file is: $SPECS
  unset SPECS


 Now I am a beginner here but this looks like we construct an external
 SPECS file (the internal one is compiled with GCC  is that
 right??).

 Where is this file?

 When I run it I get New specs file is: $SPECS as if the $SPECS
 variable is null.

It is a rather complex construct.  When you need to check something like 
this, break it down:

dirname $($LFS_TGT-gcc -print-libgcc-file-name)

You are the user lfs and $LFS_TGT is defined, right?  It should be:

i686-lfs-linux-gnu for a 32-bit system and x86_64-lfs-linux-gnu for a 
64-bit system.

Then you can run '$LFS_TGT-gcc -dumpspecs' and see what it is giving. 
We are using sed to change a couple of directory paths to /tools so the 
right version of gcc is used.

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


[lfs-support] NFS root...

2012-08-15 Thread Michael Robinson
I plan on running my LFS system NFS root.  Are there special boot time
scripts that are meant for NFS root?  I'm building LFS for booting via
PXE, so I plan on skipping installation of grub.  The purpose of this
Linux system is to facilitate bare metal recovery.  Has anyone gotten
Mondo Backup to work with LFS?  Are there better options?

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


Re: [lfs-support] NFS root...

2012-08-15 Thread Bruce Dubbs
Michael Robinson wrote:
 I plan on running my LFS system NFS root.  Are there special boot time
 scripts that are meant for NFS root?  I'm building LFS for booting via
 PXE, so I plan on skipping installation of grub.  The purpose of this
 Linux system is to facilitate bare metal recovery.  Has anyone gotten
 Mondo Backup to work with LFS?  Are there better options?

Have you done a standard LFS build?  If not, I recommend that you do so.

I believe what you want to do requires a initrd.  There are some 
instructions in BLFS, but what you want to do goes beyond that.

Good luck.

   -- Bruce



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


[lfs-support] Stuck 6.49...

2012-08-15 Thread Michael Robinson
I don't have pkg-config installed, I wonder what I missed?

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


Re: [lfs-support] upgrading 2-year-old sys

2012-08-15 Thread Ken Moffat
On Wed, Aug 15, 2012 at 08:28:13PM +0200, x yy wrote:
 Hi! 
 
 I had been using LFS for half a year until I realized that keeping it 
 up-to-date is a pain. I feel I'd like to have some hard work again:), so now 
 I'm trying to upgrade that system.
 As far as I know It could be a failure, but definately not an easy task... 
 I'm confused about how to upgrade the toolchain. I believe constructing a 
 temp. system can be skipped, as I have a functional LFS. 
 I'm doing the project chrooting into LFS. I have updated the arithmetic 
 packages that gcc need, and binutils. Ok, to make it short I don't know the 
 order of the packages to update. 
 
 Any clue would be appreciated! 
 adam

 Some people apparently upgrade the toolchain in a running LFS - but
I'm not sure if any of them read lfs-support.  If they don't answer
on this list, you might need to ask on blfs-support.

 The reliable method is to use the old system to build the new one -
on a different partition, following the book (particularly, checking
the requirements, and building chapter 5.  After that is finished, of
course, you have to build whatever else you use.

 Upgrading the toolchain falls into the if it breaks, you keep both
pieces category.

ĸen
-- 
das eine Mal als Tragödie, das andere Mal als Farce
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] Stuck 6.49...

2012-08-15 Thread Ken Moffat
On Wed, Aug 15, 2012 at 02:28:13PM -0700, Michael Robinson wrote:
 I don't have pkg-config installed, I wonder what I missed?
 
 Sorry, I'm not a mind-reader.  Which version of the book ?
And why do you think you have a problem ? (I'm guessing a package
fails to configure, but '6.49' without a book version means
nothing).

 For some recent releases, pkg-config was not installed (its
dependencies became too great).  If you are using one of those
versions of the book, why do you think you need it ?

 In general, if you think you missed a package, look to see if any
of the programs or libraries from it have been installed.

ĸen
-- 
das eine Mal als Tragödie, das andere Mal als Farce
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] NFS root...

2012-08-15 Thread William Harrington

On Aug 15, 2012, at 16:06 PM, Michael Robinson wrote:

 I plan on running my LFS system NFS root.  Are there special boot time
 scripts that are meant for NFS root?  I'm building LFS for booting via
 PXE, so I plan on skipping installation of grub.  The purpose of this
 Linux system is to facilitate bare metal recovery.  Has anyone gotten
 Mondo Backup to work with LFS?  Are there better options?

Hello Michael,

I've used NFS root during CLFS mips, sparc, and x86 builds, and pxe  
for x86
with rootnfs isn't difficult. Enable the ip autolevel options in the  
kernel config and
enable root over nfs options. Then when you setup your kernel boot  
line add the
approrpiate kernel options like: root=/dev/nfs ip=dhcp

look at the kernel parameters documentation for other ip options.

Should be no other configuration required. Of course I'm assuming  
your nfs server is already setup, you can figure that out.  There's a  
hint we use at cross-lfs when netbooting with x86 or sparc.

http://hints.cross-lfs.org/index.php/Netboot-X86

You should be able to boot your LFS system wihtout any system changes.

Rather than the system loading the kernel from a drive, it loads it  
from the network and the rootfs is mounted and then the system takes  
over and the rest is just like using LFS via the local hard drive.  
make sure your /etc/fstab is proper on the server before doing this.

I think that the / line will be /  /dev/nfsroot or some such.

Probably find more in some netbooting guides that are current.   
Remembering from memory, i may be missing some critical changes in  
fstab or the bootscripts.

Sincerely,

William Harrington
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] Stuck 6.49...

2012-08-15 Thread Michael Robinson
On Wed, 2012-08-15 at 17:29 -0500, Bruce Dubbs wrote:
 Michael Robinson wrote:
  I don't have pkg-config installed, I wonder what I missed?
 
 What's your error?  We can't help without details.
 
-- Bruce
 
 
LFS Book 7.1 chapter 6 kmod.

configure: error: in `/kmod-5':
configure: error: The pkg-config script could not be found or is too
old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables liblzma_CFLAGS
and liblzma_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see http://pkg-config.freedesktop.org/.
See `config.log' for more details


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


[lfs-support] Resolved: Stuck 6.49...

2012-08-15 Thread Michael Robinson
On Wed, 2012-08-15 at 16:00 -0700, Michael Robinson wrote:
 On Wed, 2012-08-15 at 17:29 -0500, Bruce Dubbs wrote:
  Michael Robinson wrote:
   I don't have pkg-config installed, I wonder what I missed?
  
  What's your error?  We can't help without details.
  
 -- Bruce
  
  
 LFS Book 7.1 chapter 6 kmod.
 
 configure: error: in `/kmod-5':
 configure: error: The pkg-config script could not be found or is too
 old.  Make sure it
 is in your PATH or set the PKG_CONFIG environment variable to the full
 path to pkg-config.
 
 Alternatively, you may set the environment variables liblzma_CFLAGS
 and liblzma_LIBS to avoid the need to call pkg-config.
 See the pkg-config man page for more details.
 
 To get pkg-config, see http://pkg-config.freedesktop.org/.
 See `config.log' for more details
 
 
I must have gotten the liblzma_LIBS and liblzma_CFLAGS to cause the
search for pkg-config to be prevented wrong.  I got kmod compiled and
installed.

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


Re: [lfs-support] Stuck 6.49...

2012-08-15 Thread Bruce Dubbs
Michael Robinson wrote:
 On Wed, 2012-08-15 at 17:29 -0500, Bruce Dubbs wrote:
 Michael Robinson wrote:
 I don't have pkg-config installed, I wonder what I missed?

 What's your error?  We can't help without details.

 LFS Book 7.1 chapter 6 kmod.

 configure: error: in `/kmod-5':
 configure: error: The pkg-config script could not be found or is too
 old.  Make sure it
 is in your PATH or set the PKG_CONFIG environment variable to the full
 path to pkg-config.

 Alternatively, you may set the environment variables liblzma_CFLAGS
 and liblzma_LIBS to avoid the need to call pkg-config.
 See the pkg-config man page for more details.

 To get pkg-config, see http://pkg-config.freedesktop.org/.
 See `config.log' for more details

You left off the environment variables to work around not having pkg-config:

liblzma_CFLAGS=-I/usr/include \
liblzma_LIBS=-L/lib -llzma\
zlib_CFLAGS=-I/usr/include\
zlib_LIBS=-L/lib -lz  \
./configure --prefix=/usr --bindir=/bin --libdir=/lib --sysconfdir=/etc\
 --with-xz --with-zlib

There cannot be any spaces after the backslashes.

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