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: Canadian build and CT_TARGET fails


Per-Arnold, All,

On Wednesday 01 August 2012 16:10:45 Per Arnold Blaasmo wrote:
> On 01. aug. 2012 08:41, Per Arnold Blaasmo wrote:
> > On 01. aug. 2012 08:39, Yann E. MORIN wrote:
> >> On Wednesday 01 August 2012 08:31:37 Per Arnold Blaasmo wrote:
> >>> I am trying to do a Canadian cross from:
> >>>
> >>> build  = x86_64-unknown-linux-gnu
> >>> host   = i686-pc-mingw32
> >>> target = arm-none-eabi
> >>>
> >>> But I in step 'Installing pass-2 core C compiler' I get:
> >>>> [ALL  ]    arm-none-eabi-gcc -dumpspecs > tmp-specs
> >>>> [ALL  ]    /usr/bin/bash: arm-none-eabi-gcc: command not found
> >>
> >> Can you send your .config please?
> > Here it is.
> > This is how it look s right now :-)

Ok, I was able to reproduce your issue.

> I found for GCC in gcc/Makefile.in these lines that seems to cause the
> error:
> 
> > # Dump a specs file to make -B./ read these specs over installed ones.
> > $(SPECS): xgcc$(exeext)
> >         $(GCC_FOR_TARGET) -dumpspecs > tmp-specs
> >         mv tmp-specs $(SPECS)
> 
> It uses GCC_FOR _TARGET. Which is set to 'arm-non-eabi', but since we do
> not have that one ready yet at this point it will fail unless you have
> it in your path prebuilt.

At which point it should use the internal xgcc it just built.

Core pass-1 is only strictly needed for NPTL builds, although it does no
harm if present for !NPTL builds. A workaround would be to always build a
core pass-1 compiler, but I'd like to avoid this when it is not strictly
needed, if possible.

> I found a bug on internet that indicates that it has something to do
> with LTO, so I will try to compile without that.

Could you please share the pointer?

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]