Monday, 7 April 2014

Re: [gccsdk] gcc Digest, Vol 90, Issue 5






Sent from Samsung tablet



-------- Original message --------
From gcc-request@gccsdk.riscos.info
Date: 06/04/2014 21:00 (GMT+01:00)
To gcc@gccsdk.riscos.info
Subject gcc Digest, Vol 90, Issue 5


Send gcc mailing list submissions to
gcc@gccsdk.riscos.info

To subscribe or unsubscribe via the World Wide Web, visit
http://www.riscos.info/mailman/listinfo/gcc
or, via email, send a message with subject or body 'help' to
gcc-request@gccsdk.riscos.info

You can reach the person managing the list at
gcc-owner@gccsdk.riscos.info

When replying, please edit your Subject line so it is more specific
than "Re: Contents of gcc digest..."


Today's Topics:

   1. Re: Diffutils no longer compiles (John Tytgat)


----------------------------------------------------------------------

Message: 1
Date: Sat, 05 Apr 2014 21:01:28 +0100
From: John Tytgat <John.Tytgat@aaug.net>
To: gcc@gccsdk.riscos.info
Subject: Re: [gccsdk] Diffutils no longer compiles
Message-ID: <8357bff353.Jo@hobbes.bass-software.com>
Content-Type: text/plain; charset=iso-8859-1

In message <DUB120-DS147F359571A432C002CD1DF06C0@phx.gbl>
          "Alan Buckley" <alan_baa@hotmail.com> wrote:

> I???ve just tried compiling the latest diffutils with the GCCSDK
> version 4.1.2 and 4.7 are both the same and it comes up with
> the error:
>
>   CC       gettime.o
> In file included from ./sys/time.h:30,
>                  from gettime.c:24:
> /home/riscos/cross/lib/gcc/arm-unknown-riscos/4.1.2/../../../../arm-unknown-riscos/include/sys/time.h:75: error: conflicting types for 'rpl_gettimeofday'
> ./sys/time.h:401: error: previous declaration of 'rpl_gettimeofday' was here
> make[2]: *** [gettime.o] Error 1
> make[2]: Leaving directory `/home/alanb/build/diffutils/diffutils-3.3/lib'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/home/alanb/build/diffutils/diffutils-3.3/lib'
> make: *** [all-recursive] Error 1
>
> I???ve tried to untangle what???s going on and it seems like <sys/time.h> is
> including the local sys/time.h rather than the system one. But I may
> be wrong?
>
> Can someone have a look at it and see how to fix it please?

It's a bit nasty.  Basically there are a lot of configure tests being
done in order to figure out if the used runtime routines adhere to the
standard(s).  A couple of those tests concern gettimeofday().  The last
one wants to check if gettimeofday() and localtime() share a static
buffer (apparently a MacOS X issue).  This test can only be done by
running a small test program but as we're cross-compiling the result is
'guessing yes' instead.  Which means that a replacement 'rpl_gettimeofday'
code piece is being used instead of the system gettimeofday() routine.
And that code gets compiled with an error on systems where the second
parameter type is non-void.

All very messy.  I've worked around by basically enforcing the last
test to 'no' (UnixLib's gettimeofday() and localtime() do not share
a static buffer) with r6638 so diffutils can now be built.

Will you upload a new diffutils port ?

John.
--
John Tytgat, in his comfy chair at home
John.Tytgat@aaug.net



------------------------------

_______________________________________________
gcc mailing list
gcc@gccsdk.riscos.info
http://www.riscos.info/mailman/listinfo/gcc

End of gcc Digest, Vol 90, Issue 5
**********************************

Re: [gccsdk] Diffutils no longer compiles

John Tytgat wrote on Saturday, April 05, 2014 9:01 PM:

> In message <DUB120-DS147F359571A432C002CD1DF06C0@phx.gbl>
"Alan Buckley" <alan_baa@hotmail.com> wrote:

> > I’ve just tried compiling the latest diffutils with the GCCSDK
> > version 4.1.2 and 4.7 are both the same and it comes up with
> > the error:
> >
> > CC gettime.o
> > In file included from ./sys/time.h:30,
> > from gettime.c:24:
> > /home/riscos/cross/lib/gcc/arm-unknown-riscos/4.1.2/../../../../arm-unknown-riscos/include/sys/time.h:75:
> > error: conflicting types for 'rpl_gettimeofday'
> > ./sys/time.h:401: error: previous declaration of 'rpl_gettimeofday' was
> > here
> > make[2]: *** [gettime.o] Error 1
> > make[2]: Leaving directory
> > `/home/alanb/build/diffutils/diffutils-3.3/lib'
> > make[1]: *** [all] Error 2
> > make[1]: Leaving directory
> > `/home/alanb/build/diffutils/diffutils-3.3/lib'
> > make: *** [all-recursive] Error 1
> >
> > I’ve tried to untangle what’s going on and it seems like
> > <sys/time.h> is
> > including the local sys/time.h rather than the system one. But I may
> > be wrong?
> >
> > Can someone have a look at it and see how to fix it please?

> It's a bit nasty. Basically there are a lot of configure tests being
> done in order to figure out if the used runtime routines adhere to the
> standard(s). A couple of those tests concern gettimeofday(). The last
> one wants to check if gettimeofday() and localtime() share a static
> buffer (apparently a MacOS X issue). This test can only be done by
> running a small test program but as we're cross-compiling the result is
> 'guessing yes' instead. Which means that a replacement 'rpl_gettimeofday'
> code piece is being used instead of the system gettimeofday() routine.
> And that code gets compiled with an error on systems where the second
> parameter type is non-void.

> All very messy. I've worked around by basically enforcing the last
> test to 'no' (UnixLib's gettimeofday() and localtime() do not share
> a static buffer) with r6638 so diffutils can now be built.

Thanks for tracking that down, explaining what was happening
and putting a fix in the autobuilder.

I've also been able to use your fix to get grep to compile as well.

> Will you upload a new diffutils port ?

Yes, I've uploaded the new diffutils (and grep).

FYI - I am working my way through all the packages that
need components and updating them to use them, compiling
them with the latest trunk compiler, and for games removing
the dependency on UnixHome. I only have time for minimal
testing though, but I try to ensure everything at least runs.

Thanks,
Alan


_______________________________________________
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

Re: beautiful wikipedia design

In message <53f4918740bbailey@argonet.co.uk>
Brian <bbailey@argonet.co.uk> wrote:

> In article <a0108cf453.gavin@gavin.wra1th.plus.com>,
> Gavin Wraith <gavin@wra1th.plus.com> wrote:
>> Netsurf #1785 crashes on
>> http://www.fastcodesign.com/3028615/the-beautiful-wikipedia-design-tha
>> t-almost-w
>> as

> It doesn't here.

Actually, it was not going to this site directly that crashed NetSurf
but clicking the link from Ars Technica in Ars Editor's Picks.


--
Gavin Wraith

Re: beautiful wikipedia design

In article <a0108cf453.gavin@gavin.wra1th.plus.com>,
Gavin Wraith <gavin@wra1th.plus.com> wrote:
> Netsurf #1785 crashes on
> http://www.fastcodesign.com/3028615/the-beautiful-wikipedia-design-that-almost-w
> as

It doesn't here.

beautiful wikipedia design

Netsurf #1785 crashes on
http://www.fastcodesign.com/3028615/the-beautiful-wikipedia-design-that-almost-w
as

--
Gavin Wraith

Re: version 1773

> So I deleted Choices:WWW.NetSurf quit and re-ran
> NetSurf and the problem went away.

By Jove, it works for me too. Actually I did not delete
all of Choices:WWW.NetSurf . Instead I created
Choices:WWW.NetSurf.Cache by hand and that seemed to do the trick.
Maybe there is a buglet in
utils/filename.c filename_create_directory 524:
not overriding access permissions?
--
Gavin Wraith

Sunday, 6 April 2014

Re: Version 1773

John Rickman Iyonix wrote

> Gavin Wraith wrote

>> NetSurf #1773 on Raspberry Pi 5.21. Pressing F8 or selecting
>> Page->View Source... works OK on local webpages. Otherwise
>> selecting Page->View Source... yields an error message
>> "NetSurf is running out of memory ..." and pressing F8 yields
>> "An unexpected error occurred: Not found".


> NetSurf #1774 on RasPi 5.21. Pressing F8 or Page->View Source...
> gives error message "NetSurf is running out of memory ..."
> for all webpages (inc local)

Installed new #1785 but experienced the same problem as described
above.

The NetSurf log pointed to a problem with the Scrap files:-

utils/filename.c filename_create_directory 524:
Failed to create directory '<Wimp$ScrapDir>/WWW/NetSurf/Cache/00'
utils/filename.c filename_request 88:
Failed to create a new directory.

I examined the !Scrap files and settings but could not see anything
wrong with them. So I deleted Choices:WWW.NetSurf quit and re-ran
NetSurf and the problem went away.
F8 or menu >view source works once more on my rpi.

John


--