Find the answer to your Linux question:
Results 1 to 3 of 3
Hi folks, LFS 6.1 6.12. Re-adjusting the Toolchain http://www.linuxfromscratch.org/lfs/...adjusting.html Because I overlooked the "Warning" of 5.12. Binutils-2.15.94.0.2.2 - Pass 2 http://www.linuxfromscratch.org/lfs/...ils-pass2.html having removed Binutils source and build directories previously. Therefore ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,804

    5.12. Binutils-2.15.94.0.2.2 - Pass 2 - error on "make"


    Hi folks,

    LFS 6.1

    6.12. Re-adjusting the Toolchain
    http://www.linuxfromscratch.org/lfs/...adjusting.html

    Because I overlooked the "Warning" of
    5.12. Binutils-2.15.94.0.2.2 - Pass 2
    http://www.linuxfromscratch.org/lfs/...ils-pass2.html

    having removed Binutils source and build directories previously. Therefore I have redo it.

    Re-ran
    5.3. Binutils-2.15.94.0.2.2 - Pass 1
    http://www.linuxfromscratch.org/lfs/...ils-pass1.html

    All went through without complaint


    5.12. Binutils-2.15.94.0.2.2 - Pass 2
    http://www.linuxfromscratch.org/lfs/...ils-pass2.html

    root:/sources/binutils-build# ../binutils-2.15.94.0.2.2/configure --prefix=/tools \
    > --disable-nls --enable-shared --with-lib-path=/tools/lib

    Went through without problem

    root:/sources/binutils-build# make
    Code:
     
    ......
    collect2: ld returned 1 exit status
    make[3]: *** [size] Error 1
    make[3]: Leaving directory `/sources/binutils-build/binutils'
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory `/sources/binutils-build/binutils'
    make[1]: *** [all-recursive-am] Error 2
    make[1]: Leaving directory `/sources/binutils-build/binutils'
    make: *** [all-binutils] Error 2
    readelf, interpreter:-
    /tools/bin/gcc
    /tools/bin/g++
    /tools/bin/bash

    all displayed /tools/lib/ld-linux.so.2]

    root:/sources/binutils-build# echo $PATH
    Code:
    /bin:/usr/bin:/sbin:/usr/sbin:/tools/bin
    root:/sources/binutils-build# export PATH=/tools/bin:/bin:/usr/bin
    root:/sources/binutils-build# echo $PATH
    Code:
    /tools/bin:/bin:/usr/bin

    Santy Check
    root:/sources/binutils-build# echo 'main(){}' > dummy.c
    root:/sources/binutils-build# cc dummy.c
    root:/sources/binutils-build# readelf -l a.out | grep ': /lib'
    No printout

    root:/sources/binutils-build# readelf -l a.out | grep ': /tools'
    Code:
          [Requesting program interpreter: /tools/lib/ld-linux.so.2]

    Re-ran
    5.12. Binutils-2.15.94.0.2.2 - Pass 2

    root:/sources/binutils-build# ../binutils-2.15.94.0.2.2/configure --prefix=/tools --disable-nls --enable-shared --with-lib-path=/tools/lib

    Went through without complaint

    root:/sources/binutils-build# make
    Code:
    ...
    ...... 
    size.o(.text+0x201): In function `sysv_internal_sizer':
    ../../binutils-2.15.94.0.2.2/binutils/size.c:499: undefined reference to `bfd_abs_section'
    size.o(.text+0x212):../../binutils-2.15.94.0.2.2/binutils/size.c:499: undefined reference to `bfd_und_section'
    size.o(.text+0x271): In function `sysv_internal_printer':
    ../../binutils-2.15.94.0.2.2/binutils/size.c:521: undefined reference to `bfd_abs_section'
    size.o(.text+0x282):../../binutils-2.15.94.0.2.2/binutils/size.c:521: undefined reference to `bfd_und_section'
    size.o(.text+0x331): In function `print_sizes':
    ../../binutils-2.15.94.0.2.2/binutils/size.c:451: undefined reference to `bfd_map_over_sections'
    size.o(.text+0x44b):../../binutils-2.15.94.0.2.2/binutils/size.c:542: undefined reference to `bfd_map_over_sections'
    size.o(.text+0x4fd):../../binutils-2.15.94.0.2.2/binutils/size.c:561: undefined reference to `bfd_map_over_sections'
    size.o(.text+0x5cb): In function `display_bfd':
    ../../binutils-2.15.94.0.2.2/binutils/size.c:263: undefined reference to `bfd_check_format'
    size.o(.text+0x5f4):../../binutils-2.15.94.0.2.2/binutils/size.c:267: undefined reference to `bfd_check_format_matches'
    size.o(.text+0x601):../../binutils-2.15.94.0.2.2/binutils/size.c:274: undefined reference to `bfd_get_error'
    size.o(.text+0x61f):../../binutils-2.15.94.0.2.2/binutils/size.c:283: undefined reference to `bfd_check_format_matches'
    size.o(.text+0x659):../../binutils-2.15.94.0.2.2/binutils/size.c:290: undefined reference to `bfd_core_file_failing_command'
    size.o(.text+0x6ab):../../binutils-2.15.94.0.2.2/binutils/size.c:300: undefined reference to `bfd_get_error'
    size.o(.text+0x71c): In function `display_file':
    ../../binutils-2.15.94.0.2.2/binutils/size.c:349: undefined reference to `bfd_openr'
    size.o(.text+0x737):../../binutils-2.15.94.0.2.2/binutils/size.c:357: undefined reference to `bfd_check_format'
    size.o(.text+0x74f):../../binutils-2.15.94.0.2.2/binutils/size.c:317: undefined reference to `bfd_set_error'
    size.o(.text+0x75b):../../binutils-2.15.94.0.2.2/binutils/size.c:319: undefined reference to `bfd_openr_next_archived_file'
    size.o(.text+0x77d):../../binutils-2.15.94.0.2.2/binutils/size.c:333: undefined reference to `bfd_close'
    size.o(.text+0x78b):../../binutils-2.15.94.0.2.2/binutils/size.c:317: undefined reference to `bfd_set_error'
    size.o(.text+0x797):../../binutils-2.15.94.0.2.2/binutils/size.c:319: undefined reference to `bfd_openr_next_archived_file'
    size.o(.text+0x7a2):../../binutils-2.15.94.0.2.2/binutils/size.c:322: undefined reference to `bfd_get_error'
    size.o(.text+0x7c8):../../binutils-2.15.94.0.2.2/binutils/size.c:338: undefined reference to `bfd_close'
    size.o(.text+0x7d0):../../binutils-2.15.94.0.2.2/binutils/size.c:362: undefined reference to `bfd_close'
    size.o(.text+0x7f3):../../binutils-2.15.94.0.2.2/binutils/size.c:362: undefined reference to `bfd_close'
    size.o(.text+0x86e): In function `main':
    ../../binutils-2.15.94.0.2.2/binutils/size.c:137: undefined reference to `bfd_init'
    bucomm.o(.text+0xb): In function `bfd_nonfatal':
    bucomm.c: undefined reference to `bfd_get_error'
    bucomm.o(.text+0x13):bucomm.c: undefined reference to `bfd_errmsg'
    bucomm.o(.text+0x179): In function `set_default_bfd_target':
    bucomm.c: undefined reference to `bfd_get_error'
    bucomm.o(.text+0x181):bucomm.c: undefined reference to `bfd_errmsg'
    bucomm.o(.text+0x3c9): In function `display_info':
    bucomm.c: undefined reference to `bfd_openw'
    bucomm.o(.text+0x415):bucomm.c: undefined reference to `bfd_set_format'
    bucomm.o(.text+0x46a):bucomm.c: undefined reference to `bfd_close_all_done'
    bucomm.o(.text+0x668):bucomm.c: undefined reference to `bfd_close_all_done'
    bucomm.o(.text+0x693):bucomm.c: undefined reference to `bfd_openw'
    bucomm.o(.text+0x6ae):bucomm.c: undefined reference to `bfd_set_format'
    bucomm.o(.text+0x726):bucomm.c: undefined reference to `bfd_get_error'
    bucomm.o(.text+0x7e1):bucomm.c: undefined reference to `bfd_get_error'
    bucomm.o(.text+0x9eb): In function `parse_vma':
    bucomm.c: undefined reference to `bfd_scan_vma'
    ../bfd/.libs/libbfd.so: undefined reference to `bfd_elf32_i386_vec'
    ../bfd/.libs/libbfd.so: undefined reference to `bfd_efi_app_ia32_vec'
    ../bfd/.libs/libbfd.so: undefined reference to `symbolsrec_vec'
    ../bfd/.libs/libbfd.so: undefined reference to `bfd_malloc'
    ../bfd/.libs/libbfd.so: undefined reference to `bfd_elf32_little_generic_vec'
    ../bfd/.libs/libbfd.so: undefined reference to `i386linux_vec'
    ../bfd/.libs/libbfd.so: undefined reference to `srec_vec'
    ../bfd/.libs/libbfd.so: undefined reference to `binary_vec'
    ../bfd/.libs/libbfd.so: undefined reference to `ihex_vec'
    ../bfd/.libs/libbfd.so: undefined reference to `tekhex_vec'
    ../bfd/.libs/libbfd.so: undefined reference to `bfd_i386_arch'
    ../bfd/.libs/libbfd.so: undefined reference to `trad_core_vec'
    ../bfd/.libs/libbfd.so: undefined reference to `bfd_elf32_big_generic_vec'
    collect2: ld returned 1 exit status
    make[3]: *** [size] Error 1
    make[3]: Leaving directory `/sources/binutils-build/binutils'
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory `/sources/binutils-build/binutils'
    make[1]: *** [all-recursive-am] Error 2
    make[1]: Leaving directory `/sources/binutils-build/binutils'
    make: *** [all-binutils] Error 2
    Please advise how to fix this problem

    Remark: Previously both
    5.3. Binutils-2.15.94.0.2.2 - Pass 1
    and
    5.12. Binutils-2.15.94.0.2.2 - Pass 2

    went through without problem

    Remark:
    Rechecked the Notes taken down previously during building LFS;
    Bison-2.0
    Flex-2.5.31

    already installed without problem

    B.R.
    satimis

  2. #2
    Linux Guru smolloy's Avatar
    Join Date
    Apr 2005
    Location
    CA, but from N.Ireland
    Posts
    2,414
    I had a few problems like that when I was installing LFS, but I didn't take notes on how I recovered from them Is there anything interesting in the config.log file -- like comlaints about missing libraries, or some obvious fault like that??

    By the way -- I really encourage you to keep going with LFS. I'm half way through BLFS and I have learnt so much about the guts of linux. I'm even acting as a pseudo-sysadmin for some of my friends who were previously the guys who helped me!! All cos of LFS.
    As well as being a great learning experience, it's a really nice feeling to know that you only have what you need on your computer and that you've taken the time to configure everything exactly how you want it.
    Registered Linux user #388328 || Registered LFS user #15880
    AMD 64 X2 4600+ :: 2X1GB DDR2 800 :: GeForce 9400 GT 512MB :: ASUS M2N32 Deluxe :: 4X250GB SATAII
    Need instant help? Try us on IRC -- #linuxforums on freenode

  3. #3
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,804
    Hi smolloy,

    Tks for your advice.

    I set this problem aside and went straight to 6.13. Binutils-2.15.94.0.2.2.

    I'm now approaching to "7.6. Configuring the Linux Console", going through all sections before this section without much problem.

    B.R.
    satimis

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •