public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] Native builds broken ?
@ 2014-03-30 22:08 selsinork at gmail.com
  2014-03-31  0:56 ` Masahiro Yamada
  0 siblings, 1 reply; 4+ messages in thread
From: selsinork at gmail.com @ 2014-03-30 22:08 UTC (permalink / raw)
  To: u-boot

Trying to build the u-boot master branch today from 0b2da7e209f4110b7c81d578336a10330e4a4404 
natively on arm gives

make: arm-linux-gcc: Command not found
/bin/sh: arm-linux-gcc: command not found
dirname: missing operand
Try 'dirname --help' for more information.
  CHK     include/config/uboot.release
  UPD     include/config/uboot.release
  CHK     include/generated/version_autogenerated.h
/bin/sh: arm-linux-gcc: command not found
/bin/sh: arm-linux-ld.bfd: command not found
  UPD     include/generated/version_autogenerated.h
  CHK     include/generated/timestamp_autogenerated.h
  UPD     include/generated/timestamp_autogenerated.h
  CC      lib/asm-offsets.s
/bin/sh: arm-linux-gcc: command not found
/data/linux/source/u-boot/./Kbuild:34: recipe for target 'lib/asm-offsets.s' failed
make[1]: *** [lib/asm-offsets.s] Error 127
Makefile:997: recipe for target 'prepare0' failed
make: *** [prepare0] Error 2

ways around this appear to be to revert 9b6e2c363f2686d6f7bf61fbe58b7591b71d3e8b
"kbuild: fix CROSS_COMPILE settings in config.mk"

or to start a native build with

make CROSS_COMPILE=

which seems rather counter-intuitive.

I'm no makefile/Kbuild expert, but wouldn't the changes to arch/*/config.mk 
be better done like this

ifneq ($(HOSTARCH),$(ARCH))
        ifeq ($(CROSS_COMPILE),)
                CROSS_COMPILE := arm-linux-
        endif
endif

so that we only set CROSS_COMPILE if we're actually cross compiling instead of 
forcing it when it's intentionally empty because we're building natively ?

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

* [U-Boot] Native builds broken ?
  2014-03-30 22:08 [U-Boot] Native builds broken ? selsinork at gmail.com
@ 2014-03-31  0:56 ` Masahiro Yamada
  2014-03-31  7:34   ` Lukasz Majewski
  2014-03-31  8:37   ` selsinork at gmail.com
  0 siblings, 2 replies; 4+ messages in thread
From: Masahiro Yamada @ 2014-03-31  0:56 UTC (permalink / raw)
  To: u-boot

Hi

On Sun, 30 Mar 2014 23:08:09 +0100
selsinork at gmail.com wrote:

> Trying to build the u-boot master branch today from 0b2da7e209f4110b7c81d578336a10330e4a4404 
> natively on arm gives
> 
> make: arm-linux-gcc: Command not found
> /bin/sh: arm-linux-gcc: command not found
> dirname: missing operand
> Try 'dirname --help' for more information.
>   CHK     include/config/uboot.release
>   UPD     include/config/uboot.release
>   CHK     include/generated/version_autogenerated.h
> /bin/sh: arm-linux-gcc: command not found
> /bin/sh: arm-linux-ld.bfd: command not found
>   UPD     include/generated/version_autogenerated.h
>   CHK     include/generated/timestamp_autogenerated.h
>   UPD     include/generated/timestamp_autogenerated.h
>   CC      lib/asm-offsets.s
> /bin/sh: arm-linux-gcc: command not found
> /data/linux/source/u-boot/./Kbuild:34: recipe for target 'lib/asm-offsets.s' failed
> make[1]: *** [lib/asm-offsets.s] Error 127
> Makefile:997: recipe for target 'prepare0' failed
> make: *** [prepare0] Error 2
> 
> ways around this appear to be to revert 9b6e2c363f2686d6f7bf61fbe58b7591b71d3e8b
> "kbuild: fix CROSS_COMPILE settings in config.mk"
> 
> or to start a native build with
> 
> make CROSS_COMPILE=
> 
> which seems rather counter-intuitive.
> 
> I'm no makefile/Kbuild expert, but wouldn't the changes to arch/*/config.mk 
> be better done like this
> 
> ifneq ($(HOSTARCH),$(ARCH))
>         ifeq ($(CROSS_COMPILE),)
>                 CROSS_COMPILE := arm-linux-
>         endif
> endif
> 
> so that we only set CROSS_COMPILE if we're actually cross compiling instead of 
> forcing it when it's intentionally empty because we're building natively ?


See
http://patchwork.ozlabs.org/patch/331460/



Best Regards
Masahiro Yamada

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

* [U-Boot] Native builds broken ?
  2014-03-31  0:56 ` Masahiro Yamada
@ 2014-03-31  7:34   ` Lukasz Majewski
  2014-03-31  8:37   ` selsinork at gmail.com
  1 sibling, 0 replies; 4+ messages in thread
From: Lukasz Majewski @ 2014-03-31  7:34 UTC (permalink / raw)
  To: u-boot

Hi Masahiro,

> Hi
> 
> On Sun, 30 Mar 2014 23:08:09 +0100
> selsinork at gmail.com wrote:
> 
> > Trying to build the u-boot master branch today from
> > 0b2da7e209f4110b7c81d578336a10330e4a4404 natively on arm gives
> > 
> > make: arm-linux-gcc: Command not found
> > /bin/sh: arm-linux-gcc: command not found
> > dirname: missing operand
> > Try 'dirname --help' for more information.
> >   CHK     include/config/uboot.release
> >   UPD     include/config/uboot.release
> >   CHK     include/generated/version_autogenerated.h
> > /bin/sh: arm-linux-gcc: command not found
> > /bin/sh: arm-linux-ld.bfd: command not found
> >   UPD     include/generated/version_autogenerated.h
> >   CHK     include/generated/timestamp_autogenerated.h
> >   UPD     include/generated/timestamp_autogenerated.h
> >   CC      lib/asm-offsets.s
> > /bin/sh: arm-linux-gcc: command not found
> > /data/linux/source/u-boot/./Kbuild:34: recipe for target
> > 'lib/asm-offsets.s' failed make[1]: *** [lib/asm-offsets.s] Error
> > 127 Makefile:997: recipe for target 'prepare0' failed
> > make: *** [prepare0] Error 2
> > 
> > ways around this appear to be to revert
> > 9b6e2c363f2686d6f7bf61fbe58b7591b71d3e8b "kbuild: fix CROSS_COMPILE
> > settings in config.mk"
> > 
> > or to start a native build with
> > 
> > make CROSS_COMPILE=
> > 
> > which seems rather counter-intuitive.
> > 
> > I'm no makefile/Kbuild expert, but wouldn't the changes to
> > arch/*/config.mk be better done like this
> > 
> > ifneq ($(HOSTARCH),$(ARCH))
> >         ifeq ($(CROSS_COMPILE),)
> >                 CROSS_COMPILE := arm-linux-
> >         endif
> > endif
> > 
> > so that we only set CROSS_COMPILE if we're actually cross compiling
> > instead of forcing it when it's intentionally empty because we're
> > building natively ?
> 
> 
> See
> http://patchwork.ozlabs.org/patch/331460/

I hope, that this patch will be included before v2014.04 release. It is
supposed to be pulled by Albert :-).

> 
> 
> 
> Best Regards
> Masahiro Yamada



-- 
Best regards,

Lukasz Majewski

Samsung R&D Institute Poland (SRPOL) | Linux Platform Group

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

* [U-Boot] Native builds broken ?
  2014-03-31  0:56 ` Masahiro Yamada
  2014-03-31  7:34   ` Lukasz Majewski
@ 2014-03-31  8:37   ` selsinork at gmail.com
  1 sibling, 0 replies; 4+ messages in thread
From: selsinork at gmail.com @ 2014-03-31  8:37 UTC (permalink / raw)
  To: u-boot

On 31/03/14 01:56, Masahiro Yamada wrote:

> See
> http://patchwork.ozlabs.org/patch/331460/

Cool, thanks!

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

end of thread, other threads:[~2014-03-31  8:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-30 22:08 [U-Boot] Native builds broken ? selsinork at gmail.com
2014-03-31  0:56 ` Masahiro Yamada
2014-03-31  7:34   ` Lukasz Majewski
2014-03-31  8:37   ` selsinork at gmail.com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox