Hi all,

I struggled over a bootstrap issue while building gcc-7 for armv7-*-freebsd*

I got a 'permission denied' while creating the arm-tables.opt file.

The source tree is located on a nfs server.

The below patch fixed it for me.

Ok to apply?

TIA,
Andreas

2017-10-16  Andreas Tobler  <andre...@gcc.gnu.org>

        * config/arm/t-arm (MD_INCLUDES): Create arm-tables.opt via
        intermediate arm-tables.new like the other awk generated files.

Index: config/arm/t-arm
===================================================================
--- config/arm/t-arm    (revision 253792)
+++ config/arm/t-arm    (working copy)
@@ -75,8 +75,8 @@
 $(srcdir)/config/arm/arm-tables.opt: $(srcdir)/config/arm/parsecpu.awk \
   $(srcdir)/config/arm/arm-cpus.in
        $(AWK) -f $(srcdir)/config/arm/parsecpu.awk -v cmd=opt \
-               $(srcdir)/config/arm/arm-cpus.in > \
-               $(srcdir)/config/arm/arm-tables.opt
+               $(srcdir)/config/arm/arm-cpus.in > arm-tables.new
+       mv arm-tables.new $(srcdir)/config/arm/arm-tables.opt

 $(srcdir)/config/arm/arm-cpu.h: $(srcdir)/config/arm/parsecpu.awk \
   $(srcdir)/config/arm/arm-cpus.in

Reply via email to