From 329a504d6e6a5b59a6a5004eec982683b591344d Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 18 Jun 2013 15:42:38 -0400 Subject: Add patch to fix empty awk function on BusyBox. --- diff --git a/patches/02_fix-empty-awk-function.patch b/patches/02_fix-empty-awk-function.patch new file mode 100644 index 0000000..6d3672f --- /dev/null +++ b/patches/02_fix-empty-awk-function.patch @@ -0,0 +1,27 @@ +From: "P. J. McDermott" +Description: Fix empty awk function + gcc/config/i386/i386-builtin-types.awk defines and calls a function named + "attribute_mode" with zero statements. + . + BusyBox awk prints the following error message when building GCC: + . + awk: …/gcc/config/i386/i386-builtin-types.awk:164: Call to undefined function + . + This seems to be due to lines 2664 and 2665 of editors/awk.c in BusyBox 1.21.0, + which throw a syntax error if the called function has no nodes in its node + chain: + . + if (!op->r.f->body.first) + syntax_error(EMSG_UNDEF_FUNC); + +diff -Naur src.orig/gcc/config/i386/i386-builtin-types.awk src/gcc/config/i386/i386-builtin-types.awk +--- src.orig/gcc/config/i386/i386-builtin-types.awk 2009-11-25 21:39:42.000000000 -0500 ++++ src/gcc/config/i386/i386-builtin-types.awk 2013-06-18 15:27:57.670059283 -0400 +@@ -38,6 +38,7 @@ + # else + # print " __attribute__((__mode__(__HI__)))" + # print "#endif" ++ dummy = 1 + } + + BEGIN { -- cgit v0.9.1