[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/18667] New: cannot compile bfd: targmatch.h:313: error: `a
From: |
saper at marcincieslak dot com |
Subject: |
[Bug binutils/18667] New: cannot compile bfd: targmatch.h:313: error: `arm' undeclared here on sparc-sun-solaris2.9 |
Date: |
Tue, 14 Jul 2015 09:19:51 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=18667
Bug ID: 18667
Summary: cannot compile bfd: targmatch.h:313: error: `arm'
undeclared here on sparc-sun-solaris2.9
Product: binutils
Version: 2.26 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: binutils
Assignee: unassigned at sourceware dot org
Reporter: saper at marcincieslak dot com
Target Milestone: ---
Error log:
mv -f .deps/syms.Tpo .deps/syms.Plo
/bin/bash ./libtool --tag=CC --mode=compile /usr/local/bin/gcc
-DHAVE_CONFIG_H -I. -I. -I. -I./../include -DHAVE_sparc_elf32_sol2_vec
-DHAVE_sparc_elf64_sol2_vec -DHAVE_sparc_aout_sunos_be_vec -DHAVE_elf64_le_vec
-DHAVE_elf64_be_vec -DHAVE_elf32_le_vec -DHAVE_elf32_be_vec -DHAVE_plugin_vec
-DBINDIR='"/home/admini/saper/sparcv7/bin"' -I/home/admini/saper/include -W
-Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -MT targets.lo -MD -MP
-MF .deps/targets.Tpo -c -o targets.lo -DDEFAULT_VECTOR=sparc_elf32_sol2_vec
-DSELECT_VECS='&sparc_elf32_sol2_vec,&sparc_elf64_sol2_vec,&sparc_aout_sunos_be_vec,&elf64_le_vec,&elf64_be_vec,&elf32_le_vec,&elf32_be_vec,&plugin_vec'
-DSELECT_ARCHITECTURES='&bfd_sparc_arch,&bfd_plugin_arch' ./targets.c
libtool: compile: /usr/local/bin/gcc -DHAVE_CONFIG_H -I. -I. -I.
-I./../include -DHAVE_sparc_elf32_sol2_vec -DHAVE_sparc_elf64_sol2_vec
-DHAVE_sparc_aout_sunos_be_vec -DHAVE_elf64_le_vec -DHAVE_elf64_be_vec
-DHAVE_elf32_le_vec -DHAVE_elf32_be_vec -DHAVE_plugin_vec
-DBINDIR=\"/home/admini/saper/sparcv7/bin\" -I/home/admini/saper/include -W
-Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -MT targets.lo -MD -MP
-MF .deps/targets.Tpo -c -DDEFAULT_VECTOR=sparc_elf32_sol2_vec
"-DSELECT_VECS=&sparc_elf32_sol2_vec,&sparc_elf64_sol2_vec,&sparc_aout_sunos_be_vec,&elf64_le_vec,&elf64_be_vec,&elf32_le_vec,&elf32_be_vec,&plugin_vec"
"-DSELECT_ARCHITECTURES=&bfd_sparc_arch,&bfd_plugin_arch" ./targets.c -o
targets.o
In file included from targets.c:1509:
targmatch.h:313: error: `arm' undeclared here (not in a function)
targmatch.h:313: error: `vxworks' undeclared here (not in a function)
targmatch.h:313: error: `arm' undeclared here (not in a function)
targmatch.h:313: error: `windiss' undeclared here (not in a function)
targmatch.h:313: error: initializer element is not constant
targmatch.h:313: error: (near initialization for `bfd_target_match[0]')
targmatch.h:313: error: parse error before ')' token
targmatch.h:1341: warning: missing braces around initializer
targmatch.h:1341: warning: (near initialization for `bfd_target_match[1]')
targmatch.h:1341: warning: missing initializer
targmatch.h:1341: warning: (near initialization for
`bfd_target_match[1].vector')
targmatch.h:1341: error: initializer element is not constant
targmatch.h:1341: error: (near initialization for `bfd_target_match[1]')
targmatch.h:1341: error: parse error before '*' token
bfd.h: In function `bfd_set_section_userdata':
bfd.h:1608: warning: unused parameter `abfd'
bfd.h: In function `bfd_set_section_vma':
bfd.h:1615: warning: unused parameter `abfd'
bfd.h: In function `bfd_set_section_alignment':
bfd.h:1623: warning: unused parameter `abfd'
make[4]: *** [targets.lo] Error 1
make[4]: Leaving directory `/home/admini/saper/src/bi/binutils-2.25/bfd'
This is because targmatch.h gets mutilated by Solaris sed:
#if !defined (SELECT_VECS) || defined (HAVE_arm_elf32_le_vec)
{ "arm-*-elf", NULL }, arm*-*-freeb{ "d*", NULL },{ "arm*-*-linux-*", NULL },{
"arm*-*
-conix*", NULL },
{ "arm*-*-uclinux*", NULL }, arm-*-kfreeb{ "d*-gnu", NULL },
{ "arm*-*-eabi*",
&arm_elf32_le_vec },
#endif
arm*-*-vxworks | arm*-*-windiss)
#if !defined (SELECT_VECS) || defined (HAVE_arm_elf32_vxworks_le_vec)
&arm_elf32_vxworks_le_vec },
#endif
The solution is to use GNU sed (modify Makefile.am/.in/Makefile to use $(SED))
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug binutils/18667] New: cannot compile bfd: targmatch.h:313: error: `arm' undeclared here on sparc-sun-solaris2.9,
saper at marcincieslak dot com <=