This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See crosstool-NG for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Toolchain not relocatable


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]