ibotlog2html for #crosstool-ng

<< Previous 2013-03-06 Next >>

# 01:06:16 codyps quits : Ping timeout: 245 seconds
# 01:17:09 codyps joins #crosstool-ng
# 01:54:10 nandub quits : Ping timeout: 256 seconds
# 02:16:02 nandub joins #crosstool-ng
# 02:37:43 alan_o quits : Remote host closed the connection
# 05:16:15 sh4rm4 quits : Remote host closed the connection
# 05:22:44 sh4rm4 joins #crosstool-ng
# 06:15:28 sfan5|OFF is now known as: sfan5
# 06:19:50 smartin joins #crosstool-ng
# 06:36:43 sfan5 is now known as: sfan5|OFF
# 06:44:58 plfiorini quits : Quit: Communi 2.0.0
# 07:41:09 sfan5|OFF quits : Quit: Quit!
# 07:50:23 diorcety1 quits : Quit: Leaving.
# 08:28:24 hrubi quits : Ping timeout: 264 seconds
# 08:30:17 hrubi joins #crosstool-ng
# 09:48:11 nandub quits : Quit: leaving
# 10:30:47 Net147 joins #crosstool-ng
# 11:38:02 nandub joins #crosstool-ng
# 11:56:38 smartin quits : Ping timeout: 255 seconds
# 12:12:04 smartin joins #crosstool-ng
# 13:02:04 Net147 quits : Quit: Want to be different? Try HydraIRC -> http://www.hydrairc.com <-
# 15:02:41 nandub quits : Quit: leaving
# 16:21:08 sh4rm4 quits : Remote host closed the connection
# 16:23:51 sh4rm4 joins #crosstool-ng
# 17:02:57 diorcety joins #crosstool-ng
# 17:11:56 smartin quits : Quit: leaving
# 18:05:06 smartin joins #crosstool-ng
# 18:25:15 Colin2 joins #crosstool-ng
# 18:25:28 Colin2 is now known as: Guest72691
# 18:25:42 Guest72691 is now known as: Colin3
# 18:26:42 Colin3 Can someone help me with a build question? I am trying to compile for a system that needs the flag -meabi=4 but it fails and says this 'arm-unknown-linux-gnueabi-gcc: error: unrecognized command line option '-meabi=4''
# 19:01:07 plfiorini joins #crosstool-ng
# 19:18:53 codyps quits : Ping timeout: 245 seconds
# 19:27:32 codyps joins #crosstool-ng
# 20:00:21 y_morin joins #crosstool-ng
# 20:02:01 Colin3 Doesn anyone know how to change the EABI verison?
# 20:08:05 y_morin Colin3: Hello! What do you mean by "EABI version" ? Currently, IIRC, we're speaking EABI version 5, and it is, AFAIK, the only one.
# 20:08:32 Colin3 I have a system that is using Version4
# 20:12:20 Colin3 But I cannot find any information about how I would be able to compile for that
# 20:13:52 y_morin Colin3: EABI version4 was a pre-release of EABI: http://gcc.gnu.org/ml/gcc-patches/2009-01/msg00708.html
# 20:14:29 y_morin Colin3: according to this mail, it seems you *may* be able to use -meabi=4.
# 20:14:48 y_morin Colin3: But then, all you libraries and executable must be compiled with this flag.
# 20:14:52 Colin3 If I set that as a flag it errors: arm-unknown-linux-gnueabi-gcc: error: unrecognized command line option '-meabi=4''
# 20:15:24 y_morin Colin3: then, you have to 'downgrade' to an older gcc that supports that flag.
# 20:16:49 Colin3 Hmm, that is unfortunate because I need to compile Go... shucks
# 20:19:28 y_morin Colin3: or you can rebuild all your other applications with the new toolchain.
# 20:20:57 Colin3 How would I do that?
# 20:23:48 y_morin Colin3: Well, you take the source coce and you recompile.
# 20:25:17 Colin3 Well, the real issue is that when I compile a program with with gccgo it says Illegal Instruction. When we read the ELF headers on that file and a binary that is working on the system the only difference is the EABI version.
# 20:48:35 tkil instruction set is different from abi...
# 20:48:57 tkil former usually involves cpu generations, latter involves how system calls and other functions are arranged (stacks, parameters, etc).
# 20:49:17 tkil granted, wrong abi can leave the cpu trying to execute something that isn't an instruction, but...
# 21:27:55 smartin quits : Quit: leaving
# 22:01:59 Colin3 Where do I put the with-arch and with-tune flags?
# 22:03:03 tkil for building the cross-compiler, or for building your kernel / libs / apps with the cross-compiler?
# 22:03:52 Colin3 For building the cross compiler
# 22:06:38 tkil the script includes this, dunno if you can set it directly in config: CT_CC_EXTRA_CONFIG_ARRAY
# 22:06:45 tkil (in scripts/build/cc/gcc.sh, IIRC.)
# 22:07:00 tkil i need to go afk for a while, sadly. good luck!
# 22:07:23 y_morin Colin3: It's in the "Target options" sub-menu
# 22:07:46 y_morin Colin3: Don't set them as tkil said, there are options dedicated just for that
# 22:09:25 Colin3 So put --with-arch in Architecture level and --with-tune in cflags?
# 22:09:34 y_morin Colin3: See "Architecture level" (aka --with-arch), "Emit assembly for CPU" (aka --with-cpu) and so on.
# 22:10:17 y_morin Colin3: They are not CFLAGS, they are gcc's ./configure options to set st the defaults for -march, -mtune and so on...
# 22:10:32 y_morin s/st //
# 22:11:21 y_morin Colin3: I may get disconnected in the seconds to come. If so, I'll reconnect shortly.
# 22:11:56 y_morin quits : Remote host closed the connection
# 22:15:39 y_morin joins #crosstool-ng
# 22:27:07 tkil oops, sorry for misinfo. :(
# 22:29:47 y_morin tkil: No prob. ;-)
# 22:55:34 Colin3 Is there anyway for me to tell which arch and tune flags to use? Processor : ARM926EJ-S rev 5 (v5l); CPU architecture: 5TEJ
# 22:58:52 y_morin Colin3: You mean, when *building* the cross-compiler? Or when *running* the cross-compiler?
# 22:59:58 Colin3 Sorry, building... Need to specify these things :]
# 23:00:23 y_morin Colin3: Are you using crosstool-NG to build your toolchain?
# 23:00:27 Colin3 Yes
# 23:01:30 y_morin Colin3: Then I already answered how you can do that: Go to the "Target options" sub-menu, and enter appropriate values in "Architecture level", "Emit assembly for CPU" and the likes.
# 23:01:48 y_morin Colin3: See the help text for each entry to see what it corresponds to
# 23:11:05 Colin3 I think I am missing something dumb then. I build the compiler and then do 'arm-unknown-linux-gnueabi-gcc --static -o hello hello.c' and then move the file over to the arm system and it says illegal instruction... Do I have to put flags on the compile as well?
# 23:12:24 y_morin Colin3: If you want to be sure, then specify the same -march -mtune (and so on) when compiling your hello. If it still say "illegal instruction" then it's not the correct values.
# 23:13:11 y_morin Colin3: The options you specify in the menuconfig are the values the cross-gcc will use by default if it is called without any -march or -mtune or -mcpu...
# 23:13:37 y_morin Colin3: Care to share the values you used?
# 23:14:09 Colin3 Sure... --march armv5te --mtune arm926ej-s
# 23:15:55 y_morin Colin3: can you share your .config, please?
# 23:23:03 Colin3 http://pastebin.com/jG7TQA7e
# 23:23:06 Colin3 Need to reconnect
# 23:23:43 Colin3_ joins #crosstool-ng
# 23:23:52 Colin3_ Sorry about that
# 23:24:37 y_morin Colin3: Does your processor have an FPU (eg. vfp or the likes)?
# 23:25:07 Colin3 parts #crosstool-ng
# 23:25:41 y_morin Colin3_: Does your processor have an FPU (eg. vfp or the likes)?
# 23:27:17 Colin3_ Hmm, how do I tell?
# 23:28:06 y_morin Colin3_: What CPU is it?
# 23:34:26 Colin3_ It has no FPU
# 23:37:14 y_morin Colin3_: then your .config is wrong: you configured for hardfloat. You need to set "Floating point" to "software (no FPU)" (in the "Target options" sub-menu, too)
# 23:38:11 y_morin Colin3_: Maybe this illegal instruction of yours is due to this setting.
# 23:38:33 y_morin Colin3_: 00:40 here, got to go to bed, now.
# 23:39:01 y_morin Colin3_: I'll be back tomorrow evening (UTC+1), so ping me then if you still have issues.
# 23:39:11 y_morin Colin3_: Or post to the mailing list.
# 23:39:18 y_morin quits : Quit: Nighty Night!
# 23:41:52 Colin3_ parts #crosstool-ng

Generated by ibotlog2html by Yann E. MORIN