Benson Muite
2018-09-22 17:05:47 UTC
Hi,
Am trying to build binutils on cent os 7. My configuration command is:
../binutils-gdb/configure
--with-isl=$HOME/ProfilingTests2/isl-0.20-install/
--target=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu
--build=x86_64-pc-linux-gnu
--with-gmp=$HOME/ProfilingTests2/gmp-6.1.2-install/
--with-mpc=$HOME/ProfilingTests2/mpc-1.1.0-install/
--with-mpfr=$HOME/ProfilingTests2/mpfr-4.0.1-install/
--prefix=$HOME/ProfilingTests2/binutils-2.31-install/
--build=x86_64-pc-linux-gnu
--with-zlib=$HOME/ProfilingTests2/zlib-1.2.11-install/ --disable-werror
--disable-nls --enable-gold --enable-ld
The build fails with the following output:
../../binutils-gdb/gas/as.c:99:31: error:
‘DEFAULT_GENERATE_ELF_STT_COMMON’ undeclared here (not in a function);
did you mean ‘BFD_USE_ELF_STT_COMMON’?
int flag_use_elf_stt_common = DEFAULT_GENERATE_ELF_STT_COMMON;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
BFD_USE_ELF_STT_COMMON
../../binutils-gdb/gas/as.c:100:41: error:
‘DEFAULT_GENERATE_BUILD_NOTES’ undeclared here (not in a function); did
you mean ‘SHF_GNU_BUILD_NOTE’?
bfd_boolean flag_generate_build_notes = DEFAULT_GENERATE_BUILD_NOTES;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
SHF_GNU_BUILD_NOTE
../../binutils-gdb/gas/as.c: In function ‘print_version_id’:
../../binutils-gdb/gas/as.c:226:14: error: ‘TARGET_ALIAS’ undeclared
(first use in this function); did you mean ‘TARGET_ARCH’?
VERSION, TARGET_ALIAS, BFD_VERSION_STRING);
^~~~~~~~~~~~
TARGET_ARCH
../../binutils-gdb/gas/as.c:226:14: note: each undeclared identifier is
reported only once for each function it appears in
../../binutils-gdb/gas/as.c: In function ‘parse_args’:
../../binutils-gdb/gas/as.c:689:5: error: ‘TARGET_ALIAS’ undeclared
(first use in this function); did you mean ‘TARGET_ARCH’?
TARGET_ALIAS);
^~~~~~~~~~~~
TARGET_ARCH
../../binutils-gdb/gas/as.c:704:44: error: ‘TARGET_CANONICAL’ undeclared
(first use in this function); did you mean ‘TARGET_ARCH’?
fprintf (stderr, _("canonical = %s\n"), TARGET_CANONICAL);
^~~~~~~~~~~~~~~~
TARGET_ARCH
../../binutils-gdb/gas/as.c:705:43: error: ‘TARGET_CPU’ undeclared
(first use in this function); did you mean ‘TARGET_ARCH’?
fprintf (stderr, _("cpu-type = %s\n"), TARGET_CPU);
^~~~~~~~~~
TARGET_ARCH
make[4]: *** [as.o] Error 1
Are there any suggestions for how to get the build to work?
Thanks,
Benson
Am trying to build binutils on cent os 7. My configuration command is:
../binutils-gdb/configure
--with-isl=$HOME/ProfilingTests2/isl-0.20-install/
--target=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu
--build=x86_64-pc-linux-gnu
--with-gmp=$HOME/ProfilingTests2/gmp-6.1.2-install/
--with-mpc=$HOME/ProfilingTests2/mpc-1.1.0-install/
--with-mpfr=$HOME/ProfilingTests2/mpfr-4.0.1-install/
--prefix=$HOME/ProfilingTests2/binutils-2.31-install/
--build=x86_64-pc-linux-gnu
--with-zlib=$HOME/ProfilingTests2/zlib-1.2.11-install/ --disable-werror
--disable-nls --enable-gold --enable-ld
The build fails with the following output:
../../binutils-gdb/gas/as.c:99:31: error:
‘DEFAULT_GENERATE_ELF_STT_COMMON’ undeclared here (not in a function);
did you mean ‘BFD_USE_ELF_STT_COMMON’?
int flag_use_elf_stt_common = DEFAULT_GENERATE_ELF_STT_COMMON;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
BFD_USE_ELF_STT_COMMON
../../binutils-gdb/gas/as.c:100:41: error:
‘DEFAULT_GENERATE_BUILD_NOTES’ undeclared here (not in a function); did
you mean ‘SHF_GNU_BUILD_NOTE’?
bfd_boolean flag_generate_build_notes = DEFAULT_GENERATE_BUILD_NOTES;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
SHF_GNU_BUILD_NOTE
../../binutils-gdb/gas/as.c: In function ‘print_version_id’:
../../binutils-gdb/gas/as.c:226:14: error: ‘TARGET_ALIAS’ undeclared
(first use in this function); did you mean ‘TARGET_ARCH’?
VERSION, TARGET_ALIAS, BFD_VERSION_STRING);
^~~~~~~~~~~~
TARGET_ARCH
../../binutils-gdb/gas/as.c:226:14: note: each undeclared identifier is
reported only once for each function it appears in
../../binutils-gdb/gas/as.c: In function ‘parse_args’:
../../binutils-gdb/gas/as.c:689:5: error: ‘TARGET_ALIAS’ undeclared
(first use in this function); did you mean ‘TARGET_ARCH’?
TARGET_ALIAS);
^~~~~~~~~~~~
TARGET_ARCH
../../binutils-gdb/gas/as.c:704:44: error: ‘TARGET_CANONICAL’ undeclared
(first use in this function); did you mean ‘TARGET_ARCH’?
fprintf (stderr, _("canonical = %s\n"), TARGET_CANONICAL);
^~~~~~~~~~~~~~~~
TARGET_ARCH
../../binutils-gdb/gas/as.c:705:43: error: ‘TARGET_CPU’ undeclared
(first use in this function); did you mean ‘TARGET_ARCH’?
fprintf (stderr, _("cpu-type = %s\n"), TARGET_CPU);
^~~~~~~~~~
TARGET_ARCH
make[4]: *** [as.o] Error 1
Are there any suggestions for how to get the build to work?
Thanks,
Benson