Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 614374 - sys-libs/libunwind-1.5.0 fails to build on x32 ABI
Summary: sys-libs/libunwind-1.5.0 fails to build on x32 ABI
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: https://github.com/libunwind/libunwin...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-31 19:04 UTC by Jan Ziak (atomsymbol)
Modified: 2021-07-07 09:40 UTC (History)
4 users (show)

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


Attachments
output of emerge --info (emerge-info.txt,17.08 KB, text/plain)
2018-01-31 11:51 UTC, Martin 'The Bishop' Scheffler
Details
libunwind-1.5.0.log (sys-libs:libunwind-1.5.0:20201216-214149.log,313.35 KB, text/x-log)
2020-12-16 23:56 UTC, Jan Ziak (atomsymbol)
Details
emerge --info (emerge-info.txt,7.99 KB, text/plain)
2020-12-16 23:58 UTC, Jan Ziak (atomsymbol)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Ziak (atomsymbol) 2017-03-31 19:04:25 UTC
/var/tmp/portage/sys-libs/libunwind-1.2/work/libunwind-1.2/src/x86_64/Gos-linux.c: Assembler messages:
/var/tmp/portage/sys-libs/libunwind-1.2/work/libunwind-1.2/src/x86_64/Gos-linux.c:146: Error: unsupported instruction `mov'
make[2]: *** [Makefile:3714: x86_64/Gos-linux.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/var/tmp/portage/sys-libs/libunwind-1.2/work/libunwind-1.2-abi_x86_x32.x32/src'
make[1]: *** [Makefile:1514: all] Error 2
make[1]: Leaving directory '/var/tmp/portage/sys-libs/libunwind-1.2/work/libunwind-1.2-abi_x86_x32.x32/src'
make: *** [Makefile:480: all-recursive] Error 1
Comment 1 Andreas K. Hüttel archtester gentoo-dev 2017-10-03 18:01:16 UTC
1) Does this also affect libunwind-1.2.1 ?
2) emerge --info please!
Comment 2 Martin 'The Bishop' Scheffler 2018-01-31 11:51:19 UTC
Created attachment 517238 [details]
output of emerge --info

same here on x32; libunwind-1.2.1 is also affected.
"emerge --info" attached.
the relevant part from the build log:

In file included from /var/tmp/portage/sys-libs/libunwind-1.2.1/work/libunwind-1.2.1/src/x86_64/Los-linux.c:4:0:
/var/tmp/portage/sys-libs/libunwind-1.2.1/work/libunwind-1.2.1/src/x86_64/Gos-linux.c: In function '_ULx86_64_sigreturn':
/var/tmp/portage/sys-libs/libunwind-1.2.1/work/libunwind-1.2.1/src/x86_64/Gos-linux.c:142:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
   struct sigcontext *sc = (struct sigcontext *) c->sigcontext_addr;
                           ^
/var/tmp/portage/sys-libs/libunwind-1.2.1/work/libunwind-1.2.1/src/x86_64/Gos-linux.c: Assembler messages:
/var/tmp/portage/sys-libs/libunwind-1.2.1/work/libunwind-1.2.1/src/x86_64/Gos-linux.c:146: Error: unsupported instruction `mov'
make[2]: *** [Makefile:3079: x86_64/Los-linux.lo] Error 1
make[2]: Leaving directory '/var/tmp/portage/sys-libs/libunwind-1.2.1/work/libunwind-1.2.1-abi_x86_x32.x32/src'
make[1]: *** [Makefile:1635: all] Error 2
make[1]: Leaving directory '/var/tmp/portage/sys-libs/libunwind-1.2.1/work/libunwind-1.2.1-abi_x86_x32.x32/src'
make: *** [Makefile:585: all-recursive] Error 1
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-12-16 23:53:40 UTC
This bug is quite stale but someone just added themselves to CC.

If it's still happening, please attach a fresh full build.log and emerge --info.
Comment 4 Jan Ziak (atomsymbol) 2020-12-16 23:56:15 UTC
Created attachment 678529 [details]
libunwind-1.5.0.log
Comment 5 Jan Ziak (atomsymbol) 2020-12-16 23:58:31 UTC
Created attachment 678532 [details]
emerge --info
Comment 6 Nick Bowler 2021-06-24 16:26:47 UTC
Seems this package was recently added as a dependency of stable net-fs/samba, so now I am hitting this bug ton x32 too
Comment 7 Sergei Trofimovich (RETIRED) gentoo-dev 2021-06-24 21:45:50 UTC
Filed upstream feature request: https://github.com/libunwind/libunwind/issues/264
Comment 8 Larry the Git Cow gentoo-dev 2021-07-07 09:40:02 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c8d170da873918e7969852ffdd48ff2904f65432

commit c8d170da873918e7969852ffdd48ff2904f65432
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2021-07-07 07:12:49 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2021-07-07 09:39:54 +0000

    sys-libs/libunwind: fix ABI_X86=x32 build
    
    Reported-by: Jan Ziak
    Closes: https://bugs.gentoo.org/614374
    Package-Manager: Portage-3.0.20, Repoman-3.0.3
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 sys-libs/libunwind/files/libunwind-1.5.0-x32.patch | 17 +++++++++++++++++
 sys-libs/libunwind/libunwind-1.5.0-r1.ebuild       |  1 +
 2 files changed, 18 insertions(+)