ibotlog2html for #crosstool-ng

<< Previous 2016-02-25 Next >>

# 02:50:08 blueness quits : Quit: blueness
# 03:34:21 blueness joins #crosstool-ng
# 04:21:09 blueness quits : Quit: blueness
# 04:36:28 blueness joins #crosstool-ng
# 05:17:54 Norm joins #crosstool-ng
# 05:18:13 Norm admittedly this is a super lame question, but i’ve got crosstool working, am trying to compile something for an embedded ARM system
# 05:18:17 Norm but am not sure what sample i should use
# 05:18:29 Norm uname -a shows “2.6.36 #1 SMP PREEMPT Tue Feb 2 00:23:15 PST 2016 armv7l GNU/Linux”
# 05:18:36 Norm so i tried armv7-rpi2-linux-gnueabihf
# 05:18:50 Norm but even a simple “hello world” program yields “Illegal instruction (core dumped)"
# 05:18:54 Norm not sure where i’m going wrong :)
# 05:19:56 bhundven Norm: doesn't seem too lame, but lacking info
# 05:20:13 bhundven you are building ON an arm system or for an arm system?
# 05:20:17 Norm no, x86 for arm
# 05:20:30 bhundven the uname tripped me up
# 05:20:40 Norm oh sorry, uname was from the target system
# 05:20:53 bhundven so instead: cat /proc/cpuinfo
# 05:20:53 Norm compiling on 2.6.32-573.18.1.el6.x86_64 #1 SMP Wed Jan 6 11:20:49 EST 2016 x86_64 x86_64 x86_64 GNU/Linux
# 05:21:02 Norm (so x86_64)
# 05:21:07 bhundven on the arm system
# 05:21:10 Norm ok...
# 05:21:41 Norm https://gist.github.com/anonymous/ea35fbd58de51b8514d0
# 05:21:43 bhundven oh, v7l
# 05:23:03 bhundven I'm guessing it's the hardfloat
# 05:23:16 bhundven try building arm-unknown-linux-gnueabi
# 05:23:29 bhundven but in arch use: armv7
# 05:23:58 bhundven CT_ARCH_CPU
# 05:24:02 Norm i feel myself on the verge of a wiki-spiral (hours reading wikipedia) :)
# 05:24:13 Norm let me give that a shot, just a sec...
# 05:24:26 bhundven ok so to take a step back
# 05:24:46 bhundven is the target arm board a raspberry pi 2?
# 05:24:58 Norm no
# 05:25:00 bhundven ok
# 05:25:14 Norm one problem is i don’t know that much about the target board, it’s a wireless access point
# 05:25:17 bhundven then you don't want: armv7-rpi2-linux-gnueabihf
# 05:25:28 Norm oh haha rpi2 == raspberri pi
# 05:25:32 bhundven ;)
# 05:25:32 Norm definitely didn’t catch that
# 05:25:45 bhundven what is the target WAP?
# 05:26:27 Norm Aerohive AP130
# 05:28:43 bhundven again, I'd just build: arm-unknown-linux-gnueabi and set CT_ARCH_CPU to armv7
# 05:29:15 Norm i’ll give it a shot
# 05:29:21 Norm this is definitely a new crazy world :)
# 05:29:27 bhundven not setting CT_ARCH_CPU would make a generic toolchain, which should still execute on the target
# 05:29:30 Norm thanks for the help!
# 05:29:44 bhundven it just won't be optimized for armv7
# 05:30:38 bhundven Norm: also, if you need help an no one is answering, stick around. I'm about to go sleep. So I'll be out for the night, but you can also hit the mailing list if you need help.
# 05:31:01 Norm okay just to be clear (googling now), i just export CT_ARCH_CPU=armv7 before building?
# 05:31:24 bhundven no, in the directory you're building the toolchain, there should be a .config file
# 05:31:35 bhundven either edit it, or run ct-ng menuconfig
# 05:31:56 Norm yeah menuconfig doesn’t give me armv7 as an option, only arm
# 05:32:00 Norm i’ll do the .config file
# 05:32:19 bhundven on menuconfig you should find that Target Options -> Emit assembly for CPU
# 05:32:34 Norm okay i’ll check it out, thanks again for the help!
# 05:32:55 bhundven https://gcc.gnu.org/onlinedocs/gcc-5.3.0/gcc/ARM-Options.html#ARM-Options
# 05:33:00 bhundven is also helpful
# 05:33:07 Norm got it
# 05:34:36 bhundven (see -mtune -march -mcpu
# 05:35:07 bhundven CT_ARCH_TUNE, CT_ARCH_ARCH, and CT_ARCH_CPU match the above options)
# 05:37:30 Norm mmm, anger…
# 05:37:36 Norm lib/crosstool-ng-1.22.0/scripts/build/arch/armv7.sh: No such file or directory
# 05:37:39 Norm i’ll stick with “arm” for now
# 07:03:27 JakeSays quits : Ping timeout: 244 seconds
# 07:05:02 JakeSays joins #crosstool-ng
# 07:42:11 Norm quits : Read error: Connection reset by peer
# 07:45:17 diorcety joins #crosstool-ng
# 07:58:13 Norm joins #crosstool-ng
# 08:02:44 diorcety quits : Quit: Leaving.
# 09:10:57 diorcety joins #crosstool-ng
# 09:38:29 bhundven quits : Ping timeout: 240 seconds
# 10:05:48 diorcety quits : Ping timeout: 244 seconds
# 10:24:05 diorcety joins #crosstool-ng
# 10:30:37 bhundven joins #crosstool-ng
# 11:19:28 blueness quits : Quit: blueness
# 11:23:19 blueness joins #crosstool-ng
# 12:02:15 blueness quits : Quit: blueness
# 12:36:05 blueness joins #crosstool-ng
# 12:41:57 blueness quits : Quit: blueness
# 12:46:17 blueness joins #crosstool-ng
# 12:47:57 blueness quits : Client Quit
# 13:01:18 bhundven quits : Quit: leaving
# 13:02:07 bhundven joins #crosstool-ng
# 13:37:45 bhundven quits : Quit: Lost terminal
# 13:56:36 bhundven joins #crosstool-ng
# 14:44:52 Norm quits : Quit: Norm
# 15:09:33 KaibutsuX quits : Ping timeout: 240 seconds
# 15:10:46 KaibutsuX joins #crosstool-ng
# 17:12:03 diorcety quits : Ping timeout: 244 seconds
# 18:25:33 diorcety joins #crosstool-ng
# 18:38:33 diorcety quits : Ping timeout: 240 seconds
# 19:22:17 y_morin joins #crosstool-ng
# 20:53:00 blueness joins #crosstool-ng
# 20:55:02 blueness quits : Client Quit
# 20:55:32 blueness joins #crosstool-ng
# 22:57:44 y_morin quits : Quit: Nighty Night! :-)

Generated by ibotlog2html by Yann E. MORIN