IRC log for #elinux on 20081103

00:45.57*** join/#elinux markl__ (n=mark@c-67-186-245-229.hsd1.ut.comcast.net)
01:46.45*** join/#elinux zheng (n=zheng@210.51.34.202)
03:13.08*** join/#elinux zheng (n=zheng@210.51.34.202)
03:40.08*** join/#elinux linac (n=lin@125.77.70.65)
05:45.19*** join/#elinux nuix (n=alex@cpe-76-93-178-138.san.res.rr.com)
05:46.02*** join/#elinux zheng_ (n=zheng@210.51.34.202)
06:28.55*** join/#elinux zheng__ (n=zheng@210.51.34.202)
06:48.47*** join/#elinux zheng (n=zheng@210.51.34.202)
06:50.23*** join/#elinux nuix (n=alex@cpe-76-93-178-138.san.res.rr.com)
06:53.45*** join/#elinux landley (n=landley@cpe-70-116-30-223.austin.res.rr.com)
07:05.29*** join/#elinux harpal (n=Harpal@122.169.108.195)
07:34.53*** join/#elinux lyakh (n=lyakh@p57BD2A1D.dip0.t-ipconnect.de)
08:37.19*** join/#elinux methril (n=Methril@213.27.233.98)
08:53.40*** join/#elinux nuix (n=alex@cpe-76-93-178-138.san.res.rr.com)
08:57.22*** join/#elinux likewise (n=likewise@82-171-51-231.ip.telfort.nl)
10:34.33*** join/#elinux hw_ (n=hw@p578b3905.dip0.t-ipconnect.de)
10:55.08*** join/#elinux kcyow (n=kcyow@219.85.4.148)
10:56.34yowhi everyone
10:57.13yowthis is the first time i enter this chatroom
10:58.40yowi'm having problem to cross-compile busybox-1.12.1 for arm target, i've been working on it since last week
10:59.57yowsometimes, it seems to be rather close to succeed, yet, I feel like I'm getting no way...
11:00.10yowis there anyone here free to help me out?
11:14.03yowI've tried to cross-compile on Ubuntu edgy & FC4 but both failed on me
11:14.25yowi've tried using the following 3 commands:
11:14.56yow01. make CROSS_COMPILE=arm-elf-
11:15.23yow02. make ARCH=arm CROSS_COMPILE=arm-elf-
11:15.53yow03. make ARCH=armnommu CROSS_COMPILE=arm-elf-
11:16.33yowi have also tried the following 2 variants:
11:20.56yow01. make ARCH=arm CROSS_COMPILE=/usr/local/arm_tools/bin/arm-elf-
11:21.24yow02. make ARCH=arm CROSS=arm-elf-
11:24.28yowI've also tried the various combinations of the ARCH & CROSS_COMPILE command options..
11:26.27yowI wonder if the arch/arm subdirectory is needed as all the arch/* subdirectories are missing except arch/i386
11:27.25yowdoes anyone know where my problem(s) lies or give me any pointer, advice?
11:28.36yowp.s. am i being too rude or is there any specific or strict rules as to the way i should ask my questions or present my problem to the room?
11:30.53yowhope someone can help me out
11:30.57yowthanks in advance
11:35.30yowp.s.: i'm now located in Taiwan, so, I'm going to have my dinner now and shall be back in an hour
11:35.44yowsee you.
11:37.38yowby the way, i managed to make busybox on Etch, Edgy and FC4 using the host gcc, libs, etc.
12:10.06*** join/#elinux nuix (n=alex@cpe-76-93-178-138.san.res.rr.com)
12:15.48*** join/#elinux likewise (n=likewise@atwork-193.r-212.178.107.atwork.nl)
12:36.17*** join/#elinux linac (n=lin@121.201.61.181)
12:44.13yowim back
12:44.34yowhi nuix, likewise & linac
14:08.18*** join/#elinux prpplague (n=dave@mail.americanmicrosystems.com)
14:31.17yowhi prpplague, how are you?
14:31.47prpplaguehello, i'm alive, not much else
14:32.38yowi've been here for a couple of hours, but, you're the first person who give me response, thanks :)
14:32.57prpplague#elinux has been pretty much dead for awhile
14:33.04yowic
14:33.18yowhowever, there are 42 "people" in here?!
14:33.37yowand it seems to me some are coming and going...
14:34.19prpplagueyow: they just have the channel on auto-join
14:34.35yowic, thanks for letting me know
14:34.44yowim wondering if you're familiar with cross-compilling busybox?
14:35.17prpplagueyea, busybox makefiles are specifically designed for cross-compilling
14:35.51yowas i've been trying to cross-compile busybox-1.12.1 for arm target since last week but have not yet succeeded :(
14:36.50yowit seems to me the Makefiles for different versions of busybox are quite different
14:37.46yowi've been able to make busybox-1.12.1 successfully under Etch, Edgy & FC4
14:38.33yowbut, when I tried the following 3 commands, they all failed:
14:38.46yow01. make CROSS_COMPILE=arm-elf-
14:38.56yow02. make ARCH=arm CROSS_COMPILE=arm-elf-
14:39.06yow03. make ARCH=armnommu CROSS_COMPILE=arm-elf-
14:39.45yowi've also tried the the following 2 variants, but they failed too:
14:39.58yow01. make ARCH=arm CROSS_COMPILE=/usr/local/arm_tools/bin/arm-elf-
14:40.06yow02. make ARCH=arm CROSS=arm-elf-
14:40.34yowdo u know what could be the cause(s) to my problem?
14:41.21yowi can only think of the following 2 possible causes:
14:41.49prpplaguewhen they fail what is the error? use http://www.pastebin.ca to paste the log
14:42.17yow01. the arch/arm subdirectory is needed but all the arch/* subdirectories are missing except arch/i386
14:42.44yowok, i'll paste the error messages there after this (ASAP)
14:43.29yow02. the CFLAGS, UCFLAGS, LDLIBS AND INC are inccorect
14:43.58yowi've tried using the arm toolchains versions 2.95.3 and 3.0 but both failed
14:44.38yowi also noticed the directories structures are somewhat different for the 2 versions of arm toolchains
14:44.54yowi have 2 questions on top of my mind now:
14:45.32yow01. Do you know if I need the arch/arm (or in arm/*) subdirectories? when i can download them?
14:47.05yow02. does corss-compilling busybox for arm needs CFLAGS, UCFLAGS, LDLIBS and INC command-line options (or evironment variables?)? which ones it needs? How can i pass or set them?
14:47.21yowany idea?
14:47.49yowi'm going to paste the error messages on the webpage you gave me just now
14:48.20yowhowever, i hope u can give me some new ideas or pointers, if not the solution.
14:48.43yowi've trying and googling for the past week or so but failed...
14:48.56yowthanks in advance.
14:49.51prpplaguenormally cross-compiling busybox is very easy, i suspect you have something misconfigured
14:50.25yowthe steps i carried out were:
14:51.03yow01. make allnoconfig or make allyesconfig or make defconfig or make menuconfig
14:51.08yow02. make
14:51.16yowthat's all
14:51.37yowi'm now stuyding and trying to understand the Makefile...
14:51.54yoweven when i make allnoconfig, the cross-compilation failed
14:52.10yowi've set my environment variables as follows:
14:52.26yowROOT=/usr/local/arm_tools
14:52.26yowLIB1=$ROOT/arm-elf/lib
14:52.26yowLIB2=$ROOT/lib/gcc-lib/arm-elf/3.0
14:52.26yowINC=$ROOT/arm-elf/inc
14:52.27yowCC="arm-elf-gcc"
14:52.27yowCFLAGS="-Wall -I$INC"
14:52.29yowLDLIBS="-lc -lgcc -lcrypt -L$LIB1 -L$LIB2"
14:52.31yowUCFLAGS="-Wl,-elf2flt"
14:52.33yowexport PATH CC CFLAGS LDLIBS UCFLAGS
14:53.06yowone thing i do aware of is that it seems that UCFLAGS are not used?! correct me if im wrong
14:53.33yowi appended "-Wl,-elf2flt" to CFLAGS but still failed
14:54.00yowis there any problem with my environment variable settings?
14:55.12prpplagueyow: sounds like you are trying to make this more complicated that it is suppose to be
14:55.24yowfrankly, what i after is just the sendmail function of the busybox as i need the AUTH feature it provides
14:55.27prpplagueyow: do you know for a fact that your cross-compile toolchain is working?
14:56.15yowi've corss-compile appilcation programmes for a ARM target board for a several months now
14:56.57yowand i know if i set the evn variables as i pasted before, i can make AP which will run on the target board
14:57.08yowhowever, this is the first time i try to make busybox
14:57.24prpplaguenormally you just need to add the path to your cross-compile toolchain to your main path
14:57.49prpplaguei.e. export PATH="$PATH:/usr/local/arm/2.95.3/bin"
14:57.51yowactually, busybox is already avaible on the target board but it was the 0.51 version and does not have the sendmail function
14:57.59prpplaguethen just edit the make file for your items
14:58.57prpplaguelike i said, sounds like you are making it more complicated than it needs to be
14:59.09yowi have not yet started to modify the Makefile
14:59.46yowim not exactly sure which part of the makefile i need to modify and im half-way studying the Makefile now
15:00.07yowthe PATH is definitely correct
15:00.44yowbut im suspecting that i have not passed the correct lib & inc directories to the cross-compilation process
15:00.48prpplagueyow: open up the make file and search for "cross"
15:00.55prpplagueyow: the instructions are in the file
15:01.27yowi think that's the easy part and i've tried/done that since last week but failed
15:01.51yowthe cross-compile section of the comments is WRONG
15:02.09yowthere's no arch/* subdirectories!!!
15:03.11yowi've downloaded all the recent busybox .tar.bz2 but none contains the arch/* sub-dir, except arch/i386
15:03.20yowdo u know if i need arch/arm??
15:03.59yowi can paste part of the comments here:
15:04.02yow# Cross compiling and selecting different set of gcc/bin-utils
15:04.02yow# ---------------------------------------------------------------------------
15:04.02yow#
15:04.02yow# When performing cross compilation for other architectures ARCH shall be set
15:04.02yow# to the target architecture. (See arch/* for the possibilities).
15:04.03yow# ARCH can be set during invocation of make:
15:04.05yow# make ARCH=ia64
15:04.14yow# Another way is to have ARCH set in the environment.
15:04.16yow# The default ARCH is the host where make is executed.
15:05.03yowi've come across a couple of pages on the internet which suggested to use CROSS_COMPILE=arm-elf-
15:05.18prpplagueyow: please do not paste large amounts of info to the channel, that is what pastebin is for
15:05.25yowand that's what i've been using but failed
15:05.32prpplagueyow: the cross compile item depends on your toolchain
15:05.38yowsorry.....
15:05.55yowtoday is my first time here, sorry again
15:06.33prpplagueyow: you should set SUBARCH :=  arm    , and the CROSS_COMPILE := arm-elf-
15:06.53prpplagueyow: then make sure that all of the toolchain is in the main path
15:07.01prpplagueyow: then issue a make command
15:07.06yowic
15:07.18yowi can try that quickly now
15:07.23yowgive me a min
15:09.30*** join/#elinux Kmarc_ (i=kari@kallio.biz)
15:11.55*** join/#elinux linac (n=lin@121.201.61.181)
15:11.55*** join/#elinux hw_ (n=hw@p578b3905.dip0.t-ipconnect.de)
15:11.55*** join/#elinux Dr_Who (n=tgall@gentoo/developer/dr-who) [NETSPLIT VICTIM]
15:11.55*** join/#elinux dmead (n=dan@ip226.sensaphone.us)
15:12.03yowthere are many warning and one error mesage about arm-elf-strip
15:12.38yowim going to paste the error msgs to the website now
15:17.06yowthere was problem when I tried to paste under elinks
15:17.17yowthen, i upload the error messages
15:17.21yowhope u can see it now
15:22.29yowhi, are you still there, prpplague?
15:22.54yowi've just managed to paste the erro messages onto the pastebin
15:23.02yowthe url is: http://www.pastebin.ca/1244048
15:24.11prpplaguelooks
15:24.29yowthank you every much prpplague
15:24.40yowfor your patient, time and effort
15:25.57prpplagueyow: sounds like there is a typo somewhere or your toolchain doesn't support the -o option
15:26.06prpplaguebut it looks as though the binary was built
15:26.17prpplagueyou should see a busybox binary in the main directory
15:26.29yowok, let me check
15:27.09yowthere's no busybox binary but busybox_unstripped
15:27.42yowhow can i fix the arm-elf-strip problem then?
15:28.37yow./busybox_unstripped is not executable
15:29.10yowi was expecting busybox_unstripped can be executed
15:29.47yowisn't the difference between busybox_unstripped and busybox merely the former contains the "symbols" which are not stripped?
15:30.34yowfrankly, i'm not 100% certain nor understand regarding the statement ("symbols") i just made :(
15:31.02prpplagueyow: busybox_unstripped should be an arm file, use the file command to check: file busybox_unstripped
15:31.21yowi've just checked
15:31.34yowi made a mistake
15:31.52yowi ran ./busybox_unstripped on my fc4 host!
15:32.22yowdo u think busybox_unstripped can be executed on my arm target?
15:33.59yowi'm nw setting up my arm system
15:35.27*** join/#elinux linac (n=lin@121.201.61.181) [NETSPLIT VICTIM]
15:35.27*** join/#elinux hw_ (n=hw@p578b3905.dip0.t-ipconnect.de)
15:35.28*** join/#elinux Dr_Who (n=tgall@gentoo/developer/dr-who) [NETSPLIT VICTIM]
15:35.28*** join/#elinux dmead (n=dan@ip226.sensaphone.us)
15:43.12prpplagueyow: yea, you can strip it, just do, arm-elf-strip busybox_unstripped
16:13.26*** join/#elinux yow (n=kcyow@219.85.4.148)
16:16.28yowsorry but are you still there prpplague?
16:16.48yowi just realised that i might have been dc for sometime
16:17.15yowprobably some of my previous megs have gone missing
16:17.36yowi just wish to thank you for your patient, time and effort
16:17.46yowhowever, the problem still not yet solved
16:18.07yowr u there, prpplague?
16:18.27yowi've just ftp a working arm AP to my debian host and check using file command:
16:18.32yowfile siod: siod: BFLT executable - version 4 ram
16:19.38yowso, i guess i need to get the arm-elf-strip working or bypass it and then convert it to FLT format (via UCFLAGS & ld?).
16:21.58prpplagueyow: yep, still here
16:22.22yowthanks
16:22.55prpplaguenp
16:23.19yowi think this could be the problem (inside the Makefile): $(Q)$(STRIP) -s --remove-section=.note --remove-section=.comment \
16:23.20yow<PROTECTED>
16:23.34yowim going to upload the Makefile to the pastebin now
16:25.50yowthis is the url for the Makefile: http://www.pastebin.ca/1244080
16:26.24yowdo u think line 699 is defective?
16:26.58yowthe usage of $@ is errornous?
16:32.14prpplagueyow: you can remove the -o $@ and just use a copy command after that
16:34.40yowi think i understand what u mean, let me try now
16:35.39yowcp busybox_unstripped busybox, right?
16:36.23yowthanks, the arm-elf-strip error msg has gone
16:36.36yowbut the busybox binary is still ELF but not FLT
16:37.45yowis that because ld process did not run? is elf2flt supposedly to be executed by ld?
16:39.03yowlet me check my AP makefile now
16:48.54*** join/#elinux thraxisp (n=thraxisp@century.precidia.com)
16:56.46yowin the AP Makefile: $(CC) -o $@ $(OBJS) $(LDLIBS) $(UCFLAGS)
16:57.09yowso, i've commited the following modifications:
16:57.45yow317 CFLAGS          := $(UCFLAGS)
16:58.16yow323 LDLIBS          := $(LDLIBS)
16:58.52yoware $(UCFLAGS) & $(LDLIBS) evironment variables?
16:59.08yowis my mosdification correct?
17:02.46yowi tried: make 2>&1 >ucflags_ldlibs.log but all the warnings and err msgs are sent to stdout, do u know what's wrong with my command?
17:17.42*** join/#elinux markl__ (n=mark@c-67-186-245-229.hsd1.ut.comcast.net)
17:27.28*** join/#elinux boris_OmegA (n=boris@194.51.141.172)
17:48.58*** join/#elinux aspartame (n=none@ip24-255-155-92.ks.ks.cox.net)
17:52.40yowought to be: make >ucflags_ldlibs.log 2>&1
18:10.29yowprpplague: the warning & error msgs for the latest make is now at: http://www.pastebin.ca/1244183
18:15.10*** join/#elinux lyakh (n=lyakh@p57BD2A1D.dip0.t-ipconnect.de)
18:26.05*** join/#elinux BitSlop_ (n=BitSlop@pool-71-188-173-116.aubnin.fios.verizon.net)
19:40.09yowr u still there prpplague?
19:41.17yowat last i have the busybox-1.12.1 sendmail in the right format, i.e. BFLT executable - version 4 ram
19:41.29yowhowever, the arm-elf-strip still not working
19:41.56yowthe rather short error messages are shown in http://www.pastebin.ca/1244241, if you are still interested
19:41.57prpplagueyow: pastebin  a copy of your makefile
19:42.08yowok
19:42.30yowit's 03:42am over here i really have to go to bed soon
19:42.54yowif u have the time to read the latest err msgs and know the solution, pls let me know
19:43.03yowi'll continue working on it tomorrow
19:43.14prpplagueyow: i think you have something else going on, it looks as though it wasn't compiled for arm
19:43.17prpplagueyow: ok
19:43.29yowit is
19:43.41yowi've run it on my arm board
19:44.00yowaltought i have not yet figure out how to use the command correctly
19:44.33yowbut when i type ./sendmail --help, it showed me all the available options/help
19:45.21prpplagueyow: then i'd suspect you have something wrong with your build environment
19:47.08yowi've made some minor modification to inttypes.h too
19:47.48yowr u referring to http://www.pastebin.ca/1244241?
19:51.35prpplagueyow: yes that is what i am refering to
19:52.14yowkc@etch:~$ file sendmail
19:52.14yowsendmail: BFLT executable - version 4 ram
19:53.36yowmay i know which part of the error msgs in http://www.pastebin.ca/1244241 make you think the resulting busybox_unstripped is not for arm, i.e. not the right format?
19:54.32yowi've just uploaded the Makefile I used to produce the busybox_unstripped: http://www.pastebin.ca/1244257
19:58.11yowso, what do u think of the outcome so far?
19:58.26yowany idea to make it 100% successful?
20:00.54*** join/#elinux likewise (n=likewise@82-171-51-231.ip.telfort.nl)
20:01.07*** join/#elinux pleemans (n=toi@d54C2AAB7.access.telenet.be)
20:51.11yowprpplauge: r u still there?
20:51.40yowprpplauge: any new findings?
20:59.07yowprpplauge: it seems that BFLT file format do not need to be arm-elf-stripped
21:01.03yowbye everyone, take good care
21:08.32*** join/#elinux mnemoc (n=amery@shell.opensde.net)
21:08.33*** join/#elinux ashes (n=ashes@modemcable123.78-80-70.mc.videotron.ca)
22:15.14*** join/#elinux GPSFan (n=kenm@64.92.145.112)
22:48.35*** join/#elinux irotas (n=irotas@CPE00131042e14d-CM0018c0b37a44.cpe.net.cable.rogers.com)
22:58.35*** join/#elinux pb_ (n=pb@88-111-134-150.dynamic.dsl.as9105.com)
23:39.58*** join/#elinux thraxisp (n=thraxisp@24.139.16.154)

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