#20465: Trunk ar71xx gcc 5.2 (libgpg-error-1.12) build error
------------------------------+------------------------
Reporter: anonymous | Owner: developers
Type: defect | Status: closed
Priority: highest | Milestone:
Component: packages | Version: Trunk
Resolution: moved_to_github | Keywords:
------------------------------+------------------------
Comment (by buzzer):
try to use following patch
{{{
sta@sta-U270:~/openwrt/buildroot/openwrt$ cat ./feeds/packages/libs
/libgpg-error/patches/gcc5.2.patch
diff -r -U 3 ./a ./b > libgpg.diff
--- a/src/Makefile.am 2015-09-12 20:15:03.707121022 +0300
+++ b/src/Makefile.am 2015-09-12 20:03:05.000000000 +0300
@@ -140,7 +140,7 @@
# It is correct to use $(CPP). We want the host's idea of the error
codes.
mkerrcodes.h: Makefile mkerrcodes.awk $(gpg_extra_headers)
$(AWK) -f $(srcdir)/mkerrcodes1.awk $(srcdir)/errnos.in >_$@
- $(CPP) $(CPPFLAGS) $(extra_cppflags) _$@ | grep GPG_ERR_ | \
+ $(CPP) $(CPPFLAGS) $(extra_cppflags) -P _$@ | grep GPG_ERR_ | \
$(AWK) -f $(srcdir)/mkerrcodes.awk >$@
-rm _$@
--- a/src/Makefile.in 2015-09-12 20:15:16.858120992 +0300
+++ b/src/Makefile.in 2015-09-12 20:11:52.000000000 +0300
@@ -979,7 +979,7 @@
# It is correct to use $(CPP). We want the host's idea of the error
codes.
mkerrcodes.h: Makefile mkerrcodes.awk $(gpg_extra_headers)
$(AWK) -f $(srcdir)/mkerrcodes1.awk $(srcdir)/errnos.in >_$@
- $(CPP) $(CPPFLAGS) $(extra_cppflags) _$@ | grep GPG_ERR_ | \
+ $(CPP) $(CPPFLAGS) $(extra_cppflags) -P _$@ | grep GPG_ERR_ | \
$(AWK) -f $(srcdir)/mkerrcodes.awk >$@
-rm _$@
}}}
--
Ticket URL: <https://dev.openwrt.org/ticket/20465#comment:2>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets