* [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