ibotlog2html for #crosstool-ng

<< Previous 2014-06-01 Next >>

# 00:08:00 Strogg joins #crosstool-ng
# 00:08:19 Strogg 'lo 'lo
# 00:08:55 Strogg I've been playing around with ct-ng, and so far, it seems pretty awesome.
# 00:09:19 Strogg I got it to work once, but I built a toolchain for the wrong mcu (the cortex-m3, whereas I need the m4).
# 00:09:43 Strogg so.. I found some steps for building for the m4, but I keep running into some user error.. or perhaps a bug, or not sure.
# 00:10:35 Strogg I pulled from the hg repo and I'm using that now.. I've customized my urls in the ct-ng menuconfig, but when I go to build, half way through, I'm getting a bunch of file not found errors
# 00:11:09 Strogg I look around in my filesystem, and it seems like it's always using the default paths to build.. even though it's looking in the (now empty) paths that you specified
# 00:11:19 Strogg I can post my .config if you wanna look
# 00:52:23 blueness quits : Ping timeout: 245 seconds
# 00:52:56 blueness joins #crosstool-ng
# 00:52:56 blueness quits : Changing host
# 00:52:56 blueness joins #crosstool-ng
# 03:49:20 mnt_real quits : Ping timeout: 252 seconds
# 04:39:14 philenotfound joins #crosstool-ng
# 04:40:08 philenot1ound quits : Write error: Broken pipe
# 05:32:00 mnt_real joins #crosstool-ng
# 07:20:47 larks quits : Ping timeout: 240 seconds
# 07:22:04 larks joins #crosstool-ng
# 08:27:25 smartin_ joins #crosstool-ng
# 09:29:27 doc2 joins #crosstool-ng
# 09:48:26 y_morin joins #crosstool-ng
# 10:36:40 sh[4]rm4 joins #crosstool-ng
# 10:37:35 sh4rm4 quits : Ping timeout: 252 seconds
# 10:58:49 rofl__ joins #crosstool-ng
# 11:00:08 sh[4]rm4 quits : Ping timeout: 252 seconds
# 11:32:18 smartin_ quits : Ping timeout: 240 seconds
# 12:31:42 smartin_ joins #crosstool-ng
# 14:31:33 diorcety joins #crosstool-ng
# 14:33:19 Strogg ok.. I'm pretty sure there's something going wrong somewhere
# 14:33:57 Strogg I keep telling ct-ng to build a 4.8 arm gcc, and it keeps building a 4.3 one
# 14:34:17 Strogg its supposed to use the .config from the directory you're in, right?
# 14:35:01 Strogg like... if I mkdir ~/ct-ng; cd ~/ct-ng; ct-ng menuconfig; there's a .config in ct-ng now.. and when I run ct-ng build, it'll use that config?
# 14:35:11 y_morin Strogg: Yes.
# 14:35:19 y_morin Strogg: CAre to share your .config, please?
# 14:35:27 Strogg sure, one sec
# 14:37:34 y_morin Strogg: Use a pastebin site.
# 14:37:38 Strogg http://paste.debian.net/102840/
# 14:37:40 Strogg yep yep
# 14:37:48 Strogg just had to copy it to my desktop so I could upload the file
# 14:38:13 Strogg I'm basically trying to follow this site here, http://www.iwasz.pl/electronics/toolchain-for-cortex-m4/
# 14:38:37 Strogg {jean@geemoo} ct-ng version
# 14:38:39 Strogg This is crosstool-NG version 1.19.0
# 14:38:52 Strogg and that's ct-ng I'm running
# 14:39:02 y_morin Strogg: Sorry, I can't read that language...
# 14:39:14 y_morin (Polish?)
# 14:39:28 Strogg err... which?
# 14:39:43 Strogg the site's in english
# 14:40:25 y_morin Strogg: http://www.iwasz.pl/electronics/toolchain-for-cortex-m4/ <- is not in english...
# 14:40:52 Strogg that's... so strange
# 14:40:52 y_morin Strogg: Here's what I get: http://code.bulix.org/if324e-86318?raw
# 14:41:22 y_morin Strogg: Here's what I get: http://code.bulix.org/if324e-86318 (properly formatted)
# 14:41:41 Strogg lol crazy. he has your location blocked for some reason
# 14:42:00 y_morin Strogg: Too bad for him...
# 14:43:52 Strogg http://geemoo.ca/tmp/iwasz/www.iwasz.pl/electronics/toolchain-for-cortex-m4/
# 14:44:06 Strogg I copied the page to my website, so you can see what I'm working from
# 14:44:14 Strogg don't know if it matters or not
# 14:45:05 y_morin Strogg: And your .config?
# 14:45:38 Strogg http://paste.debian.net/102840/
# 14:46:42 y_morin OK, I'll have a look...
# 14:46:55 Strogg Cool thanks
# 14:47:29 Strogg Everything worked ok for the gcc-4.3, and it looked really awesome, but I need the newer gcc to build for the cortex M4. gcc-4.3 only supports the M3
# 14:48:11 Strogg it's amazing how much better this is than all the other guides and tools out there for building cross toolchains. hehe
# 14:52:22 y_morin Strogg: It looks like it is building 4.8 here...
# 14:52:58 Strogg hrmmm
# 14:53:04 Strogg what directory do you run it from?
# 14:53:34 y_morin Strogg: Can you give a spin using the latest version from the repository?
# 14:53:37 Strogg are you running what's in hg?
# 14:53:40 Strogg hehe k, will do
# 14:53:41 y_morin Strogg: Yep.
# 14:54:37 y_morin Strogg: hg co http://crosstool-ng.org/hg/crosstool-ng/ ct-ng; cd ct-ng; ./bootstrap; ./configure --enable-local; put your .config there; ./ct-ng oldconfig; ./ct-ng build
# 14:55:01 y_morin Strogg: Here's an updated .config: http://code.bulix.org/vunp2k-86319?raw
# 14:57:20 Strogg hrmm I didn't do --enable-local the one time I tried from hg.. what's that do?
# 14:58:24 Strogg assumes there's a "make" step after ./configure
# 15:00:31 Strogg building
# 15:03:30 y_morin Strogg: Yes, obviously... :-)
# 15:04:03 Strogg hehe just checking. I'm doing _something_ wrong.. so hehe
# 15:04:49 y_morin Strogg: Build finished OK here...
# 15:05:00 Strogg would the decision choices show up in build.log? can I look in there to see why it's picking 4.3 instead of 4.8 ?
# 15:05:22 y_morin Strogg: Is it still piking 4.3 now?
# 15:05:46 Strogg well.. it downloaded a 4.3.. I don't know if that's for the host to use.. or if that's the target. it's still building stuff
# 15:05:54 y_morin Strogg: --enable-local: avoids having to install ct-ng first, and enables running from the ct-ng source tree.
# 15:06:13 y_morin Strogg: So, it still downloads 4.3 for you?
# 15:06:22 Strogg yeah
# 15:06:27 y_morin Weird... :-(
# 15:06:43 Strogg I should reboot my desktop into linux and try that. maybe it's something weird about my server
# 15:06:47 y_morin Strogg: With the .config I provided?
# 15:06:54 Strogg Yeah
# 15:07:46 y_morin Strogg: It did build a 4.8 here: ./x-tools/arm-unknown-eabi/bin/arm-unknown-eabi-gcc --version
# 15:07:49 y_morin arm-unknown-eabi-gcc (crosstool-NG hg+default-1eea25c0bfe7) 4.8.3 20140106 (prerelease)
# 15:08:20 y_morin Strogg: CAre to bzip2 your build.log and send it to me?
# 15:08:24 Strogg I'm gonna let this finish.. just to see
# 15:08:27 Strogg sure
# 15:09:02 Strogg it's still going though. my server is a bit underpowered. that might be 4.3 for the host gcc
# 15:10:04 y_morin Strogg: There's no such difference between the host and target gcc: there is no target gcc. gcc is only for the host.
# 15:10:18 Strogg ahhh ok
# 15:10:47 Strogg egh. it failed
# 15:11:17 Strogg [ALL ] /bin/bash: arm-unknown-eabi-cc: command not found
# 15:12:29 Strogg y_morin: http://geemoo.ca/tmp/build.log.bz2
# 15:12:37 Strogg k, brb, I'm gonna reboot
# 15:14:31 Strogg ok, I'm back
# 15:14:45 Strogg clones and tries again
# 15:15:21 y_morin Strogg: Weird... It does indeed forcibly use 4.3 internally... I'm so puzzled...
# 15:15:34 Strogg atleast I'm not crazy. :)
# 15:16:10 Strogg this is gonna boil down to something simple like a UTF8 character in a string that's getting compared.. or the wrong version of sed installed.. lol
# 15:16:47 y_morin Strogg: Are you building on a Linux machine?
# 15:16:59 Strogg yeah.. it's a single core amd64 machine
# 15:17:24 Strogg debian wheezy, I believe
# 15:17:40 Strogg yeah, wheezy. so stable
# 15:18:01 rofl__ is now known as: sh4rm4
# 15:18:56 Strogg ok, building on the new machine
# 15:18:58 y_morin Strogg: It even does it for binutils: downloads 2.19.1a, while 2.22 is swlected...
# 15:19:16 Strogg ooooh. promising. it's downloading gmp5.1.3
# 15:19:30 Strogg waits
# 15:21:35 Strogg binutils 2.22!
# 15:21:54 Strogg [EXTRA] Retrieving 'gcc-linaro-4.8-2014.01'
# 15:21:56 Strogg woot!
# 15:22:14 y_morin Strogg: OK, something really wrong with your other machine, then...
# 15:22:43 Strogg could it be an amd64 version intel86 thing?
# 15:22:53 Strogg err.. s/version/versus/
# 15:25:02 y_morin Strogg: Probably not. I had an amd64 machine where it would run nice.
# 15:25:26 Strogg hrmm what should I be comparing versions of? make?
# 15:25:31 Strogg anything else?
# 15:25:46 y_morin Strogg: No clue...
# 15:26:21 Strogg alrighty. I'll poke around with it and let you know if I find anything
# 15:27:24 y_morin Strogg: Thanks!
# 15:30:36 Strogg is there a verbose option to make it output everything?
# 15:31:21 y_morin Strogg: Everything is in the build.log file.
# 15:32:31 y_morin Strogg: But if you want to see everything at build time: ./ct-ng menuconfig -> Paths and misc options -> Maximum log level to see -> DEBUG (or ALL)
# 15:32:41 Strogg k, thanks!
# 15:33:42 Strogg I'm thinking a -d as well, to have make be verbose too
# 15:35:02 y_morin Strogg: If you pass '-d' to ct-ng, you'll debug the ct-ng frontend, which is doing almost nothing, except clling the actual script in scripts/crosstool-NG.sh
# 15:40:58 Strogg ahh hrm ok
# 16:03:24 Strogg [EXTRA] Installing user-supplied crosstool-NG configuration
# 16:03:29 Strogg [EXTRA] Dumping internal crosstool-NG configuration
# 16:03:40 Strogg After this point, it shows the config, and it's got the wrong settings
# 16:05:09 y_morin Strogg: Wild guess: can you check the timestamps of: .config and .config.2
# 16:05:32 Strogg -rw-r--r-- 1 jean jean 10872 Jun 1 12:00 .config
# 16:05:33 y_morin Strogg: Wait, you mean this also happens on your other machine which downloaded gcc-4.8 ?
# 16:05:34 Strogg -rw-r--r-- 1 jean jean 10878 Jun 1 12:00 .config.2
# 16:05:42 Strogg Nah. I'm back on my server now
# 16:05:47 y_morin Strogg: Ah, OK.
# 16:06:01 Strogg I can't use the toolchain I built on the good machine, since it's the wrong host arch. hehe
# 16:06:03 y_morin Strogg: Nano-second timestamps. Get them with: stat .config .config.2
# 16:06:57 Strogg .config Access: 2014-06-01 12:00:16.000000000 Modify: 2014-06-01 12:00:12.000000000 Change: 2014-06-01 12:00:12.000000000
# 16:06:58 y_morin Strogg: And just paste the lines with the time stamps/
# 16:07:19 Strogg .config.2 Access: 2014-06-01 11:54:16.000000000 Modify: 2014-06-01 12:00:16.000000000 Change: 2014-06-01 12:00:16.000000000
# 16:07:59 y_morin Oh.. you do not have a nano-second capable filesystem.. .What filesystem is that?
# 16:08:15 Strogg hrmmmm
# 16:08:28 Strogg hrmm home is ext3
# 16:08:42 Strogg /dev/sda3 on /home type ext3 (rw,relatime,errors=continue,barrier=1,data=ordered)
# 16:09:06 y_morin ext3 is not capable of nanosecond timestamps? Weird... :-/
# 16:10:46 Strogg hrmm I can copy everything over to an xfs partition I have.. hrmm
# 16:11:24 Strogg should /home/jean/x-tools/arm-unknown-eabi/bin/arm-unknown-eabi-ct-ng.config be a text file?
# 16:11:31 Strogg [DEBUG] ==> Executing: 'install' '-m' '0755' '/home/jean/ct-ng/scripts/toolchain-config.in' '/home/jean/x-tools/arm-unknown-eabi/bin/arm-unknown-eabi-ct-ng.config'
# 16:13:08 Strogg because it looks like /home/jean/x-tools/arm-unknown-eabi/bin/arm-unknown-eabi-ct-ng.config is full of junk. binary data
# 16:14:45 y_morin Strogg: Nope, that's expected. It's a small shell script which also contains a the .config in bz2 form.
# 16:15:32 y_morin Strogg: Well, I have no idea why it behaves like that, downloading and using gcc-4.3 when 4.8 is configured. I've looked at it from all directions, not clue...
# 16:16:24 Strogg ok.. so it makes the toochain/bin directory, it copies ${CT_LIB_DIR}/scripts/toolchain-config.in to ${CT_PREFIX_DIR}/bin/${CT_TARGET}-ct-ng.config.. it does an inplace sed to replace grep.. and then it bzips it
# 16:17:17 y_morin Strogg: Yep.
# 16:25:15 Strogg hrmm is there anything that shouldn't be set in your env ?
# 16:26:49 Strogg set |grep -E '^CT_.+=' |sort |CT_DoLog DEBUG
# 16:26:58 Strogg y_morin: it's that line, right there
# 16:27:08 Strogg when it does that, it shows the wrong config in the log
# 16:29:15 y_morin Strogg: Can you check that you do not have the CT_ variables set in your environment?
# 16:29:31 y_morin Strogg: From your shell: set |grep -E '^CT_.+='
# 16:30:17 Strogg hrmmm nothing
# 16:30:38 Strogg where do you put the .config into the env?
# 16:31:15 y_morin Strogg: The .config.2 is parsed by scripts/crosstool-NG.sh
# 16:31:27 y_morin Hmmm.... Coffee! :-)
# 16:31:40 Strogg needs to refill :)
# 16:33:50 y_morin Strogg: Can you pastebin your .config and .config.2 files, please?
# 16:35:46 Strogg http://paste.debian.net/102875/
# 16:36:10 Strogg http://paste.debian.net/102876/
# 16:37:08 y_morin OK, both look good. .config.2 is generated from .config
# 16:38:21 Strogg hrmm it's not a zsh thing.. happens in bash as well.
# 16:39:18 y_morin Strogg: Wait, you mean /bin/sh is zsh?
# 16:39:30 Strogg hrmmmmmmmmm no
# 16:39:37 Strogg but lemme check what /bin/sh is
# 16:39:44 y_morin Strogg: But your login shell is zsh?
# 16:39:57 Strogg lrwxrwxrwx 1 root root 4 May 30 21:44 /bin/sh -> bash*
# 16:39:59 Strogg yeah
# 16:40:11 Strogg I tried again after running bash, same result
# 16:40:39 y_morin OK...
# 16:40:56 y_morin That's really weird, you're the first to report this kind of behaviour... :-/
# 16:43:33 Strogg hrmmmmmm
# 16:50:19 Strogg # Kludge: If any of the configured options needs CT_TARGET,
# 16:50:21 Strogg # then rescan the options file now:
# 16:50:23 Strogg . .config.2
# 16:50:25 Strogg right there. it's bad there.
# 16:50:49 Strogg I started adding some printing... just to see what's going on
# 16:50:55 Strogg . .config.2
# 16:50:57 Strogg echo "--- STARTMYDEBUG ---"
# 16:50:59 Strogg set
# 16:51:01 Strogg it shows me the 4.3 options
# 16:54:43 Strogg hrmmmmmmmmmm
# 16:54:48 Strogg y_morin: set vs printenv
# 16:54:54 Strogg should they show the same stuff?
# 16:56:00 Strogg because down at line 582 of scripts/crosstool-NG.sh, you have this....
# 16:56:08 y_morin Strogg: No, they do not. Do you see a difference in the output of set |grep -E '^CT_.*=' and printenv |grep -E '^CT_.*=' ?
# 16:56:09 Strogg set |grep -E '^CT_.+=' |sort |CT_DoLog DEBUG
# 16:56:11 Strogg CT_DoLog DEBUG "Other environment:"
# 16:56:13 Strogg printenv |grep -v -E '^CT_.+=' |CT_DoLog DEBUG
# 16:56:29 Strogg you check the set, for the ct stuff, and the env for other stuff.. is that normal?
# 16:56:42 y_morin Strogg: Probably not...
# 16:57:26 Strogg hrmm both empty
# 16:57:34 y_morin Strogg: But it should not differ in practice. printenv is for the exported environment (which we want to list in that second location), while set is for the current env (even unexpoeted variables) which we want in the first location.
# 16:58:08 y_morin Strogg: No, I meant if you replace set with printenv in scripts/crosstool-NG.sh
# 17:02:52 Strogg hrmmm then.. that doesn't make sense.
# 17:03:03 Strogg you do . .config.2
# 17:03:14 Strogg but then the stuff isn't there in set
# 17:03:31 y_morin Strogg: Oh! What bash version are you using?
# 17:03:48 Strogg GNU bash, version 4.2.37(1)-release (x86_64-pc-linux-gnu)
# 17:04:45 y_morin Ah, that should be OK.
# 17:05:30 Strogg nothing strange in ~/.bashrc or /etc/bashrc
# 17:07:15 Strogg Ok so.. anyway
# 17:07:31 Strogg if you're doing a ". .config.2".. shouldn't it be immediately shown when you do set ?
# 17:07:50 Strogg pastebins
# 17:08:49 Strogg http://paste.debian.net/102878/
# 17:09:02 Strogg checkout the changes I made to scripts/crosstool-NG.sh
# 17:09:10 Strogg search for STARTMYDEBUG
# 17:09:29 Strogg line 157
# 17:10:27 y_morin Strogg: Yep, I've seen.
# 17:10:55 y_morin Strogg: So, you're basically saying that, on line 161, the variables you get from 'set' are all wrong?
# 17:11:06 y_morin Strogg: Ditto on line 164?
# 17:11:07 Strogg yeah. they are all the 4.3 ones
# 17:11:21 Strogg actually.. one 164, I get barely no CT stuff at all
# 17:11:29 Strogg s/no/any/
# 17:11:35 y_morin Strogg: Yep, expected.
# 17:11:53 y_morin (I mean: expected that printenv does not return them, they are not exported)
# 17:12:10 y_morin Strogg: But the "cat .config.2" show the correct values?
# 17:12:12 Strogg k.. but the set variables.. that's the issue
# 17:12:14 Strogg yeah
# 17:12:25 Strogg my bash is crazy.
# 17:12:40 y_morin Strogg: You've been vaudooed in a past life? ;-)
# 17:12:54 Strogg lol vaudooed?
# 17:12:55 y_morin That's just plain strange...
# 17:13:54 y_morin Strogg: (Voodooed with the correct spelling): https://en.wikipedia.org/wiki/Louisiana_Voodoo
# 17:13:58 Strogg I'm gonna try to s/. /source /
# 17:15:04 Strogg hrmmm same
# 17:15:53 Strogg Whhhhaaaaaaaaa?
# 17:16:02 y_morin ?
# 17:16:49 Strogg just for kicks.. I opened a new terminal, cd ct-ng, did ". .config.2" and then "set"
# 17:16:57 Strogg the wrong CT values are there
# 17:17:03 Strogg w.t.f?
# 17:17:12 y_morin Strogg: Uh?
# 17:17:35 y_morin What is setting those variables? You have an environment issue...
# 17:17:47 Strogg oh! wait.
# 17:17:52 Strogg my shell is zsh..
# 17:17:54 Strogg bashes
# 17:18:22 Strogg doesn't make sense. where is that coming from?
# 17:19:35 Strogg ok.. opened new terminal. cd ct-ng; cat .config.2
# 17:19:57 Strogg good.
# 17:20:06 Strogg . .config.2 and then set
# 17:20:35 Strogg 4.3
# 17:20:58 Strogg I am confused beyond belief
# 17:21:56 Strogg wtf!
# 17:22:02 Strogg cat .config.2 > foo
# 17:22:05 Strogg . foo
# 17:22:08 Strogg .: no such file or directory: foo
# 17:22:48 Strogg AHA
# 17:23:00 Strogg zsh is interfering some how...
# 17:23:22 Strogg chsh's
# 17:24:11 Strogg AHA!
# 17:24:13 Strogg gotcha.
# 17:24:18 Strogg it's working
# 17:24:35 Strogg ok.. afk 10 minutes while this builds and my head explodes. lol
# 17:50:05 smartin_ quits : Ping timeout: 264 seconds
# 17:54:36 djerome joins #crosstool-ng
# 17:59:00 smartin_ joins #crosstool-ng
# 18:01:27 djerome quits : Remote host closed the connection
# 18:02:43 djerome joins #crosstool-ng
# 18:38:13 smartin_ quits : Ping timeout: 240 seconds
# 19:12:45 smartin_ joins #crosstool-ng
# 19:29:47 doc2 quits : Remote host closed the connection
# 20:21:06 smartin_ quits : Quit: leaving
# 20:45:17 diorcety quits : Read error: Connection reset by peer
# 22:01:47 sh[4]rm4 joins #crosstool-ng
# 22:03:59 sh4rm4 quits : Ping timeout: 252 seconds
# 22:13:24 sh[4]rm4 is now known as: sh4rm4
# 22:14:20 Strogg Ahhhhhhhhhh. :)
# 22:14:23 Strogg everything works
# 22:14:46 Strogg I can build, the stlink interface works, I can run openocd over it and gdb works as well
# 22:14:54 Strogg I can die in peace. lol
# 22:15:01 Strogg y_morin: thanks for your help today. :)
# 22:15:19 y_morin Strogg: Hey! Good to read that! :-)
# 22:27:03 y_morin quits : Quit: Nighty Night!
# 23:07:05 sh4rm4 quits : Remote host closed the connection
# 23:07:25 sh4rm4 joins #crosstool-ng

Generated by ibotlog2html by Yann E. MORIN