Hello Adam,
> When you switched to the 2.4-4 BSP, did you previously compile 2.4-3 on the same machine?
No, I've compiled binutils from scratch. To reproduce the issue I follow the following steps:
1 - Download the VM SDK from LogicPD (file 1027480_LogicPD_Linux_BSP_2.4-4.ova) and import them to the Virtual Box program.
2 - Boot the new virtual machine and update the VirtualBox guest utils of the virtual machine to version 5.0.24. DO NOT update debian packages like libraries, linux kernel, programs,.... The version of libtool is:
/usr/bin/libtool --help
[...]
host-triplet: x86_64-pc-linux-gnu
shell: /bin/bash
compiler: gcc
compiler flags: -Wall -g -O2
linker: /usr/bin/ld -m elf_x86_64 (gnu? yes)
libtool: (GNU libtool) 2.4.2 Debian-2.4.2-1ubuntu1
automake:
autoconf:
The virtual machine is ready.
BSP 2.4-4 included in the VM Modify the BSP already included in the VM:
1 - Open a terminal.
2 - Change to BSP dir (cd ~/logic/Logic_BSPs/Linux_3.0/1027480_LogicPD_Linux_BSP_2.4-4)
3 - Execute './ltib -c' to select gcc version 4.6.1 and select 'oprofile' package.
Ltib rebuils all packages because the toolchain has been modified. The compilation of binutils fails:
Download BSP 2.4-4
Download the BSP 2.4-4 to the VM.
1 - Download the file 1027480_LogicPD_Linux_BSP_2.4-4.tar.bz2 from LogicPD to the VM.
2 - Uncompress the BSP.
3 - Configure the BSP for a Wireless Torpedo module (./ltib -c --preconfig config/platform/omap_logic/defconfig), select gcc 4.6.1 as toolchain and select 'oprofile' package. Exit and save changes.
When building binutils, the compilation fails:
[CODE]
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c -o elflink.lo ../../bfd/elflink.c
../../bfd/elf32-arm.c: In function 'record_cpu_erratum_veneer':
../../bfd/elf32-arm.c:3013:7: error: variable 'errcount' set but not used [-Werror=unused-but-set-variable]
../../bfd/elf32-arm.c: In function 'bfd_elf32_arm_vfp11_erratum_scan':
../../bfd/elf32-arm.c:4026:23: error: variable 'errcount' set but not used [-Werror=unused-but-set-variable]
../../bfd/elf32-arm.c: In function 'bfd_elf32_arm_janus_2cc_erratum_scan':
../../bfd/elf32-arm.c:4292:10: error: variable 'errcount' set but not used [-Werror=unused-but-set-variable]
../../bfd/elf32-arm.c: In function 'elf32_arm_final_link_relocate':
../../bfd/elf32-arm.c:4986:33: error: variable 'sym_hashes' set but not used [-Werror=unused-but-set-variable]
../../bfd/elf32-arm.c:4985:23: error: variable 'symtab_hdr' set but not used [-Werror=unused-but-set-variable]
../../bfd/elf32-arm.c: In function 'elf32_arm_relocate_section':
../../bfd/elf32-arm.c:6942:16: error: variable 'warned' set but not used [-Werror=unused-but-set-variable]
../../bfd/elf32-arm.c: In function 'elf32_arm_check_relocs':
../../bfd/elf32-arm.c:8120:12: error: variable 'local_got_offsets' set but not used [-Werror=unused-but-set-variable]
../../bfd/elf32-arm.c: In function 'elf32_arm_ouput_plt_map_sym':
../../bfd/elf32-arm.c:10213:37: error: variable 'htab' set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c ../../bfd/elf-vxworks.c -o elf-vxworks.o
make[4]: *** [elf32-arm.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c ../../bfd/elf.c -o elf.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c ../../bfd/elflink.c -o elflink.o
../../bfd/elf.c: In function 'prep_headers':
../../bfd/elf.c:4854:23: error: variable 'i_shdrp' set but not used [-Werror=unused-but-set-variable]
../../bfd/elf.c:4853:22: error: variable 'i_phdrp' set but not used [-Werror=unused-but-set-variable]
../../bfd/elf.c: In function '_bfd_elf_write_object_contents':
../../bfd/elf.c:4971:22: error: variable 'i_ehdrp' set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
I've rebuild libtool with the command that you included in the previous message in both BSPs, however the compilation of binutils has failed in both BSPs.
Thanks and Best Regards,
Joaquim Duran