* Re: Building frv cross compiler
@ 2005-01-10 5:31 saurabh verma
2005-01-10 9:23 ` Jan Dittmer
0 siblings, 1 reply; 4+ messages in thread
From: saurabh verma @ 2005-01-10 5:31 UTC (permalink / raw)
To: gcc-help; +Cc: jdittmer
w.r.t. gcc-3.4.x build problem: Have you installed binutils and gcc in
different directories.If so, try installing them in the same directory.
HTH
saurabh
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Building frv cross compiler
@ 2005-01-11 5:23 saurabh verma
0 siblings, 0 replies; 4+ messages in thread
From: saurabh verma @ 2005-01-11 5:23 UTC (permalink / raw)
To: gcc-help
hi Jan,
haven't tested but i did manage to build the following versions
and
compile a hello world app:
gcc-4.0.0 20041027
binutils-2.15.92 20041007
newlib-1.11.0
wonder why ur setup didn't work. will try out.
HTH
saurabh
On Mon, 2005-01-10 at 14:53, Jan Dittmer wrote:
> saurabh verma wrote:
> > w.r.t. gcc-3.4.x build problem: Have you installed binutils and gcc
in
> > different directories.If so, try installing them in the same
directory.
>
> I did - didn't work. Also I'd made sure they're in the path and
> configure did actually find them.
>
> Jan
^ permalink raw reply [flat|nested] 4+ messages in thread
* Building frv cross compiler
@ 2005-01-08 18:58 Jan Dittmer
0 siblings, 0 replies; 4+ messages in thread
From: Jan Dittmer @ 2005-01-08 18:58 UTC (permalink / raw)
To: gcc-help
Hi,
I've trouble building a working toolchain for the frv-elf target.
I tried several combinations of binutils 2.14 and 2.15
with gcc 3.3.3/3.3.5 and gcc-3.4.2/gcc-3.4.3 .
I always get the same errors in the build process.
For 3.4.x the build process quits with:
/mnt/backup/speedblue/gcc/gcc-3.4.3/gcc/xgcc -B/mnt/backup/speedblue/gcc/gcc-3.4.3/gcc/ -B/usr/local/frv/bin/frv-elf/bin/
-B/usr/local/frv/bin/frv-elf/lib/ -isystem /usr/local/frv/bin/frv-elf/include -isystem /usr/local/frv/bin/frv-elf/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. -I./. -I./../include -DL_cmpll -xassembler-with-cpp -c ./config/frv/lib1funcs.asm -o
libgcc/./_cmpll.o
_cmpll.s: Assembler messages:
_cmpll.s:41: Error: too many memory references for `cmp'
_cmpll.s:42: Error: no such instruction: `ckeq icc0,cc4'
_cmpll.s:43: Error: invalid character '.' in mnemonic
make[2]: *** [libgcc/./_cmpll.o] Error 1
make[2]: Leaving directory `/mnt/backup/speedblue/gcc/gcc-3.4.3/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory `/mnt/backup/speedblue/gcc/gcc-3.4.3/gcc'
make: *** [all-gcc] Error 2
For 3.3.x it's something about macro poisoning. But I learnt
that 3.3.x is deprecated for frv [1].
gcc -c -DIN_GCC -DHAVE_CONFIG_H -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional
-pedantic -Wno-long-long -DHAVE_CONFIG_H -DGENERATOR_FILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic
-Wno-long-long -I. -I.. -I. -I./.. -I./../config -I./../../include server.c
In file included from ../config.h:20,
from fixlib.h:30,
from server.h:57,
from server.c:54:
../config/frv/frv.h:2948:9: attempt to use poisoned "ASM_OUTPUT_CONSTRUCTOR"
../config/frv/frv.h:2949:9: attempt to use poisoned "ASM_OUTPUT_CONSTRUCTOR"
../config/frv/frv.h:2958:9: attempt to use poisoned "ASM_OUTPUT_DESTRUCTOR"
../config/frv/frv.h:2959:9: attempt to use poisoned "ASM_OUTPUT_DESTRUCTOR"
make[2]: *** [server.o] Error 1
make[2]: Leaving directory `/mnt/backup/speedblue/gcc/gcc-3.3.5/gcc/fixinc'
make[1]: *** [fixinc.sh] Error 2
make[1]: Leaving directory `/mnt/backup/speedblue/gcc/gcc-3.3.5/gcc'
make: *** [all-gcc] Error 2
I use the following commands to build gcc:
./configure --target=frv-elf --enable-languages=c --disable-nls \
--disable-threads --disable-shared --disable-checking \
--prefix=/usr/local/frv/ --exec-prefix=/usr/local/frv/bin
make TARGET_LIBGCC2_CFLAGS='-Dinhibit_libc -D__gthr_posix_h'
Are there any known good versions of binutils/gcc for frv?
Or is there any patch repository for it?
Host gcc version is 3.3.4 (Debian). I've build toolchains for other
targets just fine previously.
Thanks,
Jan
[1] http://gcc.gnu.org/ml/gcc-help/2004-04/msg00238.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-01-11 5:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-10 5:31 Building frv cross compiler saurabh verma
2005-01-10 9:23 ` Jan Dittmer
-- strict thread matches above, loose matches on Subject: below --
2005-01-11 5:23 saurabh verma
2005-01-08 18:58 Jan Dittmer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).