Project

General

Profile

Actions

tickets #126323

open

hashlink: 2 missing declarations

Added by AdaLovelace about 1 year ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2023-03-21
Due date:
% Done:

0%

Estimated time:

Description

hashlink is failing for s390x, because the declarations for REG_RIP and REG_RSP are missing:
[ 53s] /home/abuild/rpmbuild/BUILD/hashlink-1.13/src/profile.c: In function 'get_thread_stackptr':
[ 53s] /home/abuild/rpmbuild/BUILD/hashlink-1.13/src/profile.c:120:64: error: 'REG_RIP' undeclared (first use in this function)
[ 53s] 120 | eip = (void)shared_context.context.uc_mcontext.gregs[REG_RIP];
[ 53s] | ~~~~~~
[ 53s] /home/abuild/rpmbuild/BUILD/hashlink-1.13/src/profile.c:120:64: note: each undeclared identifier is reported only once for each function it appears in
[ 53s] /home/abuild/rpmbuild/BUILD/hashlink-1.13/src/profile.c:121:64: error: 'REG_RSP' undeclared (first use in this function)
[ 53s] 121 | return (void*)shared_context.context.uc_mcontext.gregs[REG_RSP];
[ 53s] | ~~~~~~
[ 53s] /home/abuild/rpmbuild/BUILD/hashlink-1.13/src/profile.c:129:1: error: control reaches end of non-void function [-Werror=return-type]
[ 53s] 129 | }
[ 53s] | ^
[ 53s] cc1: some warnings being treated as errors
[ 53s] make[2]: *** [CMakeFiles/hl.dir/build.make:149: CMakeFiles/hl.dir/src/profile.c.o] Error 1
[ 53s] make[2]: Leaving directory '/home/abuild/rpmbuild/BUILD/hashlink-1.13/build'
[ 53s] make[1]: *** [CMakeFiles/Makefile2:987: CMakeFiles/hl.dir/all] Error 2

Link to failed build: https://build.opensuse.org/package/live_build_log/openSUSE:Factory:zSystems/hashlink/standard/s390x

No data to display

Actions

Also available in: Atom PDF