From 443f51a2dcaec99457e5797758c65e5c6c1d3664 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Fri, 2 Oct 2009 22:10:38 +0200 Subject: libc/glibc: fix building for seemingly native toolchains Build glibc with -O2 as a fix/workaround to building seemingly-native toolchains. See: - docs/overview.txt - docs/known-issues.txt - http://sourceware.org/ml/crossgcc/2009-09/msg00055.html --- docs/known-issues.txt | 6 ++++-- docs/overview.txt | 16 ++++++++++++++++ 2 files changed, 20 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/known-issues.txt b/docs/known-issues.txt index 3c7eaab5..757939f2 100644 --- a/docs/known-issues.txt +++ b/docs/known-issues.txt @@ -51,8 +51,10 @@ Fix: None known. Workaround: - If this happens for you, stick with glibc-2.6.1 for now. - Or investigate! :-) + It seems that using -O2 in the CFLAGS fixes the problem. It has been + confirmed in the following threads: + http://sourceware.org/ml/crossgcc/2009-09/msg00055.html (for glibc) + http://sourceware.org/ml/crossgcc/2009-10/msg00001.html (for eglibc) -------------------------------- Symptoms: diff --git a/docs/overview.txt b/docs/overview.txt index 3b100a18..8d9a6f04 100644 --- a/docs/overview.txt +++ b/docs/overview.txt @@ -28,6 +28,7 @@ Running crosstool-NG Tools wrapper Using the toolchain Toolchain types + Seemingly-native toolchains Internals Makefile front-end Kconfig parser @@ -590,6 +591,21 @@ anyway!) were all being hashed out, Canada had three national political parties. http://en.wikipedia.org/wiki/Cross_compiler +Seemingly-native toolchains | +----------------------------+ + +Seemingly-native toolchains are toolchains that target the same architecture +as the one it is built on, and on which it will run, but the machine tuple +may be different (eg i686 vs. i386, or x86_64-unknown-linux-gnu vs. +x86_64-pc-linux-gnu). This also applies if the target architecture is of the +same kind (eg. x86 vs. x86_64, or ppc vs. ppc64). + +Such toolchain is tricky to build, as the configure scripts may incorrectly +assume that files (headers and libs) from the build (or host) machine can be +used by the cross-compiler it is going to build. The problem seems to arise +only with glibc (and eglibc?) starting with version 2.7. + + _____________ / Internals / -- cgit v1.2.3 From 1e1f247accfb508c7094294627f6f0b765b2da18 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Sat, 3 Oct 2009 17:23:17 +0200 Subject: doc: update documentation, mostly eye-candy --- README | 5 ++++- docs/overview.txt | 9 ++++----- 2 files changed, 8 insertions(+), 6 deletions(-) (limited to 'docs') diff --git a/README b/README index 4fe8d882..560d3d06 100644 --- a/README +++ b/README @@ -4,7 +4,7 @@ TABLE OF CONTENT / ________________/ - GETTING STARTED - - PARTICIPATING + - CONTRIBUTING - Sending a bug report - Sending patches - CREDITS @@ -22,6 +22,7 @@ You can find a (terse and WIP) documentation in docs/overview.txt. You can also point your browser to http://ymorin.is-a-geek.org/projects/crosstool + CONTRIBUTING / ____________/ @@ -87,11 +88,13 @@ Here's a typical hacking session: Note: replace' (at) ' above with a plain '@'. + CREDITS / _______/ The people that helped are listed in docs/CREDITS. Many thanks to them! :-) + KNOWN ISSUES / ____________/ diff --git a/docs/overview.txt b/docs/overview.txt index 8d9a6f04..61b4cba5 100644 --- a/docs/overview.txt +++ b/docs/overview.txt @@ -27,6 +27,7 @@ Running crosstool-NG Note on // jobs Tools wrapper Using the toolchain + The 'populate' script Toolchain types Seemingly-native toolchains Internals @@ -155,11 +156,9 @@ Stay in the directory holding the sources, and run: See below for complete usage. -Now, provided you checked-out the code, you can send me your interesting changes -by running: - svn diff - -and mailing me the result! :-P +Now, provided you used a clone of the repository, you can send me your changes. +See the file README, at the top of crosstool-NG source, for how to submit +changees. Preparing for packaging | ------------------------+ -- cgit v1.2.3