public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug server/30199] New: cross compilation for arm64 fails
@ 2023-03-05 13:10 mp3 at hello dot lv
2023-03-05 16:48 ` [Bug server/30199] " tromey at sourceware dot org
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: mp3 at hello dot lv @ 2023-03-05 13:10 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=30199
Bug ID: 30199
Summary: cross compilation for arm64 fails
Product: gdb
Version: 13.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: server
Assignee: unassigned at sourceware dot org
Reporter: mp3 at hello dot lv
Target Milestone: ---
Created attachment 14730
--> https://sourceware.org/bugzilla/attachment.cgi?id=14730&action=edit
Archived config.log, config.status and Makefile of gdbserver
I'm trying to cross compile using:
../../configure --prefix=/home/martinspuk/sources/aarch64-linux-musl/native
--host=aarch64-linux-musl --target=aarch64-linux-musl
make fails with:
make[2]: Entering directory
'/home/martinspuk/sources/gdb-13.1/build/arm64/gdbserver'
CXX linux-aarch64-low.o
../../../gdbserver/linux-aarch64-low.cc: In function 'void
aarch64_adjust_register_sets(const aarch64_features&)':
../../../gdbserver/linux-aarch64-low.cc:810:61: error: 'SVE_PT_REGS_SVE' was
not declared in this scope; did you mean 'SVE_SIG_REGS_SIZE'?
810 | regset->size = SVE_PT_SIZE (AARCH64_MAX_SVE_VQ,
SVE_PT_REGS_SVE);
|
^~~~~~~~~~~~~~~
|
SVE_SIG_REGS_SIZE
../../../gdbserver/linux-aarch64-low.cc:810:28: error: 'SVE_PT_SIZE' was not
declared in this scope
810 | regset->size = SVE_PT_SIZE (AARCH64_MAX_SVE_VQ,
SVE_PT_REGS_SVE);
| ^~~~~~~~~~~
make[2]: *** [Makefile:545: linux-aarch64-low.o] Error 1
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug server/30199] cross compilation for arm64 fails
2023-03-05 13:10 [Bug server/30199] New: cross compilation for arm64 fails mp3 at hello dot lv
@ 2023-03-05 16:48 ` tromey at sourceware dot org
2023-03-05 19:05 ` mp3 at hello dot lv
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: tromey at sourceware dot org @ 2023-03-05 16:48 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=30199
Tom Tromey <tromey at sourceware dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tromey at sourceware dot org
--- Comment #1 from Tom Tromey <tromey at sourceware dot org> ---
This seems strange because at first glance these are defined
in gdb/nat/aarch64-sve-linux-sigcontext.h, which seems to
be included indirectly from linux-aarch64-low.cc.
Could you look into what's going on there?
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug server/30199] cross compilation for arm64 fails
2023-03-05 13:10 [Bug server/30199] New: cross compilation for arm64 fails mp3 at hello dot lv
2023-03-05 16:48 ` [Bug server/30199] " tromey at sourceware dot org
@ 2023-03-05 19:05 ` mp3 at hello dot lv
2023-03-05 19:23 ` mp3 at hello dot lv
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: mp3 at hello dot lv @ 2023-03-05 19:05 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=30199
--- Comment #2 from Mārtiņš Puķītis <mp3 at hello dot lv> ---
Hi Tom.
Thanks for helping. Somehow SVE_SIG_ZREGS_SIZE is defined and
./gdb/nat/aarch64-sve-linux-sigcontext.h doesn't get included from
./gdb/nat/aarch64-sve-linux-ptrace.h.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug server/30199] cross compilation for arm64 fails
2023-03-05 13:10 [Bug server/30199] New: cross compilation for arm64 fails mp3 at hello dot lv
2023-03-05 16:48 ` [Bug server/30199] " tromey at sourceware dot org
2023-03-05 19:05 ` mp3 at hello dot lv
@ 2023-03-05 19:23 ` mp3 at hello dot lv
2023-03-05 20:40 ` mp3 at hello dot lv
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: mp3 at hello dot lv @ 2023-03-05 19:23 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=30199
--- Comment #3 from Mārtiņš Puķītis <mp3 at hello dot lv> ---
SVE_SIG_ZREGS_SIZE is defined in toolchain file
/opt/buildroot-11/aarch64-linux-musl/include/bits/signal.h. Here's the full
path of includes:
In file included from /opt/buildroot-11/aarch64-linux-musl/include/signal.h:48,
from ../gnulib/import/signal.h:52,
from ../gnulib/import/sys/select.h:118,
from
/opt/buildroot-11/aarch64-linux-musl/include/sys/time.h:9,
from ../gnulib/import/sys/time.h:39,
from ../gnulib/import/sys/select.h:89,
from
/opt/buildroot-11/aarch64-linux-musl/include/sys/types.h:71,
from ../gnulib/import/sys/types.h:39,
from ../gnulib/import/stdio.h:58,
from ../../../gdbserver/../gdbsupport/common-defs.h:88,
from ../../../gdbserver/server.h:22,
from ../../../gdbserver/linux-aarch64-low.cc:22:
/opt/buildroot-11/aarch64-linux-musl/include/bits/signal.h:74:2: warning:
#warning SVE_SIG_ZREGS_SIZE [-Wcpp]
74 | #warning SVE_SIG_ZREGS_SIZE
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug server/30199] cross compilation for arm64 fails
2023-03-05 13:10 [Bug server/30199] New: cross compilation for arm64 fails mp3 at hello dot lv
` (2 preceding siblings ...)
2023-03-05 19:23 ` mp3 at hello dot lv
@ 2023-03-05 20:40 ` mp3 at hello dot lv
2023-03-13 15:33 ` luis.machado at arm dot com
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: mp3 at hello dot lv @ 2023-03-05 20:40 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=30199
--- Comment #4 from Mārtiņš Puķītis <mp3 at hello dot lv> ---
SVE_PT_REGS_SVE isn't defined anywhere in the toolchain.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug server/30199] cross compilation for arm64 fails
2023-03-05 13:10 [Bug server/30199] New: cross compilation for arm64 fails mp3 at hello dot lv
` (3 preceding siblings ...)
2023-03-05 20:40 ` mp3 at hello dot lv
@ 2023-03-13 15:33 ` luis.machado at arm dot com
2023-03-13 15:39 ` luis.machado at arm dot com
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: luis.machado at arm dot com @ 2023-03-13 15:33 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=30199
Luis Machado <luis.machado at arm dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |luis.machado at arm dot com
Last reconfirmed| |2023-03-13
Ever confirmed|0 |1
Status|UNCONFIRMED |WAITING
--- Comment #5 from Luis Machado <luis.machado at arm dot com> ---
Hi,
What are the specs of the toolchain you're using. I've cross-built aarch64
before, but did not run into this.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug server/30199] cross compilation for arm64 fails
2023-03-05 13:10 [Bug server/30199] New: cross compilation for arm64 fails mp3 at hello dot lv
` (4 preceding siblings ...)
2023-03-13 15:33 ` luis.machado at arm dot com
@ 2023-03-13 15:39 ` luis.machado at arm dot com
2023-03-13 15:46 ` mp3 at hello dot lv
2023-03-13 16:20 ` luis.machado at arm dot com
7 siblings, 0 replies; 9+ messages in thread
From: luis.machado at arm dot com @ 2023-03-13 15:39 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=30199
--- Comment #6 from Luis Machado <luis.machado at arm dot com> ---
These definitions come from the Linux Kernel headers. Supposedly glibc picks
them up and duplicates them. Is it possible that musl has a slightly
out-of-sync version of the headers?
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug server/30199] cross compilation for arm64 fails
2023-03-05 13:10 [Bug server/30199] New: cross compilation for arm64 fails mp3 at hello dot lv
` (5 preceding siblings ...)
2023-03-13 15:39 ` luis.machado at arm dot com
@ 2023-03-13 15:46 ` mp3 at hello dot lv
2023-03-13 16:20 ` luis.machado at arm dot com
7 siblings, 0 replies; 9+ messages in thread
From: mp3 at hello dot lv @ 2023-03-13 15:46 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=30199
--- Comment #7 from Mārtiņš Puķītis <mp3 at hello dot lv> ---
Hi Luis.
I don't know the specs of toolchain. It seems to be some version of buildroot.
I was able to cross compile by commenting out #ifndef SVE_SIG_ZREGS_SIZE so
that aarch64-sve-linux-sigcontext.h gets included.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug server/30199] cross compilation for arm64 fails
2023-03-05 13:10 [Bug server/30199] New: cross compilation for arm64 fails mp3 at hello dot lv
` (6 preceding siblings ...)
2023-03-13 15:46 ` mp3 at hello dot lv
@ 2023-03-13 16:20 ` luis.machado at arm dot com
7 siblings, 0 replies; 9+ messages in thread
From: luis.machado at arm dot com @ 2023-03-13 16:20 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=30199
Luis Machado <luis.machado at arm dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution|--- |NOTABUG
--- Comment #8 from Luis Machado <luis.machado at arm dot com> ---
That's good to know. But I suspect the right solution is to have the proper
headers for musl. Might be worth opening a ticket against musl to get those
headers adjusted.
I'll close this ticket, but feel free to reopen it if you see something else
off that might need investigation.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2023-03-13 16:20 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-05 13:10 [Bug server/30199] New: cross compilation for arm64 fails mp3 at hello dot lv
2023-03-05 16:48 ` [Bug server/30199] " tromey at sourceware dot org
2023-03-05 19:05 ` mp3 at hello dot lv
2023-03-05 19:23 ` mp3 at hello dot lv
2023-03-05 20:40 ` mp3 at hello dot lv
2023-03-13 15:33 ` luis.machado at arm dot com
2023-03-13 15:39 ` luis.machado at arm dot com
2023-03-13 15:46 ` mp3 at hello dot lv
2023-03-13 16:20 ` luis.machado at arm dot com
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).