public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* Bootstrapping cross-toolchain for ia64
@ 2016-11-04  0:52 Joseph Myers
  2016-11-04 12:10 ` Adhemerval Zanella
  0 siblings, 1 reply; 6+ messages in thread
From: Joseph Myers @ 2016-11-04  0:52 UTC (permalink / raw)
  To: libc-alpha, vapier

The current cleanest approach for bootstrapping cross toolchains for 
GNU/Linux targets is (following the guidance at 
<https://sourceware.org/ml/libc-alpha/2012-03/msg00960.html>):

* Build binutils.

* Install kernel headers.

* Build static-only, C-only GCC, configured so that inhibit_libc is 
defined, and using --with-glibc-version so things like stack-smashing 
protection are correctly configured without glibc headers being available.

* Build glibc, which should be identical to what you get from a longer 
sequence of alternating GCC and glibc builds (following fixes I made a few 
years ago for building like that with the initial bootstrap compiler).

* Build GCC with shared libraries and C++ support.

* If you want to run the glibc tests, you should reconfigure / rebuild 
with the new compiler to get everything required for all the tests.

This doesn't work for ia64 because libgcc depends on system headers even 
with inhibit_libc.  What's the cleanest approach (assuming recent-enough 
GCC and glibc) for building a cross toolchain for ia64-linux-gnu target, 
so I can make build-many-glibcs.py do whatever's necessary?

-- 
Joseph S. Myers
joseph@codesourcery.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-11-04 13:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-04  0:52 Bootstrapping cross-toolchain for ia64 Joseph Myers
2016-11-04 12:10 ` Adhemerval Zanella
2016-11-04 13:06   ` Joseph Myers
2016-11-04 13:17     ` Adhemerval Zanella
2016-11-04 13:17     ` Dan Horák
2016-11-04 13:31       ` Joseph Myers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).