cc/gcc: modify to build gcc-4.8-based cross-tools

Message ID
State Accepted
Commit 33f265e3e79d
Headers show

Commit Message

Jongsung Kim May 3, 2013, 9:31 a.m.
Building cross-tool based on gcc-4.8 fails while "Installing
pass-2 core C compiler", because building libgcc.mvars needs
libbacktrace.a that doesn't build. This patch inserts
a few lines configuring, and making libbacktrace into
to build gcc-4.8-based cross-tools successfully.

Signed-off-by: Jongsung Kim <>
 scripts/build/cc/ |  5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)


For unsubscribe information see


Yann E. MORIN May 3, 2013, 2:54 p.m. | #1
Jongsung, All,

Your patch:
    cc/gcc: modify to build gcc-4.8-based cross-tools

has been applied as: #33f265e3e79d

Thank you!

Yann E. MORIN.

For unsubscribe information see


diff --git a/scripts/build/cc/ b/scripts/build/cc/
--- a/scripts/build/cc/
+++ b/scripts/build/cc/
@@ -409,6 +409,11 @@  do_cc_core_backend() {
             CT_DoExecLog CFG make ${JOBSFLAGS} configure-libdecnumber
             CT_DoExecLog ALL make ${JOBSFLAGS} -C libdecnumber libdecnumber.a
+        # HACK: gcc-4.8 uses libbacktrace to make libgcc.mvars, so make it here.
+        if [ -d "${CT_SRC_DIR}/gcc-${CT_CC_VERSION}/libbacktrace" ]; then
+            CT_DoExecLog CFG make ${JOBSFLAGS} configure-libbacktrace
+            CT_DoExecLog ALL make ${JOBSFLAGS} -C libbacktrace
+        fi
         # Starting with GCC 4.3, is no longer built,
         # and libgcc.mvars is used instead.