public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* Error in multilib build when doing canadian cross
@ 2012-03-06 10:46 Per Arnold Blaasmo
  2012-03-06 19:00 ` Yann E. MORIN
  0 siblings, 1 reply; 3+ messages in thread
From: Per Arnold Blaasmo @ 2012-03-06 10:46 UTC (permalink / raw)
  To: yann.morin.1998; +Cc: crossgcc

In gcc.sh you find the following:
    if [ "${CT_MULTILIB}" = "y" ]; then
        multilibs=( $( "${core_prefix_dir}/bin/${CT_TARGET}-gcc"
-print-multi-lib   \
                       |tail -n +2 ) )

This fails when trying to do a candian cross where target is win32.
The error is:
..../scripts/build/cc/gcc.sh: line 413:
.../.build/arm-none-eabi/build/gcc-core-static/bin/arm-none-eabi-gcc: No
such file or directory

The arm-none-eabi-gcc.exe is there, but when doing a canadian cross that
fails on my linux machine. If the build had been run on a windows it
would have accepted the filename without '.exe', but not if the build is
run on a linux machine.

So if it is a canadian build it should rather run the build servers
cross toolchain.

Sugested fix:

    if [ "${CT_MULTILIB}" = "y" ]; then
        if [ "{CT_CANADIAN}" = "y" ]; then
            multilibs=( $( "${CT_TARGET_PREFIX}-gcc" -print-multi-lib   \
                       |tail -n +2 ) )
        else
            multilibs=( $( "${core_prefix_dir}/bin/${CT_TARGET}-gcc"
-print-multi-lib   \
                   |tail -n +2 ) )
       fi


-- 
Per Arnold Blåsmo
Senior Design Engineer, Atmel Norway


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

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

end of thread, other threads:[~2012-03-08  8:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-06 10:46 Error in multilib build when doing canadian cross Per Arnold Blaasmo
2012-03-06 19:00 ` Yann E. MORIN
2012-03-08  8:05   ` Per Arnold Blaasmo

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