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.
Tool/software: Linux
Hello,
I compile the processor- sdk-01.00.03 at ubuntu16.04,But the following error occurred:
| In file included from /home/llr/oe/tisdk-am437x-v1.03/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/linaro-2.24-r2014.03/binutils-linaro-2.24-2014.03/gas/as.h:95:0,
| from /home/llr/oe/tisdk-am437x-v1.03/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/linaro-2.24-r2014.03/binutils-linaro-2.24-2014.03/gas/subsegs.c:25:
| /home/llr/oe/tisdk-am437x-v1.03/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/linaro-2.24-r2014.03/binutils-linaro-2.24-2014.03/gas/subsegs.c: In function 'subseg_change':
| ../bfd/bfd.h:304:75: error: right-hand operand of comma expression has no effect [-Werror=unused-value]
| #define bfd_set_section_userdata(bfd, ptr, val) (((ptr)->userdata = (val)),TRUE)
| ^
| /home/llr/oe/tisdk-am437x-v1.03/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/linaro-2.24-r2014.03/binutils-linaro-2.24-2014.03/gas/subsegs.c:70:7: note: in expansion of macro 'bfd_set_section_userdata'
| bfd_set_section_userdata (stdoutput, seg, seginfo);
| ^
| In file included from /home/llr/oe/tisdk-am437x-v1.03/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/linaro-2.24-r2014.03/binutils-linaro-2.24-2014.03/gas/as.h:95:0,
| from /home/llr/oe/tisdk-am437x-v1.03/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/linaro-2.24-r2014.03/binutils-linaro-2.24-2014.03/gas/write.c:25:
| /home/llr/oe/tisdk-am437x-v1.03/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/linaro-2.24-r2014.03/binutils-linaro-2.24-2014.03/gas/write.c: In function 'record_alignment':
| /home/llr/oe/tisdk-am437x-v1.03/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/linaro-2.24-r2014.03/binutils-linaro-2.24-2014.03/gas/subsegs.c: In function 'subseg_get':
| ../bfd/bfd.h:304:75: error: right-hand operand of comma expression has no effect [-Werror=unused-value]
| #define bfd_set_section_userdata(bfd, ptr, val) (((ptr)->userdata = (val)),TRUE)
| ^
| /home/llr/oe/tisdk-am437x-v1.03/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/linaro-2.24-r2014.03/binutils-linaro-2.24-2014.03/gas/subsegs.c:172:7: note: in expansion of macro 'bfd_set_section_userdata'
| bfd_set_section_userdata (stdoutput, secptr, seginfo);
| ^
| ../bfd/bfd.h:303:83: error: right-hand operand of comma expression has no effect [-Werror=unused-value]
| #define bfd_set_section_alignment(bfd, ptr, val) (((ptr)->alignment_power = (val)),TRUE)
| ^
| /home/llr/oe/tisdk-am437x-v1.03/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/linaro-2.24-r2014.03/binutils-linaro-2.24-2014.03/gas/write.c:366:5: note: in expansion of macro 'bfd_set_section_alignment'
| bfd_set_section_alignment (stdoutput, seg, align);
| ^
| In file included from /home/llr/oe/tisdk-am437x-v1.03/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/linaro-2.24-r2014.03/binutils-linaro-2.24-2014.03/gas/as.h:95:0,
| from /home/llr/oe/tisdk-am437x-v1.03/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/linaro-2.24-r2014.03/binutils-linaro-2.24-2014.03/gas/config/obj-elf.c:24:
| /home/llr/oe/tisdk-am437x-v1.03/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/linaro-2.24-r2014.03/binutils-linaro-2.24-2014.03/gas/config/obj-elf.c: In function 'obj_elf_init_stab_section':
| ../bfd/bfd.h:303:83: error: right-hand operand of comma expression has no effect [-Werror=unused-value]
| #define bfd_set_section_alignment(bfd, ptr, val) (((ptr)->alignment_power = (val)),TRUE)
| ^
| /home/llr/oe/tisdk-am437x-v1.03/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/linaro-2.24-r2014.03/binutils-linaro-2.24-2014.03/gas/config/obj-elf.c:1940:3: note: in expansion of macro 'bfd_set_section_alignment'
| bfd_set_section_alignment (stdoutput, seg, 2);
| ^
| /home/llr/oe/tisdk-am437x-v1.03/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/linaro-2.24-r2014.03/binutils-linaro-2.24-2014.03/gas/config/tc-i386.c: In function 'build_modrm_byte':
| /home/llr/oe/tisdk-am437x-v1.03/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/linaro-2.24-r2014.03/binutils-linaro-2.24-2014.03/gas/config/tc-i386.c:6155:31: error: logical not is only applied to the left hand side of comparison [-Werror=logical-not-parentheses]
| && !op.bitfield.reg64 != 1
| ^
| cc1: all warnings being treated as errors
| Makefile:895: recipe for target 'subsegs.o' failed
| make[4]: *** [subsegs.o] Error 1
| make[4]: *** Waiting for unfinished jobs....
| cc1: all warnings being treated as errors
| Makefile:1938: recipe for target 'obj-elf.o' failed
| make[4]: *** [obj-elf.o] Error 1
| cc1: all warnings being treated as errors
| Makefile:895: recipe for target 'write.o' failed
| make[4]: *** [write.o] Error 1
| cc1: all warnings being treated as errors
| Makefile:1182: recipe for target 'tc-i386.o' failed
| make[4]: *** [tc-i386.o] Error 1
| make[4]: Leaving directory '/home/llr/oe/tisdk-am437x-v1.03/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/linaro-2.24-r2014.03/binutils-linaro-2.24-2014.03/build.x86_64-linux.x86_64-linux/gas'
| Makefile:2165: recipe for target 'all-recursive' failed
| make[3]: *** [all-recursive] Error 1
| make[3]: Leaving directory '/home/llr/oe/tisdk-am437x-v1.03/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/linaro-2.24-r2014.03/binutils-linaro-2.24-2014.03/build.x86_64-linux.x86_64-linux/gas'
| Makefile:682: recipe for target 'all' failed
| make[2]: *** [all] Error 2
| make[2]: Leaving directory '/home/llr/oe/tisdk-am437x-v1.03/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/linaro-2.24-r2014.03/binutils-linaro-2.24-2014.03/build.x86_64-linux.x86_64-linux/gas'
| Makefile:4710: recipe for target 'all-gas' failed
| make[1]: *** [all-gas] Error 2
| make[1]: Leaving directory '/home/llr/oe/tisdk-am437x-v1.03/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/linaro-2.24-r2014.03/binutils-linaro-2.24-2014.03/build.x86_64-linux.x86_64-linux'
| Makefile:830: recipe for target 'all' failed
| make: *** [all] Error 2
| ERROR: oe_runmake failed
| WARNING: /home/llr/oe/tisdk-am437x-v1.03/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/linaro-2.24-r2014.03/temp/run.do_compile.25972:1 exit 1 from
| exit 1
| ERROR: Function failed: do_compile (log file is located at /home/llr/oe/tisdk-am437x-v1.03/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/linaro-2.24-r2014.03/temp/log.do_compile.25972)
ERROR: Task 287 (virtual:native:/home/llr/oe/tisdk-am437x-v1.03/sources/meta-linaro/meta-linaro-toolchain/recipes-devtools/binutils/binutils_linaro-2.24.bb, do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 366 tasks of which 362 didn't need to be rerun and 2 failed.
Waiting for 0 running tasks to finish:
Summary: 2 tasks failed:
virtual:native:/home/llr/oe/tisdk-am437x-v1.03/sources/oe-core/meta/recipes-core/ncurses/ncurses_5.9.bb, do_compile
virtual:native:/home/llr/oe/tisdk-am437x-v1.03/sources/meta-linaro/meta-linaro-toolchain/recipes-devtools/binutils/binutils_linaro-2.24.bb, do_compile