IRC log for #elinux on 20081127

02:03.44*** join/#elinux thraxisp (n=thraxisp@24.139.16.154)
02:18.00*** join/#elinux zheng (n=zheng@211.152.46.110)
03:02.18*** join/#elinux Dr_Who (n=tgall@gentoo/developer/dr-who)
03:02.54*** join/#elinux yow (n=kcyow@219.85.6.106)
03:03.37*** join/#elinux thraxisp (n=thraxisp@24.139.16.154)
03:03.44yowhi room
03:03.51yowis anyone here?
03:07.06yowis anyone here familiar with cross-compiling for ARM target using arm_tools?
03:14.03wmatwhat's arm_tools?
03:24.28yowit's a development tool used to cross-compile and hence produce executable for ARM
03:24.36yowhi wmat :)
03:25.35yowwmat: r u familiar with compilation and/or make (Makefile)?
03:25.58wmatis it a proprietary tool?
03:26.05yowno
03:26.06wmatprovided by ARM, I presume?
03:26.08wmatno?
03:26.09yowit's GNU
03:26.50wmatso what's the problem?
03:35.40yowi used to cross-compile using arm-elf-gcc version 3.0 & 2.95 successfully with libpthread.a however, after i upgraded to version 3.3.4, error msg "undefined reference to `pthread_create'" appears
03:37.01yowi can paste the warning/error msgs to the pastebin for you, if u r free to read, it's not very long...
03:37.08wmatsure
03:37.15yowthx, pls wait...
03:41.05wmatyow: when you compile, try passing the option -pthread to gcc
03:41.27yowi've done that
03:41.44yowpls wait, im having problem uploading the msgs to pastebin :(
03:41.53wmatno problem
03:44.18yowsorry for keeping u waiting, here you are: http://www.pastebin.ca/1268174
03:45.47wmatlooks
03:45.56yowlibpthraead.a is located under /usr/local/arm_tools/arm-elf/lib
03:46.03yowok
03:47.38yowi teied to locate ios.cc & locale.cc but they are not found on my system!
03:47.52yowteied -> tried
03:49.33yowin addition, there's no reference to pthread at all in /usr/local/arm_tools/include/c++/3.3.4/bits/locale_facets.tcc
03:52.50wmatyow: try with option -lpthread
03:54.02yowalready used, as shown at the beginning of the warning/error msgs: ... -L/usr/local/arm_tools/lib/gcc-lib/arm-elf/3.3.4 -lpthread -lapp  -L../lib ...
03:54.49wmathmmm, well, I'd presume the upgrade busted your environment somehow
03:55.03wmatdoes the old toolchain still work?
03:55.42yowi cannot use the old toolchain for this particular project as it needs C++ support
03:56.00yowthat's why i did the "manual" upgrade
03:57.31yowfrankly, i did mess with the .tar.gz to get it to install and then renaming the directory "/usr/local/arm_tools_3.3.4" to "/usr/local/arm_tools" so that the environment settings and Makfile match with it
03:59.02yowi've studied the warning/error messages in details, but i cannot fully understand it
04:00.22yowwmat, does "undefined reference to xxx" imply that library providing xxx is missing?
04:00.54wmatusually
04:01.06yowic
04:01.45yowis "/Temp/make-compile/arm-tool/gcc-3.3.4/..." a temporary directory where the compiler or linker perform their tasks?
04:02.42yowisn't "tmp" is used instead of "Temp" in Linux/*NIX?
04:04.18wmatyes, i don't know what that is in your output
04:04.37wmatis this cygwin?
04:04.40yowno
04:04.56yowit's Ubuntu 6.10
04:05.48yowcould ios.cc & locale.cc located inside the uClinux (source) tree??
04:06.54yowim rather confused about the relationship and roles of arm tool chain & uClinux, e.g. should the libraries such as libpthread.a provided by the toolchain or uClinux?
04:08.19yow*sorry, away for ~5 minutes
04:12.08wmatyow: where is libpthread under /usr/local/arm_tools/?
04:15.51wmatyow: my brain is shutting off for the night.  If all else fails, ask in #gcc
04:22.10yowim back
04:22.18*** join/#elinux keram (n=oof@cpe-76-87-179-96.socal.res.rr.com)
04:23.30yow/usr/local/arm_tools/arm-elf/lib/libpthread.a
04:23.53yow/usr/local/arm-elf/lib/libpthread.a (110KB)
04:24.07yow/usr/local/arm_tools/arm-elf/lib/libpthread.a (96KB)
04:24.24yowi don't know why there are two libpthread.a and with different sizes
04:24.56yowwmat, im from Taiwan (GMT+8), it's now 12:24pm over here, may i know where r u from?
04:28.29yowperhaps u r afk or off to bed already, anyway, thank you very much for your help and advice, i'll check out #gcc later. i'll go for lunch now
04:28.33yowgood night & sleep tight
04:32.13ashesone was stripped of debugging symbols, and the other was not?
04:32.37ashesthat would account for the difference
04:33.02ashesgcc -0s compared to -02 would too
06:06.50*** join/#elinux harpal (n=Harpal@122.169.108.195)
07:00.16*** join/#elinux Omegamoon (n=egoe@demolitionman.xs4all.nl)
07:11.18*** join/#elinux pleemans (n=toi@116.54-246-81.adsl-static.isp.belgacom.be)
07:30.20*** join/#elinux lyakh (n=lyakh@p57BD2D10.dip0.t-ipconnect.de)
08:46.43*** join/#elinux zheng_ (n=zheng@210.51.34.202)
09:57.20*** join/#elinux zheng__ (n=zheng@211.152.46.110)
10:25.08*** join/#elinux hw (n=hw@p578b3905.dip0.t-ipconnect.de)
12:51.56*** join/#elinux zheng (n=zheng@58.33.116.2)
13:27.47*** join/#elinux linac (n=lin@60.216.227.112)
13:37.57wmatyow: I'm in ontario, canada (GMT -5)
14:08.42yowwmat: hi there. thx for your reply :)
14:09.56yowwmat: r u at work now? r u working freelance?
14:10.07*** join/#elinux Dr_Who (n=tgall@gentoo/developer/dr-who)
14:15.55*** join/#elinux GPSFan (n=kenm@64.92.145.112)
14:33.31yowhi dr_who & gpsfan, r u familiar with cross-compiling for ARM target using arm_tools?
15:01.45*** join/#elinux harpal (n=Harpal@122.169.108.195)
15:04.43wmatyow: yes, i am at work now
15:07.12yowic
15:07.32wmatdid you resolve your issue?  
15:07.39yowwmat: not yet :(
15:08.32wmatit's almost certainly an environment issue. compilation isn't finding the lib, therefore the errors. At least that's my guess.
15:08.46yowwmat: i still think it's a trivial problem but the problem is that i do not understand the fundamental stuff of arm tool chain, uclinux, gcc, ld & make
15:09.35wmatunfortunately, i can't help you with that ;)
15:10.05yowfrom the error msgs, it seems that the libpthread.a is not found (undefined reference to `pthread_create')
15:10.22wmatit seems so, yes
15:10.45yowbut the make command seems complete: -L/usr/local/arm_tools/arm-elf/lib -L/usr/local/arm_tools/lib/gcc-lib/arm-elf/3.3.4 -lpthread
15:13.37yowwmat:  do u know where i can find ios.cc & locale.cc? they appear in the error msgs but i can't find them in my HD!! r they part of uclinux source tree (which i do not install)
15:14.46yowso far, all the AP which i made are done solely using the arm tool chain but without the uclinux source (tree)
15:21.26wmata quick google tells me ios.cc is part of libstdc++
15:21.57wmatas is locale.cc
15:22.25yowwmat: thx for the info, too much in my head, i just forgot to check/google that
15:24.16yowi did check out the libstdc++ on my arm tool chain and it's there: /usr/local/arm_tools_3.3.4/arm-elf/lib/libstdc++.a
15:27.57wmatyow: hadn't you renamed that dir to just arm_tools or something?
15:28.37yowwmat: sorry, i just realised that i copied the "old" info for u after i pasted it. Yes, i've renamed the dir
15:29.21yowwmat: im now checking the tar.gz to see if the new tool chain has mixed up with the old one
15:31.33yowwmat: there's another libstdc++.a at: /usr/local/arm-elf/lib/libstdc++.a
15:31.52yowso, there r 2 libpthread.a and 2 libstdc++.a!!!???
16:49.21*** join/#elinux Dina_Shaldoum (n=chatzill@41.234.101.247)
17:00.48yowwmat: thank you very much for your help. it's time for me to go to bed now. take good care. bye.
17:08.19*** part/#elinux yow (n=kcyow@219.85.6.106)
17:21.03*** join/#elinux pcgeil (n=steffen@p549E5652.dip.t-dialin.net)
17:25.36*** join/#elinux lyakh (n=lyakh@p57BD2D10.dip0.t-ipconnect.de)
17:25.41*** join/#elinux thraxisp (n=thraxisp@century.precidia.com)
18:06.35*** join/#elinux likewise_ (n=chatzill@82-171-51-231.ip.telfort.nl)
18:08.05*** join/#elinux pb_ (n=pb@79-71-239-31.dynamic.dsl.as9105.com)
18:14.12*** join/#elinux zheng (n=zheng@210.51.34.202)
18:28.57*** join/#elinux pcgeil (n=steffen@p549E5652.dip.t-dialin.net)
18:51.51*** join/#elinux pleemans (n=toi@d54C2AAB7.access.telenet.be)
19:24.44*** join/#elinux JoeyBorn (n=rootmeis@adsl-75-2-250-176.dsl.chcgil.sbcglobal.net)
19:38.18*** join/#elinux zheng_ (n=zheng@211.152.46.110)
19:51.01*** join/#elinux ChanServ (ChanServ@services.)
19:51.01*** join/#elinux Kmarc (i=kari@kallio.biz) [NETSPLIT VICTIM]
19:51.01*** join/#elinux SkyWalk3r (n=root@89.131.235.150) [NETSPLIT VICTIM]
19:51.01*** join/#elinux Omegamoon (n=egoe@demolitionman.xs4all.nl)
19:51.01*** mode/#elinux [+o ChanServ] by irc.freenode.net
20:02.06*** join/#elinux likewise_ (n=chatzill@82-171-51-231.ip.telfort.nl)
21:06.24*** join/#elinux SkyWalk3r (n=root@89.131.235.150)
21:26.54*** join/#elinux pleemans (n=toi@d54C2AAB7.access.telenet.be)
22:03.23*** join/#elinux Redhatter (n=vk4msl@2001:388:f000:0:0:0:0:3)
23:13.40*** join/#elinux Dr_Who (n=tgall@gentoo/developer/dr-who)

Generated by irclog2html.pl Modified by Tim Riker to work with infobot.