public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* 【question】steps to regenerate configure file 
@ 2022-07-08 10:38 好
  2022-07-10 19:47 ` Simon Marchi
  0 siblings, 1 reply; 2+ messages in thread
From: 好 @ 2022-07-08 10:38 UTC (permalink / raw)
  To: gdb

Hi ,


I want to modify some code of gdb, so I have to regenerate the configure file, but I didn't find the relevant documentation, I'm not sure which version of autogen to use? 
This is a bit confusing for newbies like me.
I am going to regenerate the configuration as follows:
```

autogen Makefile.def

autogen Makefile.tpl

aclocal

autoheader

autoconf

./configure

make
```


When I type the command    ```autogen Makefile.def```      the following error will appear,     is my step wrong?






error message:
---------------------------------------------------------------------------------------------------------------
FSM Error:  in state 5 (have_name), event 3 (var_name) is invalid
invalid transition:  in Makefile.def on line 271
token in error:  var_name:  ''flags_to_pass = { flag= LDFLAGS_FOR_BUILD ; };
flags_to_pass = {''


[[...<error-text>]]  = { flag= LDFLAGS_FOR_BUILD ; };
flags_to_pass = {


Likely causes:  a mismatched quote, a value that needs quoting,
or a missing semi-colon
Aborted
--------------------------------------------------------------------------------------------------------------

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

* Re: 【question】steps to regenerate configure file
  2022-07-08 10:38 【question】steps to regenerate configure file@ 2022-07-10 19:47 ` Simon Marchi
  0 siblings, 0 replies; 2+ messages in thread
From: Simon Marchi @ 2022-07-10 19:47 UTC (permalink / raw)
  To: 好, gdb



On 2022-07-08 06:38, 好 via Gdb wrote:
> Hi ,
> 
> 
> I want to modify some code of gdb, so I have to regenerate the configure file, but I didn't find the relevant documentation, I'm not sure which version of autogen to use? 
> This is a bit confusing for newbies like me.
> I am going to regenerate the configuration as follows:
> ```
> 
> autogen Makefile.def
> 
> autogen Makefile.tpl
> 
> aclocal
> 
> autoheader
> 
> autoconf
> 
> ./configure
> 
> make
> ```
> 
> 
> When I type the command    ```autogen Makefile.def```      the following error will appear,     is my step wrong?

So, we're talking about top-level files here.  I just tried with:

  $ autogen --version
autogen (GNU AutoGen) 5.18.16

This:

  $ autogen Makefile.def

re-generates Makefile.in exactly as the version checked in the repo.

If you need to modify the configure files in gdbsupport, gdbserver and
gdb, I suggest using autoreconf, that will call all the right tools.
However, you must use the right version (2.69, at the moment) and use
the upstream version of autoconf/automake, not those packaged in
distros.  Those often contain patches that modify the output, so you'll
get different results that don't match what is checked in the repo.

For example, in the gdb/ directory, I run:

  $ autoreconf -f

Simon

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

end of thread, other threads:[~2022-07-10 19:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-08 10:38 【question】steps to regenerate configure file 好
2022-07-10 19:47 ` Simon Marchi

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).