AnsweredAssumed Answered

MQX 4.2 GCC Build fails

Question asked by David Lynch on Oct 29, 2015
Latest reply on Nov 11, 2015 by David Lynch

Building MQX 4.2 using the debian multi-arch armhf compiler fails.

 

There are several problems.

in

build/twrk70f120m/make/tools/gcc_arm.mak

GCC_VERSION needs changed   

GCC_VERSION ?=4.9.3

I should think that a dependence on a GCC version could be eliminated

 

TOOLCHAIN_ROOTDIR needs changed to

TOOLCHAIN_ROOTDIR = /usr

 

I would also think that the obsolete dependence on full path to a toolchain could be eliminated

-nostdinc

needs eliminated from CC_FLAGS and CX_FLAGS in two places - a total of 4.

 

Atleast one source file - I beleive psp_types.h includes <stdint.h> and <stdbool.h>

If the toolchains that are normally being used support that with -nostdinc, they are in error.

If MQX really requires -nostdinc then the dependence on <stdbool.h> and <stdint.h> should be eliminated

 

 

Overall it was still easier to get MQX 4.2 to build with GCC than prior versions.

Outcomes