From: "Yann E. MORIN" <yann.morin.1998@free.fr>
To: Richard Weinberger <richard.weinberger@gmail.com>
Cc: crossgcc@sourceware.org
Subject: Re: Toolchain not relocatable
Date: Fri, 15 Nov 2013 17:56:00 -0000 [thread overview]
Message-ID: <20131115175415.GB3337@free.fr> (raw)
In-Reply-To: <CAFLxGvxuFJaFQRogWQDEt_GWJCSwFNMcEPBtLuKrfPS8oFokQg@mail.gmail.com>
Richard, All,
On 2013-10-26 14:28 +0200, Richard Weinberger spake thusly:
> On Fri, Oct 25, 2013 at 11:02 AM, Richard Weinberger
> <richard.weinberger@gmail.com> wrote:
> > Toolchains created by crosstool-ng seem to be not relocatable.
> > I tried both 1.18.0 and 1.19.0. My .config is attached.
> >
> > $ ./toolchain/bin/arm-ryo-linux-gnueabi-gcc -o hw hw.c
> > ^^^^ works fine.
> >
> > $ mv toolchain/ toolchainX
> > $ ./toolchainX/bin/arm-ryo-linux-gnueabi-gcc -o hw hw.c
> > hw.c:1:19: fatal error: stdio.h: No such file or directory
> > compilation terminated.
> > ^^^^^ broken
> >
> > Or am I doing something very wrong?
>
> Found the issue. (After doing 10+ complete builds using different settings :-\)
>
> My .config has:
> CT_PREFIX_DIR="/home/rw/work/its_workshop1/ryo/maker/_deploy//toolchain"
>
> This path contains a double slash.
> If I remove that double slash, my toolchain becomes relocatable.
>
> Now we should find out whether this is a gcc or crosstool-ng issue.
> Yann, have you seen such issues in the past?
Ah, right, rings a bell. I'll add some sanitising to the prefix dir to
avoid this situation.
Thanks for the report.
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
--
For unsubscribe information see http://sourceware.org/lists.html#faq
prev parent reply other threads:[~2013-11-15 17:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-25 9:02 Richard Weinberger
2013-10-26 12:28 ` Richard Weinberger
2013-11-15 17:56 ` Yann E. MORIN [this message]
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=20131115175415.GB3337@free.fr \
--to=yann.morin.1998@free.fr \
--cc=crossgcc@sourceware.org \
--cc=richard.weinberger@gmail.com \
/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).