/srv/irclogs.ubuntu.com/2013/02/10/#ubuntu-arm.txt

jdsaI have an arm cpu question: http://www.ti.com/lit/ug/spruf98x/spruf98x.pdf page 2614: OVF_Rate = (0xFFFF FFFF - GPTn.TLDR + 1) * (timer-functional clock period) * PS table16-11 the example for TLDR=0xFFFF FFF0 and PS=1 is equal to 524 μs. however, (0xFFFF FFFF - 0xFFFF FFF0 + 1) * (1/32768) * 1 = 488 μs01:46
jdsacan anyone explain why I calculate the value different than the TRM?01:46
wookeyinfinity: toolchain seems to basically work, but for some reason gpm fails to build.02:21
wookeyhmm same failure for native build. Maybe it just doesn't like 2.1702:21
wookeyDoes it build for you?02:23
wookeyI'm getting http://people.linaro.org/~wookey/buildd/raring-arm64/gpm_1.20.4-6-raring-arm64-20130210-0142.log with a lot of warnings, then missing major()02:24
wookeyaha. OE people have fixed it: http://patches.openembedded.org/patch/42449/02:25
wookeyok, that does the trick02:32
infinityI suspect that's the "wrong" fix, but it works for now.02:34
wookeyis there a list of 2.17 changes that may break things like this?02:42
infinityThis is the only one I've run into so far.  And yeah, actually, that may be the right fix for gpm.02:44
infinityLooks like they were relying on fcntl.h misatkenly including sys/types.h, which it shouldn't.02:44
infinityOf course, you can also get sys/types.h for free with enabling some system extensions.02:44
infinitySince stdlib.h has this:02:45
infinity#if defined __USE_SVID || defined __USE_XOPEN_EXTENDED || defined __USE_BSD02:45
infinity# include <sys/types.h> /* we need int32_t... */02:45
infinitywookey: Anyhow, uploading the fix to Ubuntu now, and submitting to Debian.02:55
wookeyAh OK. I'll not file this patch then02:57
wookeycheers02:57
infinityGuess it's about time for another rebuild test in Ubuntu.02:57
infinityI know of one other case of "I included fcntl.h, but I actually meant sys/types", but I don't know how rampant it is.02:58
wookeydo you recall which package?02:58
infinityalsa-lib02:58
infinity(Which ends up manifesting in a cascaded fashion to many things that build-dep on libasound-dev, since the alsa headers have the broken assumption)02:59
infinityI should probably fix that right now too.02:59
infinityI might consider reverting the fcntl.h thing in glibc for a short while, but this is a case of "upstream is right, sucks to be lazy programmers who need to fix things", so maybe just a rebuild test and some whackamole is the better option.03:00
wookeyI guess so. It's just annoying for me when unrelated breakage comes and breaks everything03:02
infinityOoo, even more evil, alsa-lib itself doesn't FTBFS, cause it doesn't use the broken header, it just exports it.03:03
wookeyI have enough related breakage to be going on with03:03
infinityThat's so much fail.03:03
wookeylovely03:03
infinity(Well, or it uses it, but everything in the alsa sources that includes the broken header also includes sys/types, which is likely)03:04
wookeyMy vision of running through big long list just rebuilding everything has so far been thwarted thoroughly by new libc, new linux headers, new libgcc03:04
wookeyand staging fixes I forgot to upload source for03:05
wookeyBTW you didn;t include my stage2 patch in eglibc. I'll file a bug to stop it getting dropped03:06
wookey1-liner03:06
infinityI didn't include it because I'm looking at rewriting the whole stage mess.03:11
infinityYou'd note that your stage2 patch introduces the *only* case of stage2 anywhere in the source.03:11
infinityWhich seems a bit odd.03:11
infinityAnd, of course, the cross-base packages have a whole different set of staged build patches.03:12
infinitySo, yeah.03:12
infinityI want to reconcile it all, tear it all out, put it back in with something less confusing, and make sure it works for everyone's (apparently different) bootstrap methods.03:12
infinityThe glibc/gcc interdependence makes them a bit weirder to really sort out how to codify this in a way that makes sense without a README anyway.03:14
infinityGiven that a stage1 (or a stage0, really) of glibc doesn't actually produce a library. :P03:14
infinityJust a useless stub.03:14
infinityI'm also considering pushing the interdependant stageN stuff to glibc and gcc upstream.03:16
infinitySo you can just (cd gcc && ./configure stage0 && make) && (cd glibc && ./configure stage0 && make) and then repeat for stage1, and have a functional pair.03:17
infinity(Any attempts to do otherwise is a useless waste of time, since they need stubs from each other to build)03:17
wookeyOK fair enough. I agree it needs a good sort out.03:21
wookeyThe staging stuff in there isn;t actually broken. the tooclahin-cross-base packge and -source packages thing is a horrible hack that should die though03:21
wookeyOr maybe it can hang around as a convenince wrapper03:22
infinityWell, some sort of wrapper will always be needed for people who want an automated way to bootstrap a toolchain from scratch.03:23
infinityBut once you have a toolchain and you're crossing/rebuilding (like you're doing), yeah, that can be done entirely in the package, and I agree glibc's needs a tiny bit of fixing.03:23
infinityBut, like I said, the fixing looks more like a rewrite, cause half the code is unused, and other half if only right by accident. :P03:23
wookeyIt should work as in http://wiki.debian.org/MultiarchCrossToolchains03:23
wookeyWe need to fix the DEB_TARGET_ARCH=foo bit for consistency too. I've filed a few bugs about that03:24
wookeyand done most of the work of adding it to dpkg-buildpackage03:24
wookeyso you can do dpkg-buildpackage --target-arch foo03:25
wookey(sadly it has two other sorts of 'target' options already, but that's life).03:25
infinityI think I questioned before how much this really needs to be in dpkg, but I don't much care either.03:26
wookeyThis reduced the process cross-toolchain base does to 7 dpkg-buildpackage calls03:26
infinityI mean, once you have a toolchain, everything after that is just build/host crossing.03:27
infinitySpecial-casing just for the target toolchain build seems like a lot of engineering.03:27
wookeyIt's no erngineering. everything is already there in the sources03:27
infinityAlso, there's the part where this assumes buildds will/should be multiarch enabled in the distro, and I'm still unconvinced that's a good idea.03:27
wookeyIt just has different names in differnt packages and dpkg-builpackage ismissing an option for it03:28
wookeysbuild is multiarch enabled already, and buildds use sbuild, (don't they?) So it's already done in engineering terms03:31
infinityNo, I mean, I'm not convinced buildds should be *allowed* to have/use cross-arch build-deps in the official archive.03:31
infinityI'm perfectly happy with sbuild doing this for out-of-archive bootstrap purposes, and it's quite handy (and I've even submitted patches to make it less crap).03:32
wookeyYou have to for cross compilers (unless we want to carry on with the libc-arch-cross bodgery03:32
wookey(and the libc transition showed why that's a bad plan)03:32
infinityThat's not technically true.03:32
infinityWe could do the n-stage bootstrap and then just throw away the results and depend on libc6-dev:otherarch.03:33
wookeyI had stuff not building because the toolchain carefully used the 2.16 lib it had in libc-arm64-cross instead of the 2.17 installed as libc:arm6403:33
wookeyOK, true03:33
infinityWhich I might figure out how to do a bit later.03:34
infinitySince that's still an improvement on the road to what you want.03:34
wookeynow we have multiarch, why not use it?03:34
infinity(In that the cross toolchain would now only look at M-A paths, and none of the cross madness)03:34
wookeyYes that would indeed be a step in the right direction03:34
infinityI guess I just see "bootstrapping a toolchain" as a rather different use-case than most other M-A stuff.03:35
infinityAnd not something people other than the toolchain maintainers should have to deal with, really.03:35
infinityIt's not like "normal users" (or even normal developers) build native GCC all the time.03:35
wookeyIt is, but now we have the tech I don;t see why we shouldn't use it03:35
wookeyNo, but the native toolchain build is expected to work03:36
wookeyseems to me the cross one should too03:36
infinityBecause allowing foreign arch build-deps opens a lot of other cans of worms we need to think about very carefully.03:36
wookeyYes, that's fair enough.03:36
infinityI'd so far been very careful about explicitly turning OFF foreign arches on our buildds. :P03:36
wookeyWe can afford to be strict about what is accepted03:36
infinity(briefly, the amd64 chroot had i386 enabled too, and this did actually cause curious issues when there was arch skew in the archive)03:37
wookeybut for cross-toolchians foreign-arch deps are definitely reasonable, I would say 'correct'.03:37
wookeyskew is a problem...03:37
infinityDeps, yes.  But we can skip the build-deps part with my above deal.03:38
wookeybutmostly for new arches03:38
infinityAnyhow, I need to run.  Movie date calls.03:38
wookeyOK. cheers for help03:38
infinityNo, skew is a problem on every single upload of.. Anything.03:38
wookeybedtime here03:38
infinityIf you have a foreign arch enabled and one of your build-deps builds on the foreign arch before the native one, and that satisfies (technically) the MA build-dep rules, you no longer build in a self-contained arch, you pull in the foreign one.03:39
infinityAnd that's all meant to "work" anyway, but it also means our arches aren't guaranteed self-contained anymore.03:39
infinityOr self-hosting.03:39
=== zz_Jacky is now known as jackyalcine
=== jackyalcine is now known as Jacky_
=== Jacky_ is now known as zz_Jacky
=== zz_Jacky is now known as zz_zz_Jacky
=== zz_zz_Jacky is now known as jackyalcine
=== jackyalcine is now known as Jacky_
=== Jacky_ is now known as zz_zz_Jacky
=== hatake is now known as blackjack
=== zz_zz_Jacky is now known as Jacky_
ogra_hrw, http://paste.ubuntu.com/1632851/ chromebook ambient light sensor control12:36
ogra_(eats a bit of battery due to polling though)12:36
=== hatake is now known as blackjack
=== yofel_ is now known as yofel
=== Quintasan_ is now known as Quintasan
=== doko_ is now known as doko
=== Jacky_ is now known as zz_Jacky_
=== zz_Jacky_ is now known as jackyalcine
=== jackyalcine is now known as Jacky_
=== Jacky_ is now known as jackyalcine
mosasaurwhere is build-arm-chroot?14:40
mosasaurI mean the script14:40
=== zz_chihchun is now known as chihchun
=== chihchun is now known as zz_chihchun
=== rsalveti_ is now known as rsalveti
mosasaurah found it: http://packages.ubuntu.com/lucid/i386/qemu-kvm-extras-static/filelist15:26
=== jackyalcine is now known as zz_jackyalcine
=== zz_jackyalcine is now known as jackyalcine
=== jackyalcine is now known as jackyalcine_
ogra_oh, nice, flash is fully working on my chromebook as long as i dont use any compositor17:07
tassadar_like adobe flash?17:09
tassadar_or you mean the one built-in chrome?17:09
ogra_no, i mean the one that i copied from the chromeos partition to ubuntu17:16
ogra_running eith the ubuntu vhromium browser17:16
ogra_*chromum17:16
tassadar_hm, nice)17:16
ogra_bah17:16
=== jackyalcine_ is now known as zz_jackyalcine_
=== zz_jackyalcine_ is now known as jackyalcine
=== jackyalcine is now known as jackyalcine_
=== jackyalcine_ is now known as zz_jackyalcine_
=== zz_jackyalcine_ is now known as jackyalcine
hrwogra_: run chromium browser with "--with-gl=egl" (or s/with/use/) ;)18:46
ogra_well, better add it to the chromium defaults proper :) but yeah18:47
ogra_see /etc/chromium-browser/default18:47
=== jackyalcine is now known as zz_jackyalcine
VicTrying to cross-compile an arm kernel on an x86_64 ubuntu 12.10, but get this error: dpkg-architecture: warning: specified GNU system type arm-linux-gnueabihf does not match gcc system type x86_64-linux-gnu19:19
VicCan someone help?19:19
hrwVic: ignore warning21:16
VicTrying to cross-compile an arm kernel on an x86_64 ubuntu 12.10, but get this error: dpkg-architecture: warning: specified GNU system type arm-linux-gnueabihf does not match gcc system type x86_64-linux-gnu22:09
fly[ac100]http://dpaste.org/g1Z5T/23:22
fly[ac100]how could it be?23:22
infinityWeren't those libraries supposed to get proper SO versioning at some point?23:39
mdztrying to build a package on armhf, and clang seems to be broken: it tries to execute a command "" (empty string) as in http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=65948123:48
ubot2Debian bug 659481 in llvm-3.0 "unable to execute command: No such file or directory" [Grave,Open]23:48
mdzanyone seen this?23:48
mdz(precise)23:48
mdztrying to compile a hello world has the same problem23:50
mdzaha, mounting /proc fixes it23:50
mdzin the chroot23:51

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