Re: alignment errors on armel: what to do?

2009-09-29 Thread Martin Guy
On 9/28/09, Daniel Kahn Gillmor wrote: > i just turned on warnings in an NSLU2 running squeeze (a buildd for me) > and note alignment warnings from several processes: > > pdftex (reproducable with "aptitude reinstall texlive-base-bin") > > aptitude (also reproducable with "aptitude reinstall

Re: alignment errors on armel: what to do?

2009-09-29 Thread Daniel Kahn Gillmor
On 09/29/2009 04:16 PM, Paul Brook wrote: >> char f[4]; >> ... >> any idea why gcc would lay out the memory differently for armel than for >> i386? i haven't tried it on the old arm architecture. > > The alignment of "f" is entirely arbitrary. > > It could be effected by any number of things, in

Re: alignment errors on armel: what to do?

2009-09-29 Thread Martin Guy
On 9/29/09, Daniel Kahn Gillmor wrote: > char f[4]; > > void test(char* x, short z) { > short* y = (short*)x; > *y=z; > } > > int main(int argc, const char* argv[]) { > test(f,argc); > return 0; > } > > any idea why gcc would lay out the memory differently for armel than for > i386?

Re: alignment errors on armel: what to do?

2009-09-29 Thread Paul Brook
> char f[4]; > ... > any idea why gcc would lay out the memory differently for armel than for > i386? i haven't tried it on the old arm architecture. The alignment of "f" is entirely arbitrary. It could be effected by any number of things, including but not limited to where other variables happ

Re: alignment errors on armel: what to do?

2009-09-29 Thread Daniel Kahn Gillmor
On 09/29/2009 01:27 PM, Martin Guy wrote: > On 9/28/09, Daniel Kahn Gillmor wrote: >> However, it seems like we should still be filing bugs against packages >> which trigger alignment errors, no? > Absolutely. i just filed a bug against libc6 (so this might be implicated in a lot of the bugs we

Re: alignment errors on armel: what to do?

2009-09-29 Thread Martin Guy
On 9/28/09, Daniel Kahn Gillmor wrote: > after dealing with #548815, i'm a little bit concerned about the > behavior of the kernel in the face of alignment errors on armel. > > i've read http://bugs.debian.org/397616 and followed the references in > there, so i think i understand why the defau

Re: Bug#546823: __thread usage in libcap-ng0 broken on armel

2009-09-29 Thread Martin Guy
On 9/28/09, Pierre Chifflier wrote: > On Sat, Sep 26, 2009 at 04:28:36PM +0100, Simon McVittie wrote: > > ARM porters: can you shed any light on this? > As I have no armel platform here (and no knowledge specific to the > architecture), some help would be appreciated. There is a big fast arme