public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
From: Mauro Condarelli <mauro@mailgate.soft-in.com>
To: crossgcc@sourceware.org
Subject: building a cross-native for arm
Date: Sun, 12 Oct 2014 11:10:00 -0000	[thread overview]
Message-ID: <543A6165.2060400@mailgate> (raw)

Hi,
first of all many thanks for the effort and time spent on crossgcc-NG.
This is my first attempt at using it, so I might be very mistaken 
everywhere.

I need a native compiler (and related stuff, including make and other 
installation tools) running on a small ARM board (I wouldn't want to 
cross-compile for it).

I built the cross compiler (arm-mconc-linux-gnueabi) with almost no 
problem, in spite of the very terse documentation I found.
Only stumbling was because I didn't have libncurses-dev installed on my 
build system.
Now I have a nice $HOME/x-tools/arm-mconc-linux-gnueabi subdir.

If I understand it correctly I now need to use this cross-gcc to build 
the native.
I changed Tuple's vendor string to "mconn".
I activated the "canadian" type and selected "arm-conc-linux-gnueabi" as 
Host system Tuple.

First problem was ct-ng wouldn't find the cross-toolchain, so I resorted to:
   $ PATH=$HOME/x-tools/arm-mconc-linux-gnueabi/bin:$PATH ct-ng build

This seems to work, but, building gdb, I get again the error about 
"missing termcap library".
I presently disabled GDB to finish the build and test results, but 
that's not a real solution, obviously.

Is there some "tutorial" documentation available somewhere? I didn't 
find any and, as said docs coming with crossgcc-NG seem a bit too terse.

Other question: it seems the option about "Companion tools" seems to 
apply to upgrade old tools running on build machine; is there a way to 
build the same tools for the host (==target, in my case)? That would be 
very useful.

Last, but not least, I am a bit confused about what, exactly, I should 
copy on the target machine and where, to use the generated native toolchain.
Now cross-compilation of native has finished without errors and I have a 
confusing PATH=$HOME/x-tools/arm-mconn-linux-gnueabi directory ("..." 
stand for this directory):
1) executable are in .../bin
2) but .../include is empty and .../lib          contains only the 
gcc-specific stuff
3) .../arm-mconn-linux-gnueabi/bin           contains only binutils 
(without prefix)
4) .../arm-mconn-linux-gnueabi/include    contains only "c++" subdir
5) .../arm-mconn-linux-gnueabi/sysroot    seems to have correct libs and 
include, but has neither           compiler nor binutils
What is the "approved" way to deploy all this stuff to target?
Sorry if these are very naive questions, I searched, but I couldn't find 
an answer to them (shame on me).

Thanks again and Regards
Mauro Condarelli

--
For unsubscribe information see http://sourceware.org/lists.html#faq

             reply	other threads:[~2014-10-12 11:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-12 11:10 Mauro Condarelli [this message]
2014-10-12 20:16 ` Mauro Condarelli
2014-11-16 18:09   ` Bill Pringlemeir

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=543A6165.2060400@mailgate \
    --to=mauro@mailgate.soft-in.com \
    --cc=crossgcc@sourceware.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).