|
|
Subscribe / Log in / New account

Linux from Scratch version 10.0 released

Linux from Scratch version 10.0 released

Posted Sep 7, 2020 17:23 UTC (Mon) by jsm28 (subscriber, #104141)
In reply to: Linux from Scratch version 10.0 released by ppisa
Parent article: Linux from Scratch version 10.0 released

No glibc version with RISC-V support also supported the old add-ons mechanism, and NPTL ceased to be an add-on some years before that, so those configure options appear to be copied from options applicable to a much older glibc version. The install-bootstrap-headers mechanism is something even older from EGLIBC that was never added to glibc because a newer bootstrap process superseded the process it was intended to be used with. --with-newlib in this context is confusingly named; it does not mean to use newlib; it means to define inhibit_libc when building libgcc. For the recommended modern (fully supported with glibc 2.16 and GCC 4.9 or later) process for bootstrapping a cross toolchain with glibc, I advise looking at how glibc's build-many-glibcs.py script, used in CI to build toolchains for every ABI supported by glibc, does the bootstrap.

https://sourceware.org/legacy-ml/libc-alpha/2018-03/msg00... discusses these bootstrap processes in more detail.


to post comments

Linux from Scratch version 10.0 released

Posted Sep 7, 2020 18:16 UTC (Mon) by ppisa (subscriber, #67307) [Link]

Thanks much for clarification. I have not realized that --with-newlib can be used when newlib is not made available to the build. You are right that I keep and reuse some configs from nineties when I have started to build GCC 2.x for m68k. I usually compare options with these used by Debian distribution, RTEMS etc. Thanks for pointer to the script and discussion. I will look at it.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds