1/1

|
OpenRISC gcc Porting Issues
by Unknown on Oct 24, 2004 |
Not available! | ||
|
Hello Everyone,
I am trying to create a cross compiler using gcc-3.4.2, using the
binutils given in the
(http://www.opencores.org/projects.cgi/web/or1k/gnu_toolchain_port). I
am running into the following difficulty (please see below as I have
cut and pasted the result that I get). It is having troubles compiling
the libgcc2.c. The below is the result I get right before the makefile
crashes. I know some of the "#defines" used in the or32.c from the
previous version have changed and I have updated them using the gcc
internals manual. I have updated the config.gcc and all the
configuration files that need to be updated according to the gcc manual
to the best of my knowledge. I have also verified that the makefile (or
configure script) does capture cross assembler and loader correctly. I
don't know what is going wrong. I have also unsuccessfully tried using
GDB to try to pinpoint the problem. It is configured using the
following line.
configure --target=or32-uclinux -prefix=/tmp/opt/or32-uclinux
--with-local-prefix=/tmp/opt/or32-uclinux/or32-uclinux --with-gnu-as
--with-gnu-ld --enable-languages=c
Any help is appreciated.
Thanking You,
Yours Sincerely
Balaji V. Iyer.
PS: I have replaced my absolute directory path with "~" in the below
output snippet right before cut and pasting.
======================== MY OUTPUT ERROR ===============================
mkdir -p -- libgcc
if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
/tmp/or1k/b-gcc-3.4.2/gcc/xgcc -B/tmp/or1k/b-gcc-3.4.2/gcc/
-B/tmp/opt/or32-uclinux/or32-uclinux/bin/
-B/tmp/opt/or32-uclinux/or32-uclinux/lib/ -isystem
/tmp/opt/or32-uclinux/or32-uclinux/include -isystem
/tmp/opt/or32-uclinux/or32-uclinux/sys-include -O2 -DIN_GCC
-DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition -isystem ./include -g
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I.
-I~/gcc-3.4.2/gcc -I~/gcc-3.4.2/gcc/. -I~/gcc-3.4.2/gcc/../include
-DL__mulsi3 -xassembler-with-cpp -c ~/gcc-3.4.2/gcc/config/or32/or32.S -o
libgcc/./__mulsi3.o
/tmp/or1k/b-gcc-3.4.2/gcc/xgcc -B/tmp/or1k/b-gcc-3.4.2/gcc/
-B/tmp/opt/or32-uclinux/or32-uclinux/bin/
-B/tmp/opt/or32-uclinux/or32-uclinux/lib/ -isystem
/tmp/opt/or32-uclinux/or32-uclinux/include -isystem
/tmp/opt/or32-uclinux/or32-uclinux/sys-include -O2 -DIN_GCC
-DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition -isystem ./include -g
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I.
-I~/gcc-3.4.2/gcc -I~/gcc-3.4.2/gcc/. -I~/gcc-3.4.2/gcc/../include
-DL__udivsi3 -xassembler-with-cpp -c ~/gcc-3.4.2/gcc/config/or32/or32.S -o
libgcc/./__udivsi3.o
/tmp/or1k/b-gcc-3.4.2/gcc/xgcc -B/tmp/or1k/b-gcc-3.4.2/gcc/
-B/tmp/opt/or32-uclinux/or32-uclinux/bin/
-B/tmp/opt/or32-uclinux/or32-uclinux/lib/ -isystem
/tmp/opt/or32-uclinux/or32-uclinux/include -isystem
/tmp/opt/or32-uclinux/or32-uclinux/sys-include -O2 -DIN_GCC
-DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition -isystem ./include -g
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I.
-I~/gcc-3.4.2/gcc -I~/gcc-3.4.2/gcc/. -I~/gcc-3.4.2/gcc/../include
-DL__divsi3 -xassembler-with-cpp -c ~/gcc-3.4.2/gcc/config/or32/or32.S -o
libgcc/./__divsi3.o
/tmp/or1k/b-gcc-3.4.2/gcc/xgcc -B/tmp/or1k/b-gcc-3.4.2/gcc/
-B/tmp/opt/or32-uclinux/or32-uclinux/bin/
-B/tmp/opt/or32-uclinux/or32-uclinux/lib/ -isystem
/tmp/opt/or32-uclinux/or32-uclinux/include -isystem
/tmp/opt/or32-uclinux/or32-uclinux/sys-include -O2 -DIN_GCC -
DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition -isystem ./include -g
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I.
-I~/gcc-3.4.2/gcc -I~/gcc-3.4.2/gcc/. -I~/gcc-3.4.2/gcc/../include
-DL__umodsi3 -xassembler-with-cpp -c ~/gcc-3.4.2/gcc/config/or32/or32.S -o
libgcc/./__umodsi3.o
/tmp/or1k/b-gcc-3.4.2/gcc/xgcc -B/tmp/or1k/b-gcc-3.4.2/gcc/
-B/tmp/opt/or32-uclinux/or32-uclinux/bin/
-B/tmp/opt/or32-uclinux/or32-uclinux/lib/ -isystem
/tmp/opt/or32-uclinux/or32-uclinux/include -isystem
/tmp/opt/or32-uclinux/or32-uclinux/sys-include -O2 -DIN_GCC
-DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition -isystem ./include -g
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I.
-I~/gcc-3.4.2/gcc -I~/gcc-3.4.2/gcc/. -I~/gcc-3.4.2/gcc/../include
-DL__modsi3 -xassembler-with-cpp -c ~/gcc-3.4.2/gcc/config/or32/or32.S -o
libgcc/./__modsi3.o
/tmp/or1k/b-gcc-3.4.2/gcc/xgcc -B/tmp/or1k/b-gcc-3.4.2/gcc/
-B/tmp/opt/or32-uclinux/or32-uclinux/bin/
-B/tmp/opt/or32-uclinux/or32-uclinux/lib/ -isystem
/tmp/opt/or32-uclinux/or32-uclinux/include -isystem
/tmp/opt/or32-uclinux/or32-uclinux/sys-include -O2 -DIN_GCC
-DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition -isystem ./include -g
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I.
-I~/gcc-3.4.2/gcc -I~/gcc-3.4.2/gcc/. -I~/gcc-3.4.2/gcc/../include
-DL_muldi3 -c ~/gcc-3.4.2/gcc/libgcc2.c -o libgcc/./_muldi3.o
~/gcc-3.4.2/gcc/libgcc2.c:0: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gcc.gnu.org/bugs.html> for instructions.
make[2]: *** [libgcc/./_muldi3.o] Error 1
make[2]: Leaving directory `/tmp/or1k/b-gcc-3.4.2/gcc'
make[1]: *** [libgcc.a] Error 2
make[1]: Leaving directory `/tmp/or1k/b-gcc-3.4.2/gcc'
make: *** [all-gcc] Error 2
|
|||
|
OpenRISC gcc Porting Issues
by Unknown on Oct 24, 2004 |
Not available! | ||
|
* Balaji V. Iyer (bviyer@ncsu.edu) wrote:
Hello Everyone,
I am trying to create a cross compiler using gcc-3.4.2, using the
binutils given in the
(http://www.opencores.org/projects.cgi/web/or1k/gnu_toolchain_port). I
am running into the following difficulty (please see below as I have
cut and pasted the result that I get). It is having troubles compiling
the libgcc2.c. The below is the result I get right before the makefile
crashes. I know some of the "#defines" used in the or32.c from the
previous version have changed and I have updated them using the gcc
internals manual. I have updated the config.gcc and all the
configuration files that need to be updated according to the gcc manual
to the best of my knowledge. I have also verified that the makefile (or
configure script) does capture cross assembler and loader correctly. I
don't know what is going wrong. I have also unsuccessfully tried using
GDB to try to pinpoint the problem. It is configured using the
following line.
configure --target=or32-uclinux -prefix=/tmp/opt/or32-uclinux
--with-local-prefix=/tmp/opt/or32-uclinux/or32-uclinux --with-gnu-as
--with-gnu-ld --enable-languages=c
Any help is appreciated.
if i understand correctly you are doing your own port ? if so why don't you try opencores gcc-3.4.2 ? (it works for me without problems you mention, but in case you would found them i'd be happy to look into them) best regards, p. |
|||
|
OpenRISC gcc Porting Issues
by Unknown on Oct 24, 2004 |
Not available! | ||
|
Hello Matjaz,
Opencores used gcc3.2.3 (atleast it wa the only version I found in the CVS directory) and I need 3.4.2 because there are a lot of haifa-scheduler optimizations available in the 3.4.2 that is not available for 3.2.3 thanks, Balaji V. Iyer. Matjaz Breskvar said:
* Balaji V. Iyer (bviyer@ncsu.edu) wrote:
Hello Everyone,
I am trying to create a cross compiler using gcc-3.4.2, using the
binutils given in the
(http://www.opencores.org/projects.cgi/web/or1k/gnu_toolchain_port). I
am running into the following difficulty (please see below as I have
cut and pasted the result that I get). It is having troubles compiling
the libgcc2.c. The below is the result I get right before the makefile
crashes. I know some of the "#defines" used in the or32.c from the
previous version have changed and I have updated them using the gcc
internals manual. I have updated the config.gcc and all the
configuration files that need to be updated according to the gcc manual
to the best of my knowledge. I have also verified that the makefile (or
configure script) does capture cross assembler and loader correctly. I
don't know what is going wrong. I have also unsuccessfully tried using
GDB to try to pinpoint the problem. It is configured using the
following line.
configure --target=or32-uclinux -prefix=/tmp/opt/or32-uclinux
--with-local-prefix=/tmp/opt/or32-uclinux/or32-uclinux --with-gnu-as
--with-gnu-ld --enable-languages=c
Any help is appreciated.
if i understand correctly you are doing your own port ? if
so why don't you try opencores gcc-3.4.2 ? (it works for me without
problems you mention, but in case you would found them i'd be happy to
look into them)
best regards,
p.
_______________________________________________
http://www.opencores.org/mailman/listinfo/openrisc
|
|||
|
OpenRISC gcc Porting Issues
by Unknown on Oct 24, 2004 |
Not available! | ||
|
* Balaji V. Iyer (bviyer@ncsu.edu) wrote:
Hello Matjaz,
gcc-3.4.2 port is in the opencores cvs:
http://www.opencores.org/cvsweb.shtml/or1k/gcc-3.4.2/
best regards,
p.
Opencores used gcc3.2.3 (atleast it wa the only version I found in the CVS directory) and I need 3.4.2 because there are a lot of haifa-scheduler optimizations available in the 3.4.2 that is not available for 3.2.3 thanks, |
|||
1/1

