|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
problems compiling gcc-4.2.2 with or32-elf targetHi,
Please correct me if I'm wrong, I'm quite new to embedded programming and even C programming, but I'm trying the best I can. I have a Jennic JN5139 set, which includes a IDE and toolchain for windows only. But I want to get the toolchain running under linux. On the Jennic forum there is a link to this page: http://www.zubira.com/openrisc/or1k_gcc3_4_4_bu2_11_93.html But the source files are not available anymore, and the owner is unreachable. After some googling and trying out I stumbled upon opencores, which maintains the or32 toolchain. I downloaded or1k toolchain, and started compiling binutils and gcc. But with GCC I encountered some problems. My GCC doesn't support -Wno-overlength-strings but somehow the configure scripts thinks it does. I removed all no-overlength-strings statements from the configure script, and now it compiles. Maybe this is a bug, or maybe my error, I don't know. The next problem I have, and this one I can't solve, is this: /home/gijs/Stuff/or1k-tools/build/b-gcc/./gcc/xgcc -B/home/gijs/Stuff/or1k-tools/build/b-gcc/./gcc/ -B/usr/local/or32-elf/or32-elf/bin/ -B/usr/local/or32-elf/or32-elf/lib/ -isystem /usr/local/or32-elf/or32-elf/include -isystem /usr/local/or32-elf/or32-elf/sys-include -O2 -O2 -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fomit-frame-pointer -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I../../gcc-4.2.2/gcc -I../../gcc-4.2.2/gcc/. -I../../gcc-4.2.2/gcc/../include -I../../gcc-4.2.2/gcc/../libcpp/include -I../../gcc-4.2.2/gcc/../libdecnumber -I../libdecnumber -DL__mulsi3 -xassembler-with-cpp -c ../../gcc-4.2.2/gcc/config/or32/or32.S -o libgcc/./__mulsi3.o ../../gcc-4.2.2/gcc/config/or32/or32.S: Assembler messages: ../../gcc-4.2.2/gcc/config/or32/or32.S:12: Internal error! Assertion failure in or32_ip at ../../binutils-2.18.50/gas/config/tc-or32.c line 436. Please report this bug. make[3]: *** [libgcc/./__mulsi3.o] Error 1 make[3]: Leaving directory `/home/gijs/Stuff/or1k-tools/build/b-gcc/gcc' make[2]: *** [libgcc.a] Error 2 make[2]: Leaving directory `/home/gijs/Stuff/or1k-tools/build/b-gcc/gcc' make[1]: *** [all-gcc] Error 2 make[1]: Leaving directory `/home/gijs/Stuff/or1k-tools/build/b-gcc' make: *** [all] Error 2 So hereby I report a bug :) I tried to search the mailingarchives, but I couldnt figure out if this was posted before. My Linux distribution is Ubuntu 8.10, I tried GCC 4.1 and 4.3. My configure statement is: ../gcc-4.2.2/configure --target=or32-elf --prefix=/usr/local/or32-elf --enable-languages=c,c++ --with-gnu-as --with-gnu-ld --with-newlib --with-gxx-include-dir=/usr/local/or32-elf/or32-elf/include Anyone has a idea? Thanks, - Gijs _______________________________________________ http://www.opencores.org/mailman/listinfo/openrisc |
|
|
Re: problems compiling gcc-4.2.2 with or32-elf targetOn Tue, 2009-01-06 at 11:34 +0100, Gijs Molenaar wrote:
> Please correct me if I'm wrong, I'm quite new to embedded programming > and even C programming, but I'm trying the best I can. I have a Jennic > JN5139 set, which includes a IDE and toolchain for windows only. But I > want to get the toolchain running under linux. > > On the Jennic forum there is a link to this page: > http://www.zubira.com/openrisc/or1k_gcc3_4_4_bu2_11_93.html > > But the source files are not available anymore, and the owner is > unreachable. After some googling and trying out I stumbled upon > opencores, which maintains the or32 toolchain. I downloaded or1k > toolchain, and started compiling binutils and gcc. But with GCC I > encountered some problems. > > My GCC doesn't support -Wno-overlength-strings but somehow the > configure > scripts thinks it does. I removed all no-overlength-strings statements > from the configure script, and now it compiles. Maybe this is a bug, > or > maybe my error, I don't know. Hi Gijs, I'll address your technical issue below, but first some general comment. Whoever supplied your GCC compiler is obliged to supply you with the source code. You should tell them that the link is broken, and request that they supply you with the GCC source. Most companies understand this and are quick to fix the problem. The Free Software Foundation provides advice on how to deal with GPL license problems. http://www.fsf.org/licensing/licenses/gpl-violation.html I don't understand your comment about GCC not supporting -Wno-overlength-strings. Could you explain further. Editing the GCC configure script is almost certain to end in disaster! I don't believe the target "or32-elf" has been tested recently. The only target I know is valid is "or32-uclinux". However this is an ELF target, so should be suitable for you. How well the compiled code will work depends on how close the JN5139 is to a standard OR1200 core. Since the OR1200 core is licensed under the LGPL, you should be able to get the source code of the processor core (but not anything else) from your JN5139 supplier and compare it. You may find the following application note helpful: http://www.embecosm.com/download/ean2.html HTH, Jeremy -- Tel: +44 (1202) 416955 Cell: +44 (7970) 676050 SkypeID: jeremybennett Email: jeremy.bennett@... Web: www.embecosm.com _______________________________________________ http://www.opencores.org/mailman/listinfo/openrisc |
|
|
Re: problems compiling gcc-4.2.2 with or32-elf targettry using --target =or32-uclinux --disable -checking option with configure..it might help...
|
| Free embeddable forum powered by Nabble | Forum Help |