Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 942319 - dev-libs/libsigsegv-2.14-r1 fails to cross compile for sparc64 ( handler-unix.c:359:57: error: initialization of 'stackoverflow_context_t' {aka 'struct sigcontext *'} from incompatible pointer type 'ucontext_t *' [-Wincompatible-pointer-types])
Summary: dev-libs/libsigsegv-2.14-r1 fails to cross compile for sparc64 ( handler-unix...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Common Lisp Bugs
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2024-10-27 08:12 UTC by BogDan
Modified: 2024-10-27 08:58 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
# sparc64-unknown-linux-gnu-emerge --info '=dev-libs/libsigsegv-2.14-r1::gentoo' (file_942319.txt,4.97 KB, text/plain)
2024-10-27 08:13 UTC, BogDan
Details
/usr/sparc64-unknown-linux-gnu/tmp/portage/dev-libs/libsigsegv-2.14-r1/temp/build.log (file_942319.txt,15.74 KB, text/plain)
2024-10-27 08:14 UTC, BogDan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description BogDan 2024-10-27 08:12:52 UTC
I'm trying to cross compile @system to sparc64 and it stops at 
dev-libs/libsigsegv-2.14-r1::gentoo


Reproducible: Always

Steps to Reproduce:
# sparc64-unknown-linux-gnu-emerge --ask --verbose --update --deep --changed-use @system
Comment 1 BogDan 2024-10-27 08:13:31 UTC
Created attachment 906953 [details]
# sparc64-unknown-linux-gnu-emerge --info '=dev-libs/libsigsegv-2.14-r1::gentoo'
Comment 2 BogDan 2024-10-27 08:14:19 UTC
Created attachment 906954 [details]
/usr/sparc64-unknown-linux-gnu/tmp/portage/dev-libs/libsigsegv-2.14-r1/temp/build.log
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-10-27 08:18:27 UTC
https://git.savannah.gnu.org/gitweb/?p=libsigsegv.git;a=commitdiff;h=2918accda83436dc75518d0a294d28573c6b1a27 may fix it, although I thought I'd backported all of those patches, apparently I didn't.
Comment 4 BogDan 2024-10-27 08:58:50 UTC
(In reply to Sam James from comment #3)
> https://git.savannah.gnu.org/gitweb/?p=libsigsegv.git;a=commitdiff;
> h=2918accda83436dc75518d0a294d28573c6b1a27 may fix it, although I thought
> I'd backported all of those patches, apparently I didn't.

I think this one fixes another problem. My patch is different:

# cat /usr/sparc64-unknown-linux-gnu/etc/portage/patches/dev-libs/libsigsegv-2.14-r1/fix_compile.patch 
diff '--color=auto' -Nru libsigsegv-2.14/src/handler-unix.c libsigsegv-2.14_/src/handler-unix.c
--- libsigsegv-2.14/src/handler-unix.c  2024-10-27 08:38:31.882019389 -0000
+++ libsigsegv-2.14_/src/handler-unix.c 2024-10-27 08:45:08.915747688 -0000
@@ -356,7 +356,7 @@
                       int emergency =
                         (old_sp >= stk_extra_stack
                          && old_sp <= stk_extra_stack + stk_extra_stack_size);
-                      stackoverflow_context_t context = (SIGSEGV_FAULT_CONTEXT);
+                      stackoverflow_context_t context = (stackoverflow_context_t)(SIGSEGV_FAULT_CONTEXT);
 #else
                       int emergency = 0;
                       stackoverflow_context_t context = (void *) 0;