Void Abh | 24 May 11:08
Picon

binutils - Pass 2 configuration issue

Hi All,

I have a user level understanding of linux and have done some application programming using gcc.

I have just started out with LFS7.1 and it has been a smooth ride until 5.8 (Adjusting the toolchain).

The problem i am facing is with 5.9 :

While running the script: "binutils-2.22/configure", it failed with config.log showing three errors:

*********************************************************************
configure:4009: x86_64-lfs-linux-gnu-gcc -B/tools/lib/ -V >&5
x86_64-lfs-linux-gnu-gcc: error: unrecognized option '-V'
x86_64-lfs-linux-gnu-gcc: fatal error: no input files
compilation terminated.
configure:4020: $? = 1
configure:4009: x86_64-lfs-linux-gnu-gcc -B/tools/lib/ -qversion >&5
x86_64-lfs-linux-gnu-gcc: error: unrecognized option '-qversion'
x86_64-lfs-linux-gnu-gcc: fatal error: no input files
compilation terminated.
configure:4020: $? = 1
configure:4040: checking for C compiler default output file name
configure:4062: x86_64-lfs-linux-gnu-gcc -B/tools/lib/    conftest.c  >&5
configure:4066: $? = 0
configure:4103: result: a.out
configure:4119: checking whether the C compiler works
configure:4128: ./a.out
../binutils-2.22/configure: line 4130: ./a.out: No such file or directory
configure:4132: $? = 127
configure:4139: error: in `/media/lin/sources/binutils-build':
configure:4143: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
***********************************************************************

Since man x86_64-lfs-linux-gnu-gcc didn't have -V  and -qversion options , i modified binutils-2.22/configure as follows:

#Original source:
for ac_option in --version -v -V -qversion; do

#Modified source
for ac_option in --version -v; do

With this change , i dont get the first two errors but the last error (not finding ./a.out) still exists.
*********************************************************************
gcc version 4.6.2 (GCC)
configure:4020: $? = 0
configure:4040: checking for C compiler default output file name
configure:4062: x86_64-lfs-linux-gnu-gcc -B/tools/lib/    conftest.c  >&5
configure:4066: $? = 0
configure:4103: result: a.out
configure:4119: checking whether the C compiler works
configure:4128: ./a.out
../binutils-2.22/configure: line 4130: ./a.out: No such file or directory
configure:4132: $? = 127
configure:4139: error: in `/media/lin/sources/binutils-build':
configure:4143: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
*********************************************************************
 
My questions:
1) How come invalid options such as -V and -qversion have ended up in the configure script ? Is there something that i have missed here ?
2) How come the same scripts worked during the first pass ?
3) How do i solve the last problem ? (./a.out)


I would be grateful for any help/ advise.

Regards

--

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page
Omar | 24 May 09:07
Picon
Favicon

lfs7.1 cannot boot

Hi, all:
I finished all work of the LFS 7.1 book except the error when booting my LFS.

Firstly, I states my LFS 7.1.
I use VMware installed Ubuntu 10.04 on a virtual SCSI disk of 20G. Before beginning, I add another 8G virtual SCSI disk to VM and mount it in the Ubuntu manually. So the first disk with Ubuntu displays sda in /dev/ and the second which is mounted newly displays sdb in /dev/. Following the book I install LFS 7.1 on the sdb1 which is formatted with ext3 on the sdb and given only one partition. All pass with no error.
According to my disk in chapter 8.4.3 I run cmd as grub-install /dev/sdb and in chapter 8.4.4 I save grub.cfg as follows.

# Begin /boot/grub/grub.cfg
set default=0
set timeout=5

insmod ext2
set root=(hd1,1)

menuentry "GNU/Linux, Linux 3.2.6-lfs-7.1" {
        linux   /boot/vmlinuz-3.2.6-lfs-7.1 root=/dev/sdb1 ro
}

After a few works such as logout and unmount, I reboot the computer. But it starts up using Ubuntu again only appearing error checking of a moment.

Then I change the cmd in chapter 8.4.3 to grub-install /dev/sda and keep grub.cfg the same and reboot again. The computer gives errors as follows and stop starting up.

md: Autodetecting RAID arrays.
md: Scanned 0 and added 0 devices.
md: Autorun ...
md: ... autorun DONE.
Root-NFS: on NFS server address
VFS: Unable to mount root fs via NFS. trying floppy.
VFS: cannot open root device "sdb1" or unknown-block(2.0)
Please append a correct "root=" boot option; here are the available partitions:
0b00    1048575   sr0 driver: sr
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2.0)
Pid: 1. comm: swapper/0 Not tained 3.2.6 #1
Call trace:
...mount_block_root+0x141/0x1c9...mount_root...kernel_init...

I search this problem from lfs mail list and google, which says that compiling kernel needs some SCSI driver or changing hda to sda in the grub.cfg and etc. . I compile the kernel again with more drivers like SCSI. When I reboot again, it is the same.

Could anybody help me? Thanks in advance.

Omar
--

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page
satit pherm | 22 May 10:53
Picon

Bug in udev LFS 7.0

hi,

I think i found a bug of  udev  in LFS 7.0.
because of everytime after boot , it will stop and wait at ...

Populating /dev with device node

i used kernel 3.2 and asus main board P8Z77-V Pro.

please helps, Thank you in advance.

Satit P.





--

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page
xinglp | 18 May 15:39
Picon

handle power button in LFS

In order to use "power button" to shutdown or suspend my lfs.
I enabled the depreciate  /proc/acpi/event in kernel,
and install acpid to handle the button event.
It works well.

But is there any clear way to do that, such as by inittab or udev
or kernel callout userspace script ( /proc/sys/kernel/poweroff_cmd has
somethings )

I've looked into blfs, there's a lot more packages need to be
installed to enable this.(I'm not a X user,for now.)

Thanks.
--

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

Yasser Zamani | 16 May 17:03
Gravatar

Re: LFS-7.1: 6.37. Automake-1.11.3 (TEST FAILURE)!



From: bl8r1ner <at> tut.by
Date: Wed, 16 May 2012 14:33:12 +0300
To: lfs-support <at> linuxfromscratch.org
Subject: Re: [lfs-support] LFS-7.1: 6.37. Automake-1.11.3 (TEST FAILURE)!

> I expect every chip has its peculiarities, and my CPUs are not an exception.
>I failed to build LFS-6.8 (if I remember correctly, it was before 7.0 for sure) with -j2, however all worked fine with -j1.
>I haven't tried building in parallel on my later builds though, so maybe I should.
>On the other hand, almost all software after binutils-gcc-glibc builds in a matter of minutes anyway, mostly under one minute, not counting the test suites. And tests as we see from >reports are better run with j1. Good time for brushing up on man pages while waiting, I think.

>In BLFS all packages except glib and mplayer were built with -j2, no problem

>EK

In my machine, LFS-7.1 compiled good with -j2 switch except automake in section 6. however, so far!
-Yasser

On 16 May 2012 13:29, Simon Geard <delgarde <at> ihug.co.nz> wrote:
On Tue, 2012-05-15 at 19:43 +0300, Эмиль Кранц wrote:
> By trial and error I have found that any action that takes more than
> one SBU in LFS is better off with -j1.
>
> BLFS packages are more agreeable with -j2 switch.
>
> On my dual core machine only kernel compiles flawlessly with -j2
> switch. Binutils and compiled against them gcc and glibc were all
> faulty with -j2. I have discovered it early enough, at the entering
> the chroot environment. It may be a peculiarity of my abacus, of
> course. However, I'd stick with recommendation not to use -j2 in
> production environment.

That surprises me. Runnning tests in parallel may be flaky, but the
actual compilation step should be fine. Every package in the book built
fine with -j6, last time I tried (on hardware capable of it).

Simon.

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



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

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page
lei huang | 16 May 07:22
Picon

Re: glibc-2.15 make error undefined reference to `__rela_iplt_start' & undefined reference to `__rela_iplt_end'

help help!!!

On Tue, May 15, 2012 at 10:01 AM, lei huang <code.huanglei <at> gmail.com> wrote:
> system: centos5.8 linux2.6.18 gcc44
>
> lfs: binutils-2.22 gcc-4.7.0 glibc-2.15
>
> lfs-man Linux From Scratch - Version SVN-20120513
>
> build glibc erro:
>
> gcc44 -nostdlib -nostartfiles -static -o
> /myos/user/tools_src/build-glibc/elf/sln
> /myos/user/tools_src/build-glibc/csu/crt1.o
> /myos/user/tools_src/build-glibc/csu/crti.o `gcc44
> --print-file-name=crtbegin.o`
> /myos/user/tools_src/build-glibc/elf/sln.o  -Wl,--start-group
> /myos/user/tools_src/build-glibc/libc.a -lgcc -lgcc_eh
> -Wl,--end-group `gcc44  --print-file-name=crtend.o`
> /myos/user/tools_src/build-glibc/csu/crtn.o
> /myos/user/tools_src/build-glibc/libc.a(elf-init.o): In function
> `__libc_csu_irel':
> /myos/user/tools_src/glibc-2.15/csu/elf-init.c:88: undefined reference
> to `__rela_iplt_end'
> /myos/user/tools_src/glibc-2.15/csu/elf-init.c:88: undefined reference
> to `__rela_iplt_start'
> /myos/user/tools_src/build-glibc/libc.a(elf-init.o): In function `elf_irela':
> /myos/user/tools_src/glibc-2.15/csu/../sysdeps/x86_64/dl-irel.h:43:
> undefined reference to `__rela_iplt_start'
> /myos/user/tools_src/glibc-2.15/csu/../sysdeps/x86_64/dl-irel.h:40:
> undefined reference to `__rela_iplt_start'
> /myos/user/tools_src/glibc-2.15/csu/../sysdeps/x86_64/dl-irel.h:40:
> undefined reference to `__rela_iplt_start'
> /myos/user/tools_src/glibc-2.15/csu/../sysdeps/x86_64/dl-irel.h:40:
> undefined reference to `__rela_iplt_start'
> collect2: ld returned 1 exit status
> make[2]: *** [/myos/user/tools_src/build-glibc/elf/sln] Error 1
> make[2]: Leaving directory `/myos/user/tools_src/glibc-2.15/elf'
> make[1]: *** [elf/others] Error 2
> make[1]: Leaving directory `/myos/user/tools_src/glibc-2.15'
>
> how to fix it??
>
> Thanks,
>
> huanglei
--

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

Yasser Zamani | 14 May 20:26
Gravatar

LFS-7.1: 6.37. Automake-1.11.3 (TEST FAILURE)!

Hi,

'make -j2 check' on 'LFS-7.1: 6.37. Automake-1.11.3 (http://www.linuxfromscratch.org/lfs/view/stable/chapter06/automake.html)' informs me for one failure with following red message :(

=====================================
1 of 842 tests failed
(96 tests were not run)
See tests/test-suite.log
Please report to bug-automake <at> gnu.org
=====================================
make[3]: *** [test-suite.log] Error 1
make[3]: Leaving directory `/sources/automake-1.11.3/tests'
make[2]: *** [check-TESTS] Error 2
make[2]: Leaving directory `/sources/automake-1.11.3/tests'
make[1]: *** [check-am] Error 2
make[1]: Leaving directory `/sources/automake-1.11.3/tests'
make: *** [check-recursive] Error 1

I also reviewed 'tests/test-suite.log' for word 'Error' and found following rows which are maybe related:

+ make
Making all in src
make[1]: Entering directory `/sources/automake-1.11.3/tests/depcomp10.dir/build/src'
source='../../src/foo.c' object='foo.o' libtool=no \
DEPDIR=.deps depmode=hp /bin/sh ../../depcomp \
gcc -DPACKAGE_NAME=\"depcomp10\" -DPACKAGE_TARNAME=\"depcomp10\" -DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"depcomp10\ 1.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"depcomp10\" -DVERSION=\"1.0\" -I. -I../../src     -g -O2 -c -o foo.o ../../src/foo.c
cc1: error: unrecognized command line option '-M.deps/foo.TPo'
make[1]: *** [foo.o] Error 1
make[1]: Leaving directory `/sources/automake-1.11.3/tests/depcomp10.dir/build/src'
make: *** [all-recursive] Error 1
+ Exit 77

Is this failure expected or is a fatal error (and the process could not be continued before resolving it)?! Or do you think that eliminating '-j2' switch will resolve it (I should know before trying because it's test take 31 minutes to complete(i.e. 1 hour without -j2!))?

Thanks in advance!

-Yasser
--

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page
Yasser Zamani | 14 May 19:18
Gravatar

LFS-71.: Solution for automation of 'tar X', 'cd X' ... 'cd ..', 'rm -R X'.

Hi there,

As for each package you should decompress the package, enter decompressed folder, compile&install and finally remove decompressed folder, and also while you do not learn any new thing by doing these each time, so I would like to share my automation solution which does these just by getting a partial name of the package:

To create the main .sh file, issue following commands while you're logged in by chroot (section 6 of LFS-7.1) and also you're in '$LFS/sources' directory:

cat > t.sh << EOF
if [ "$1" == "" ]; then
    echo 'USAGE: t.bash [name]'
    return
fi
FNAME=$(ls $1* | grep tar.xz)
if [ "$FNAME" == "" ]; then
    FNAME=$(ls $1* | grep tar.gz)
    if [ "$FNAME" == "" ]; then
        FNAME=$(ls $1* | grep tar.bz2)
        if [ "$FNAME" == "" ]; then
            echo 'match not found!'
            return
        else
            TARPARAM='-jxf'
            EXT='.tar.bz2'
        fi
    else
        TARPARAM='-zxf'
        EXT='.tar.gz'
    fi
else
    TARPARAM='-Jxf'
    EXT='.tar.xz'
fi
DIR=$(echo $FNAME | sed "s/$EXT//g")
echo `rm -fR $DIR`
echo `ls $1*`
echo `tar $TARPARAM $FNAME`
rm -vfR ut.sh
echo -e 'cd ..\necho `rm -fR '$DIR'`\necho `ls '$1'*`\nrm -vfR ut.sh' >> ut.sh
chmod 777 ut.sh
cd $DIR
EOF
chmod 777 t.sh

Now, to use automation, act like following:
  1. Issue following command to decompress and enter to decompressed folder by just specifying package partial name:
  • source ./t.sh [package-partial-name] e.g. source ./t.sh autoco for autoconf-2.68 package.
  • NOTE: package-partial-name should be long enough to distinct the package from others e.g. source ./t.sh bi is not suitable at all because can not distinct between binutils and bison!
  • Do the book's instructions to configure, compile, test and install the package.
  • Issue following command to undo the above instruction #1.
    • source ../ut.sh.

    Sicerely Yours,
    Yasser.
    --
    
    -- 
    http://linuxfromscratch.org/mailman/listinfo/lfs-support
    FAQ: http://www.linuxfromscratch.org/lfs/faq.html
    Unsubscribe: See the above information page
    
    Wayne Blaszczyk | 13 May 07:58
    Picon

    6.2.3. Mounting Virtual Kernel File Systems question

    Hi All,
    I've recently updated my main workstation to LFS 7.1 (From LFS 6.7), and
    noticed one of my auto build scripts is now failing.
    I've tracked it down to the following command.
    mount -vt tmpfs shm $LFS/dev/shm
    It seems to me that this command is mounting onto /run/shm rather than
    /mnt/lfs/dev/shm due to /mnt/lfs/dev/shm being a symlink to /run/shm.
    Further more, when entering chroot environment, /dev/shm is now pointing
    to a no existent /run/shm.
    Am I'm doing something wrong or is this a bug?
    Thanks,
    Wayne.
    
    --
    
    -- 
    http://linuxfromscratch.org/mailman/listinfo/lfs-support
    FAQ: http://www.linuxfromscratch.org/lfs/faq.html
    Unsubscribe: See the above information page
    
    
    Yasser Zamani | 12 May 18:41
    Gravatar

    Do you know why 2 CPUs act like a mirror in GCC test?

    Hi,

    Sorry if it's off-topic; do you know why 2 CPUs act like a mirror while I'm running "make -k check" for testing GCC-4.6.2 (6.17's section of LFS-7.1)? it's not a problem but just I would like to know; I've attached an image which shows this while I was not running anything except GCC testing and Debian's System Monitor.

    I think it'll be an interesting reason that causes 2 CPU's mirror action during all test process!

    Thanks!

    -Yasser
    --
    
    -- 
    http://linuxfromscratch.org/mailman/listinfo/lfs-support
    FAQ: http://www.linuxfromscratch.org/lfs/faq.html
    Unsubscribe: See the above information page
    
    Lázaro Morales | 11 May 21:30
    Picon

    Problems starting the final LFS system

    Hello,
    
    After complete the LFS book, when I restart the computer I get a few  
    errors messages and the computer stuck after this:
    
         /lib/lsb/init-functions: line 590: /run/var/bootlog: No such file or  
    directory
         /etc/rc.d/init.d/rc: line 217: /var/log/boot.log: Read-only file system
         /etc/rc.d/init.d/rc: line 220: /var/log/boot.log: Read-only file system
         [  301.811991] rc used greatest stack depth: 5556 byte left
         INIT: Id "2" respawning too fast: disable for 5 minutes
         INIT: Id "4" respawning too fast: disable for 5 minutes
         INIT: Id "5" respawning too fast: disable for 5 minutes
         INIT: Id "6" respawning too fast: disable for 5 minutes
         INIT: Id "1" respawning too fast: disable for 5 minutes
         INIT: Id "3" respawning too fast: disable for 5 minutes
         INIT: no more processes left in this runlevel
    
    The LFS version is 7.1 and is running on VirtualBox with PAE/NX and VT-x,  
    the processor is a dual-core E5300 and the virtual machine have 512MiB of  
    RAM. Could be this a problem? LFS can be compiled on VirtualBox?
    
    Thanks very much,
    Lázaro
    
    --
    
    -- 
    http://linuxfromscratch.org/mailman/listinfo/lfs-support
    FAQ: http://www.linuxfromscratch.org/lfs/faq.html
    Unsubscribe: See the above information page
    

    Gmane