public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* [v850] cross compiler - file v850.md
@ 2008-04-10 17:36 p0ulp3
  2008-04-11 12:14 ` Brian Dessent
  0 siblings, 1 reply; 6+ messages in thread
From: p0ulp3 @ 2008-04-10 17:36 UTC (permalink / raw)
  To: gcc-help

Hi everybody,

I am using gcc v 4.3.0 in order to build a cross compiler via cygwin
for v850 target. I have used these commands for the installation :

# installation of binutils, with the sources in /tmp/src/
mkdir -p /tmp/build/binutils
cd /tmp/build/binutils

/tmp/src/binutils-2.10.1/configure --target=v850-elf --prefix=/tools
--exec-prefix=/tools/gnu -v 2>&1 | tee configure.out

make -w all install 2>&1 | tee make.out

# installation of newlib, with the sources in /tmp/src
mkdir -p /tmp/build/newlib
cd /tmp/build/newlib

/tmp/src/newlib-1.16.0/configure  --target=v850-elf --prefix=/tools
--exec-prefix=/tools/gnu -v 2>&1 | tee configure.out

make -w all install 2>&1 | tee make.out

# next, installation of gcc, with the sources in /tmp/src/
PATH=/tools/gnu/bin:$PATH ; export PATH

mkdir -p /tmp/build/gcc
cd /tmp/build/gcc

/tmp/src/gcc-4.3.0/configure --target=v850-elf --prefix=/tools
--exec-prefix=/tools/gnu --with-gnu-as --with-gnu-ld --with-newlib -v
2>&1 | tee configure.out

make -w all-gcc install-gcc LANGUAGES="c c++" 2>&1 | tee make.out

All those commands are executed without problem, and I have finally
gcc for the v850 platform, so then I try to compile a program really
simple but during the linking stage, gcc generates some errors because
it doesn't find some symbols like this one :

main.c:(.text+0x24e): undefined reference to `__callt_save_interrupt'

After a search, I have realized that those symbols are defined in the
file v850.md but this file and the complete directory is not present
on my installation. Actually I can see the directory here :

$ ls /tmp/src/gcc-4.3.0/gcc/config/v850/
lib1funcs.asm  t-v850   v850-c.c       v850.c  v850.md
predicates.md  t-v850e  v850-protos.h  v850.h  v850.opt

The interesting point is that during the compilation of gcc, the file appears  :
[...]
Using `/tmp/src/gcc-4.3.0/gcc/config/v850/v850.c' for machine-specific logic.
Using `/tmp/src/gcc-4.3.0/gcc/config/v850/v850.md' as machine description file.
Using the following target machine macro files:
        /tmp/src/gcc-4.3.0/gcc/config/dbxelf.h
        /tmp/src/gcc-4.3.0/gcc/config/elfos.h
        /tmp/src/gcc-4.3.0/gcc/config/svr4.h
        /tmp/src/gcc-4.3.0/gcc/config/v850/v850.h
[...]
build/genconstants.exe /tmp/src/gcc-4.3.0/gcc/config/v850/v850.md \
	  > tmp-constants.h
/bin/sh /tmp/src/gcc-4.3.0/gcc/../move-if-change tmp-constants.h
insn-constants.h
[...]
build/genconditions.exe /tmp/src/gcc-4.3.0/gcc/config/v850/v850.md >
tmp-condmd.c
/bin/sh /tmp/src/gcc-4.3.0/gcc/../move-if-change tmp-condmd.c build/gencondmd.c
[...]
build/genpreds.exe -h /tmp/src/gcc-4.3.0/gcc/config/v850/v850.md > tmp-preds.h
/bin/sh /tmp/src/gcc-4.3.0/gcc/../move-if-change tmp-preds.h tm-preds.h
[...]
build/genpreds.exe -c /tmp/src/gcc-4.3.0/gcc/config/v850/v850.md > tmp-constrs.h
/bin/sh /tmp/src/gcc-4.3.0/gcc/../move-if-change tmp-constrs.h tm-constrs.h
[...]
build/genflags.exe /tmp/src/gcc-4.3.0/gcc/config/v850/v850.md \
	  insn-conditions.md > tmp-flags.h
/bin/sh /tmp/src/gcc-4.3.0/gcc/../move-if-change tmp-flags.h insn-flags.h
[...]
build/genconfig.exe /tmp/src/gcc-4.3.0/gcc/config/v850/v850.md \
	  insn-conditions.md > tmp-config.h
/bin/sh /tmp/src/gcc-4.3.0/gcc/../move-if-change tmp-config.h insn-config.h
[...]
build/genattrtab.exe /tmp/src/gcc-4.3.0/gcc/config/v850/v850.md \
	  insn-conditions.md > tmp-attrtab.c
/bin/sh /tmp/src/gcc-4.3.0/gcc/../move-if-change tmp-attrtab.c insn-attrtab.c

and those files are used to build libbackend.a

But after a look on google
(http://www.nabble.com/Library-libbackend.a-td16017546.html) this
library seems useless after the build, so do you know where the
symbols in the v850.md file are stored, is it a library I am missing ?

Thanks for your help
p0ulp3

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-04-14 16:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-10 17:36 [v850] cross compiler - file v850.md p0ulp3
2008-04-11 12:14 ` Brian Dessent
2008-04-11 15:02   ` p0ulp3
2008-04-11 23:54     ` Jim Wilson
2008-04-14 16:04       ` p0ulp3
2008-04-14 18:06         ` Jim Wilson

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).