Hi,

Le 28/02/2017 à 16:18, Andreas Färber a écrit :
Hi Guillaume,

Am 28.02.2017 um 14:55 schrieb Guillaume Gardet:
in cross-armv7hl-gcc6 package, we get all the cross build tools, but
with the gcc version appended. So, we have
armv7hl-suse-linux-gnueabi-gcc-6 instead of armv7hl-suse-linux-gnueabi-gcc.

This is a problem to build things such as u-boot or Linux kernel which
just use a CROSS_COMPILE prefix for the GCC tools in their Makefiles.

Is there any update-alternatives mechanism or something?
The solution is to specify CROSS_COMPILE= for binutils and CC= for gcc.

It will not work. Here is an extract of the U-Boot Makefile:
    AS              = $(CROSS_COMPILE)as
    # Always use GNU ld
    ifneq ($(shell $(CROSS_COMPILE)ld.bfd -v 2> /dev/null),)
    LD              = $(CROSS_COMPILE)ld.bfd
    else
    LD              = $(CROSS_COMPILE)ld
    endif
    CC              = $(CROSS_COMPILE)gcc
    CPP             = $(CC) -E
    AR              = $(CROSS_COMPILE)ar
    NM              = $(CROSS_COMPILE)nm
    LDR             = $(CROSS_COMPILE)ldr
    STRIP           = $(CROSS_COMPILE)strip
    OBJCOPY         = $(CROSS_COMPILE)objcopy
    OBJDUMP         = $(CROSS_COMPILE)objdump

You can note that a number of tools are missing from the openSUSE package.


Otherwise we couldn't install different gcc versions side-by-side.

Also I think the intention was to use cross-arm-gcc* for compiling
kernels etc., whereas cross-armv7hl-gcc* is using the same configuration
as native armv7hl gcc*. If you notice any problems with that, please
report them.

Ok, so I will try cross-arm-gcc6 package.


Guillaume


Regards,
Andreas


--
To unsubscribe, e-mail: [email protected]
To contact the owner, e-mail: [email protected]

Reply via email to