public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: p0ulp3 <p0ulp3@gmail.com>
To: gcc-help@gcc.gnu.org
Subject: [v850] cross compiler - file v850.md
Date: Thu, 10 Apr 2008 17:36:00 -0000	[thread overview]
Message-ID: <231785cb0804100833t1b71f5cds9fb13a0617f89b2d@mail.gmail.com> (raw)

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

             reply	other threads:[~2008-04-10 15:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-10 17:36 p0ulp3 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=231785cb0804100833t1b71f5cds9fb13a0617f89b2d@mail.gmail.com \
    --to=p0ulp3@gmail.com \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).