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.44 | yow | hi room |
03:03.51 | yow | is anyone here? |
03:07.06 | yow | is anyone here familiar with cross-compiling for ARM target using arm_tools? |
03:14.03 | wmat | what's arm_tools? |
03:24.28 | yow | it's a development tool used to cross-compile and hence produce executable for ARM |
03:24.36 | yow | hi wmat :) |
03:25.35 | yow | wmat: r u familiar with compilation and/or make (Makefile)? |
03:25.58 | wmat | is it a proprietary tool? |
03:26.05 | yow | no |
03:26.06 | wmat | provided by ARM, I presume? |
03:26.08 | wmat | no? |
03:26.09 | yow | it's GNU |
03:26.50 | wmat | so what's the problem? |
03:35.40 | yow | i 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.01 | yow | i can paste the warning/error msgs to the pastebin for you, if u r free to read, it's not very long... |
03:37.08 | wmat | sure |
03:37.15 | yow | thx, pls wait... |
03:41.05 | wmat | yow: when you compile, try passing the option -pthread to gcc |
03:41.27 | yow | i've done that |
03:41.44 | yow | pls wait, im having problem uploading the msgs to pastebin :( |
03:41.53 | wmat | no problem |
03:44.18 | yow | sorry for keeping u waiting, here you are: http://www.pastebin.ca/1268174 |
03:45.47 | wmat | looks |
03:45.56 | yow | libpthraead.a is located under /usr/local/arm_tools/arm-elf/lib |
03:46.03 | yow | ok |
03:47.38 | yow | i teied to locate ios.cc & locale.cc but they are not found on my system! |
03:47.52 | yow | teied -> tried |
03:49.33 | yow | in 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.50 | wmat | yow: try with option -lpthread |
03:54.02 | yow | already 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.49 | wmat | hmmm, well, I'd presume the upgrade busted your environment somehow |
03:55.03 | wmat | does the old toolchain still work? |
03:55.42 | yow | i cannot use the old toolchain for this particular project as it needs C++ support |
03:56.00 | yow | that's why i did the "manual" upgrade |
03:57.31 | yow | frankly, 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.02 | yow | i've studied the warning/error messages in details, but i cannot fully understand it |
04:00.22 | yow | wmat, does "undefined reference to xxx" imply that library providing xxx is missing? |
04:00.54 | wmat | usually |
04:01.06 | yow | ic |
04:01.45 | yow | is "/Temp/make-compile/arm-tool/gcc-3.3.4/..." a temporary directory where the compiler or linker perform their tasks? |
04:02.42 | yow | isn't "tmp" is used instead of "Temp" in Linux/*NIX? |
04:04.18 | wmat | yes, i don't know what that is in your output |
04:04.37 | wmat | is this cygwin? |
04:04.40 | yow | no |
04:04.56 | yow | it's Ubuntu 6.10 |
04:05.48 | yow | could ios.cc & locale.cc located inside the uClinux (source) tree?? |
04:06.54 | yow | im 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.19 | yow | *sorry, away for ~5 minutes |
04:12.08 | wmat | yow: where is libpthread under /usr/local/arm_tools/? |
04:15.51 | wmat | yow: my brain is shutting off for the night. If all else fails, ask in #gcc |
04:22.10 | yow | im back |
04:22.18 | *** join/#elinux keram (n=oof@cpe-76-87-179-96.socal.res.rr.com) |
04:23.30 | yow | /usr/local/arm_tools/arm-elf/lib/libpthread.a |
04:23.53 | yow | /usr/local/arm-elf/lib/libpthread.a (110KB) |
04:24.07 | yow | /usr/local/arm_tools/arm-elf/lib/libpthread.a (96KB) |
04:24.24 | yow | i don't know why there are two libpthread.a and with different sizes |
04:24.56 | yow | wmat, im from Taiwan (GMT+8), it's now 12:24pm over here, may i know where r u from? |
04:28.29 | yow | perhaps 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.33 | yow | good night & sleep tight |
04:32.13 | ashes | one was stripped of debugging symbols, and the other was not? |
04:32.37 | ashes | that would account for the difference |
04:33.02 | ashes | gcc -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.57 | wmat | yow: I'm in ontario, canada (GMT -5) |
14:08.42 | yow | wmat: hi there. thx for your reply :) |
14:09.56 | yow | wmat: 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.31 | yow | hi 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.43 | wmat | yow: yes, i am at work now |
15:07.12 | yow | ic |
15:07.32 | wmat | did you resolve your issue? |
15:07.39 | yow | wmat: not yet :( |
15:08.32 | wmat | it's almost certainly an environment issue. compilation isn't finding the lib, therefore the errors. At least that's my guess. |
15:08.46 | yow | wmat: 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.35 | wmat | unfortunately, i can't help you with that ;) |
15:10.05 | yow | from the error msgs, it seems that the libpthread.a is not found (undefined reference to `pthread_create') |
15:10.22 | wmat | it seems so, yes |
15:10.45 | yow | but 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.37 | yow | wmat: 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.46 | yow | so far, all the AP which i made are done solely using the arm tool chain but without the uclinux source (tree) |
15:21.26 | wmat | a quick google tells me ios.cc is part of libstdc++ |
15:21.57 | wmat | as is locale.cc |
15:22.25 | yow | wmat: thx for the info, too much in my head, i just forgot to check/google that |
15:24.16 | yow | i 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.57 | wmat | yow: hadn't you renamed that dir to just arm_tools or something? |
15:28.37 | yow | wmat: sorry, i just realised that i copied the "old" info for u after i pasted it. Yes, i've renamed the dir |
15:29.21 | yow | wmat: im now checking the tar.gz to see if the new tool chain has mixed up with the old one |
15:31.33 | yow | wmat: there's another libstdc++.a at: /usr/local/arm-elf/lib/libstdc++.a |
15:31.52 | yow | so, there r 2 libpthread.a and 2 libstdc++.a!!!??? |
16:49.21 | *** join/#elinux Dina_Shaldoum (n=chatzill@41.234.101.247) |
17:00.48 | yow | wmat: 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) |