Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 738726 - media-libs/dav1d-0.7.0 : ../.../msac.asm:88: error: %ifndef expects macro identifiers
Summary: media-libs/dav1d-0.7.0 : ../.../msac.asm:88: error: %ifndef expects macro ide...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Luca Barbato
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2020-08-23 16:05 UTC by Toralf Förster
Modified: 2021-10-31 03:39 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.18 KB, text/plain)
2020-08-23 16:05 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,73.42 KB, text/plain)
2020-08-23 16:05 UTC, Toralf Förster
Details
environment (environment,107.00 KB, text/plain)
2020-08-23 16:05 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,18.16 KB, application/x-bzip)
2020-08-23 16:05 UTC, Toralf Förster
Details
media-libs:dav1d-0.7.0:20200823-153535.log (media-libs:dav1d-0.7.0:20200823-153535.log,48.61 KB, text/plain)
2020-08-23 16:05 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,27.34 KB, application/x-bzip)
2020-08-23 16:06 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2020-08-23 16:05:51 UTC
../dav1d-0.7.0/src/x86/msac.asm:787: ... from macro `cglobal_internal' defined here
../dav1d-0.7.0/src/x86/msac.asm:656: ... from macro `PROLOGUE' defined here
../dav1d-0.7.0/src/x86/msac.asm:88: error: `%ifndef' expects macro identifiers
../dav1d-0.7.0/src/x86/msac.asm:263: ... from macro `LEA' defined here
../dav1d-0.7.0/src/x86/msac.asm:1176: ... from macro `call' defined here
../dav1d-0.7.0/src/x86/msac.asm:1183: ... from macro `call_internal' defined here

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_systemd-libressl_abi32+64-20200821-231953

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10.2.0 *
clang version 10.0.1 
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/10/bin
/usr/lib/llvm/10
10.0.1
Available Python interpreters, in order of preference:
  [1]   python3.7
  [2]   python3.9 (fallback)
  [3]   python3.8 (fallback)
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby25 (with Rubygems) *
The Glorious Glasgow Haskell Compilation System, version 8.8.4

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Sun Aug 23 03:05:29 PM UTC 2020
/var/db/repos/libressl	Mon Aug 10 09:13:35 AM UTC 2020

emerge -qpvO media-libs/dav1d
[ebuild  N    ] media-libs/dav1d-0.7.0  USE="10bit 8bit asm" ABI_X86="32 (64) (-x32)"
Comment 1 Toralf Förster gentoo-dev 2020-08-23 16:05:52 UTC
Created attachment 656368 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-08-23 16:05:54 UTC
Created attachment 656370 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-08-23 16:05:56 UTC
Created attachment 656372 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-08-23 16:05:57 UTC
Created attachment 656374 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-08-23 16:05:59 UTC
Created attachment 656376 [details]
media-libs:dav1d-0.7.0:20200823-153535.log
Comment 6 Toralf Förster gentoo-dev 2020-08-23 16:06:00 UTC
Created attachment 656378 [details]
temp.tbz2
Comment 7 Daniel Rammelt 2020-08-27 09:46:44 UTC
Just noting that disabling the asm flag allows the build to finish without issue.
Comment 8 Daniel Rammelt 2020-08-28 00:48:50 UTC
Issue is caused by compilation with dev-lang/nasm-2.15.04. Masking 2.15.04 and using 2.15.03 compiles without issue.
Comment 9 Michael 2020-08-28 20:50:23 UTC
Works fine with dev-lang/nasm-2.15.05
Comment 10 INODE64 Sistemas 2021-10-15 07:10:37 UTC
Create fix in https://github.com/gentoo/gentoo/pull/22584
Comment 11 Larry the Git Cow gentoo-dev 2021-10-31 03:39:38 UTC
The bug has been closed via the following commit(s):

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

commit 647a8643d2941d4f20a6cb2b4799fc35bbc26c36
Author:     Francisco Javier Félix <web@inode64.com>
AuthorDate: 2021-10-18 06:57:28 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-10-31 03:39:32 +0000

    media-libs/dav1d: fix build, support xxhash
    
    * Require minimum nasm 2.15.05
    * Disable test by default
    * Fix build, see bug https://code.videolan.org/videolan/dav1d/-/issues/370 and
    patch https://code.videolan.org/videolan/dav1d/-/commit/c6a08b3aa1ee99dade53e5e32033bc1d14455a22
    the same problem with versions of gcc 10.3.0 and gcc 11.2.0, from dav1d 0.8.2 to 0.9.2.
    
    Closes: https://bugs.gentoo.org/738726
    Closes: https://bugs.gentoo.org/791544
    Package-Manager: Portage-3.0.20, Repoman-3.0.3
    Signed-off-by: INODE64 <ffelix@inode64.com>
    Closes: https://github.com/gentoo/gentoo/pull/22621
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/dav1d/dav1d-0.8.2.ebuild                | 12 ++++++--
 media-libs/dav1d/dav1d-0.9.0.ebuild                | 12 ++++++--
 media-libs/dav1d/dav1d-0.9.1.ebuild                | 12 ++++++--
 media-libs/dav1d/dav1d-0.9.2.ebuild                | 12 ++++++--
 media-libs/dav1d/dav1d-9999.ebuild                 | 11 ++++++--
 ...id-meson-s-symbols_have_underscore_prefix.patch | 32 ++++++++++++++++++++++
 media-libs/dav1d/metadata.xml                      |  1 +
 7 files changed, 77 insertions(+), 15 deletions(-)