ibotlog2html for #crosstool-ng

<< Previous 2011-06-29 Next >>

# 00:57:24 Buglouse joins #crosstool-ng
# 02:59:21 bhundven quits : Quit: leaving
# 03:02:26 bhundven joins #crosstool-ng
# 05:09:03 al`_ is now known as: al`
# 06:19:03 bhundven hey al`, I'm trying to get the go compiler to go in ctng and I get this error: /home/bryan/builds/mips64-octeon-linux-gnu/.build/src/gcc-4.6.1/libgo/syscalls/syscall_linux.go:119:38: error: use of undefined type 'PtraceRegs'
# 06:19:58 bhundven I've tried tracing this down, it it should be in sysinfo.go which is generaged by mksysinfo.sh
# 06:20:51 kos_tom joins #crosstool-ng
# 06:21:22 bhundven I checked sysinfo.go, and don't see that type PtraceRegs struct defined in there.
# 06:22:53 bhundven I see you've done some work on this stuff, so I figured I'd ask you.
# 06:23:09 kos_tom quits : Remote host closed the connection
# 06:28:58 bhundven ok, so gen-sysinfo.go doesn't contain _user_regs_struct
# 06:29:18 bhundven on linux building a linux cross compiler.
# 06:29:36 bhundven # The registers returned by PTRACE_GETREGS. This is probably
# 06:29:36 bhundven # GNU/Linux specific; it should do no harm if there is no
# 06:29:37 bhundven # _user_regs_struct.
# 06:38:54 bhundven is now known as: bhundven|afk
# 06:48:58 bhundven|afk is now known as: bhundven
# 06:49:05 bhundven ah, mips doesn't have user_regs_struct
# 06:51:28 kos_tom joins #crosstool-ng
# 06:52:52 bhundven but it does have pt_regs
# 06:53:34 bhundven oh well.
# 06:53:37 bhundven is now known as: bhundven|afk
# 08:32:10 Buglouse quits : Ping timeout: 246 seconds
# 09:52:53 y_morin joins #crosstool-ng
# 14:08:50 mnt_real joins #crosstool-ng
# 15:30:52 kos_tom quits : Quit: Leaving
# 16:20:39 Buglouse joins #crosstool-ng
# 19:57:00 bhundven|afk is now known as: bhundven
# 20:04:38 bhundven so trying to add go to ctng is funky
# 20:04:56 bhundven some architectures have user_regs_struct, and some dont
# 20:04:56 y_morin Hehe! :-)
# 20:05:03 bhundven (in the kernel)
# 20:05:33 bhundven the structure holds the registers to dump on a backtrace
# 20:05:37 y_morin Hmm. Not implemented already, and because of arch issues?
# 20:05:44 bhundven not sure
# 20:06:03 bhundven /home/bryan/builds/mips64-octeon-linux-gnu/.build/src/gcc-4.6.1/libgo/syscalls/syscall_linux.go:119:38: error: use of undefined type 'PtraceRegs'
# 20:07:10 bhundven PtraceRegs is a structure that is generated if user_regs_struct is defined, but the comment says:
# 20:07:23 bhundven # The registers returned by PTRACE_GETREGS. This is probably
# 20:07:33 bhundven # GNU/Linux specific; it should do no harm if there is no
# 20:07:41 bhundven # _user_regs_struct.
# 20:08:03 bhundven but it obviously does some harm if it is linux and does not have user_regs_struct
# 20:08:17 y_morin So gcc defines PtraceRegs if it finds user_regs_struct in the kernel headers?
# 20:08:40 bhundven mksysinfo.sh generates sysinfo.go, which defines PtraceRegs
# 20:08:50 bhundven ick
# 20:09:23 y_morin Yep, only 7 arch in Linux git has this struct. :-/
# 20:09:53 y_morin What arch are you trying to build for ?
# 20:10:04 bhundven well, in that example, it was mips.
# 20:10:23 y_morin Just occurred to me: is it needed on the host or on the target?
# 20:10:32 y_morin Indeed, mips does not have it...
# 20:10:41 bhundven that part I am not sure about.
# 20:11:08 bhundven my host is x86 (i686) or x86_64. I tried both.
# 20:11:23 y_morin What kernel ?
# 20:11:29 bhundven 2.6.39.2
# 20:11:40 bhundven (debian sid)
# 20:11:52 bhundven and using 2.6.39.2 in my ct-ng config
# 20:13:11 bhundven again, I'm looking at the problem from the outside->in
# 20:13:29 bhundven I'm sure if I started looking at the code from the inside->out, I might find a better solution.
# 20:13:44 bhundven and go doesn't do #ifdef ;)
# 20:13:52 bhundven afaik
# 20:13:59 y_morin Looking at the code, seems it's needed for the target
# 20:14:23 y_morin doesn't know Go, except for what it is...
# 20:14:43 bhundven i'm still learning
# 20:14:49 y_morin :-)
# 20:15:01 bhundven but by far, no expert
# 20:15:04 y_morin Maybe I'll find some time to look at it one day...
# 20:15:41 bhundven I'll keep poking at it, but much lower priority to stuff like multilib and snapshot support.
# 20:15:54 y_morin What I would kill for, is a language that is very, very similar to C or C++,
# 20:16:02 y_morin and that can be scripted.
# 20:16:25 bhundven binfmt
# 20:16:27 y_morin lua seemed a good candidate, but I did not have time to look too deeply.
# 20:16:28 bhundven :-)
# 20:16:32 y_morin Hehe! :-)
# 20:16:36 bhundven yuck, I use lua at work.
# 20:16:51 bhundven it's nice because it is embedded and easy to extend
# 20:16:51 y_morin Eventually, I'd like to replace my login shell with such a language.
# 20:16:56 bhundven but it is a pain
# 20:17:01 y_morin So, what are your feelings ?
# 20:17:06 y_morin Oh.
# 20:17:21 y_morin In what sense?
# 20:17:53 bhundven scrambles for some examples
# 20:18:38 bhundven well, we use 5.0, not 5.1
# 20:18:46 bhundven no modulo
# 20:18:50 bhundven so:
# 20:18:55 bhundven -- Lua 5.0 does not have the modulo '%' arithmetic operator.
# 20:18:55 bhundven -- 5.1 does... implementing here for gen_drive_entry()
# 20:18:55 bhundven function modulo (num, mod) return num - math.floor(num/mod) * mod
# 20:18:55 bhundven end
# 20:19:15 bhundven -- is a comment
# 20:19:23 bhundven --[[
# 20:19:27 bhundven is a comment block
# 20:19:29 bhundven --]]
# 20:20:07 bhundven ~= is !=
# 20:20:07 ctngbot bhundven: what are you talking about?
# 20:20:07 infobot bhundven: what are you talking about?
# 20:20:14 y_morin Hmm... Yet a new comment marker. Sad they did not use /**/ and //
# 20:20:17 y_morin Argg...
# 20:20:40 bhundven little language ticks that make me angry
# 20:20:56 y_morin is preparing ctngbot to properly spitout proper HTML logs for browsing
# 20:21:29 bhundven beyond the minor language ticks, I wish we could dump lua for python
# 20:21:33 y_morin Yes, I'd interpret ~= as a regexp matching...
# 20:21:40 bhundven exactly
# 20:21:53 bhundven and perl's regex is: =~
# 20:22:03 y_morin Yes, I was think about perl.
# 20:22:03 bhundven so my mind gets confused when programming
# 20:22:32 y_morin And I guess bach uses =~ as well...
# 20:22:37 bhundven .. is append,
# 20:22:52 bhundven so "strings " .. " are good"
# 20:23:03 bhundven heh, double space
# 20:23:04 y_morin Where php uses a single dot.
# 20:23:09 bhundven yup
# 20:23:20 y_morin Plus, you _need_ spaces around? Sigh...
# 20:23:26 bhundven ?
# 20:23:35 bhundven "strings " .. "are good"
# 20:23:40 bhundven ^^ is what I meant
# 20:24:03 y_morin I meant: spaces arount '..' are needed?
# 20:24:11 y_morin *around
# 20:24:21 y_morin crontab -u infobot -l
# 20:24:22 bhundven I'm not sure, but it is easier to read.
# 20:24:28 y_morin Woops. wrong window...
# 20:26:05 bhundven you can import code, but not like other languages
# 20:26:14 bhundven new_entries, cError = loadfile(d_pkgspec)
# 20:26:59 bhundven where, new_entries is the loaded code, and cError contains the error - if any - and d_pkgspec is the string containing the code.
# 20:26:59 y_morin What interested me in lua was the genericity. It's a language, and it can be extended. For examples, classes are not in the language, but you could add them programatically.
# 20:27:11 bhundven right
# 20:27:34 y_morin Hmm, the syntax seems pretty obscur to me.
# 20:27:43 y_morin Not what I am used to... :-/
# 20:27:50 bhundven and we extend lua a lot. when we started using it there weren't posix extentions for fs stuff (like stat)
# 20:28:03 bhundven so we had to add it ourselves
# 20:28:20 bhundven but there are modules you can get that have that now.
# 20:28:42 bhundven I'm not saying it's a bad language, I just think it's a pita
# 20:28:56 bhundven long term
# 20:29:04 y_morin And doing something that different from other languages when there are already a bunch of interesting ones (python, perl...), it will probably have difficulties gaining momentum...
# 20:29:25 bhundven not really, there is a lot of momentum for lua
# 20:29:31 bhundven wow uses lua
# 20:29:44 y_morin The interesting part IMHO is the size of the runtime: very small when compared to python / perl.
# 20:29:50 y_morin wow ?
# 20:29:51 bhundven yea, 12k
# 20:29:56 bhundven world of warcraft
# 20:30:03 y_morin Oh...
# 20:30:09 bhundven doesn't play video games, I just learned that.
# 20:30:18 y_morin stopped playing on his computer some 13 years ago...
# 20:30:36 bhundven I haven't played video games since doom 1
# 20:31:14 bhundven well, ok... diablo, but anyways. if I want to learn a weird language, I learn lisp
# 20:31:20 y_morin I played, and finished Doom 2 and Tomb Raider 1. Then stopped, save for the occasional LAN party one every two years with some friends...
# 20:31:39 bhundven heh
# 20:32:03 y_morin OK, back on the Go subject...
# 20:32:24 y_morin I guess the interesting par wrt crosstool-NG is make it work on the supported arch first.
# 20:32:43 bhundven as I said: I'll keep poking at it, but much lower priority to stuff like multilib and snapshot support.
# 20:33:15 bhundven I'd rather work on the later stuff, but yea, it would be good to test that I can build a x86->x86_64 with go
# 20:33:32 y_morin bhundven: about multilib: I think I already mentioned kos_tom (lurking here from time to time) was also interested?
# 20:33:41 y_morin Of course, I too am.
# 20:33:41 bhundven yes. I've talked with him
# 20:33:51 y_morin OK.
# 20:34:29 y_morin It's quite low on my own list, because I for now prefer one toolchain per target system.
# 20:34:31 bhundven he said he was just tinkering with it and trying to get it to work in his own scripts first. just as a hobby. which is probably how I'd approch it too
# 20:35:13 bhundven I'd like to gate multilib, so that you can only do it for certain combinations.
# 20:35:13 y_morin Yes. I briefly saw him early June, but we did not have time to talk about this.
# 20:35:36 y_morin Yes. I;d like to see smthg like:
# 20:35:48 y_morin [*] Enable multilib
# 20:35:52 bhundven but make the gate easy to change so you can experiment with different combinations not supported.
# 20:36:05 y_morin (arm armv5 armv5tej) List of multilib to enable
# 20:36:18 y_morin [*] All know combos
# 20:36:33 y_morin Te above where menuconfig-style quote.
# 20:36:44 bhundven yup
# 20:36:54 bhundven what is all known combos?
# 20:37:26 y_morin THere are a few listed on the gcc configure page: http://gcc.gnu.org/install/configure.html
# 20:37:51 bhundven oh. under --disable-multilib
# 20:37:59 y_morin Yeah.
# 20:39:06 bhundven heh, I think I like the idea of gating what we've tested, so a user could not create an unknown combo until we/he has tested it.
# 20:39:38 y_morin Fact is, there does not seem to be a way to specify the set of multilib. Only enable (default), or disable all.
# 20:40:05 bhundven yea, the only arch supports a list is sh
# 20:40:43 y_morin OTOH, once gcc is built, we can always ask it for the list of multilibs, their dirs and their options
# 20:40:45 bhundven --enable-targets
# 20:41:10 y_morin Only sparc, ppc x86 and mips.
# 20:41:41 y_morin When ARM is an arch where mutilib would be highly interesting.
# 20:42:23 bhundven heh.
# 20:42:30 bhundven ok. back to work. I'll be back later.
# 20:42:35 y_morin See ya.
# 20:42:36 bhundven is now known as: bhundven|afk
# 20:50:05 linuxjacques joins #crosstool-ng
# 21:26:06 kos_tom joins #crosstool-ng
# 22:21:30 kos_tom quits : Ping timeout: 255 seconds
# 23:04:57 y_morin quits : Quit: `nite all!
# 23:33:58 linuxjacques quits : Quit: Page closed
# 23:42:35 Buglouse quits : Read error: Connection reset by peer

Generated by ibotlog2html by Yann E. MORIN