/srv/irclogs.ubuntu.com/2009/12/03/#ubuntu-arm.txt

* cwillu_at_work pokes at rcn-ee 00:23
rcn-eehow's it going cwillu_at_work00:24
cwillu_at_workbuilding my debs in qemu as we speak becuase _somebody_ didn't build it for me :p00:25
ojnqemu? painful.00:25
rcn-eewell that's the proper way, no cross compiling allowed! ;)00:25
cwillu_at_workwhat's the slow down in comparison to doing it native?00:26
cwillu_at_workI was figuring that 2gb of ram + quad cores at 2.6ghz is faster at playing arm than an arm is00:26
ojnpretty bad last time I compared (native freescale vs qemu on nehalem). Don't remember exactly how many times slower qemu was though.00:26
rcn-eeman it's been a long time, but i think it took like 6 hours on my old x2 4200 to build 2.6.27 where the beagle did it in like 3... haven't used qemu since.. ;)00:27
cwillu_at_workmaybe I'll race them next time00:27
ojnbeen toying some with scratchbox2 here. it's not entirely pain free either (especially when you realize you need another package installed), but performance is reasonable00:27
rcn-eecwillu_at_work, qemu is also not very good with multicores, so maybe two-three qemu sessions with distcc to share the compile.. ;)00:28
* cwillu_at_work nearly resists the urge to say "meh, I get paid by the hour" :p00:31
ojnif you're going to distcc then you might as well distcc out to a native cross compiler00:33
ojnthat'd be better/faster/easier00:33
cwillu_at_workthat actually sounds sane00:33
ojnwhat would be nice is if there was a shipped version of the cross toolchain for x86{,_64} that was built from the same sources as the native arm toolchain, just to be bug compatible with native builds.00:36
ojnany plans on providing that, canonicalites?00:37
rcn-eei just want to get a setup like a guy on the beagleboard group email is building, a 13U server with 44+ beagles...00:37
ojnrcn-ee: why would anyone want that?00:37
rcn-eetake on the top500? ;)  not sure, but he's doing it..00:38
rcn-eeEric Fung here: http://groups.google.com/group/beagleboard/browse_thread/thread/f5f14f4ec66ab45d/df03479bf1ca0861?lnk=gst&q=44#df03479bf1ca086100:39
ojnHaha. the beagles aren't exactly fast. sounds like a good way to burn 5000 dollars to me.00:39
rcn-eesince they are backordered he will be getting the new 720Mhz ones..  But otherwise it's hard to find cheap cortex-a8 boards...00:41
ojnoh, he uses them for industrial automation? still, sounds odd not to do something more monolithic.00:41
cwillu_at_workrcn-ee, is that why we can't buy beagleboards these days? :p00:41
ojnrcn-ee: I prefer my cortex a8's to be able to cache clean data in l2. 3430/3530 can't. pretty amazing actually.00:41
rcn-eethe dvi/video chip is very hard to get right now.. So the boards can't be finished for sale...00:42
* ojn heads to dinner.00:42
rcn-eeojn, yeah, the cortex-a8 in the beagle has a couple bad bugs, my chroot is puking on every lucid update right now... :(00:43
ojnrcn-ee: it's got the thumb2 bug but the ubuntu toolchain should have the workaround for it. i don't know if it's enabled though?00:43
ojns/the thumb2 bug/the thumb2 branch bug/00:43
ojnmight be fixed in the new ones, not sure.00:44
rcn-eeyeah, i think it's that one.. although my quick gcc compare didn't show too much damage.. thumb: http://gcc.gnu.org/ml/gcc-testresults/2009-11/msg02447.html and nonthumb: http://gcc.gnu.org/ml/gcc-testresults/2009-11/msg02538.html00:47
=== asac_ is now known as asac
=== bjf is now known as bjf-afk
* zooko reads https://wiki.ubuntu.com/Mobile/ARMv7AndThumb04:23
zookoIs it publicly known who are the hardware makers working with Canonical on ARM devices?04:30
ojnMarvell and Freescale make the boards that are officially supported, if that's what you mean?04:35
zookoI meant the story that Canonical is working with makers of netbooks./04:36
zookoI suppose which makers is secret.04:36
zookoOr maybe I'm supposed to call them smartbooks if they are ARM based.04:37
zookoBy the way, I'm also really interested in ARM-based servers.  Hard to find.04:37
ojnOh. Yeah, I don't think they've talked publically about that04:37
zookohttp://perspectives.mvdirona.com/2009/11/30/2010TheYearOfMicroSliceServers.aspx04:37
ojnthere aren't many arm based servers, no. smooth-stone are supposedly working on something but I'd expect silicon product to be years away from mass production04:38
ografta, it means that the default is supposed to change, but that gcc version doesnt have the change yet (it's supposed to happen with the next upload of gcc)10:12
ftaogra, ok, thanks. that sentence is just confusing then.10:45
ograits a wiki, feel free to fix ;)10:47
ogradmart, you rock !11:22
* ogra does a testbuild of glib11:22
dmart-er- not yet, I've just been looking at the compiler output... __sync_synchronize() compiles away to nothing :(11:22
dmartWe're looking into this, but I might suggest using a slightly different patch using __sync_lock_test_and_set() and __sync_lock_release().  This will be cleaner example for people to copy, and avoids the explicit __sync_synchronize() call.11:24
dmartShall I just supply another patch on top of the old one?  The code will build as-is and work on Cortex-A8, so we have no immediate problem.11:25
ogradmart, hmm, i have some prob with your patch ...12:33
ograit succeeded with offset, i triggered a build but failed ... looking closer i see that:12:33
ograpatching file glib/gatomic.c12:33
ograpatching file configure.in12:33
ograHunk #1 succeeded at 2491 (offset 11 lines).12:33
ograroot@babbage2:/glib2.0-2.23.0# wc -l  glib/gatomic.c12:33
ogra1089 glib/gatomic.c12:33
ogradid you patch the actual latest lucid upload ?12:34
ograor a former source12:34
dmartIt was against 2.22.2.  Do source packages not appear in the archive until a successful binary build has been uploaded?12:35
ograthey do, did you apt-get update before apt-get source  ?12:36
ogra2.23.0 here12:36
dmartHmmm, possibly not.  I'll try again12:36
dmartIs it more conveinent to provide a patch which applies on top of the patch stack in debian/patches, or against the original files (which is what I gave you before)?12:37
ograboth is fine12:38
dmartOK, now 2.23.0-1ubuntu112:38
dmartIs the build log for your failure visible on launchpad?12:38
ogrado as you like it most, someone needs to touch the package anyway for sponsoring the upload12:38
dmartOK... I'll attach a new patch to the bug when I've sorted it out.12:39
ogra(its indeed less work if the patch is on top of the stack but doesnt make a big difference)12:39
asacogra: whats the prob?12:41
asacconfigure.in problem?12:42
ograasac, the build fails with the same error due to the patch being for the karmic version12:42
asacwell.12:42
asacbut that cant be a big problem12:42
asacits just confiugre.in, right?12:42
ograyes12:42
asacogra: it applies ... sure you ran autoconf?12:43
ogradoesnt debian/rules do that ?12:43
ograhmm, seems not12:44
asacno12:44
asacgnome packages dont do that12:44
asacyou have to do a patch12:44
ograi thought they usually use some autoreconf.mk thingie12:45
loolNo12:45
asacno12:45
ograok12:45
asacthats dirty anyway12:45
ograi know but i thought i saw that before in gnome packages12:46
asacogra: just remove the if stuff etc al12:46
asacogra: those are not real gnome packages then ;)12:46
asacanyway12:46
asachttp://people.canonical.com/~asac/tmp/70_glib2.0-gatomic-arm.patch12:47
asacogra:12:47
asacuse that12:47
asacand ignore the confiugre stuff12:47
ograoki12:48
asachas a hacked "define ..." obviously not for upstream, but beter than doing the full configure thing in package12:48
ograyeah12:48
asacdmart: so no need to update it to lucid version from what i see. should be ok as it is for now ;)12:49
dmart^ I had to rerun autoconf, but I didn't publish a patch for configure itself, because it came out half a MB smaller than before, which I found a bit scary12:51
dmartDo you need an extra patch from me?12:52
dmartogra, asac, do you need an extra patch, or are you OK for now?12:52
asacno all fine. thanks a lot12:52
asaconce we know we let you know ;)12:52
ogragot past gatomic.c/o12:53
asacvery good ;)12:53
ograso seems all fine12:53
ograi'll let it finish12:53
dmartIs it usual to upstream things like this, and what would the timescale be?12:53
ograheh, depends on the upstream i guess12:54
asacdmart: real quick if there are no questions etc.12:54
asac(for glib)12:54
dmartYeah, of course12:54
ograyeah, glib should be fast12:54
dmartNote that we need to patch gcc to work round an issue with the implementation of the atomics; then glib2.0 should be rebuilt.  But the problems will only emerge on multi-core, so this isn't so urgent.12:55
ograright, our main focus atm is to get all packages building for alpha112:56
dmartagreed12:56
ograif we have packages with temp workarounds we need to touch later again, we should collect them somewhere though12:57
dmartI'll upload another patch to tidy up the implementation a bit more in gatomic.  Since this will serve as an example for other packages, I'd like to get this one as clear as possible.12:57
dmartorga, is the ARM/Thumb2 page the right place for that?12:58
ograyeah, probably a package section at the bottom would make sense12:59
asacwe should keep a bug open so we remember to rebuild glib etc. after the intrinsics are fixed13:26
asacdmart: ogra: ^13:26
dmartasac, ogra: I'm raising a bug on GCC to track this; we can reference it from the existing glib2.0 bug?13:27
asacdmart: unfortuantely we can only dupe stuff (which isnt right here)13:28
asacdmart: i would suggest to add a new bug to GCC13:28
asacand then add the packages we identified as targets13:28
asacso after filing the gcc bug, click on "also affects distributioN" ... and select glib2.0 there for now13:28
asacthen drop a comment that glib is affected blah blah blah and reference the other bug in the comment for background info13:29
dmartogra, asac: Raised: https://bugs.launchpad.net/ubuntu/+source/glib2.0/+bug/49187213:33
ubot4Launchpad bug 491872 in glib2.0 "[armel] Atomic intrinsics are not implemented correctly" [Undecided,New]13:33
dmartI've added a note to https://bugs.launchpad.net/ubuntu/+source/glib2.0/+bug/49134213:35
ubot4Launchpad bug 491342 in glib2.0 "assembly fails to build on armel/lucid " [Critical,Triaged]13:35
ojnogra: did you see my question from last night? I.e. are there any plans on providing an x86-hosted arm crosstoolchain built with the same options/from the same sources as a deb?15:18
ojn(main use for me would be to use it for distcc:ing across to a faster machine)15:18
=== bjf-afk is now known as bjf
fta2asac, did you retry chromium?16:31
armin76asac: whats the status on chromium? did it build?16:54
fta2it should, but i don't have access to any arm builder16:58
asaccopying now17:14
asacjust lucid though17:15
asaccopyied17:15
ftaasac, sure, no need to even try karmic unless i enforce armv718:33
ogra(karmic is v6 and no thumb)18:34
ftaogra, yep, what i meant is upstream only supports v7, at least until someone ports it to something else18:35
ograah, well ...18:36
ftathumb doesn't seem to be required though18:36
ograi think we'Re the only distro building with thumb2 atm18:36
ogranot even angstrom (beagleboard default distro and highly optimized) does use thumb18:36
ogragiven that ubuntu runs on beagle with an externally maintained kernel it will be very intresting if lucid runs faster than angstrom on the beagle18:38
ograroumors say up to 30% size reduction and up to 30% speedup is possible through thumb218:39
asacfta: the problem for non-armv7 was broken assembly?18:40
loolmaemo used to have thumb1 support, not sure whether they are using thum2 now20:30
=== Q_Continuum_ is now known as Q_Continuum
ftaasac, apparently, it's supposed to work even on armv5. but as they don't have an arm buildbot yet, it probably diverged a bit and needs fixes20:54
ftaasac, when built for android, v8 build system adds a bunch of flags, incl -march=armv5te & -mthumb-interwork22:01

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!