Changes between Version 4 and Version 5 of cross-chap5


Ignore:
Timestamp:
05/04/2020 12:07:11 PM (4 years ago)
Author:
Pierre Labastie
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • cross-chap5

    v4 v5  
    1212packages are built in chroot.
    1313
    14   pros:: no /tools symlink, no need to tweak gcc sources, no need to build twice ld in binutils-pass2, no need to readjust the toolchain after chapter 6 glibc, no need to tweak the gcc specs, no need to reinstall kernel headers in chapter 6.
     14  pros:: no /tools symlink, no need to tweak gcc sources, no need to build twice ld in binutils-pass2, no need to readjust the toolchain after chapter 6 glibc, no need to tweak the gcc specs, no need to reinstall kernel headers in chapter 6, no need for symlinks between /usr and /tools in chapter 6.
    1515
    16   cons:: chroot is entered in the middle of chapter 5 (maybe chapter 5 should be split), the debug sections of several packages reference x86_64-lfs-linux-gnu instead of x86_64-pc-linux-gnu, binutils-pass2 needs "enable-shared".
     16  cons:: chroot is entered in the middle of chapter 5 (maybe chapter 5 should be split), the debug sections of several packages reference x86_64-lfs-linux-gnu instead of x86_64-pc-linux-gnu (but actually, not very serious, since it occurs only for source files that do not generate code, so gdb is usable anyway), binutils-pass2 needs "enable-shared" (this was added for clean ICA, maybe it can be removed).
    1717
    1818== ToDos
     
    5353 Issue::
    5454  In the first phase of chroot terminal is not quite usable (no backspace key etc).
    55  Solution::
    56   remove "--disable-db-install" from the ncurses chap5 configure
    57 
     55 Solutions::
     56  - remove ''--disable-db-install'' from the ncurses chap5 configure. This means that '''tic''' should be present on the host with a suitably recent version (>= 6.0)
     57  - build '''tic''' from the ncurses package with build host tools, and use it to compile the terminfo database when cross-building ncurses
     58  - build with ''--disable-db-install'' and copy the /usr/share/terminfo database from the build host to the target lfs host (taints target in some way, who knows what is exactly in that database?).
     59  - build with ''--disable-db-install'', then run the built '''tic''' to install the terminfo database (taints cross compile, but the most economical)
    5860
    5961=== Phenomenon on ArchLinux
     
    9698 Solution::
    9799  <currently none>
     100 Discussion::
     101  There are only warnings, then the error is about a missing file when running the m4 subprocess. To troubleshoot: '''type m4''' and '''ldd /usr/bin/m4''', also try to run bison with a verbose switch.
     102
     103  For the '''tar''' issue, is it in a pipe? The mailing list thread concluded that it was related to a change in the way the SIGPIPE signal was handled.
    98104
    99105