On 28/10/2015 22:03, John Tytgat wrote:
On 10/28/2015 08:26 PM, John Ballance wrote:
There are 2 things I have had to change to build the gccsdk on a gcc5 host
First deals with __FUNCTION__ nolonger being recognised, so a global replace of __FUNCTION__ with __func__ is needed.
Do you still have the exact error message ? __FUNCTION__ and __func__ are both still supported as far as I know. The only case I can think of which can cause an error is with a -Wpedantic -Werror combination as that results in "ISO C does not support '__FUNCTION__' predefined identifier".
specific message no longer available, but what you say above seems familiar. Its come about as my machine got taken up to ubuntu15.10, which uses gcc5 as a default, and mu linux skills were not really up to to installing/using earlier gcc for this.
I have done this with a patch to the gcc4/Makefile. This is a sledgehammer as the gcc build tree appears to use the old format in many places.
Yes, a real sledgehammer indeed as...
[...]+ cd $(SRCORIGDIR)/gcc-trunk && find -regex ".*\.\(c\|C\|h\)" -type f -exec sed -i 's/__FUNCTION__/__func__/g' {} \;
...this recursively goes into your gcc-trunk/.svn database. :-(
yes.. I guess one ought to exclude anything .svn etc. I'd greatly appreciate ' the way ' to do this.. or ideally avoid the need. I gave up trying to patch individual files as they were legion.
John.
_______________________________________________ GCCSDK mailing list gcc@gccsdk.riscos.info Bugzilla: http://www.riscos.info/bugzilla/index.cgi List Info: http://www.riscos.info/mailman/listinfo/gcc Main Page: http://www.riscos.info/index.php/GCCSDK
--
Stop press! Just announced -
Most Trusted Broadband Provider in the 2014 Moneywise Customer Services Awards
Most Trusted Broadband Provider in the 2014 Moneywise Customer Services Awards
For full details of see https://www.utilitywarehouse.co.uk/reviews?exref=095761
Intrigued? Call me
John Ballance C.Eng MIET - jwb@macpcrepair.co.uk - 07976 295923
No comments:
Post a Comment