This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mirabilos
Recipients Ramchandra Apte, alanh, christian.heimes, ezio.melotti, jcea, mirabilos, pitrou, serhiy.storchaka, skrah, trent
Date 2013-02-19.21:45:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1361310335.15.0.349002542146.issue17237@psf.upfronthosting.co.za>
In-reply-to
Content
@skrah: “I don't think we should support this platform officially.”

Please don’t break what works. We have almost complete (about three quarters of roughly 10'000 source packages) Debian unstable working on m68k, with several versions of Python in use. Thanks!

@pitrou: “x86 can align on a byte boundary and doesn't trigger the assert.”

That’s because most compilers on i386 do “natural alignment” – in fact, most compilers on most platforms do. “natural alignment” means 4-byte quantities get aligned on 4-byte boundaries, 8-byte quantities on 8-byte boundaries, etc.

On m68k, the lowest alignment for almost all larger-than-a-byte data types is 2 byte, even though that one is strict. This means that, for example, an int is often only 2-byte aligned.

@alanh: “GCC has the -malign-int but mentions this isn't in best interest of m68k ABI compatibility if it's used.”

Indeed, because that would break the C and kernel/syscall ABI.

@all: what _precisely_ is the assertion needed to check for?

@pitrou: “since it is there to warn about misalignment on platforms which *are* alignment-sensitive”

Well, m68k is. Just the numbers differ. (It also has int, long and pointer at 32 bit.)

We had a similar issue in the Linux kernel, where it used the lower two bits of an address for flags (urgh…) which could only be solved by using GCC’s __attribute__((__aligned__(4))) on the quantities in question, but that may or may not be the required case here, which is why I’m asking.

I can test any trees on my VMs, but that takes a day or two, of course, at 50-200 BogoMIPS. You can do that yourself by running a VM as well, the Debian Wiki has instructions, if anyone is interested.

Otherwise, it’ll just get tested as soon as it hits Debian (unstable, usually we don’t build experimental packages except on explicit request by the packagers, due to lack of time / horsepower)…

Thanks doko for linking this issue!
History
Date User Action Args
2013-02-19 21:45:35mirabilossetrecipients: + mirabilos, jcea, pitrou, christian.heimes, trent, ezio.melotti, alanh, skrah, Ramchandra Apte, serhiy.storchaka
2013-02-19 21:45:35mirabilossetmessageid: <1361310335.15.0.349002542146.issue17237@psf.upfronthosting.co.za>
2013-02-19 21:45:35mirabiloslinkissue17237 messages
2013-02-19 21:45:34mirabiloscreate