public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Compiling binutils: .bootstrap doesn't work
@ 2023-09-26 20:06 jacob navia
  2023-09-26 21:52 ` Arsen Arsenović
  0 siblings, 1 reply; 2+ messages in thread
From: jacob navia @ 2023-09-26 20:06 UTC (permalink / raw)
  To: binutils

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!

OK, I can’t compile binutils any more


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Compiling binutils: .bootstrap doesn't work
  2023-09-26 20:06 Compiling binutils: .bootstrap doesn't work jacob navia
@ 2023-09-26 21:52 ` Arsen Arsenović
  0 siblings, 0 replies; 2+ messages in thread
From: Arsen Arsenović @ 2023-09-26 21:52 UTC (permalink / raw)
  To: jacob navia; +Cc: binutils

[-- Attachment #1: Type: text/plain, Size: 2542 bytes --]


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ć

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 381 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-09-26 21:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-26 20:06 Compiling binutils: .bootstrap doesn't work jacob navia
2023-09-26 21:52 ` Arsen Arsenović

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).