make error binutils pass 1

James Lytle james.lytle at charter.net
Thu Jun 30 13:40:44 PDT 2005


I am having a problem that I am sure has been dealt with many times.  I am not new to Linux, just not as knowledgable as I should be, therefore this project!

I am getting an error in section 5.4 Binutils-2.15.91.0.2 - Pass 1.  Everything seems to work correctly, and I don't notice anything other than warnings, until the very last line, as follows:

     make -C ld LDFLAGS="-all-static" LIB_PATH=/tools/lib

The output is as follows:

make: Entering directory `/mnt/lfs/binutils-build/ld'
make  all-recursive
make[1]: Entering directory `/mnt/lfs/binutils-build/ld'
Making all in po
make[2]: Entering directory `/mnt/lfs/binutils-build/ld/po'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory 
       `/mnt/lfs/binutils-build/ld/po'
make[2]: Entering directory `/mnt/lfs/binutils-build/ld'
gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.15.94.0.2/ld -I. -D_GNU_SOURCE -I. -I../../binutils
      -2.15.94.0.2/ld -I../bfd -I../../binutils-2.15.94.0.2/ld/../bfd -I../../binutils-2.15.94
      .0.2/ld/../include -I../../binutils-2.15.94.0.2/ld/../intl -I../intl  -g -O2  
      -DLOCALEDIR="\"/tools/share/locale\""   -W -Wall -Wstrict-prototypes -Wmissing-prototypes 
      -g -O2  -c ../../binutils-2.15.94.0.2/ld/ldlang.c
../../binutils-2.15.94.0.2/ld/ldlang.c: In function `lang_insert_orphan':
../../binutils-2.15.94.0.2/ld/ldlang.c:865: error: `ALIGN_K' undeclared (first use in this 
      function)
../../binutils-2.15.94.0.2/ld/ldlang.c:865: error: (Each undeclared identifier is reported only 
      once
../../binutils-2.15.94.0.2/ld/ldlang.c:865: error: for each function it appears in.)
../../binutils-2.15.94.0.2/ld/ldlang.c:869: error: `NAME' undeclared (first use in this 
      function)
../../binutils-2.15.94.0.2/ld/ldlang.c:881: error: `ADDR' undeclared (first use in this 
      function)
../../binutils-2.15.94.0.2/ld/ldlang.c: In function `exp_init_os':
../../binutils-2.15.94.0.2/ld/ldlang.c:1260: error: `ADDR' undeclared (first use in this 
      function)
../../binutils-2.15.94.0.2/ld/ldlang.c:1261: error: `LOADADDR' undeclared (first use in this 
      function)
../../binutils-2.15.94.0.2/ld/ldlang.c:1262: error: `SIZEOF' undeclared (first use in this 
      function)
../../binutils-2.15.94.0.2/ld/ldlang.c: In function `map_input_to_output_sections':
../../binutils-2.15.94.0.2/ld/ldlang.c:2599: error: `ONLY_IF_RW' undeclared (first use in this 
      function)
../../binutils-2.15.94.0.2/ld/ldlang.c:2601: error: `ONLY_IF_RO' undeclared (first use in this 
      function)
../../binutils-2.15.94.0.2/ld/ldlang.c: In function `print_data_statement':
../../binutils-2.15.94.0.2/ld/ldlang.c:2961: error: `BYTE' undeclared (first use in this 
      function)
../../binutils-2.15.94.0.2/ld/ldlang.c:2965: error: `SHORT' undeclared (first use in this 
      function)
../../binutils-2.15.94.0.2/ld/ldlang.c:2969: error: `LONG' undeclared (first use in this 
      function)
../../binutils-2.15.94.0.2/ld/ldlang.c:2973: error: `QUAD' undeclared (first use in this 
      function)
../../binutils-2.15.94.0.2/ld/ldlang.c:2977: error: `SQUAD' undeclared (first use in this 
      function)
../../binutils-2.15.94.0.2/ld/ldlang.c: In function `lang_size_sections_1':
../../binutils-2.15.94.0.2/ld/ldlang.c:3681: error: `QUAD' undeclared (first use in this 
      function)
../../binutils-2.15.94.0.2/ld/ldlang.c:3682: error: `SQUAD' undeclared (first use in this 
      function)
../../binutils-2.15.94.0.2/ld/ldlang.c:3685: error: `LONG' undeclared (first use in this 
      function)
../../binutils-2.15.94.0.2/ld/ldlang.c:3688: error: `SHORT' undeclared (first use in this 
      function)
../../binutils-2.15.94.0.2/ld/ldlang.c:3691: error: `BYTE' undeclared (first use in this 
      function)
../../binutils-2.15.94.0.2/ld/ldlang.c: In function `lang_do_assignments_1':
../../binutils-2.15.94.0.2/ld/ldlang.c:4012: error: `QUAD' undeclared (first use in this 
      function)
../../binutils-2.15.94.0.2/ld/ldlang.c:4013: error: `SQUAD' undeclared (first use in this 
      function)
../../binutils-2.15.94.0.2/ld/ldlang.c:4016: error: `LONG' undeclared (first use in this 
      function)
../../binutils-2.15.94.0.2/ld/ldlang.c:4019: error: `SHORT' undeclared (first use in this 
      function)
../../binutils-2.15.94.0.2/ld/ldlang.c:4022: error: `BYTE' undeclared (first use in this 
      function)
../../binutils-2.15.94.0.2/ld/ldlang.c: In function `lang_enter_overlay_section':
../../binutils-2.15.94.0.2/ld/ldlang.c:5492: error: `ADDR' undeclared (first use in this 
      function)
../../binutils-2.15.94.0.2/ld/ldlang.c:5500: error: `SIZEOF' undeclared (first use in this 
      function)
../../binutils-2.15.94.0.2/ld/ldlang.c:5506: error: `MAX_K' undeclared (first use in this 
      function)
../../binutils-2.15.94.0.2/ld/ldlang.c: In function `lang_leave_overlay_section':
../../binutils-2.15.94.0.2/ld/ldlang.c:5541: error: `LOADADDR' undeclared (first use in this 
      function)
../../binutils-2.15.94.0.2/ld/ldlang.c:5548: error: `SIZEOF' undeclared (first use in this 
      function)
../../binutils-2.15.94.0.2/ld/ldlang.c: In function `lang_leave_overlay':
../../binutils-2.15.94.0.2/ld/ldlang.c:5600: error: `LOADADDR' undeclared (first use in this 
      function)
../../binutils-2.15.94.0.2/ld/ldlang.c:5601: error: `SIZEOF' undeclared (first use in this 
      function)
make[2]: *** [ldlang.o] Error 1
make[2]: Leaving directory `/mnt/lfs/binutils-build/ld'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/lfs/binutils-build/ld'
make: *** [all-recursive-am] Error 2
make: Leaving directory `/mnt/lfs/binutils-build/ld'

Hopefully, the above is readable.  Thanks in advance for any and all help!!!!

James Lytle




More information about the lfs-support mailing list