Opened 15 years ago

Closed 15 years ago

#2640 closed task (fixed)

binutils in Chapter 6 "error" about /usr/bin/file on x86_64

Reported by: Ivan Wagner Owned by: bdubbs@…
Priority: lowest Milestone: 6.7
Component: Book Version: SVN
Severity: trivial Keywords:
Cc:

Description

I am seeing the below message when compiling binutils in Chapter 6:

/sources/binutils/bfd/configure: line 7240: /usr/bin/file: No such file or directory

/sources/binutils/opcodes/configure: line 6975: /usr/bin/file: No such file or directory

/sources/binutils/binutils/configure: line 7000: /usr/bin/file: No such file or directory

/sources/binutils/gas/configure: line 6957: /usr/bin/file: No such file or directory

/sources/binutils/ld/configure: line 7345: /usr/bin/file: No such file or directory

For the heck of it I compiled file into /tools and symlinked it to /usr/bin/file, re-compiled binutils in a separate directory and compared the Makefiles.

The only difference was this: < LD = /tools/lib/gcc/x86_64-unknown-linux-gnu/4.4.3/../../../../x86_64-unknown-linux-gnu/bin/ld -m elf_x86_64 ---

LD = /tools/lib/gcc/x86_64-unknown-linux-gnu/4.4.3/../../../../x86_64-unknown-linux-gnu/bin/ld

according to the ld man page: "If the -m option is not used, the emulation is taken from the "LDEMULATION" environment variable, if that is defined.

Otherwise, the default emulation depends upon how the linker was configured."

So it appears to not be a problem but I thought I would mention it since I didn't see any mention of it on the book or when searching the website.

Change History (4)

comment:1 by bdubbs@…, 15 years ago

I get the same thing. I see three ways of addressing the issue:

  1. Put in some text describing the issue
  2. Move file to the first package in Chapter 6
  3. Add file to Chapter 5

I don't have a preference at the moment.

comment:2 by Matthew Burgess, 15 years ago

This sounds similar to the issue a couple of months ago that you fixed in r9186, Bruce.

My preference, albeit slight, would be to put 'file' in tools as it's used so early on in chapter 6. We could then move chapter 6's 'file' installation back in alphabetical order.

comment:3 by bdubbs@…, 15 years ago

Owner: changed from lfs-book@… to bdubbs@…
Status: newassigned

comment:4 by bdubbs@…, 15 years ago

Resolution: fixed
Status: assignedclosed

Added File to Chapter 5 at revision 9261.

Note: See TracTickets for help on using tickets.