Build FreeBSD: FAILED 6/rtems-arm on x86_64-freebsd12.1 (arm-rtems6-gcc-aff95ee-newlib-a97bdf1-x86_64-freebsd12.1-1)

sebastian.huber at embedded-brains.de sebastian.huber at embedded-brains.de
Thu Jun 18 05:51:27 UTC 2020


RTEMS Source Builder - Set Builder, 5 (429cab509bba)

Host: FreeBSD-12.1-RELEASE-amd64-64bit-ELF
       FreeBSD Build_FreeBSD12 12.1-RELEASE FreeBSD 12.1-RELEASE r354233 GENERIC
       amd64 amd64

Build Time: 0:04:16.148881

= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
Build FAILED: arm-rtems6-gcc-aff95ee-newlib-a97bdf1-x86_64-freebsd12.1-1
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
  XSTR (rt, 2) = arg2;
  ^         ~
../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:1340:23: note: expanded from macro 'XSTR'
#define XSTR(RTX, N)    (RTL_CHECK2 (RTX, N, 's', 'S').rt_str)
                         ^                ~
../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:1229:38: note: expanded from macro 'RTL_CHECK2'
#define RTL_CHECK2(RTX, N, C1, C2)  ((RTX)->u.fld[N])
                                     ^            ~
../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:444:5: note: array 'fld' declared here
    rtunion fld[1];
    ^
In file included from ../../gnu-mirror-gcc-aff95ee/gcc/builtins.c:29:
In file included from ../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:3809:
./genrtl.h:1103:3: warning: array index 1 is past the end of the array (which contains 1 element) [-Warray-bounds]
  XSTR (rt, 1) = arg1;
  ^         ~
../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:1340:23: note: expanded from macro 'XSTR'
#define XSTR(RTX, N)    (RTL_CHECK2 (RTX, N, 's', 'S').rt_str)
                         ^                ~
../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:1229:38: note: expanded from macro 'RTL_CHECK2'
#define RTL_CHECK2(RTX, N, C1, C2)  ((RTX)->u.fld[N])
                                     ^            ~
../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:444:5: note: array 'fld' declared here
    rtunion fld[1];
    ^
In file included from ../../gnu-mirror-gcc-aff95ee/gcc/builtins.c:29:
In file included from ../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:3809:
./genrtl.h:1104:3: warning: array index 2 is past the end of the array (which contains 1 element) [-Warray-bounds]
  XEXP (rt, 2) = arg2;
  ^         ~
../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:1341:23: note: expanded from macro 'XEXP'
#define XEXP(RTX, N)    (RTL_CHECK2 (RTX, N, 'e', 'u').rt_rtx)
                         ^                ~
../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:1229:38: note: expanded from macro 'RTL_CHECK2'
#define RTL_CHECK2(RTX, N, C1, C2)  ((RTX)->u.fld[N])
                                     ^            ~
../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:444:5: note: array 'fld' declared here
    rtunion fld[1];
    ^
In file included from ../../gnu-mirror-gcc-aff95ee/gcc/builtins.c:29:
In file included from ../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:3809:
./genrtl.h:1135:3: warning: array index 1 is past the end of the array (which contains 1 element) [-Warray-bounds]
  XINT (rt, 1) = arg1;
  ^         ~
../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:1338:23: note: expanded from macro 'XINT'
#define XINT(RTX, N)    (RTL_CHECK2 (RTX, N, 'i', 'n').rt_int)
                         ^                ~
../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:1229:38: note: expanded from macro 'RTL_CHECK2'
#define RTL_CHECK2(RTX, N, C1, C2)  ((RTX)->u.fld[N])
                                     ^            ~
../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:444:5: note: array 'fld' declared here
    rtunion fld[1];
    ^
In file included from ../../gnu-mirror-gcc-aff95ee/gcc/builtins.c:29:
In file included from ../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:3809:
./genrtl.h:1136:3: warning: array index 2 is past the end of the array (which contains 1 element) [-Warray-bounds]
  XEXP (rt, 2) = arg2;
  ^         ~
../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:1341:23: note: expanded from macro 'XEXP'
#define XEXP(RTX, N)    (RTL_CHECK2 (RTX, N, 'e', 'u').rt_rtx)
                         ^                ~
../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:1229:38: note: expanded from macro 'RTL_CHECK2'
#define RTL_CHECK2(RTX, N, C1, C2)  ((RTX)->u.fld[N])
                                     ^            ~
../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:444:5: note: array 'fld' declared here
    rtunion fld[1];
    ^
In file included from ../../gnu-mirror-gcc-aff95ee/gcc/builtins.c:29:
In file included from ../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:3809:
./genrtl.h:1137:3: warning: array index 3 is past the end of the array (which contains 1 element) [-Warray-bounds]
  XSTR (rt, 3) = arg3;
  ^         ~
../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:1340:23: note: expanded from macro 'XSTR'
#define XSTR(RTX, N)    (RTL_CHECK2 (RTX, N, 's', 'S').rt_str)
                         ^                ~
../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:1229:38: note: expanded from macro 'RTL_CHECK2'
#define RTL_CHECK2(RTX, N, C1, C2)  ((RTX)->u.fld[N])
                                     ^            ~
../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:444:5: note: array 'fld' declared here
    rtunion fld[1];
    ^
In file included from ../../gnu-mirror-gcc-aff95ee/gcc/builtins.c:29:
In file included from ../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:3809:
./genrtl.h:1167:3: warning: array index 1 is past the end of the array (which contains 1 element) [-Warray-bounds]
  XVEC (rt, 1) = arg1;
  ^         ~
../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:1342:23: note: expanded from macro 'XVEC'
#define XVEC(RTX, N)    (RTL_CHECK2 (RTX, N, 'E', 'V').rt_rtvec)
                         ^                ~
../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:1229:38: note: expanded from macro 'RTL_CHECK2'
#define RTL_CHECK2(RTX, N, C1, C2)  ((RTX)->u.fld[N])
                                     ^            ~
../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:444:5: note: array 'fld' declared here
    rtunion fld[1];
    ^
In file included from ../../gnu-mirror-gcc-aff95ee/gcc/builtins.c:29:
In file included from ../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:3809:
./genrtl.h:1195:3: warning: array index 1 is past the end of the array (which contains 1 element) [-Warray-bounds]
  XWINT (rt, 1) = arg1;
  ^          ~
../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:1234:29: note: expanded from macro 'XWINT'
#define XWINT(RTX, N)               ((RTX)->u.hwint[N])
                                     ^              ~
../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:445:5: note: array 'hwint' declared here
    HOST_WIDE_INT hwint[1];
    ^
../../gnu-mirror-gcc-aff95ee/gcc/hwint.h:55:26: note: expanded from macro 'HOST_WIDE_INT'
#   define HOST_WIDE_INT long
                         ^
In file included from ../../gnu-mirror-gcc-aff95ee/gcc/builtins.c:29:
In file included from ../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:3809:
./genrtl.h:1223:3: warning: array index 1 is past the end of the array (which contains 1 element) [-Warray-bounds]
  XEXP (rt, 1) = arg1;
  ^         ~
../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:1341:23: note: expanded from macro 'XEXP'
#define XEXP(RTX, N)    (RTL_CHECK2 (RTX, N, 'e', 'u').rt_rtx)
                         ^                ~
../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:1229:38: note: expanded from macro 'RTL_CHECK2'
#define RTL_CHECK2(RTX, N, C1, C2)  ((RTX)->u.fld[N])
                                     ^            ~
../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:444:5: note: array 'fld' declared here
    rtunion fld[1];
    ^
In file included from ../../gnu-mirror-gcc-aff95ee/gcc/builtins.c:29:
In file included from ../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:3809:
./genrtl.h:1253:3: warning: array index 1 is past the end of the array (which contains 1 element) [-Warray-bounds]
  XVEC (rt, 1) = arg1;
  ^         ~
../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:1342:23: note: expanded from macro 'XVEC'
#define XVEC(RTX, N)    (RTL_CHECK2 (RTX, N, 'E', 'V').rt_rtvec)
                         ^                ~
../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:1229:38: note: expanded from macro 'RTL_CHECK2'
#define RTL_CHECK2(RTX, N, C1, C2)  ((RTX)->u.fld[N])
                                     ^            ~
../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:444:5: note: array 'fld' declared here
    rtunion fld[1];
    ^
In file included from ../../gnu-mirror-gcc-aff95ee/gcc/builtins.c:29:
In file included from ../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:3809:
./genrtl.h:1254:3: warning: array index 2 is past the end of the array (which contains 1 element) [-Warray-bounds]
  XSTR (rt, 2) = arg2;
  ^         ~
../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:1340:23: note: expanded from macro 'XSTR'
#define XSTR(RTX, N)    (RTL_CHECK2 (RTX, N, 's', 'S').rt_str)
                         ^                ~
../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:1229:38: note: expanded from macro 'RTL_CHECK2'
#define RTL_CHECK2(RTX, N, C1, C2)  ((RTX)->u.fld[N])
                                     ^            ~
../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:444:5: note: array 'fld' declared here
    rtunion fld[1];
    ^
In file included from ../../gnu-mirror-gcc-aff95ee/gcc/builtins.c:29:
In file included from ../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:3809:
./genrtl.h:1255:3: warning: array index 3 is past the end of the array (which contains 1 element) [-Warray-bounds]
  XVEC (rt, 3) = arg3;
  ^         ~
../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:1342:23: note: expanded from macro 'XVEC'
#define XVEC(RTX, N)    (RTL_CHECK2 (RTX, N, 'E', 'V').rt_rtvec)
                         ^                ~
../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:1229:38: note: expanded from macro 'RTL_CHECK2'
#define RTL_CHECK2(RTX, N, C1, C2)  ((RTX)->u.fld[N])
                                     ^            ~
../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:444:5: note: array 'fld' declared here
    rtunion fld[1];
    ^
In file included from ../../gnu-mirror-gcc-aff95ee/gcc/builtins.c:29:
In file included from ../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:3809:
./genrtl.h:1287:3: warning: array index 1 is past the end of the array (which contains 1 element) [-Warray-bounds]
  XSTR (rt, 1) = arg1;
  ^         ~
../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:1340:23: note: expanded from macro 'XSTR'
#define XSTR(RTX, N)    (RTL_CHECK2 (RTX, N, 's', 'S').rt_str)
                         ^                ~
../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:1229:38: note: expanded from macro 'RTL_CHECK2'
#define RTL_CHECK2(RTX, N, C1, C2)  ((RTX)->u.fld[N])
                                     ^            ~
../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:444:5: note: array 'fld' declared here
    rtunion fld[1];
    ^
In file included from ../../gnu-mirror-gcc-aff95ee/gcc/builtins.c:29:
In file included from ../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:3809:
./genrtl.h:1288:3: warning: array index 2 is past the end of the array (which contains 1 element) [-Warray-bounds]
  XSTR (rt, 2) = arg2;
  ^         ~
../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:1340:23: note: expanded from macro 'XSTR'
#define XSTR(RTX, N)    (RTL_CHECK2 (RTX, N, 's', 'S').rt_str)
                         ^                ~
../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:1229:38: note: expanded from macro 'RTL_CHECK2'
#define RTL_CHECK2(RTX, N, C1, C2)  ((RTX)->u.fld[N])
                                     ^            ~
../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:444:5: note: array 'fld' declared here
    rtunion fld[1];
    ^
In file included from ../../gnu-mirror-gcc-aff95ee/gcc/builtins.c:29:
In file included from ../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:3809:
./genrtl.h:1289:3: warning: array index 3 is past the end of the array (which contains 1 element) [-Warray-bounds]
  XSTR (rt, 3) = arg3;
  ^         ~
../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:1340:23: note: expanded from macro 'XSTR'
#define XSTR(RTX, N)    (RTL_CHECK2 (RTX, N, 's', 'S').rt_str)
                         ^                ~
../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:1229:38: note: expanded from macro 'RTL_CHECK2'
#define RTL_CHECK2(RTX, N, C1, C2)  ((RTX)->u.fld[N])
                                     ^            ~
../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:444:5: note: array 'fld' declared here
    rtunion fld[1];
    ^
In file included from ../../gnu-mirror-gcc-aff95ee/gcc/builtins.c:32:
../../gnu-mirror-gcc-aff95ee/gcc/gimple.h:2611:10: warning: array index 1 is past the end of the array (which contains 1 element) [-Warray-bounds]
  return gs->op[1];
         ^      ~
../../gnu-mirror-gcc-aff95ee/gcc/gimple.h:347:3: note: array 'op' declared here
  tree GTY((length ("%h.num_ops"))) op[1];
  ^
../../gnu-mirror-gcc-aff95ee/gcc/gimple.h:2643:3: warning: array index 1 is past the end of the array (which contains 1 element) [-Warray-bounds]
  gs->op[1] = rhs;
  ^      ~
../../gnu-mirror-gcc-aff95ee/gcc/gimple.h:347:3: note: array 'op' declared here
  tree GTY((length ("%h.num_ops"))) op[1];
  ^
../../gnu-mirror-gcc-aff95ee/gcc/gimple.h:2661:12: warning: array index 2 is past the end of the array (which contains 1 element) [-Warray-bounds]
    return gs->op[2];
           ^      ~
../../gnu-mirror-gcc-aff95ee/gcc/gimple.h:347:3: note: array 'op' declared here
  tree GTY((length ("%h.num_ops"))) op[1];
  ^
../../gnu-mirror-gcc-aff95ee/gcc/gimple.h:2681:11: warning: array index 2 is past the end of the array (which contains 1 element) [-Warray-bounds]
  return &gs->op[2];
          ^      ~
../../gnu-mirror-gcc-aff95ee/gcc/gimple.h:347:3: note: array 'op' declared here
  tree GTY((length ("%h.num_ops"))) op[1];
  ^
../../gnu-mirror-gcc-aff95ee/gcc/gimple.h:2698:3: warning: array index 2 is past the end of the array (which contains 1 element) [-Warray-bounds]
  gs->op[2] = rhs;
  ^      ~
../../gnu-mirror-gcc-aff95ee/gcc/gimple.h:347:3: note: array 'op' declared here
  tree GTY((length ("%h.num_ops"))) op[1];
  ^
../../gnu-mirror-gcc-aff95ee/gcc/gimple.h:2715:12: warning: array index 3 is past the end of the array (which contains 1 element) [-Warray-bounds]
    return gs->op[3];
           ^      ~
../../gnu-mirror-gcc-aff95ee/gcc/gimple.h:347:3: note: array 'op' declared here
  tree GTY((length ("%h.num_ops"))) op[1];
  ^
../../gnu-mirror-gcc-aff95ee/gcc/gimple.h:2735:11: warning: array index 3 is past the end of the array (which contains 1 element) [-Warray-bounds]
  return &ass->op[3];
          ^       ~
../../gnu-mirror-gcc-aff95ee/gcc/gimple.h:347:3: note: array 'op' declared here
  tree GTY((length ("%h.num_ops"))) op[1];
  ^
../../gnu-mirror-gcc-aff95ee/gcc/gimple.h:2745:3: warning: array index 3 is past the end of the array (which contains 1 element) [-Warray-bounds]
  gs->op[3] = rhs;
  ^      ~
../../gnu-mirror-gcc-aff95ee/gcc/gimple.h:347:3: note: array 'op' declared here
  tree GTY((length ("%h.num_ops"))) op[1];
  ^
../../gnu-mirror-gcc-aff95ee/gcc/gimple.h:3107:10: warning: array index 1 is past the end of the array (which contains 1 element) [-Warray-bounds]
  return gs->op[1];
         ^      ~
../../gnu-mirror-gcc-aff95ee/gcc/gimple.h:372:3: note: array 'op' declared here
  tree GTY((length ("%h.num_ops"))) op[1];
  ^
../../gnu-mirror-gcc-aff95ee/gcc/gimple.h:3140:3: warning: array index 1 is past the end of the array (which contains 1 element) [-Warray-bounds]
  gs->op[1] = fn;
  ^      ~
../../gnu-mirror-gcc-aff95ee/gcc/gimple.h:372:3: note: array 'op' declared here
  tree GTY((length ("%h.num_ops"))) op[1];
  ^
../../gnu-mirror-gcc-aff95ee/gcc/gimple.h:3150:3: warning: array index 1 is past the end of the array (which contains 1 element) [-Warray-bounds]
  gs->op[1] = build1_loc (gimple_location (gs), ADDR_EXPR,
  ^      ~
../../gnu-mirror-gcc-aff95ee/gcc/gimple.h:372:3: note: array 'op' declared here
  tree GTY((length ("%h.num_ops"))) op[1];
  ^
../../gnu-mirror-gcc-aff95ee/gcc/gimple.h:3211:10: warning: array index 2 is past the end of the array (which contains 1 element) [-Warray-bounds]
  return gs->op[2];
         ^      ~
../../gnu-mirror-gcc-aff95ee/gcc/gimple.h:372:3: note: array 'op' declared here
  tree GTY((length ("%h.num_ops"))) op[1];
  ^
../../gnu-mirror-gcc-aff95ee/gcc/gimple.h:3227:11: warning: array index 2 is past the end of the array (which contains 1 element) [-Warray-bounds]
  return &call_stmt->op[2];
          ^             ~
../../gnu-mirror-gcc-aff95ee/gcc/gimple.h:372:3: note: array 'op' declared here
  tree GTY((length ("%h.num_ops"))) op[1];
  ^
../../gnu-mirror-gcc-aff95ee/gcc/gimple.h:3235:3: warning: array index 2 is past the end of the array (which contains 1 element) [-Warray-bounds]
  call_stmt->op[2] = chain;
  ^             ~
../../gnu-mirror-gcc-aff95ee/gcc/gimple.h:372:3: note: array 'op' declared here
  tree GTY((length ("%h.num_ops"))) op[1];
  ^
../../gnu-mirror-gcc-aff95ee/gcc/gimple.h:3617:10: warning: array index 1 is past the end of the array (which contains 1 element) [-Warray-bounds]
  return gs->op[1];
         ^      ~
../../gnu-mirror-gcc-aff95ee/gcc/gimple.h:316:3: note: array 'op' declared here
  tree GTY((length ("%h.num_ops"))) op[1];
  ^
../../gnu-mirror-gcc-aff95ee/gcc/gimple.h:3643:3: warning: array index 1 is past the end of the array (which contains 1 element) [-Warray-bounds]
  gs->op[1] = rhs;
  ^      ~
../../gnu-mirror-gcc-aff95ee/gcc/gimple.h:316:3: note: array 'op' declared here
  tree GTY((length ("%h.num_ops"))) op[1];
  ^
../../gnu-mirror-gcc-aff95ee/gcc/gimple.h:3653:10: warning: array index 2 is past the end of the array (which contains 1 element) [-Warray-bounds]
  return gs->op[2];
         ^      ~
../../gnu-mirror-gcc-aff95ee/gcc/gimple.h:316:3: note: array 'op' declared here
  tree GTY((length ("%h.num_ops"))) op[1];
  ^
../../gnu-mirror-gcc-aff95ee/gcc/gimple.h:3663:3: warning: array index 2 is past the end of the array (which contains 1 element) [-Warray-bounds]
  gs->op[2] = label;
  ^      ~
../../gnu-mirror-gcc-aff95ee/gcc/gimple.h:316:3: note: array 'op' declared here
  tree GTY((length ("%h.num_ops"))) op[1];
  ^
../../gnu-mirror-gcc-aff95ee/gcc/gimple.h:3673:3: warning: array index 3 is past the end of the array (which contains 1 element) [-Warray-bounds]
  gs->op[3] = label;
  ^      ~
../../gnu-mirror-gcc-aff95ee/gcc/gimple.h:316:3: note: array 'op' declared here
  tree GTY((length ("%h.num_ops"))) op[1];
  ^
../../gnu-mirror-gcc-aff95ee/gcc/gimple.h:3683:10: warning: array index 3 is past the end of the array (which contains 1 element) [-Warray-bounds]
  return gs->op[3];
         ^      ~
../../gnu-mirror-gcc-aff95ee/gcc/gimple.h:316:3: note: array 'op' declared here
  tree GTY((length ("%h.num_ops"))) op[1];
  ^
In file included from ../../gnu-mirror-gcc-aff95ee/gcc/builtins.c:41:
../../gnu-mirror-gcc-aff95ee/gcc/recog.h:166:7: warning: array index 5 is past the end of the array (which contains 1 element) [-Warray-bounds]
  if (INSN_CODE (insn) < 0)
      ^~~~~~~~~~~~~~~~
../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:1526:25: note: expanded from macro 'INSN_CODE'
#define INSN_CODE(INSN) XINT (INSN, 5)
                        ^           ~
../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:1338:23: note: expanded from macro 'XINT'
#define XINT(RTX, N)    (RTL_CHECK2 (RTX, N, 'i', 'n').rt_int)
                         ^                ~
../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:1229:38: note: expanded from macro 'RTL_CHECK2'
#define RTL_CHECK2(RTX, N, C1, C2)  ((RTX)->u.fld[N])
                                     ^            ~
../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:444:5: note: array 'fld' declared here
    rtunion fld[1];
    ^
In file included from ../../gnu-mirror-gcc-aff95ee/gcc/builtins.c:41:
../../gnu-mirror-gcc-aff95ee/gcc/recog.h:167:5: warning: array index 5 is past the end of the array (which contains 1 element) [-Warray-bounds]
    INSN_CODE (insn) = recog (PATTERN (insn), insn, 0);
    ^~~~~~~~~~~~~~~~
../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:1526:25: note: expanded from macro 'INSN_CODE'
#define INSN_CODE(INSN) XINT (INSN, 5)
                        ^           ~
../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:1338:23: note: expanded from macro 'XINT'
#define XINT(RTX, N)    (RTL_CHECK2 (RTX, N, 'i', 'n').rt_int)
                         ^                ~
../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:1229:38: note: expanded from macro 'RTL_CHECK2'
#define RTL_CHECK2(RTX, N, C1, C2)  ((RTX)->u.fld[N])
                                     ^            ~
../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:444:5: note: array 'fld' declared here
    rtunion fld[1];
    ^
In file included from ../../gnu-mirror-gcc-aff95ee/gcc/builtins.c:41:
../../gnu-mirror-gcc-aff95ee/gcc/recog.h:168:10: warning: array index 5 is past the end of the array (which contains 1 element) [-Warray-bounds]
  return INSN_CODE (insn);
         ^~~~~~~~~~~~~~~~
../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:1526:25: note: expanded from macro 'INSN_CODE'
#define INSN_CODE(INSN) XINT (INSN, 5)
                        ^           ~
../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:1338:23: note: expanded from macro 'XINT'
#define XINT(RTX, N)    (RTL_CHECK2 (RTX, N, 'i', 'n').rt_int)
                         ^                ~
../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:1229:38: note: expanded from macro 'RTL_CHECK2'
#define RTL_CHECK2(RTX, N, C1, C2)  ((RTX)->u.fld[N])
                                     ^            ~
../../gnu-mirror-gcc-aff95ee/gcc/rtl.h:444:5: note: array 'fld' declared here
    rtunion fld[1];
    ^
In file included from ../../gnu-mirror-gcc-aff95ee/gcc/builtins.c:60:
../../gnu-mirror-gcc-aff95ee/gcc/output.h:129:6: warning: '__format__' attribute argument not supported: asm_fprintf [-Wignored-attributes]
     ATTRIBUTE_ASM_FPRINTF(2, 3);
     ^
../../gnu-mirror-gcc-aff95ee/gcc/output.h:119:53: note: expanded from macro 'ATTRIBUTE_ASM_FPRINTF'
#define ATTRIBUTE_ASM_FPRINTF(m, n) __attribute__ ((__format__ (__asm_fprintf__, m, n))) ATTRIBUTE_NONNULL(m)
                                                    ^
121 warnings generated.
1 warning generated.
107 warnings generated.
55 warnings generated.
131 warnings generated.
/bin/sh ../../gnu-mirror-gcc-aff95ee/gcc/../move-if-change tmp-attrtab.c    insn-attrtab.c
/bin/sh ../../gnu-mirror-gcc-aff95ee/gcc/../move-if-change tmp-dfatab.c     insn-dfatab.c
/bin/sh ../../gnu-mirror-gcc-aff95ee/gcc/../move-if-change tmp-latencytab.c insn-latencytab.c
echo timestamp > s-attrtab
rm gcov.pod gfdl.pod gpl.pod cpp.pod fsf-funding.pod gcc.pod gcov-dump.pod gcov-tool.pod
gmake[2]: Leaving directory '/usr/home/user/rtems-source-builder/rtems/build/arm-rtems6-gcc-aff95ee-newlib-a97bdf1-x86_64-freebsd12.1-1/build/gcc'
gmake[1]: *** [Makefile:4404: all-gcc] Error 2
gmake[1]: Leaving directory '/usr/home/user/rtems-source-builder/rtems/build/arm-rtems6-gcc-aff95ee-newlib-a97bdf1-x86_64-freebsd12.1-1/build'
gmake: *** [Makefile:965: all] Error 2
shell cmd failed: /bin/sh -ex  /usr/home/user/rtems-source-builder/rtems/build/arm-rtems6-gcc-aff95ee-newlib-a97bdf1-x86_64-freebsd12.1-1/do-build
error: building arm-rtems6-gcc-aff95ee-newlib-a97bdf1-x86_64-freebsd12.1-1
  See error report: rsb-report-arm-rtems6-gcc-aff95ee-newlib-a97bdf1-x86_64-freebsd12.1-1.txt
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 


Output
======

Build Set: 6/rtems-arm
Build Set: 6/rtems-autotools.bset
Build Set: 6/rtems-autotools-internal.bset
config: tools/rtems-autoconf-2.69-1.cfg
package: autoconf-2.69-x86_64-freebsd12.1-1
building: autoconf-2.69-x86_64-freebsd12.1-1
sizes: autoconf-2.69-x86_64-freebsd12.1-1: 7.496MB (installed: 0.000B)
cleaning: autoconf-2.69-x86_64-freebsd12.1-1
config: tools/rtems-automake-1.12.6-1.cfg
package: automake-1.12.6-x86_64-freebsd12.1-1
building: automake-1.12.6-x86_64-freebsd12.1-1
sizes: automake-1.12.6-x86_64-freebsd12.1-1: 8.325MB (installed: 0.000B)
cleaning: automake-1.12.6-x86_64-freebsd12.1-1
cleaning: autoconf-2.69-x86_64-freebsd12.1-1
cleaning: automake-1.12.6-x86_64-freebsd12.1-1
Build Sizes: usage: 8.325MB total: 5.016GB (sources: 5.015GB, patches: 548.931KB, installed 0.000B)
Build Set: Time 0:00:04.896488
Build Set: 6/rtems-autotools-base.bset
config: tools/rtems-autoconf-2.69-1.cfg
package: autoconf-2.69-x86_64-freebsd12.1-1
building: autoconf-2.69-x86_64-freebsd12.1-1
sizes: autoconf-2.69-x86_64-freebsd12.1-1: 10.515MB (installed: 3.021MB)
cleaning: autoconf-2.69-x86_64-freebsd12.1-1
reporting: tools/rtems-autoconf-2.69-1.cfg -> autoconf-2.69-x86_64-freebsd12.1-1.txt
reporting: tools/rtems-autoconf-2.69-1.cfg -> autoconf-2.69-x86_64-freebsd12.1-1.xml
config: tools/rtems-automake-1.12.6-1.cfg
package: automake-1.12.6-x86_64-freebsd12.1-1
building: automake-1.12.6-x86_64-freebsd12.1-1
sizes: automake-1.12.6-x86_64-freebsd12.1-1: 10.588MB (installed: 2.264MB)
cleaning: automake-1.12.6-x86_64-freebsd12.1-1
reporting: tools/rtems-automake-1.12.6-1.cfg -> automake-1.12.6-x86_64-freebsd12.1-1.txt
reporting: tools/rtems-automake-1.12.6-1.cfg -> automake-1.12.6-x86_64-freebsd12.1-1.xml
cleaning: autoconf-2.69-x86_64-freebsd12.1-1
cleaning: automake-1.12.6-x86_64-freebsd12.1-1
Build Sizes: usage: 15.873MB total: 5.021GB (sources: 5.015GB, patches: 548.931KB, installed 5.285MB)
Build Set: Time 0:00:06.583571
Build Set: Time 0:00:11.483754
config: devel/expat-2.1.0-1.cfg
package: expat-2.1.0-x86_64-freebsd12.1-1
building: expat-2.1.0-x86_64-freebsd12.1-1
sizes: expat-2.1.0-x86_64-freebsd12.1-1: 4.775MB (installed: 620.054KB)
cleaning: expat-2.1.0-x86_64-freebsd12.1-1
reporting: devel/expat-2.1.0-1.cfg -> expat-2.1.0-x86_64-freebsd12.1-1.txt
reporting: devel/expat-2.1.0-1.cfg -> expat-2.1.0-x86_64-freebsd12.1-1.xml
config: tools/rtems-gdb-head.cfg
package: arm-rtems6-gdb-581bea2-x86_64-freebsd12.1-1
building: arm-rtems6-gdb-581bea2-x86_64-freebsd12.1-1
sizes: arm-rtems6-gdb-581bea2-x86_64-freebsd12.1-1: 407.258MB (installed: 15.434MB)
cleaning: arm-rtems6-gdb-581bea2-x86_64-freebsd12.1-1
reporting: tools/rtems-gdb-head.cfg -> arm-rtems6-gdb-581bea2-x86_64-freebsd12.1-1.txt
reporting: tools/rtems-gdb-head.cfg -> arm-rtems6-gdb-581bea2-x86_64-freebsd12.1-1.xml
config: tools/rtems-binutils-head.cfg
package: arm-rtems6-binutils-581bea2-x86_64-freebsd12.1-1
building: arm-rtems6-binutils-581bea2-x86_64-freebsd12.1-1
sizes: arm-rtems6-binutils-581bea2-x86_64-freebsd12.1-1: 413.752MB (installed: 33.903MB)
cleaning: arm-rtems6-binutils-581bea2-x86_64-freebsd12.1-1
reporting: tools/rtems-binutils-head.cfg -> arm-rtems6-binutils-581bea2-x86_64-freebsd12.1-1.txt
reporting: tools/rtems-binutils-head.cfg -> arm-rtems6-binutils-581bea2-x86_64-freebsd12.1-1.xml
config: tools/rtems-gcc-head-newlib-head.cfg
package: arm-rtems6-gcc-aff95ee-newlib-a97bdf1-x86_64-freebsd12.1-1
building: arm-rtems6-gcc-aff95ee-newlib-a97bdf1-x86_64-freebsd12.1-1
error: building arm-rtems6-gcc-aff95ee-newlib-a97bdf1-x86_64-freebsd12.1-1
Build FAILED
  See error report: rsb-report-arm-rtems6-gcc-aff95ee-newlib-a97bdf1-x86_64-freebsd12.1-1.txt
error: building arm-rtems6-gcc-aff95ee-newlib-a97bdf1-x86_64-freebsd12.1-1
Mailing report: build at rtems.org

Report
======

==============================================================================
RTEMS Tools Project <users at rtems.org> Thu Jun 18 07:55:31 2020
==============================================================================
Report: devel/expat-2.1.0-1.cfg
------------------------------------------------------------------------------
RTEMS Source Builder Repository Status
 Remotes:
[ remotes removed, contact sender for details ]
 Status:
  Clean
 Head:
  Commit: 429cab509bbaf3e04ff4436ef793a16a60c988c9
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (1) devel/expat-2.1.0-1.cfg
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (2) devel/expat-2.1.0-1.cfg
------------------------------------------------------------------------------
Package: expat-2.1.0-x86_64-freebsd12.1-1
 Config: devel/expat-2.1.0-1.cfg
 Summary:
  Expat XML Parser v2.1.0 for target arm-rtems6 on host x86_64-freebsd12.1
 URL:
  http://expat.sourceforge.net/
 Version:
  2.1.0
 Release:
  1
  Sources: 1
    1: https://github.com/libexpat/libexpat/releases/download/R_2_1_0/expat-2.1.0.tar.gz
       sha256: 823705472f816df21c8f6aa026dd162b280806838bb55b3432b0fb1fcca7eb86
  Patches: 0
 Preparation:
  build_top=$(pwd)
  %setup source expat -q -n expat-2.1.0
  %setup patch expat -p1
  cd ${build_top}
 Build:
  build_top=$(pwd)
  cd expat-2.1.0
  # Host and build flags, Cross build if host and build are different and
  # Cxc build if target is deifned and also different.
  # Note, gcc is not ready to be compiled with -std=gnu99 (this needs to be checked).
  if test "x86_64-freebsd12.1" != "x86_64-freebsd12.1" ; then
    # Cross build
    CC=$(echo "x86_64-freebsd12.1-gcc" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "x86_64-freebsd12.1-g++" | sed -e 's,-std=gnu99 ,,')
    CPPFLAGS="${SB_HOST_CPPFLAGS}"
    CFLAGS="${SB_HOST_CFLAGS}"
    CXXFLAGS="${SB_HOST_CXXFLAGS}"
    LDFLAGS="${SB_HOST_LDFLAGS}"
    LDLIBS="${SB_HOST_LIBS}"
    LIBS="${SB_HOST_LIBS}"
    # Host
    CPPFLAGS_FOR_HOST="${SB_HOST_CPPFLAGS}"
    CFLAGS_FOR_HOST="${SB_HOST_CFLAGS}"
    CXXFLAGS_FOR_HOST="${SB_HOST_CXXFLAGS}"
    LDFLAGS_FOR_HOST="${SB_HOST_LDFLAGS}"
    LDLIBS_FOR_HOST="${SB_HOST_LIBS}"
    LIBS_FOR_HOST="${SB_HOST_LIBS}"
    CXXFLAGS_FOR_HOST="${SB_HOST_CFLAGS}"
    CC_FOR_HOST=$(echo "gcc ${SB_HOST_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX_FOR_HOST=$(echo "g++ ${SB_HOST_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
    # Build
    CFLAGS_FOR_BUILD="${SB_BUILD_CFLAGS}"
    CXXFLAGS_FOR_BUILD="${SB_BUILD_CXXFLAGS}"
    LDFLAGS_FOR_BUILD="${SB_BUILD_LDFLAGS}"
    LDLIBS_FOR_BUILD="${SB_BUILD_LIBS}"
    LIBS_FOR_BUILD="${SB_BUILD_LIBS}"
    CXXFLAGS_FOR_BUILD="${SB_BUILD_CFLAGS}"
    CC_FOR_BUILD=$(echo "/usr/bin/cc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX_FOR_BUILD=$(echo "/usr/bin/c++ ${SB_BUILD_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
  else
    LDFLAGS="${SB_BUILD_LDFLAGS}"
    LDLIBS="${SB_BUILD_LIBS}"
    LIBS="${SB_BUILD_LIBS}"
    CC=$(echo "/usr/bin/cc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "/usr/bin/c++ ${SB_BUILD_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CC_FOR_BUILD=${CC}
    CXX_FOR_BUILD=${CXX}
  fi
  export CC CXX CPPFLAGS CFLAGS CXXFLAGS LDFLAGS LIBS LDLIBS
  export CC_FOR_HOST CXX_FOR_HOST CPPFLAGS_FOR_HOST CFLAGS_FOR_HOST CXXFLAGS_FOR_HOST LDFLAGS_FOR_HOST LDLIBS_FOR_HOST LIBS_FOR_HOST
  export CC_FOR_BUILD CXX_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD LDFLAGS_FOR_BUILD LDLIBS_FOR_BUILS LIBS_FOR_BUILS
  ./configure  --build=x86_64-freebsd12.1 --host=x86_64-freebsd12.1  --verbose  --prefix=/usr/local/rtems/5 --bindir=/usr/local/rtems/5/bin  --exec-prefix=/usr/local/rtems/5  --includedir=/usr/local/rtems/5/include --libdir=/usr/local/rtems/5/lib  --mandir=/usr/local/rtems/5/share/man --infodir=/usr/local/rtems/5/share/info
  gmake -j 8 all
  cd ${build_top}
 Install:
  build_top=$(pwd)
  rm -rf $SB_BUILD_ROOT
  cd expat-2.1.0
  gmake DESTDIR=$SB_BUILD_ROOT install
  cd ${build_top}
==============================================================================
RTEMS Tools Project <users at rtems.org> Thu Jun 18 07:55:31 2020
==============================================================================
Report: devel/expat-2.1.0-1.cfg
------------------------------------------------------------------------------
RTEMS Source Builder Repository Status
 Remotes:
[ remotes removed, contact sender for details ]
 Status:
  Clean
 Head:
  Commit: 429cab509bbaf3e04ff4436ef793a16a60c988c9
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (1) devel/expat-2.1.0-1.cfg
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (2) devel/expat-2.1.0-1.cfg
------------------------------------------------------------------------------
Package: expat-2.1.0-x86_64-freebsd12.1-1
 Config: devel/expat-2.1.0-1.cfg
 Summary:
  Expat XML Parser v2.1.0 for target arm-rtems6 on host x86_64-freebsd12.1
 URL:
  http://expat.sourceforge.net/
 Version:
  2.1.0
 Release:
  1
  Sources: 1
    1: https://github.com/libexpat/libexpat/releases/download/R_2_1_0/expat-2.1.0.tar.gz
       sha256: 823705472f816df21c8f6aa026dd162b280806838bb55b3432b0fb1fcca7eb86
  Patches: 0
 Preparation:
  build_top=$(pwd)
  %setup source expat -q -n expat-2.1.0
  %setup patch expat -p1
  cd ${build_top}
 Build:
  build_top=$(pwd)
  cd expat-2.1.0
  # Host and build flags, Cross build if host and build are different and
  # Cxc build if target is deifned and also different.
  # Note, gcc is not ready to be compiled with -std=gnu99 (this needs to be checked).
  if test "x86_64-freebsd12.1" != "x86_64-freebsd12.1" ; then
    # Cross build
    CC=$(echo "x86_64-freebsd12.1-gcc" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "x86_64-freebsd12.1-g++" | sed -e 's,-std=gnu99 ,,')
    CPPFLAGS="${SB_HOST_CPPFLAGS}"
    CFLAGS="${SB_HOST_CFLAGS}"
    CXXFLAGS="${SB_HOST_CXXFLAGS}"
    LDFLAGS="${SB_HOST_LDFLAGS}"
    LDLIBS="${SB_HOST_LIBS}"
    LIBS="${SB_HOST_LIBS}"
    # Host
    CPPFLAGS_FOR_HOST="${SB_HOST_CPPFLAGS}"
    CFLAGS_FOR_HOST="${SB_HOST_CFLAGS}"
    CXXFLAGS_FOR_HOST="${SB_HOST_CXXFLAGS}"
    LDFLAGS_FOR_HOST="${SB_HOST_LDFLAGS}"
    LDLIBS_FOR_HOST="${SB_HOST_LIBS}"
    LIBS_FOR_HOST="${SB_HOST_LIBS}"
    CXXFLAGS_FOR_HOST="${SB_HOST_CFLAGS}"
    CC_FOR_HOST=$(echo "gcc ${SB_HOST_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX_FOR_HOST=$(echo "g++ ${SB_HOST_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
    # Build
    CFLAGS_FOR_BUILD="${SB_BUILD_CFLAGS}"
    CXXFLAGS_FOR_BUILD="${SB_BUILD_CXXFLAGS}"
    LDFLAGS_FOR_BUILD="${SB_BUILD_LDFLAGS}"
    LDLIBS_FOR_BUILD="${SB_BUILD_LIBS}"
    LIBS_FOR_BUILD="${SB_BUILD_LIBS}"
    CXXFLAGS_FOR_BUILD="${SB_BUILD_CFLAGS}"
    CC_FOR_BUILD=$(echo "/usr/bin/cc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX_FOR_BUILD=$(echo "/usr/bin/c++ ${SB_BUILD_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
  else
    LDFLAGS="${SB_BUILD_LDFLAGS}"
    LDLIBS="${SB_BUILD_LIBS}"
    LIBS="${SB_BUILD_LIBS}"
    CC=$(echo "/usr/bin/cc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "/usr/bin/c++ ${SB_BUILD_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CC_FOR_BUILD=${CC}
    CXX_FOR_BUILD=${CXX}
  fi
  export CC CXX CPPFLAGS CFLAGS CXXFLAGS LDFLAGS LIBS LDLIBS
  export CC_FOR_HOST CXX_FOR_HOST CPPFLAGS_FOR_HOST CFLAGS_FOR_HOST CXXFLAGS_FOR_HOST LDFLAGS_FOR_HOST LDLIBS_FOR_HOST LIBS_FOR_HOST
  export CC_FOR_BUILD CXX_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD LDFLAGS_FOR_BUILD LDLIBS_FOR_BUILS LIBS_FOR_BUILS
  ./configure  --build=x86_64-freebsd12.1 --host=x86_64-freebsd12.1  --verbose  --prefix=/usr/local/rtems/5 --bindir=/usr/local/rtems/5/bin  --exec-prefix=/usr/local/rtems/5  --includedir=/usr/local/rtems/5/include --libdir=/usr/local/rtems/5/lib  --mandir=/usr/local/rtems/5/share/man --infodir=/usr/local/rtems/5/share/info
  gmake -j 8 all
  cd ${build_top}
 Install:
  build_top=$(pwd)
  rm -rf $SB_BUILD_ROOT
  cd expat-2.1.0
  gmake DESTDIR=$SB_BUILD_ROOT install
  cd ${build_top}
==============================================================================
RTEMS Tools Project <users at rtems.org> Thu Jun 18 07:57:15 2020
==============================================================================
Report: tools/rtems-gdb-head.cfg
------------------------------------------------------------------------------
RTEMS Source Builder Repository Status
 Remotes:
[ remotes removed, contact sender for details ]
 Status:
  Clean
 Head:
  Commit: 429cab509bbaf3e04ff4436ef793a16a60c988c9
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (1) tools/rtems-gdb-head.cfg
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (2) tools/rtems-gdb-head.cfg
------------------------------------------------------------------------------
Package: arm-rtems6-gdb-581bea2-x86_64-freebsd12.1-1
 Config: tools/rtems-gdb-head.cfg
 Summary:
  GDB v581bea2 for target arm-rtems6 on host x86_64-freebsd12.1
 URL:
  http://www.gnu.org/software/gdb/
 Version:
  581bea2
 Release:
  1
  Sources: 1
    1: --rsb-file=sourceware-mirror-binutils-gdb-581bea2.tar.gz https://codeload.github.com/RTEMS/sourceware-mirror-binutils-gdb/tar.gz/581bea2
       No checksum
  Patches: 0
 Preparation:
  build_top=$(pwd)
  gdb_source=sourceware-mirror-binutils-gdb-581bea2
  source_dir_gdb=${gdb_source}
  %setup source gdb -q -n ${gdb_source}
  %setup patch gdb -p1
  cd ${build_top}
 Build:
  build_top=$(pwd)
  if test "x86_64-freebsd12.1" != "x86_64-freebsd12.1" ; then
    # Cross-build (Xc) if no target or the host and target match.
    # Canadian-cross (Cxc) if build, host and target are all different.
    if test -z "arm-rtems6" -o "x86_64-freebsd12.1" == "arm-rtems6" ; then
      build_dir="build-xc"
    else
      build_dir="build-cxc"
    fi
  else
    build_dir="build"
  fi
  mkdir -p ${build_dir}
  cd ${build_dir}
  # Host and build flags, Cross build if host and build are different and
  # Cxc build if target is deifned and also different.
  # Note, gcc is not ready to be compiled with -std=gnu99 (this needs to be checked).
  if test "x86_64-freebsd12.1" != "x86_64-freebsd12.1" ; then
    # Cross build
    CC=$(echo "x86_64-freebsd12.1-gcc" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "x86_64-freebsd12.1-g++" | sed -e 's,-std=gnu99 ,,')
    CPPFLAGS="${SB_HOST_CPPFLAGS}"
    CFLAGS="${SB_HOST_CFLAGS}"
    CXXFLAGS="${SB_HOST_CXXFLAGS}"
    LDFLAGS="${SB_HOST_LDFLAGS}"
    LDLIBS="${SB_HOST_LIBS}"
    LIBS="${SB_HOST_LIBS}"
    # Host
    CPPFLAGS_FOR_HOST="${SB_HOST_CPPFLAGS}"
    CFLAGS_FOR_HOST="${SB_HOST_CFLAGS}"
    CXXFLAGS_FOR_HOST="${SB_HOST_CXXFLAGS}"
    LDFLAGS_FOR_HOST="${SB_HOST_LDFLAGS}"
    LDLIBS_FOR_HOST="${SB_HOST_LIBS}"
    LIBS_FOR_HOST="${SB_HOST_LIBS}"
    CXXFLAGS_FOR_HOST="${SB_HOST_CFLAGS}"
    CC_FOR_HOST=$(echo "gcc ${SB_HOST_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX_FOR_HOST=$(echo "g++ ${SB_HOST_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
    # Build
    CFLAGS_FOR_BUILD="${SB_BUILD_CFLAGS}"
    CXXFLAGS_FOR_BUILD="${SB_BUILD_CXXFLAGS}"
    LDFLAGS_FOR_BUILD="${SB_BUILD_LDFLAGS}"
    LDLIBS_FOR_BUILD="${SB_BUILD_LIBS}"
    LIBS_FOR_BUILD="${SB_BUILD_LIBS}"
    CXXFLAGS_FOR_BUILD="${SB_BUILD_CFLAGS}"
    CC_FOR_BUILD=$(echo "/usr/bin/cc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX_FOR_BUILD=$(echo "/usr/bin/c++ ${SB_BUILD_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
  else
    LDFLAGS="${SB_BUILD_LDFLAGS}"
    LDLIBS="${SB_BUILD_LIBS}"
    LIBS="${SB_BUILD_LIBS}"
    CC=$(echo "/usr/bin/cc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "/usr/bin/c++ ${SB_BUILD_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CC_FOR_BUILD=${CC}
    CXX_FOR_BUILD=${CXX}
  fi
  export CC CXX CPPFLAGS CFLAGS CXXFLAGS LDFLAGS LIBS LDLIBS
  export CC_FOR_HOST CXX_FOR_HOST CPPFLAGS_FOR_HOST CFLAGS_FOR_HOST CXXFLAGS_FOR_HOST LDFLAGS_FOR_HOST LDLIBS_FOR_HOST LIBS_FOR_HOST
  export CC_FOR_BUILD CXX_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD LDFLAGS_FOR_BUILD LDLIBS_FOR_BUILS LIBS_FOR_BUILS
  if test "x86_64-freebsd12.1" != "x86_64-freebsd12.1" ; then
  GDB_LIBS_STATIC="-lexpat"
  else
  GDB_LIBS_STATIC="-lexpat"
  GDB_LIBS="-Xlinker -Bstatic ${LIBS_STATIC} -Xlinker -Bdynamic"
  fi
  LIBS_STATIC=${GDB_LIBS_STATIC}  LIBS=${GDB_LIBS}  ../${source_dir_gdb}/configure  --build=x86_64-freebsd12.1 --host=x86_64-freebsd12.1  --target=arm-rtems6  --verbose --disable-nls  --disable-gas --disable-binutils --disable-ld --disable-gold --disable-gprof    --without-included-gettext  --disable-win32-registry  --disable-werror  --enable-sim    --without-zlib  --with-expat  --with-guile=no  --with-libiconv-prefix=/usr/local  --with-python=/usr/local/bin/python2  --prefix=/usr/local/rtems/5 --bindir=/usr/local/rtems/5/bin  --exec-prefix=/usr/local/rtems/5  --includedir=/usr/local/rtems/5/include --libdir=/usr/local/rtems/5/lib  --mandir=/usr/local/rtems/5/share/man --infodir=/usr/local/rtems/5/share/info
  gmake -j 8 all
  cd ${build_top}
 Install:
  build_top=$(pwd)
  /bin/rm -rf $SB_BUILD_ROOT
  cd ${build_dir}
  gmake DESTDIR=$SB_BUILD_ROOT install
  /bin/rm -rf $SB_BUILD_ROOT/usr/local/rtems/5/share/info/configure.info*
  /bin/rm -f $SB_BUILD_ROOT/usr/local/rtems/5/share/info/dir
  touch $SB_BUILD_ROOT/usr/local/rtems/5/share/info/dir
  cd ${build_top}
==============================================================================
RTEMS Tools Project <users at rtems.org> Thu Jun 18 07:57:15 2020
==============================================================================
Report: tools/rtems-gdb-head.cfg
------------------------------------------------------------------------------
RTEMS Source Builder Repository Status
 Remotes:
[ remotes removed, contact sender for details ]
 Status:
  Clean
 Head:
  Commit: 429cab509bbaf3e04ff4436ef793a16a60c988c9
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (1) tools/rtems-gdb-head.cfg
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (2) tools/rtems-gdb-head.cfg
------------------------------------------------------------------------------
Package: arm-rtems6-gdb-581bea2-x86_64-freebsd12.1-1
 Config: tools/rtems-gdb-head.cfg
 Summary:
  GDB v581bea2 for target arm-rtems6 on host x86_64-freebsd12.1
 URL:
  http://www.gnu.org/software/gdb/
 Version:
  581bea2
 Release:
  1
  Sources: 1
    1: --rsb-file=sourceware-mirror-binutils-gdb-581bea2.tar.gz https://codeload.github.com/RTEMS/sourceware-mirror-binutils-gdb/tar.gz/581bea2
       No checksum
  Patches: 0
 Preparation:
  build_top=$(pwd)
  gdb_source=sourceware-mirror-binutils-gdb-581bea2
  source_dir_gdb=${gdb_source}
  %setup source gdb -q -n ${gdb_source}
  %setup patch gdb -p1
  cd ${build_top}
 Build:
  build_top=$(pwd)
  if test "x86_64-freebsd12.1" != "x86_64-freebsd12.1" ; then
    # Cross-build (Xc) if no target or the host and target match.
    # Canadian-cross (Cxc) if build, host and target are all different.
    if test -z "arm-rtems6" -o "x86_64-freebsd12.1" == "arm-rtems6" ; then
      build_dir="build-xc"
    else
      build_dir="build-cxc"
    fi
  else
    build_dir="build"
  fi
  mkdir -p ${build_dir}
  cd ${build_dir}
  # Host and build flags, Cross build if host and build are different and
  # Cxc build if target is deifned and also different.
  # Note, gcc is not ready to be compiled with -std=gnu99 (this needs to be checked).
  if test "x86_64-freebsd12.1" != "x86_64-freebsd12.1" ; then
    # Cross build
    CC=$(echo "x86_64-freebsd12.1-gcc" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "x86_64-freebsd12.1-g++" | sed -e 's,-std=gnu99 ,,')
    CPPFLAGS="${SB_HOST_CPPFLAGS}"
    CFLAGS="${SB_HOST_CFLAGS}"
    CXXFLAGS="${SB_HOST_CXXFLAGS}"
    LDFLAGS="${SB_HOST_LDFLAGS}"
    LDLIBS="${SB_HOST_LIBS}"
    LIBS="${SB_HOST_LIBS}"
    # Host
    CPPFLAGS_FOR_HOST="${SB_HOST_CPPFLAGS}"
    CFLAGS_FOR_HOST="${SB_HOST_CFLAGS}"
    CXXFLAGS_FOR_HOST="${SB_HOST_CXXFLAGS}"
    LDFLAGS_FOR_HOST="${SB_HOST_LDFLAGS}"
    LDLIBS_FOR_HOST="${SB_HOST_LIBS}"
    LIBS_FOR_HOST="${SB_HOST_LIBS}"
    CXXFLAGS_FOR_HOST="${SB_HOST_CFLAGS}"
    CC_FOR_HOST=$(echo "gcc ${SB_HOST_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX_FOR_HOST=$(echo "g++ ${SB_HOST_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
    # Build
    CFLAGS_FOR_BUILD="${SB_BUILD_CFLAGS}"
    CXXFLAGS_FOR_BUILD="${SB_BUILD_CXXFLAGS}"
    LDFLAGS_FOR_BUILD="${SB_BUILD_LDFLAGS}"
    LDLIBS_FOR_BUILD="${SB_BUILD_LIBS}"
    LIBS_FOR_BUILD="${SB_BUILD_LIBS}"
    CXXFLAGS_FOR_BUILD="${SB_BUILD_CFLAGS}"
    CC_FOR_BUILD=$(echo "/usr/bin/cc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX_FOR_BUILD=$(echo "/usr/bin/c++ ${SB_BUILD_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
  else
    LDFLAGS="${SB_BUILD_LDFLAGS}"
    LDLIBS="${SB_BUILD_LIBS}"
    LIBS="${SB_BUILD_LIBS}"
    CC=$(echo "/usr/bin/cc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "/usr/bin/c++ ${SB_BUILD_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CC_FOR_BUILD=${CC}
    CXX_FOR_BUILD=${CXX}
  fi
  export CC CXX CPPFLAGS CFLAGS CXXFLAGS LDFLAGS LIBS LDLIBS
  export CC_FOR_HOST CXX_FOR_HOST CPPFLAGS_FOR_HOST CFLAGS_FOR_HOST CXXFLAGS_FOR_HOST LDFLAGS_FOR_HOST LDLIBS_FOR_HOST LIBS_FOR_HOST
  export CC_FOR_BUILD CXX_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD LDFLAGS_FOR_BUILD LDLIBS_FOR_BUILS LIBS_FOR_BUILS
  if test "x86_64-freebsd12.1" != "x86_64-freebsd12.1" ; then
  GDB_LIBS_STATIC="-lexpat"
  else
  GDB_LIBS_STATIC="-lexpat"
  GDB_LIBS="-Xlinker -Bstatic ${LIBS_STATIC} -Xlinker -Bdynamic"
  fi
  LIBS_STATIC=${GDB_LIBS_STATIC}  LIBS=${GDB_LIBS}  ../${source_dir_gdb}/configure  --build=x86_64-freebsd12.1 --host=x86_64-freebsd12.1  --target=arm-rtems6  --verbose --disable-nls  --disable-gas --disable-binutils --disable-ld --disable-gold --disable-gprof    --without-included-gettext  --disable-win32-registry  --disable-werror  --enable-sim    --without-zlib  --with-expat  --with-guile=no  --with-libiconv-prefix=/usr/local  --with-python=/usr/local/bin/python2  --prefix=/usr/local/rtems/5 --bindir=/usr/local/rtems/5/bin  --exec-prefix=/usr/local/rtems/5  --includedir=/usr/local/rtems/5/include --libdir=/usr/local/rtems/5/lib  --mandir=/usr/local/rtems/5/share/man --infodir=/usr/local/rtems/5/share/info
  gmake -j 8 all
  cd ${build_top}
 Install:
  build_top=$(pwd)
  /bin/rm -rf $SB_BUILD_ROOT
  cd ${build_dir}
  gmake DESTDIR=$SB_BUILD_ROOT install
  /bin/rm -rf $SB_BUILD_ROOT/usr/local/rtems/5/share/info/configure.info*
  /bin/rm -f $SB_BUILD_ROOT/usr/local/rtems/5/share/info/dir
  touch $SB_BUILD_ROOT/usr/local/rtems/5/share/info/dir
  cd ${build_top}
==============================================================================
RTEMS Tools Project <users at rtems.org> Thu Jun 18 07:57:59 2020
==============================================================================
Report: tools/rtems-binutils-head.cfg
------------------------------------------------------------------------------
RTEMS Source Builder Repository Status
 Remotes:
[ remotes removed, contact sender for details ]
 Status:
  Clean
 Head:
  Commit: 429cab509bbaf3e04ff4436ef793a16a60c988c9
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (1) tools/rtems-binutils-head.cfg
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (2) tools/rtems-binutils-head.cfg
------------------------------------------------------------------------------
Package: arm-rtems6-binutils-581bea2-x86_64-freebsd12.1-1
 Config: tools/rtems-binutils-head.cfg
 Summary:
  Binutils v581bea2 for target arm-rtems6 on host x86_64-freebsd12.1
 URL:
  http://sources.redhat.com/binutils
 Version:
  581bea2
 Release:
  1
  Sources: 1
    1: --rsb-file=sourceware-mirror-binutils-gdb-581bea2.tar.gz https://codeload.github.com/RTEMS/sourceware-mirror-binutils-gdb/tar.gz/581bea2
       No checksum
  Patches: 0
 Preparation:
  build_top=$(pwd)
  binutils_source=sourceware-mirror-binutils-gdb-581bea2
  source_dir_binutils=${binutils_source}
  %setup source binutils -q -n ${binutils_source}
  %setup patch binutils -p1
  cd ${build_top}
 Build:
  build_top=$(pwd)
  if test "x86_64-freebsd12.1" != "x86_64-freebsd12.1" ; then
    # Cross-build (Xc) if no target or the host and target match.
    # Canadian-cross (Cxc) if build, host and target are all different.
    if test -z "arm-rtems6" -o "x86_64-freebsd12.1" == "arm-rtems6" ; then
      build_dir="build-xc"
    else
      build_dir="build-cxc"
    fi
  else
    build_dir="build"
  fi
  mkdir -p ${build_dir}
  cd ${build_dir}
  # Host and build flags, Cross build if host and build are different and
  # Cxc build if target is deifned and also different.
  # Note, gcc is not ready to be compiled with -std=gnu99 (this needs to be checked).
  if test "x86_64-freebsd12.1" != "x86_64-freebsd12.1" ; then
    # Cross build
    CC=$(echo "x86_64-freebsd12.1-gcc" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "x86_64-freebsd12.1-g++" | sed -e 's,-std=gnu99 ,,')
    CPPFLAGS="${SB_HOST_CPPFLAGS}"
    CFLAGS="${SB_HOST_CFLAGS}"
    CXXFLAGS="${SB_HOST_CXXFLAGS}"
    LDFLAGS="${SB_HOST_LDFLAGS}"
    LDLIBS="${SB_HOST_LIBS}"
    LIBS="${SB_HOST_LIBS}"
    # Host
    CPPFLAGS_FOR_HOST="${SB_HOST_CPPFLAGS}"
    CFLAGS_FOR_HOST="${SB_HOST_CFLAGS}"
    CXXFLAGS_FOR_HOST="${SB_HOST_CXXFLAGS}"
    LDFLAGS_FOR_HOST="${SB_HOST_LDFLAGS}"
    LDLIBS_FOR_HOST="${SB_HOST_LIBS}"
    LIBS_FOR_HOST="${SB_HOST_LIBS}"
    CXXFLAGS_FOR_HOST="${SB_HOST_CFLAGS}"
    CC_FOR_HOST=$(echo "gcc ${SB_HOST_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX_FOR_HOST=$(echo "g++ ${SB_HOST_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
    # Build
    CFLAGS_FOR_BUILD="${SB_BUILD_CFLAGS}"
    CXXFLAGS_FOR_BUILD="${SB_BUILD_CXXFLAGS}"
    LDFLAGS_FOR_BUILD="${SB_BUILD_LDFLAGS}"
    LDLIBS_FOR_BUILD="${SB_BUILD_LIBS}"
    LIBS_FOR_BUILD="${SB_BUILD_LIBS}"
    CXXFLAGS_FOR_BUILD="${SB_BUILD_CFLAGS}"
    CC_FOR_BUILD=$(echo "/usr/bin/cc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX_FOR_BUILD=$(echo "/usr/bin/c++ ${SB_BUILD_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
  else
    LDFLAGS="${SB_BUILD_LDFLAGS}"
    LDLIBS="${SB_BUILD_LIBS}"
    LIBS="${SB_BUILD_LIBS}"
    CC=$(echo "/usr/bin/cc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "/usr/bin/c++ ${SB_BUILD_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CC_FOR_BUILD=${CC}
    CXX_FOR_BUILD=${CXX}
  fi
  export CC CXX CPPFLAGS CFLAGS CXXFLAGS LDFLAGS LIBS LDLIBS
  export CC_FOR_HOST CXX_FOR_HOST CPPFLAGS_FOR_HOST CFLAGS_FOR_HOST CXXFLAGS_FOR_HOST LDFLAGS_FOR_HOST LDLIBS_FOR_HOST LIBS_FOR_HOST
  export CC_FOR_BUILD CXX_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD LDFLAGS_FOR_BUILD LDLIBS_FOR_BUILS LIBS_FOR_BUILS
  ../${source_dir_binutils}/configure  --build=x86_64-freebsd12.1 --host=x86_64-freebsd12.1  --target=arm-rtems6  --verbose --disable-nls  --disable-gdb --disable-libdecnumber --disable-readline --disable-sim  --enable-deterministic-archives  --enable-64-bit-bfd    --disable-lto  --without-included-gettext  --disable-win32-registry  --disable-werror  --prefix=/usr/local/rtems/5 --bindir=/usr/local/rtems/5/bin  --exec-prefix=/usr/local/rtems/5  --includedir=/usr/local/rtems/5/include --libdir=/usr/local/rtems/5/lib  --mandir=/usr/local/rtems/5/share/man --infodir=/usr/local/rtems/5/share/info
  gmake -j 8 all
  cd ${build_top}
 Install:
  cd ${build_top}
  /bin/rm -rf $SB_BUILD_ROOT
  cd ${build_dir}
  gmake DESTDIR=$SB_BUILD_ROOT install
  /bin/rm -rf $SB_BUILD_ROOT/usr/local/rtems/5/share/info/configure.info*
  /bin/rm -f $SB_BUILD_ROOT/usr/local/rtems/5/share/info/dir
  touch $SB_BUILD_ROOT/usr/local/rtems/5/share/info/dir
  mkdir -p $SB_BUILD_ROOT/usr/local/rtems/5/share/locale
  /bin/rm -f ${SB_BUILD_ROOT}/usr/local/rtems/5/lib/libiberty*
  if test ! -f ${SB_BUILD_ROOT}/usr/local/rtems/5/bin/arm-rtems6-dlltool; then
  /bin/rm -f ${SB_BUILD_ROOT}/usr/local/rtems/5/share/man/man1/arm-rtems6-dlltool*
  fi
  if test ! -f ${SB_BUILD_ROOT}/usr/local/rtems/5/bin/arm-rtems6-nlmconv; then
  /bin/rm -f ${SB_BUILD_ROOT}/usr/local/rtems/5/share/man/man1/arm-rtems6-nlmconv*
  fi
  if test ! -f ${SB_BUILD_ROOT}/usr/local/rtems/5/bin/arm-rtems6-windres; then
  /bin/rm -f ${SB_BUILD_ROOT}/usr/local/rtems/5/share/man/man1/arm-rtems6-windres*
  fi
  if test ! -f ${SB_BUILD_ROOT}/usr/local/rtems/5/bin/arm-rtems6-windmc; then
  /bin/rm -f ${SB_BUILD_ROOT}/usr/local/rtems/5/share/man/man1/arm-rtems6-windmc*
  fi
  cd ${build_top}
==============================================================================
RTEMS Tools Project <users at rtems.org> Thu Jun 18 07:57:59 2020
==============================================================================
Report: tools/rtems-binutils-head.cfg
------------------------------------------------------------------------------
RTEMS Source Builder Repository Status
 Remotes:
[ remotes removed, contact sender for details ]
 Status:
  Clean
 Head:
  Commit: 429cab509bbaf3e04ff4436ef793a16a60c988c9
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (1) tools/rtems-binutils-head.cfg
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (2) tools/rtems-binutils-head.cfg
------------------------------------------------------------------------------
Package: arm-rtems6-binutils-581bea2-x86_64-freebsd12.1-1
 Config: tools/rtems-binutils-head.cfg
 Summary:
  Binutils v581bea2 for target arm-rtems6 on host x86_64-freebsd12.1
 URL:
  http://sources.redhat.com/binutils
 Version:
  581bea2
 Release:
  1
  Sources: 1
    1: --rsb-file=sourceware-mirror-binutils-gdb-581bea2.tar.gz https://codeload.github.com/RTEMS/sourceware-mirror-binutils-gdb/tar.gz/581bea2
       No checksum
  Patches: 0
 Preparation:
  build_top=$(pwd)
  binutils_source=sourceware-mirror-binutils-gdb-581bea2
  source_dir_binutils=${binutils_source}
  %setup source binutils -q -n ${binutils_source}
  %setup patch binutils -p1
  cd ${build_top}
 Build:
  build_top=$(pwd)
  if test "x86_64-freebsd12.1" != "x86_64-freebsd12.1" ; then
    # Cross-build (Xc) if no target or the host and target match.
    # Canadian-cross (Cxc) if build, host and target are all different.
    if test -z "arm-rtems6" -o "x86_64-freebsd12.1" == "arm-rtems6" ; then
      build_dir="build-xc"
    else
      build_dir="build-cxc"
    fi
  else
    build_dir="build"
  fi
  mkdir -p ${build_dir}
  cd ${build_dir}
  # Host and build flags, Cross build if host and build are different and
  # Cxc build if target is deifned and also different.
  # Note, gcc is not ready to be compiled with -std=gnu99 (this needs to be checked).
  if test "x86_64-freebsd12.1" != "x86_64-freebsd12.1" ; then
    # Cross build
    CC=$(echo "x86_64-freebsd12.1-gcc" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "x86_64-freebsd12.1-g++" | sed -e 's,-std=gnu99 ,,')
    CPPFLAGS="${SB_HOST_CPPFLAGS}"
    CFLAGS="${SB_HOST_CFLAGS}"
    CXXFLAGS="${SB_HOST_CXXFLAGS}"
    LDFLAGS="${SB_HOST_LDFLAGS}"
    LDLIBS="${SB_HOST_LIBS}"
    LIBS="${SB_HOST_LIBS}"
    # Host
    CPPFLAGS_FOR_HOST="${SB_HOST_CPPFLAGS}"
    CFLAGS_FOR_HOST="${SB_HOST_CFLAGS}"
    CXXFLAGS_FOR_HOST="${SB_HOST_CXXFLAGS}"
    LDFLAGS_FOR_HOST="${SB_HOST_LDFLAGS}"
    LDLIBS_FOR_HOST="${SB_HOST_LIBS}"
    LIBS_FOR_HOST="${SB_HOST_LIBS}"
    CXXFLAGS_FOR_HOST="${SB_HOST_CFLAGS}"
    CC_FOR_HOST=$(echo "gcc ${SB_HOST_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX_FOR_HOST=$(echo "g++ ${SB_HOST_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
    # Build
    CFLAGS_FOR_BUILD="${SB_BUILD_CFLAGS}"
    CXXFLAGS_FOR_BUILD="${SB_BUILD_CXXFLAGS}"
    LDFLAGS_FOR_BUILD="${SB_BUILD_LDFLAGS}"
    LDLIBS_FOR_BUILD="${SB_BUILD_LIBS}"
    LIBS_FOR_BUILD="${SB_BUILD_LIBS}"
    CXXFLAGS_FOR_BUILD="${SB_BUILD_CFLAGS}"
    CC_FOR_BUILD=$(echo "/usr/bin/cc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX_FOR_BUILD=$(echo "/usr/bin/c++ ${SB_BUILD_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
  else
    LDFLAGS="${SB_BUILD_LDFLAGS}"
    LDLIBS="${SB_BUILD_LIBS}"
    LIBS="${SB_BUILD_LIBS}"
    CC=$(echo "/usr/bin/cc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "/usr/bin/c++ ${SB_BUILD_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CC_FOR_BUILD=${CC}
    CXX_FOR_BUILD=${CXX}
  fi
  export CC CXX CPPFLAGS CFLAGS CXXFLAGS LDFLAGS LIBS LDLIBS
  export CC_FOR_HOST CXX_FOR_HOST CPPFLAGS_FOR_HOST CFLAGS_FOR_HOST CXXFLAGS_FOR_HOST LDFLAGS_FOR_HOST LDLIBS_FOR_HOST LIBS_FOR_HOST
  export CC_FOR_BUILD CXX_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD LDFLAGS_FOR_BUILD LDLIBS_FOR_BUILS LIBS_FOR_BUILS
  ../${source_dir_binutils}/configure  --build=x86_64-freebsd12.1 --host=x86_64-freebsd12.1  --target=arm-rtems6  --verbose --disable-nls  --disable-gdb --disable-libdecnumber --disable-readline --disable-sim  --enable-deterministic-archives  --enable-64-bit-bfd    --disable-lto  --without-included-gettext  --disable-win32-registry  --disable-werror  --prefix=/usr/local/rtems/5 --bindir=/usr/local/rtems/5/bin  --exec-prefix=/usr/local/rtems/5  --includedir=/usr/local/rtems/5/include --libdir=/usr/local/rtems/5/lib  --mandir=/usr/local/rtems/5/share/man --infodir=/usr/local/rtems/5/share/info
  gmake -j 8 all
  cd ${build_top}
 Install:
  cd ${build_top}
  /bin/rm -rf $SB_BUILD_ROOT
  cd ${build_dir}
  gmake DESTDIR=$SB_BUILD_ROOT install
  /bin/rm -rf $SB_BUILD_ROOT/usr/local/rtems/5/share/info/configure.info*
  /bin/rm -f $SB_BUILD_ROOT/usr/local/rtems/5/share/info/dir
  touch $SB_BUILD_ROOT/usr/local/rtems/5/share/info/dir
  mkdir -p $SB_BUILD_ROOT/usr/local/rtems/5/share/locale
  /bin/rm -f ${SB_BUILD_ROOT}/usr/local/rtems/5/lib/libiberty*
  if test ! -f ${SB_BUILD_ROOT}/usr/local/rtems/5/bin/arm-rtems6-dlltool; then
  /bin/rm -f ${SB_BUILD_ROOT}/usr/local/rtems/5/share/man/man1/arm-rtems6-dlltool*
  fi
  if test ! -f ${SB_BUILD_ROOT}/usr/local/rtems/5/bin/arm-rtems6-nlmconv; then
  /bin/rm -f ${SB_BUILD_ROOT}/usr/local/rtems/5/share/man/man1/arm-rtems6-nlmconv*
  fi
  if test ! -f ${SB_BUILD_ROOT}/usr/local/rtems/5/bin/arm-rtems6-windres; then
  /bin/rm -f ${SB_BUILD_ROOT}/usr/local/rtems/5/share/man/man1/arm-rtems6-windres*
  fi
  if test ! -f ${SB_BUILD_ROOT}/usr/local/rtems/5/bin/arm-rtems6-windmc; then
  /bin/rm -f ${SB_BUILD_ROOT}/usr/local/rtems/5/share/man/man1/arm-rtems6-windmc*
  fi
  cd ${build_top}


More information about the build mailing list