Compiling binutils: .bootstrap doesn't work

Arsen Arsenović arsen@aarsen.me
Tue Sep 26 21:52:15 GMT 2023


jacob navia <jacob@jacob.remcomp.fr> writes:

> After downloading automate and autoconf (see my previous message) I invoked « .bootstrap » again, as specified in the documentation.
>
> I obtained:
> configure.ac:2535: warning: The macro `AC_PROG_CC_C99' is obsolete.
> configure.ac:2535: You should run autoupdate.
> ./lib/autoconf/c.m4:1659: AC_PROG_CC_C99 is expanded from...
> configure.ac:2535: the top level
> configure.ac:3846: warning: AC_LIBTOOL_PROG_COMPILER_PIC is m4_require'd but not m4_defun'd
> acinclude.m4:2363: GMP_ASM_X86_GOT_UNDERSCORE is expanded from...
> configure.ac:3846: the top level
> configure.ac:3849: warning: AC_ENABLE_SHARED is m4_require'd but not m4_defun'd
> acinclude.m4:2717: GMP_ASM_X86_MCOUNT is expanded from...
> configure.ac:3849: the top level
> configure.ac:3849: warning: LT_INIT is m4_require'd but not m4_defun'd
> acinclude.m4:2717: GMP_ASM_X86_MCOUNT is expanded from...
> configure.ac:3849: the top level
> configure.ac:4052: warning: AC_PROG_LEX without either yywrap or noyywrap is obsolete
> ./lib/autoconf/programs.m4:716: _AC_PROG_LEX is expanded from...
> ./lib/autoconf/programs.m4:709: AC_PROG_LEX is expanded from...
> aclocal.m4:411: AM_PROG_LEX is expanded from...
> configure.ac:4052: the top level
> configure.ac:2730: error: possibly undefined macro: AC_LIBTOOL_WIN32_DLL
>       If this token and others are legitimate, please use m4_pattern_allow.
>       See the Autoconf documentation.
> configure:16286: error: possibly undefined macro: AC_LIBTOOL_PROG_COMPILER_PIC
> configure:16383: error: possibly undefined macro: AC_ENABLE_SHARED
> autoreconf: error: /usr/bin/autoconf failed with exit status: 1
>
> What scares me is all those « X86 »  and « WIN32_DLL » , since I am running in a riscv machine. GMP is completely lost!

These are macro expansions.  They happen on any platform

> OK, I can’t compile binutils any more

Please just use generated files, or follow README-maintainer-mode to
fetch the right versions of tools.  Note that autoreconf also won't
handle everything in the toolchain case, since there are many build
systems, rather than just one, when building the toolchain.

I recommend that you either fetch GMP from gmplib.org and extract and
rename it to 'gmp', or a binutils distribution from
https://ftp.gnu.org/gnu/binutils/ and configure that (as it should not
require GMP), or to --disable-gdb.

Do not regenerate any files.

Hope that helps, have a lovely night :-)
-- 
Arsen Arsenović
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 381 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20230926/45e57696/attachment.sig>


More information about the Binutils mailing list