This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more infromation.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Hallo! I've tried to build a crosscompiler for the Lego-RCX (with Hitachi H8300 controller). I used " Full distributions and updates to full distribution GCC 2.95.2, gzip format, 12.5Meg" and instructions for building the crosscompiler from legos-howto: 5.Build the binutils with the following commands: cd build-binutils ../binutils-2.9.1/configure --target=h8300-hitachi-hms --prefix=/usr/local/crossgcc --exec-prefix=/usr/local/crossgcc/h8300-hitachi-hms make all make install 6.Add the new binutils to your PATH with one of these commands (which one works for you is shell-dependent): export PATH=/usr/local/crossgcc/h8300-hitachi-hms/bin:$PATH or setenv PATH /usr/local/crossgcc/h8300-hitachi-hms/bin:$PATH 7.Configure the cross-compiler with the following commands: cd ../build-egcs ../egcs-1.1.2/configure --target=h8300-hitachi-hms --prefix=/usr/local/crossgcc --exec-prefix=/usr/local/crossgcc/h8300-hitachi-hms --enable-target-optspace 8.At this point, you must edit the Makefile for the cross-compiler. Opening it in your editor of choice, find the line which starts with CFLAGS. After the options that are already there, add the string "-Dinhibit_libc" at the end. 9.Now, type the command: make cross LANGUAGES="c c++" Configuration of the crosscompiler worked fine, but make cross LANGUAGES="c c++" produced errors: /tmp/ccvH8FlK.s: Assembler messages: /tmp/ccvH8FlK.s:2: Error: no such 386 instruction: `libgcc1' /tmp/ccvH8FlK.s:3: Error: no such 386 instruction: `contributed' /tmp/ccvH8FlK.s:4: Error: invalid character '@' in opcode /tmp/ccvH8FlK.s:93: Error: invalid character '.' in opcode /tmp/ccvH8FlK.s:94: Error: no such 386 instruction: `bne' /tmp/ccvH8FlK.s:95: Error: invalid character '.' in opcode /tmp/ccvH8FlK.s:96: Error: no such 386 instruction: `bne' /tmp/ccvH8FlK.s:97: Error: invalid character '.' in opcode /tmp/ccvH8FlK.s:98: Error: no such 386 instruction: `rts' /tmp/ccvH8FlK.s:100: Error: invalid character '.' in opcode /tmp/ccvH8FlK.s:101: Error: no such 386 instruction: `bgt' /tmp/ccvH8FlK.s:102: Error: no such 386 instruction: `bne' /tmp/ccvH8FlK.s:103: Error: invalid character '.' in opcode /tmp/ccvH8FlK.s:104: Error: no such 386 instruction: `bls' /tmp/ccvH8FlK.s:106: Error: invalid character '.' in opcode /tmp/ccvH8FlK.s:107: Error: no such 386 instruction: `rts' /tmp/ccvH8FlK.s:109: Error: invalid character '.' in opcode /tmp/ccvH8FlK.s:111: Error: no such 386 instruction: `rts' make[1]: *** [libgcc1-asm.a] Error 1 make[1]: Leaving directory `/usr/local/crossgcc/dir/build-gcc/gcc' make: *** [cross] Error 2 I use Suse Linux Distribution 6.1. What is wrong? What can I do to successful build the crosscompiler? Please send me an email, I'm not a member of the mailing list. Thanks and best regards. Michael Wisse ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |