Opened 19 years ago

Closed 18 years ago

Last modified 15 years ago

#39 closed task (fixed)

Sysroot build

Reported by: Jim Gifford Owned by: clfs-commits@…
Priority: major Milestone: CLFS Sysroot 1.0.0
Component: BOOK Version: CLFS Sysroot 1.0.0
Keywords: Cc:

Description

Work on implementing a complete sysroot build for the 2.0 Release. All notes should be placed in this ticket.

Change History (12)

comment:1 by Joe Ciccone, 19 years ago

I commited what work I've done so far on arm. I'm going to add each arch as I test for differences. My plan is to add the 32bit archs, then the pure64 bit archs, saving the multilib archs for last.

Some differences in the build:

  • There is no more temp-system
  • The cross-tools uses $LFS as it's sysroot, sysroot is the prefix added onto the search paths. eg. When gcc sees -I/usr/include, it will actualy use [sysroot]/usr/include. The same concept applies to ld.
  • The final system is built as the lfs user
  • The final system is still configured with --prefix=/usr but installed with DESTDIR=${LFS}.

What still needs to be done:

  • Make sure nothing's trying to link to or search the host system
  • Adding file to cross-tools
  • Figure out how to cross-compile vim
  • Figure out how to cross-compile perl (full working without references to the host)
  • Figure out how to setup shadow and set root's password.
  • Finally, Add the rest of the archs in.

comment:2 by Joe Ciccone, 19 years ago

I added glibc-headers in for arm. I think it might be needed for all of the archs but I still need to confirm that.

comment:3 by Joe Ciccone, 19 years ago

File was also added to cross-tools, If an older version of file is installed on the host the cross-compile may fail with a error similar to the following.

Making all in magic
make[2]: Entering directory `/mnt/lfs-arm/sources/file-4.17/magic'
file -C -m magic
magic, 3745: Warning type `medate       x               Previous dump %s,' invalid
magic, 3746: Warning type `medate       x               This dump %s,' invalid
file: could not find any magic files!
make[2]: *** [magic.mgc] Error 255
make[2]: Leaving directory `/mnt/lfs-arm/sources/file-4.17/magic'

comment:4 by Joe Ciccone, 18 years ago

coreutils isn't compiling df because of one of it's tests in m4/fsusage.m4. I'm going to look over this for now.

comment:5 by Joe Ciccone, 18 years ago

Instructions for cross-compiling Vim and Perl are now in the book.

That leaves glibc locales/timezone info, the coreutils df issue, setting root's password.

comment:6 by Joe Ciccone, 18 years ago

The coreutils df issue is now fixed. As stated before, the problem was related to a test in m4/fsusage.m4. The test for, fu_cv_sys_stat_statfs2_bsize , which is the one that passes when not cross-compiling, is trying to run a compiled test program. Setting this value to yes in config.cache fixes the problem.

comment:7 by Joe Ciccone, 18 years ago

The glibc timezone issue is now fixed. The fixes to the book were commited in r1837 and the patch was commited in r1838. The reason the timezone info wasn't installed in the past was the compiled zic program couldn't be run. When cross-compiling this patch will build zic-host and use that to install the timezone info.

Issues left: glibc locales & shadow passwords

comment:8 by Jim Gifford, 18 years ago

Version: unstable2.0

comment:9 by Jim Gifford, 18 years ago

Version: 2.02.0.0

comment:10 by alexander@…, 18 years ago

Root password issue may be fixed by creating /etc/shadow and /etc/gshadow, and copying the encrypted root password from /etc/shadow from the host.

comment:11 by Joe Ciccone, 18 years ago

Resolution: fixed
Status: newclosed

Locales, zoneinfo, and sunrpc in glibc have been fixed. Passwords have been fixed by creating a native set of tools.

The major issues can be closed.

Note: See TracTickets for help on using tickets.