This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/PROCESSOR-SDK-AM335X: Bitabake error json-c in Arago

Part Number: PROCESSOR-SDK-AM335X

Tool/software: Linux

Goodmorning,

I'm trying to build the SDK following the guide:

using the configuration processor-sdk-04.03.00.05-config.txt. Unfortunately the building process stops with the following error:

ERROR: json-c-0.12-r0 do_compile: oe_runmake failed
ERROR: json-c-0.12-r0 do_compile: Function failed: do_compile (log file is located at /home/davide/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/json-c/0.12-r0/temp/log.do_compile.21385)
ERROR: Logfile of failure stored in: /home/davide/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/json-c/0.12-r0/temp/log.do_compile.21385
Log data follows:
| DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', 'arm-32', 'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', 'common']
| DEBUG: Executing shell function do_compile
| NOTE: make -j 6
| make  all-recursive
| make[1]: Entering directory '/home/davide/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/json-c/0.12-r0/build'
| Making all in .
| make[2]: Entering directory '/home/davide/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/json-c/0.12-r0/build'
| ./arm-linux-gnueabi-libtool  --tag=CC   --mode=compile arm-linux-gnueabihf-gcc  -march=armv7-a -marm -mfpu=neon  -mfloat-abi=hard --sysroot=/home/davide/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/am335x-evm -DHAVE_CONFIG_H -I. -I../json-c-0.12   -isystem/home/davide/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/include  -Wall -Werror -Wno-error=deprecated-declarations -Wextra -Wwrite-strings -Wno-unused-parameter -std=gnu99 -D_GNU_SOURCE -D_REENTRANT -isystem/home/davide/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/include  -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/davide/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/json-c/0.12-r0=/usr/src/debug/json-c/0.12-r0 -fdebug-prefix-map=/home/davide/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux= -fdebug-prefix-map=/home/davide/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/am335x-evm=  -c -o json_object.lo ../json-c-0.12/json_object.c
| ./arm-linux-gnueabi-libtool  --tag=CC   --mode=compile arm-linux-gnueabihf-gcc  -march=armv7-a -marm -mfpu=neon  -mfloat-abi=hard --sysroot=/home/davide/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/am335x-evm -DHAVE_CONFIG_H -I. -I../json-c-0.12   -isystem/home/davide/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/include  -Wall -Werror -Wno-error=deprecated-declarations -Wextra -Wwrite-strings -Wno-unused-parameter -std=gnu99 -D_GNU_SOURCE -D_REENTRANT -isystem/home/davide/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/include  -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/davide/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/json-c/0.12-r0=/usr/src/debug/json-c/0.12-r0 -fdebug-prefix-map=/home/davide/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux= -fdebug-prefix-map=/home/davide/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/am335x-evm=  -c -o json_tokener.lo ../json-c-0.12/json_tokener.c
| ./arm-linux-gnueabi-libtool  --tag=CC   --mode=compile arm-linux-gnueabihf-gcc  -march=armv7-a -marm -mfpu=neon  -mfloat-abi=hard --sysroot=/home/davide/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/am335x-evm -DHAVE_CONFIG_H -I. -I../json-c-0.12   -isystem/home/davide/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/include  -Wall -Werror -Wno-error=deprecated-declarations -Wextra -Wwrite-strings -Wno-unused-parameter -std=gnu99 -D_GNU_SOURCE -D_REENTRANT -isystem/home/davide/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/include  -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/davide/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/json-c/0.12-r0=/usr/src/debug/json-c/0.12-r0 -fdebug-prefix-map=/home/davide/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux= -fdebug-prefix-map=/home/davide/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/am335x-evm=  -c -o linkhash.lo ../json-c-0.12/linkhash.c
| arm-linux-gnueabi-libtool: compile:  arm-linux-gnueabihf-gcc -march=armv7-a -marm -mfpu=neon -mfloat-abi=hard --sysroot=/home/davide/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/am335x-evm -DHAVE_CONFIG_H -I. -I../json-c-0.12 -isystem/home/davide/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/include -Wall -Werror -Wno-error=deprecated-declarations -Wextra -Wwrite-strings -Wno-unused-parameter -std=gnu99 -D_GNU_SOURCE -D_REENTRANT -isystem/home/davide/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/include -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/davide/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/json-c/0.12-r0=/usr/src/debug/json-c/0.12-r0 -fdebug-prefix-map=/home/davide/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux= -fdebug-prefix-map=/home/davide/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/am335x-evm= -c ../json-c-0.12/json_tokener.c  -fPIC -DPIC -o .libs/json_tokener.o
| arm-linux-gnueabi-libtool: compile:  arm-linux-gnueabihf-gcc -march=armv7-a -marm -mfpu=neon -mfloat-abi=hard --sysroot=/home/davide/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/am335x-evm -DHAVE_CONFIG_H -I. -I../json-c-0.12 -isystem/home/davide/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/include -Wall -Werror -Wno-error=deprecated-declarations -Wextra -Wwrite-strings -Wno-unused-parameter -std=gnu99 -D_GNU_SOURCE -D_REENTRANT -isystem/home/davide/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/include -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/davide/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/json-c/0.12-r0=/usr/src/debug/json-c/0.12-r0 -fdebug-prefix-map=/home/davide/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux= -fdebug-prefix-map=/home/davide/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/am335x-evm= -c ../json-c-0.12/linkhash.c  -fPIC -DPIC -o .libs/linkhash.o
| arm-linux-gnueabi-libtool: compile:  arm-linux-gnueabihf-gcc -march=armv7-a -marm -mfpu=neon -mfloat-abi=hard --sysroot=/home/davide/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/am335x-evm -DHAVE_CONFIG_H -I. -I../json-c-0.12 -isystem/home/davide/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/include -Wall -Werror -Wno-error=deprecated-declarations -Wextra -Wwrite-strings -Wno-unused-parameter -std=gnu99 -D_GNU_SOURCE -D_REENTRANT -isystem/home/davide/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/include -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/davide/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/json-c/0.12-r0=/usr/src/debug/json-c/0.12-r0 -fdebug-prefix-map=/home/davide/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux= -fdebug-prefix-map=/home/davide/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/am335x-evm= -c ../json-c-0.12/json_object.c  -fPIC -DPIC -o .libs/json_object.o
| ../json-c-0.12/linkhash.c: In function ‘hashlittle’:
| ../json-c-0.12/linkhash.c:379:15: error: this statement may fall through [-Werror=implicit-fallthrough=]
|      case 12: c+=((uint32_t)k[11])<<24;
|               ~^~~~~~~~~~~~~~~~~~~~~~~
| ../json-c-0.12/linkhash.c:380:5: note: here
|      case 11: c+=((uint32_t)k[10])<<16;
|      ^~~~
| ../json-c-0.12/linkhash.c:380:15: error: this statement may fall through [-Werror=implicit-fallthrough=]
|      case 11: c+=((uint32_t)k[10])<<16;
|               ~^~~~~~~~~~~~~~~~~~~~~~~
| ../json-c-0.12/linkhash.c:381:5: note: here
|      case 10: c+=((uint32_t)k[9])<<8;
|      ^~~~
| ../json-c-0.12/linkhash.c:381:15: error: this statement may fall through [-Werror=implicit-fallthrough=]
|      case 10: c+=((uint32_t)k[9])<<8;
|               ~^~~~~~~~~~~~~~~~~~~~~
| ../json-c-0.12/linkhash.c:382:5: note: here
|      case 9 : c+=k[8];
|      ^~~~
| ../json-c-0.12/linkhash.c:382:15: error: this statement may fall through [-Werror=implicit-fallthrough=]
|      case 9 : c+=k[8];
|               ~^~~~~~
| ../json-c-0.12/linkhash.c:383:5: note: here
|      case 8 : b+=((uint32_t)k[7])<<24;
|      ^~~~
| ../json-c-0.12/linkhash.c:383:15: error: this statement may fall through [-Werror=implicit-fallthrough=]
|      case 8 : b+=((uint32_t)k[7])<<24;
|               ~^~~~~~~~~~~~~~~~~~~~~~
| ../json-c-0.12/linkhash.c:384:5: note: here
|      case 7 : b+=((uint32_t)k[6])<<16;
|      ^~~~
| ../json-c-0.12/linkhash.c:384:15: error: this statement may fall through [-Werror=implicit-fallthrough=]
|      case 7 : b+=((uint32_t)k[6])<<16;
|               ~^~~~~~~~~~~~~~~~~~~~~~
| ../json-c-0.12/linkhash.c:385:5: note: here
|      case 6 : b+=((uint32_t)k[5])<<8;
|      ^~~~
| ERROR: oe_runmake failed
| ../json-c-0.12/linkhash.c:385:15: error: this statement may fall through [-Werror=implicit-fallthrough=]
|      case 6 : b+=((uint32_t)k[5])<<8;
|               ~^~~~~~~~~~~~~~~~~~~~~
| ../json-c-0.12/linkhash.c:386:5: note: here
|      case 5 : b+=k[4];
|      ^~~~
| ../json-c-0.12/linkhash.c:386:15: error: this statement may fall through [-Werror=implicit-fallthrough=]
|      case 5 : b+=k[4];
|               ~^~~~~~
| ../json-c-0.12/linkhash.c:387:5: note: here
|      case 4 : a+=((uint32_t)k[3])<<24;
|      ^~~~
| ../json-c-0.12/linkhash.c:387:15: error: this statement may fall through [-Werror=implicit-fallthrough=]
|      case 4 : a+=((uint32_t)k[3])<<24;
|               ~^~~~~~~~~~~~~~~~~~~~~~
| ../json-c-0.12/linkhash.c:388:5: note: here
|      case 3 : a+=((uint32_t)k[2])<<16;
|      ^~~~
| ../json-c-0.12/linkhash.c:388:15: error: this statement may fall through [-Werror=implicit-fallthrough=]
|      case 3 : a+=((uint32_t)k[2])<<16;
|               ~^~~~~~~~~~~~~~~~~~~~~~
| ../json-c-0.12/linkhash.c:389:5: note: here
|      case 2 : a+=((uint32_t)k[1])<<8;
|      ^~~~
| ../json-c-0.12/linkhash.c:389:15: error: this statement may fall through [-Werror=implicit-fallthrough=]
|      case 2 : a+=((uint32_t)k[1])<<8;
|               ~^~~~~~~~~~~~~~~~~~~~~
| ../json-c-0.12/linkhash.c:390:5: note: here
|      case 1 : a+=k[0];
|      ^~~~
| ../json-c-0.12/json_object.c: In function ‘json_object_get_int64’:
| ../json-c-0.12/json_tokener.c: In function ‘json_tokener_parse_ex’:
| ../json-c-0.12/json_tokener.c:304:12: error: this statement may fall through [-Werror=implicit-fallthrough=]
|          if (tok->flags & JSON_TOKENER_STRICT) {
|             ^
| ../json-c-0.12/json_tokener.c:309:7: note: here
|        case '"':
|        ^~~~
| ../json-c-0.12/json_object.c:554:5: error: this statement may fall through [-Werror=implicit-fallthrough=]
|   if (json_parse_int64(jso->o.c_string.str, &cint) == 0) return cint;
|      ^
| ../json-c-0.12/json_object.c:555:3: note: here
|    default:
|    ^~~~~~~
| cc1: all warnings being treated as errors
| Makefile:577: recipe for target 'linkhash.lo' failed
| make[2]: *** [linkhash.lo] Error 1
| make[2]: *** Waiting for unfinished jobs....
| cc1: all warnings being treated as errors
| Makefile:577: recipe for target 'json_object.lo' failed
| make[2]: *** [json_object.lo] Error 1
| cc1: all warnings being treated as errors
| Makefile:577: recipe for target 'json_tokener.lo' failed
| make[2]: *** [json_tokener.lo] Error 1
| make[2]: Leaving directory '/home/davide/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/json-c/0.12-r0/build'
| Makefile:637: recipe for target 'all-recursive' failed
| make[1]: *** [all-recursive] Error 1
| make[1]: Leaving directory '/home/davide/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/json-c/0.12-r0/build'
| Makefile:437: recipe for target 'all' failed
| make: *** [all] Error 2
| WARNING: /home/davide/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/json-c/0.12-r0/temp/run.do_compile.21385:1 exit 1 from 'exit 1'
| ERROR: Function failed: do_compile (log file is located at /home/davide/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/json-c/0.12-r0/temp/log.do_compile.21385)
ERROR: Task (/home/davide/tisdk/sources/oe-core/meta/recipes-devtools/json-c/json-c_0.12.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1746 tasks of which 1672 didn't need to be rerun and 1 failed.

I tried to run bitbake -c clean json-c and then bitbake json-c, but unsuccefully.

Have you got a solution?

Thank you.

Best Regards,

Davide Brunelli

  • Hello Davide,

    You are building processor-sdk-04.03.00.05-config.txt with gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf instead of correct gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf toolchain. If you are doing this on purpose and want to compile processor-sdk-04.03.00.05-config.txt with gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf please add FALLTHRU comment to handle GCC7 warnings with this patch.

    cd <tisdk>/sources/oe-core/
    git apply 0001-oe-core-FALLTHRU-comment-to-handle-GCC7-warnings.patch

    Best regards,
    Kemal

  • Actually I didn't see the gcc-linaro-6.2.1-2016.11 version, so I used the one that I had.
    Thank you.