Re: GDC build [was: Re: Sort order of dirEntries]

2012-10-26 Thread Joseph Rushton Wakeling
On 10/26/2012 06:57 PM, H. S. Teoh wrote: Hmm. Are the Ubuntu patches incomplete then? I would've thought the patches in debian/patches should have taken care of this. I've posted a follow-up to the d.gnu list, since that's really where this discussion belongs, but just to say you were probabl

Re: GDC build [was: Re: Sort order of dirEntries]

2012-10-26 Thread H. S. Teoh
On Fri, Oct 26, 2012 at 02:36:18PM +0200, Joseph Rushton Wakeling wrote: > On 10/26/2012 04:51 AM, H. S. Teoh wrote: > >Hmm. Try apt-get install libppl0.11-dev, maybe? That's where that > >file should be. AFAIK apt-get build-dep should've pulled that one in, > >but just in case it didn't, this may

Re: Sort order of dirEntries

2012-10-26 Thread Regan Heath
On Thu, 25 Oct 2012 01:15:06 +0100, Joseph Rushton Wakeling wrote: Hello all, I've just been playing with dirEntries and by the looks of it, it returns these entries in arbitrary order. On windows, assuming it was using FindFirstFile or similar you would get alphabetical order on some

Re: GDC build [was: Re: Sort order of dirEntries]

2012-10-26 Thread Joseph Rushton Wakeling
On 10/26/2012 04:51 AM, H. S. Teoh wrote: Hmm. Try apt-get install libppl0.11-dev, maybe? That's where that file should be. AFAIK apt-get build-dep should've pulled that one in, but just in case it didn't, this may help. It's installed, but the headers in /usr/include/x86_64-linux-gnu/ instead

Re: GDC build [was: Re: Sort order of dirEntries]

2012-10-25 Thread H. S. Teoh
On Fri, Oct 26, 2012 at 02:50:08AM +0200, Joseph Rushton Wakeling wrote: > On 10/26/2012 02:16 AM, H. S. Teoh wrote: > >Another thing I can think of is, you may need to run 'apt-get > >build-dep gcc-4.7.2' to install any -dev packages required by the > >build. That could be what's wrong. Maybe. >

Re: GDC build [was: Re: Sort order of dirEntries]

2012-10-25 Thread Joseph Rushton Wakeling
On 10/26/2012 02:16 AM, H. S. Teoh wrote: Another thing I can think of is, you may need to run 'apt-get build-dep gcc-4.7.2' to install any -dev packages required by the build. That could be what's wrong. Maybe. Oh, good thought. Well, I did that, and went with the following configure statemen

Re: GDC build [was: Re: Sort order of dirEntries]

2012-10-25 Thread H. S. Teoh
On Fri, Oct 26, 2012 at 12:26:02AM +0200, Joseph Rushton Wakeling wrote: > On 10/25/2012 11:22 PM, H. S. Teoh wrote: [...] > Yup. Latest gdc-4.7 sources (which I believe include your patch), > GCC 4.7.2 sources from the Ubuntu 12.10 repositories, tweaked the > debian/rules.patch file as instructed

Re: GDC build [was: Re: Sort order of dirEntries]

2012-10-25 Thread Joseph Rushton Wakeling
On 10/25/2012 11:22 PM, H. S. Teoh wrote: Oh? Did you run the debian/rules patch command in the package source directory? That was supposed to have fixed this issue, and potentially the issue you're seeing below (Debian-based systems break several assumptions that the GCC build system makese, so

Re: GDC build [was: Re: Sort order of dirEntries]

2012-10-25 Thread H. S. Teoh
On Thu, Oct 25, 2012 at 11:08:48PM +0200, Joseph Rushton Wakeling wrote: > On 10/25/2012 10:07 PM, H. S. Teoh wrote: > >No guarantees that it will work, though. The GCC build system is a > >fragile, sensitive animal. > > Indeed ... having followed your instructions (on 64-bit Ubuntu > 12.10) I fou

GDC build [was: Re: Sort order of dirEntries]

2012-10-25 Thread Joseph Rushton Wakeling
On 10/25/2012 10:07 PM, H. S. Teoh wrote: No guarantees that it will work, though. The GCC build system is a fragile, sensitive animal. Indeed ... having followed your instructions (on 64-bit Ubuntu 12.10) I found myself first faced with the "cannot find crti.o" I'd encountered before. I "fi

Re: Sort order of dirEntries

2012-10-25 Thread H. S. Teoh
On Thu, Oct 25, 2012 at 09:06:12PM +0200, Joseph Rushton Wakeling wrote: [...] > That reminds me -- did you tweak the GDC wiki to add the info about > patching the GCC sources? I must get a working gdc-4.7 on my system. Yeah I've updated the wiki (http://gdcproject.org/wiki/Installation). No gua

Re: Sort order of dirEntries

2012-10-25 Thread Joseph Rushton Wakeling
On 10/25/2012 07:17 PM, H. S. Teoh wrote: Oh, really? I couldn't reproduce that effect on my system (Debian Linux 64-bit) with dmd (latest git) and gdc (git gdc-4.7 branch). I always get the same ordering regardless of the compiler I used. No, I think you're right; I'd been filtering dirEntries

Re: Sort order of dirEntries

2012-10-25 Thread H. S. Teoh
On Thu, Oct 25, 2012 at 04:22:43PM +0200, Joseph Rushton Wakeling wrote: > On 10/25/2012 02:30 AM, H. S. Teoh wrote: > >This may not be possible if the OS doesn't keep the entries in sorted > >order (and from what I know, most OS's don't; it's only sorted upon > >display). *Somebody* will have to d

Re: Sort order of dirEntries

2012-10-25 Thread Joseph Rushton Wakeling
On 10/25/2012 02:30 AM, H. S. Teoh wrote: This may not be possible if the OS doesn't keep the entries in sorted order (and from what I know, most OS's don't; it's only sorted upon display). *Somebody* will have to do the sorting, whether it's the OS, or the library or user code. The performance p

Re: Sort order of dirEntries

2012-10-24 Thread H. S. Teoh
On Thu, Oct 25, 2012 at 02:15:06AM +0200, Joseph Rushton Wakeling wrote: > Hello all, > > I've just been playing with dirEntries and by the looks of it, it > returns these entries in arbitrary order. > > Is there a way to get it to sort the entries in alphabetical order, > other than the obvious

Sort order of dirEntries

2012-10-24 Thread Joseph Rushton Wakeling
Hello all, I've just been playing with dirEntries and by the looks of it, it returns these entries in arbitrary order. Is there a way to get it to sort the entries in alphabetical order, other than the obvious one of storing them in an array and sorting that? (This is untenable because I'm