public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* Toolchain not relocatable
@ 2013-10-25  9:02 Richard Weinberger
  2013-10-26 12:28 ` Richard Weinberger
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Weinberger @ 2013-10-25  9:02 UTC (permalink / raw)
  To: yann.morin.1998, crossgcc

[-- Attachment #1: Type: text/plain, Size: 437 bytes --]

Hi!

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?

-- 
Thanks,
//richard

[-- Attachment #2: ctng.config --]
[-- Type: application/x-config, Size: 12064 bytes --]

[-- Attachment #3: Type: text/plain, Size: 71 bytes --]

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

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

* Re: Toolchain not relocatable
  2013-10-25  9:02 Toolchain not relocatable Richard Weinberger
@ 2013-10-26 12:28 ` Richard Weinberger
  2013-11-15 17:56   ` Yann E. MORIN
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Weinberger @ 2013-10-26 12:28 UTC (permalink / raw)
  To: yann.morin.1998, crossgcc

On Fri, Oct 25, 2013 at 11:02 AM, Richard Weinberger
<richard.weinberger@gmail.com> wrote:
> Hi!
>
> 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?

-- 
Thanks,
//richard

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

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

* Re: Toolchain not relocatable
  2013-10-26 12:28 ` Richard Weinberger
@ 2013-11-15 17:56   ` Yann E. MORIN
  0 siblings, 0 replies; 3+ messages in thread
From: Yann E. MORIN @ 2013-11-15 17:56 UTC (permalink / raw)
  To: Richard Weinberger; +Cc: crossgcc

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

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

end of thread, other threads:[~2013-11-15 17:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-25  9:02 Toolchain not relocatable Richard Weinberger
2013-10-26 12:28 ` Richard Weinberger
2013-11-15 17:56   ` Yann E. MORIN

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