public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug build/26136] New: when make it shows "make: *** No rule to make target '../alloc.c'. Stop"
@ 2020-06-19  2:07 hyc6643 at 126 dot com
  2020-06-19 13:08 ` [Bug build/26136] " ssbssa at sourceware dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: hyc6643 at 126 dot com @ 2020-06-19  2:07 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=26136

            Bug ID: 26136
           Summary: when make it shows "make: *** No rule to make target
                    '../alloc.c'. Stop"
           Product: gdb
           Version: 9.2
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: build
          Assignee: unassigned at sourceware dot org
          Reporter: hyc6643 at 126 dot com
  Target Milestone: ---

Command as below:
 cd gdb/gdbserver
 mkdir buid
 cd build
 ./configure --target=arm-poky-linux-gnueabi --host=arm-poky-linux-gnueabi
 make

it show the message as summary.

Solution:
 add correct path to gdb/gdbserver/Makefile.in line 583
 from 'alloc-ipa.o: ../alloc.c' to 'alloc-ipa.o: ../../alloc.c'

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug build/26136] when make it shows "make: *** No rule to make target '../alloc.c'. Stop"
  2020-06-19  2:07 [Bug build/26136] New: when make it shows "make: *** No rule to make target '../alloc.c'. Stop" hyc6643 at 126 dot com
@ 2020-06-19 13:08 ` ssbssa at sourceware dot org
  2020-06-19 13:34 ` simark at simark dot ca
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: ssbssa at sourceware dot org @ 2020-06-19 13:08 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=26136

Hannes Domani <ssbssa at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ssbssa at sourceware dot org

--- Comment #1 from Hannes Domani <ssbssa at sourceware dot org> ---
(In reply to AlanHu from comment #0)
> Command as below:
>  cd gdb/gdbserver
>  mkdir buid
>  cd build
>  ./configure --target=arm-poky-linux-gnueabi --host=arm-poky-linux-gnueabi
>  make
> 
> it show the message as summary.
> 
> Solution:
>  add correct path to gdb/gdbserver/Makefile.in line 583
>  from 'alloc-ipa.o: ../alloc.c' to 'alloc-ipa.o: ../../alloc.c'

But ../alloc.c is correct, since the full path is gdb/alloc.c.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug build/26136] when make it shows "make: *** No rule to make target '../alloc.c'. Stop"
  2020-06-19  2:07 [Bug build/26136] New: when make it shows "make: *** No rule to make target '../alloc.c'. Stop" hyc6643 at 126 dot com
  2020-06-19 13:08 ` [Bug build/26136] " ssbssa at sourceware dot org
@ 2020-06-19 13:34 ` simark at simark dot ca
  2020-06-22 23:29 ` hyc6643 at 126 dot com
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: simark at simark dot ca @ 2020-06-19 13:34 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=26136

Simon Marchi <simark at simark dot ca> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |simark at simark dot ca

--- Comment #2 from Simon Marchi <simark at simark dot ca> ---
(In reply to AlanHu from comment #0)
> Command as below:
>  cd gdb/gdbserver
>  mkdir buid
>  cd build
>  ./configure --target=arm-poky-linux-gnueabi --host=arm-poky-linux-gnueabi
>  make

The commands don't make sense.  Apart from the "buid" / "build" typo, you seem
to be running ./configure in an empty directory, which doesn't make sense.

But it sounds like you are running gdbserver's configure script directly.  You
need to run the top-level configure so that the whole tree is built.

If needed, you can pass --disable-binutils, --disable-gas, etc, to skip
building the other tools.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug build/26136] when make it shows "make: *** No rule to make target '../alloc.c'. Stop"
  2020-06-19  2:07 [Bug build/26136] New: when make it shows "make: *** No rule to make target '../alloc.c'. Stop" hyc6643 at 126 dot com
  2020-06-19 13:08 ` [Bug build/26136] " ssbssa at sourceware dot org
  2020-06-19 13:34 ` simark at simark dot ca
@ 2020-06-22 23:29 ` hyc6643 at 126 dot com
  2020-06-22 23:32 ` simark at simark dot ca
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: hyc6643 at 126 dot com @ 2020-06-22 23:29 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=26136

--- Comment #3 from AlanHu <hyc6643 at 126 dot com> ---
my fault, my steps are

 cd gdb/gdbserver
 mkdir buid
 cd build
 ../configure --target=arm-poky-linux-gnueabi --host=arm-poky-linux-gnueabi
 make

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug build/26136] when make it shows "make: *** No rule to make target '../alloc.c'. Stop"
  2020-06-19  2:07 [Bug build/26136] New: when make it shows "make: *** No rule to make target '../alloc.c'. Stop" hyc6643 at 126 dot com
                   ` (2 preceding siblings ...)
  2020-06-22 23:29 ` hyc6643 at 126 dot com
@ 2020-06-22 23:32 ` simark at simark dot ca
  2020-06-22 23:47 ` hyc6643 at 126 dot com
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: simark at simark dot ca @ 2020-06-22 23:32 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=26136

--- Comment #4 from Simon Marchi <simark at simark dot ca> ---
Wait, which version of GDB are you running?  The gdbserver directory has been
moved to the top-level in GDB 9 I think.  Before that, it was fine to run
gdbserver's configure directly.  After that, you must run the top-level
configure.

Anyhow, if this a problem that applies to an old version, we'll mark the bug as
obsolete.  So please let us know the version of GDB you are compiling.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug build/26136] when make it shows "make: *** No rule to make target '../alloc.c'. Stop"
  2020-06-19  2:07 [Bug build/26136] New: when make it shows "make: *** No rule to make target '../alloc.c'. Stop" hyc6643 at 126 dot com
                   ` (3 preceding siblings ...)
  2020-06-22 23:32 ` simark at simark dot ca
@ 2020-06-22 23:47 ` hyc6643 at 126 dot com
  2020-06-23  0:15 ` hyc6643 at 126 dot com
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: hyc6643 at 126 dot com @ 2020-06-22 23:47 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=26136

--- Comment #5 from AlanHu <hyc6643 at 126 dot com> ---
it is gdb-9.2

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug build/26136] when make it shows "make: *** No rule to make target '../alloc.c'. Stop"
  2020-06-19  2:07 [Bug build/26136] New: when make it shows "make: *** No rule to make target '../alloc.c'. Stop" hyc6643 at 126 dot com
                   ` (4 preceding siblings ...)
  2020-06-22 23:47 ` hyc6643 at 126 dot com
@ 2020-06-23  0:15 ` hyc6643 at 126 dot com
  2020-06-23  0:28 ` simark at simark dot ca
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: hyc6643 at 126 dot com @ 2020-06-23  0:15 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=26136

--- Comment #6 from AlanHu <hyc6643 at 126 dot com> ---
As suggested to build the gdbserver in the gdb/gdbserver/README:

% mkdir obj
% cd obj
% path-to-gdbserver-sources/configure
% make


after first three commands the Makefile will be generated in the obj folder,
its fullpath is:

gdb/gdbserver/obj/Makefiile

but the fullpath of alloc.c is:

gdb/alloc.c


so if the Makefile wants to use the alloc.c, it needs to check two top levels
of the directory:

../../alloc.c

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug build/26136] when make it shows "make: *** No rule to make target '../alloc.c'. Stop"
  2020-06-19  2:07 [Bug build/26136] New: when make it shows "make: *** No rule to make target '../alloc.c'. Stop" hyc6643 at 126 dot com
                   ` (5 preceding siblings ...)
  2020-06-23  0:15 ` hyc6643 at 126 dot com
@ 2020-06-23  0:28 ` simark at simark dot ca
  2020-08-09 20:49 ` tromey at sourceware dot org
  2022-02-27 14:59 ` tromey at sourceware dot org
  8 siblings, 0 replies; 10+ messages in thread
From: simark at simark dot ca @ 2020-06-23  0:28 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=26136

--- Comment #7 from Simon Marchi <simark at simark dot ca> ---
Ok sorry, so it is only in master (and therefore in the upcoming GDB 10) that
the gdbserver directory was moved, and build instructions have changed.  Still,
these instructions are the "old" way.  So I'd say, try building from master, if
you still encounter some issues there, we can patch it.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug build/26136] when make it shows "make: *** No rule to make target '../alloc.c'. Stop"
  2020-06-19  2:07 [Bug build/26136] New: when make it shows "make: *** No rule to make target '../alloc.c'. Stop" hyc6643 at 126 dot com
                   ` (6 preceding siblings ...)
  2020-06-23  0:28 ` simark at simark dot ca
@ 2020-08-09 20:49 ` tromey at sourceware dot org
  2022-02-27 14:59 ` tromey at sourceware dot org
  8 siblings, 0 replies; 10+ messages in thread
From: tromey at sourceware dot org @ 2020-08-09 20:49 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=26136

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2020-08-09
             Status|UNCONFIRMED                 |WAITING
     Ever confirmed|0                           |1
                 CC|                            |tromey at sourceware dot org

--- Comment #8 from Tom Tromey <tromey at sourceware dot org> ---
Changing the state until we hear back.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug build/26136] when make it shows "make: *** No rule to make target '../alloc.c'. Stop"
  2020-06-19  2:07 [Bug build/26136] New: when make it shows "make: *** No rule to make target '../alloc.c'. Stop" hyc6643 at 126 dot com
                   ` (7 preceding siblings ...)
  2020-08-09 20:49 ` tromey at sourceware dot org
@ 2022-02-27 14:59 ` tromey at sourceware dot org
  8 siblings, 0 replies; 10+ messages in thread
From: tromey at sourceware dot org @ 2022-02-27 14:59 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=26136

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|---                         |OBSOLETE

--- Comment #9 from Tom Tromey <tromey at sourceware dot org> ---
1.5 years without a reply, plus I think the new approach works.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

end of thread, other threads:[~2022-02-27 14:59 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-19  2:07 [Bug build/26136] New: when make it shows "make: *** No rule to make target '../alloc.c'. Stop" hyc6643 at 126 dot com
2020-06-19 13:08 ` [Bug build/26136] " ssbssa at sourceware dot org
2020-06-19 13:34 ` simark at simark dot ca
2020-06-22 23:29 ` hyc6643 at 126 dot com
2020-06-22 23:32 ` simark at simark dot ca
2020-06-22 23:47 ` hyc6643 at 126 dot com
2020-06-23  0:15 ` hyc6643 at 126 dot com
2020-06-23  0:28 ` simark at simark dot ca
2020-08-09 20:49 ` tromey at sourceware dot org
2022-02-27 14:59 ` tromey at sourceware dot org

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