Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 928488 - sys-libs/db-6.0.35-r5 - /.../atomic.h: error: too few arguments provided to function-like macro invocation
Summary: sys-libs/db-6.0.35-r5 - /.../atomic.h: error: too few arguments provided to f...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-03 07:28 UTC by Toralf Förster
Modified: 2025-03-02 15:46 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.19 KB, text/plain)
2024-04-03 07:28 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,6.70 KB, text/plain)
2024-04-03 07:28 UTC, Toralf Förster
Details
environment (environment,117.46 KB, text/plain)
2024-04-03 07:28 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.18 KB, application/x-xz)
2024-04-03 07:28 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,26.56 KB, application/x-xz)
2024-04-03 07:28 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,16.36 KB, application/x-xz)
2024-04-03 07:28 UTC, Toralf Förster
Details
qlist-info.txt (qlist-info.txt,37.81 KB, text/plain)
2024-04-03 07:28 UTC, Toralf Förster
Details
sys-libs:db-6.0.35-r5:20240403-043842.log.xz (sys-libs:db-6.0.35-r5:20240403-043842.log.xz,51.17 KB, application/x-xz)
2024-04-03 07:28 UTC, Toralf Förster
Details
rename atomic_init (dbinc_atomic.h.patch,4.37 KB, patch)
2025-01-28 10:36 UTC, Steffen Hau
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2024-04-03 07:28:23 UTC
In file included from /usr/include/c++/v1/algorithm:1810:
In file included from /usr/include/c++/v1/__algorithm/for_each.h:16:
In file included from /usr/include/c++/v1/__ranges/movable_box.h:23:
In file included from /usr/include/c++/v1/optional:1289:
In file included from /usr/include/c++/v1/atomic:591:
In file included from /usr/include/c++/v1/__atomic/aliases.h:12:
/usr/include/c++/v1/__atomic/atomic.h:50:22: error: too few arguments provided to function-like macro invocation
   50 |     __base::store(__d);
      |                      ^

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_llvm-20240402-180030

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 18.1.2+libcxx
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/18/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/18
18.1.2+libcxx
Python 3.11.8
php cli (if any):

  HEAD of ::gentoo
commit a5159b30237ccfd37016c13a47f54da1362a597c
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue Apr 2 23:19:13 2024 +0000

    2024-04-02 23:19:13 UTC

emerge -qpvO sys-libs/db
[ebuild  N    ] sys-libs/db-6.0.35-r5  USE="cxx -doc -examples -tcl -test" ABI_X86="(64) -32 (-x32)"
Comment 1 Toralf Förster gentoo-dev 2024-04-03 07:28:24 UTC
Created attachment 889332 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-04-03 07:28:25 UTC
Created attachment 889333 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2024-04-03 07:28:26 UTC
Created attachment 889334 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2024-04-03 07:28:27 UTC
Created attachment 889335 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2024-04-03 07:28:28 UTC
Created attachment 889336 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-04-03 07:28:29 UTC
Created attachment 889337 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-04-03 07:28:30 UTC
Created attachment 889338 [details]
qlist-info.txt
Comment 8 Toralf Förster gentoo-dev 2024-04-03 07:28:31 UTC
Created attachment 889339 [details]
sys-libs:db-6.0.35-r5:20240403-043842.log.xz
Comment 9 Steffen Hau 2025-01-28 10:34:40 UTC
https://forums.oracle.com/ords/apexds/post/bug-build-failure-on-linux-with-clang-libc-atomic-issues-4237

I'll attach a slighty modfied patch from https://gist.github.com/LnL7/5153b251fd525fe15de69b67e63a6075.

Regarding the error with store, see the second last comment. It can be "fixed" by not setting the --enable-dbm configure option. But I have no idea wether this historic DBM interface is still needed.

I have modified the ebuild and removed the "--enable-dbm" ine and it seems everything is still working fine. Haven't encountered any issues so far.
Comment 10 Steffen Hau 2025-01-28 10:36:38 UTC
Created attachment 917712 [details, diff]
rename atomic_init