Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 698164 - media-libs/vulkan-loader-1.1.114 with sys-devel/clang-9.0.0 ABI_X86=32 - ?
Summary: media-libs/vulkan-loader-1.1.114 with sys-devel/clang-9.0.0 ABI_X86=32 - ?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: systemwide-clang
  Show dependency tree
 
Reported: 2019-10-20 21:04 UTC by Peter Levine
Modified: 2019-10-22 03:09 UTC (History)
0 users

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


Attachments
build.log (media-libs:vulkan-loader-1.1.114:20190930-192112.log,142.77 KB, text/x-log)
2019-10-21 04:08 UTC, Peter Levine
Details
emerge --info (emerge-info.txt,24.18 KB, text/plain)
2019-10-21 04:13 UTC, Peter Levine
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Levine 2019-10-20 21:04:15 UTC
Building media-libs/vulkan-loader-1.1.114 with clang-9.0.0 and ABI_X86="32" fails with:
> <instantiation>:13:20: error: cannot use more than one symbol in memory operand
>     push    offset termin_error_string@GOT                                      # Push the error string (fourth arg)
>                    ^
> ../../Vulkan-Loader-1bb7f68564fe565de2927071c79008bd6ede5af5/loader/unknown_ext_chain_gas.asm:373:5: note: > while in macro instantiation
>     PhysDevExtTermin 0
>     ^
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2019-10-20 21:14:57 UTC
Please attach the entire build log to this bug report.
Please post your `emerge --info' output in a comment.
Comment 2 Nick Sarnie gentoo-dev 2019-10-20 22:27:21 UTC
Seems like clang doesn't like the inline assembly. Obviously an upstream bug, please also report it there.
Comment 3 Peter Levine 2019-10-21 04:05:36 UTC
(In reply to Nick Sarnie from comment #2)
> Seems like clang doesn't like the inline assembly. Obviously an upstream
> bug, please also report it there.

Clang hasn't failed me with x64 assembly but there are only a couple of packages that don't yet build for me with x86 inline assembly, this being one of them.  Please consider the workaround in the PR.  The other commits are just some updates and version bumps.
Comment 4 Peter Levine 2019-10-21 04:08:01 UTC
Created attachment 593512 [details]
build.log
Comment 5 Peter Levine 2019-10-21 04:13:43 UTC
Created attachment 593514 [details]
emerge --info
Comment 6 Larry the Git Cow gentoo-dev 2019-10-21 22:48:34 UTC
The bug has been closed via the following commit(s):

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

commit d9fac5992604160c628ff17076bf385424399018
Author:     Peter Levine <plevine457@gmail.com>
AuthorDate: 2019-10-21 02:24:55 +0000
Commit:     Nick Sarnie <sarnex@gentoo.org>
CommitDate: 2019-10-21 22:48:19 +0000

    media-libs/vulkan-loader: Fix building x86 with clang
    
    Append -fno-integrated-as to CFLAGS when building with clang and when
    ABI is x86 to prevent breakage.
    
    Closes: https://bugs.gentoo.org/698164
    Package-Manager: Portage-2.3.77, Repoman-2.3.17
    Signed-off-by: Peter Levine <plevine457@gmail.com>
    Signed-off-by: Nick Sarnie <sarnex@gentoo.org>

 media-libs/vulkan-loader/vulkan-loader-9999.ebuild | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)