/srv/irclogs.ubuntu.com/2005/12/07/#ubuntu-toolchain.txt

lamont__cp -p build-min/bash debian/bash-minimal/bin/bash-minimal12:14
lamont__make: : Command not found12:14
lamont__make: *** [binary-minimal]  Error 12712:14
lamont__doko: ^^^12:14
=== doko_ [n=doko@dslb-084-059-077-153.pools.arcor-ip.net] has joined #ubuntu-toolchain
lamont__hrm.. maybe doko_ needs this too..12:14
lamont__cp -p build-min/bash debian/bash-minimal/bin/bash-minimal12:14
lamont__make: : Command not found12:14
lamont__make: *** [binary-minimal]  Error 12712:14
doko_lamont, ?12:15
doko_lamont__, ?12:15
lamont__that's bash12:16
lamont__although I must admit that it's strange12:17
doko_yes, i386/powerpc/amd64 did succeed ...12:17
lamont__ok12:18
=== jbailey [n=jbailey@modemcable139.249-203-24.mc.videotron.ca] has joined #ubuntu-toolchain
dokoinfinity: please requeue gcc-4.0 on i38607:04
infinityDone.07:06
dokohmm, maybe the same for amd6407:07
infinity(Did that too at the same time)07:07
=== chmj [n=chmj@dsl-146-190-110.telkomadsl.co.za] has joined #ubuntu-toolchain
=== fabbione [n=fabbione@port49.ds1-van.adsl.cybercity.dk] has joined #ubuntu-toolchain
fabbionedoko: ping?01:01
dokofabbione: pong01:03
fabbionedoko: do you happen to know if binutils is foobar on ppc?01:04
fabbioneif not, do you have a ppc handy to do a test for me?01:04
dokoa) no, b) sorry, no.01:05
fabbioneok01:05
fabbionelet me explain the problem01:05
fabbioneperhaps we can reproduce it on davis01:05
fabbionei compile libfoo with bar support01:06
fabbionethat gets linked properly01:06
fabbioneand i can see from objdump -x |grep NEEDED01:06
fabbionethat bar requires libfoo01:06
fabbionebar pkg also ships a libbar01:07
fabbionethat's still linked properly01:07
fabbionenow01:07
fabbionethere is libbaz that B-D on libbar-dev01:07
fabbionemeh01:07
fabbioneno sorry01:07
fabbionewrong example01:07
fabbionedoko: wipe it01:08
fabbionelet's start from scratch01:08
fabbionewith real names01:08
fabbionei have devmapper that B-D on libselinux1-dev01:08
fabbionedevmapper produces a libdevmapper that's linked with libselinux01:08
fabbione(verified via objdump01:08
fabbioneand up till here everything is nice and dandy01:09
fabbionelater on comes to play lvm201:09
fabbionethat B-D on libdevmapper01:09
fabbionelvm2 has the option to build with or without libselinux01:09
fabbionethe first case is done for the .deb01:09
fabbionethe latter for the .udeb01:09
fabbionenow01:09
fabbionethe interesting part is that lvm2 pulls in selinux only to do a call to:01:10
fabbione#ifdef HAVE_SELINUX01:10
fabbione        if (!set_selinux_context(lv_path, S_IFLNK)) {01:10
fabbione                stack;01:10
fabbione                return 0;01:10
fabbione        }01:10
fabbione#endif01:10
fabbioneso if we agree.. lvm2 needs libselinux for set_selinux_context symbol01:10
fabbioneam i right?01:10
fabbionenow01:10
fabbionethe build is done without selinux01:10
fabbionegrep set_selinux_context lvm01:11
fabbione | wc -l = 001:11
fabbioneso the binary doesn't have any reference to that symbol01:11
fabbionebut01:11
fabbioneobjdump -x lvm | grep NEEDED01:11
fabbione  NEEDED      libdevmapper.so.1.0101:11
fabbione  NEEDED      libdl.so.201:11
fabbione  NEEDED      libc.so.601:11
fabbione  NEEDED      libselinux.so.101:11
fabbioneDA DA DA01:11
dokoand it looks ok on other architectures?01:11
fabbionelibselinux is there01:11
fabbioneyes.. it looks ok on other arches and in Debian01:11
fabbionethe problem seems to be Ubuntu specific01:12
fabbionei did check the build logs and stuff01:12
fabbionei am sure -DHAVE_SELINUX is not defined01:12
dokojust checked binutils, no powerpc patches in ubuntu01:13
fabbionewhat else could it be that causes such a thing?01:13
fabbioneit could also be that Debian has a different binutils?01:14
dokohow is lvm linked?01:14
fabbionepowerpc-linux-gnu-gcc -o lvm dumpconfig.o formats.o lvchange.o lvconvert.o lvcreate.o lvdisplay.o lvextend.o lvmchange.o lvmcmdline.o lvmdiskscan.o lvreduce.o lvremove.o lvrename.o lvresize.o lvscan.o polldaemon.o pvchange.o pvcreate.o pvdisplay.o pvmove.o pvremove.o pvscan.o reporter.o segtypes.o toollib.o vgcfgbackup.o vgcfgrestore.o vgchange.o vgck.o vgcreate.o vgconvert.o vgdisplay.o vgexport.o vgextend.o vgimport.o vgm01:14
fabbioneerge.o vgmknodes.o vgreduce.o vgremove.o vgrename.o vgscan.o vgsplit.o lvm.o -Wl,--export-dynamic -L../lib -L/lib -llvm -ldevmapper -ldl  -rdynamic01:14
fabbionethis is the call to link lvm01:14
dokois the symbol in liblvm?01:15
fabbionegrep set_selinux_context liblvm.a01:15
fabbionefabbione@daltanius:/usr/src/lvm2-2.01.14/debian/build/build-udeb/lib$ 01:15
fabbionenope01:15
fabbioneit's used there if -DHAVE_SELINUX01:15
fabbionebrb01:17
dokoany of the .la files reference the library?01:17
fabbionehmm01:17
fabbionefabbione@daltanius:/usr/src/lvm2-2.01.14/debian/build/build-udeb$ find . -name "*.la"01:17
fabbionefabbione@daltanius:/usr/src/lvm2-2.01.14/debian/build/build-udeb$ 01:17
fabbionelibdevmapper matches.. but that's ok on the other arches01:18
fabbioneor better01:18
fabbioneit matches everywhere01:18
fabbionebut libselinux is not pulled on i386 or amd6401:19
fabbionei am getting workraved01:19
fabbionebrb01:19
fabbionere01:24
fabbioneany idea?01:24
dokono, currently not.01:26
fabbioneok01:29
fabbionewe will have to ask jbailey to recheck01:29
fabbioneor actuall01:29
fabbionethere is a test i could do01:29
fabbionetrying to use a libdevmapper.a that doesn't use libselinux01:30
fabbioneand see if it actually comes from there01:31
fabbioneyes, it definetely comes from there01:32
fabbioneif i use a libdevmapper without selinux, lvm doesn't NEEDED libselinux01:33
fabbionethis is definetely something to do with binutils01:33
jbaileyfabbione: Sorry, what am I checking?01:56
jbaileyI'm just catching up on the backlog.01:56
fabbionejbailey: read the backlog.. if there is something not clear i will explain again.. i need to take a break01:58
fabbionere02:17
jbaileyfabbione: Without having looked it up, my best guess is that it's not a binutils issue so much as somethings reducing the symbols not being used or something.02:18
jbaileyI'll take a look a bit later, I'm still going through email.02:18
fabbionejbailey: ok. is everything i wrote understandable?02:19
jbaileySort of.02:19
fabbionethe pkgs we have in the archive now are all libselinux disabled02:19
fabbioneso you will need to renable them02:19
jbaileyAFAICT, you think seliniux should be in the NEEDED set and it isn'02:19
jbaileyt on PPC.02:19
jbailey?02:19
fabbionethe other way around02:19
fabbioneit's NEEDED and it shouldn't02:19
fabbionebut only for the build that explicitly define --disable-selinux02:19
jbaileyAh, okay.02:20
fabbionenote: build-udeb02:20
jbaileyCan I reproduce this on ppc?02:20
jbaileyOr sparc?02:20
jbaileyThose are my two easily-acceisble dapper machines atm.02:20
fabbioneppc02:20
fabbionei386 and amd64 looks ok02:20
fabbioneit seems to be a specific ppc problem02:20
jbaileyLovely.02:21
jbaileyAlways nice to use the faster machine for debugging.02:21
jbailey=)02:21
fabbioneehehe02:21
jbaileyAnd that's lvm2, right?02:21
fabbioneyes02:21
fabbioneyou need to start from devmapper02:21
fabbioneenable selinux on devmapper02:22
jbaileyHmm, silly question.02:22
fabbioneeheh ok :)02:22
jbaileyLemme get this straight again (sorry, I'm still sleepy.. *g*)02:22
jbaileyI see devmapper has --disable-selinux.02:22
jbaileyAnd it's still pulling in libselinux anyway?02:22
fabbionefabbione let's start from scratch start from here02:22
fabbionefabbione let's start from scratch <- start from here02:23
jbaileyOr perhaps I should grab breakfast. =)02:23
fabbioneexactly02:23
fabbionewake up first :)02:23
jbaileya'ight.02:24
jbaileyfabbione: 'kay.  I think I'm awake now.02:59
fabbioneok03:00
jbaileySo, the ultimate goal here is to enable selinux, or not?03:04
jbaileydoko was saying to me that enabling selinux is a dapper+1 goal.03:04
dokoehh, no, ssp first ...03:08
dokojbailey: great that pitti isn't here ...03:09
fabbionejbailey: ok03:10
fabbionesimple nice and dandy03:10
fabbioneselinux support should be enabled in the .debs03:10
fabbionebut NOT in the udebs03:10
fabbioneon ppc due to something fucking up03:10
fabbionelvm gets linked with libselinux (the udeb build)03:10
fabbioneit doesn't happen on other arches03:11
fabbionethe build logs are the same03:11
fabbionethere is no HAVE_SELINUX defined03:11
fabbionenothing in the udeb build uses symbols from libdelinux03:11
fabbionelibselinux03:11
fabbionethe only thing is libdevmapper03:11
fabbioneit uses libselinux03:11
fabbionelibdevmapper is used both for .debs and .udebs build03:12
fabbionethis still doesn't explain why an objdump on PPC shows NEEDED libselinux03:12
fabbioneand it doesn't on other arches03:12
fabbionethis makes lvm2 fails on ppc03:12
fabbionemake more sense now?03:14
fabbioneanyway i need to go offline03:17
fabbionei might pass by later03:17
jbailey'k03:18
jbaileyI'll dig through and get this.03:18
jbaileySee you after your nap. =)03:18
dokonice one: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=2519904:56
jbaileyJakub's comment: Finding a bug in 1M of assembly is really hard without knowing where exactly05:04
jbaileyto look at.05:04
dokoyes, but he already posted the patch05:06
jbaileyYes.  Jakub scares me. =)05:06
dokoI like our gcc-opt adding -mtune=pentium4 ...05:06
=== mdz [n=mdz@studiocity-motorola-bsr1-70-36-194-85.vnnyca.adelphia.net] has joined #ubuntu-toolchain
fabbionejbailey: ok thanks.. i don't think i can do more debugging really..06:44
jbaileyYup, it's all good.06:44
fabbionejbailey: i need to go off for the night.. my wife invited mother and sister06:44
jbaileyI haven't looked at it yet, but I'm having a slow day today.06:44
jbailey'kay.  Sometime next week I want to grab you for a server kernel discussionwith benc.06:45
fabbionejbailey: no problem.. i am pretty sure it's something not related to the pkg itself06:45
jbaileyYou're the approver. =)06:45
fabbioneyou might notice is that in Debian doesn't happen06:45
fabbionejbailey: sure06:45
fabbionelet's plan a meeting..06:45
jbaileyAfter your nap on Monday, maybe?06:45
fabbioneperhaps monday evening around 20:00 UTC would be lovely06:45
fabbioneno after the nap i have the danish exam06:45
jbailey20 UTC should be fine.06:46
fabbionebut i will finish early -> early dinner -> put wife to bed and i am up for *06:46
=== jbailey checks with Ben.
fabbionejbailey: please coordinate with Ben06:46
fabbionei need to go offline again now06:46
jbaileyDoing.  G'night, see you around this WE.06:46
fabbionei might pass by later..06:46
fabbionenot sure yet :/06:46
fabbioneit depends if wife's sister's kids will allow me ;)06:47
lamont__doko: I think I gave back whatever package it was you wanted given back on hppa/unstable08:42
jbaileylamont__: I tried a build of glibc cvs last night, requires a newer toolchain.08:49
jbaileylamont__: I'll do the work on bdale's j5k box for now.08:49
jbailey(I have root there)08:49
lamont__'k08:55
=== mdz [n=mdz@studiocity-motorola-bsr1-70-36-194-85.vnnyca.adelphia.net] has joined #ubuntu-toolchain
=== mdz [n=mdz@studiocity-motorola-bsr1-70-36-194-85.vnnyca.adelphia.net] has joined #ubuntu-toolchain
=== mdz [n=mdz@studiocity-motorola-bsr1-70-36-194-85.vnnyca.adelphia.net] has joined #ubuntu-toolchain

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