Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 947939 - sci-mathematics/pari-2.17.1 - [gcc-15] alloc_traits.h: error: macro swap requires 2 arguments, but only 1 given
Summary: sci-mathematics/pari-2.17.1 - [gcc-15] alloc_traits.h: error: macro swap requ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Michael Orlitzky
URL: https://pari.math.u-bordeaux.fr/cgi-b...
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-15
  Show dependency tree
 
Reported: 2025-01-12 09:54 UTC by Toralf Förster
Modified: 2025-01-13 03:29 UTC (History)
3 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,20.36 KB, text/plain)
2025-01-12 09:54 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,231.92 KB, text/plain)
2025-01-12 09:54 UTC, Toralf Förster
Details
environment (environment,82.87 KB, text/plain)
2025-01-12 09:54 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.00 KB, application/x-xz)
2025-01-12 09:54 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,39.54 KB, application/x-xz)
2025-01-12 09:54 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,1.14 KB, application/x-xz)
2025-01-12 09:54 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,62.32 KB, application/x-xz)
2025-01-12 09:54 UTC, Toralf Förster
Details
sci-mathematics:pari-2.17.1:20250112-090620.log (sci-mathematics:pari-2.17.1:20250112-090620.log,20.76 KB, text/plain)
2025-01-12 09:54 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,19.48 KB, application/x-xz)
2025-01-12 09:54 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 2025-01-12 09:54:01 UTC
                 from /usr/include/FL/Fl_Preferences.H:29,
                 from /usr/include/FL/Fl_Plugin.H:23,
                 from /usr/include/FL/Fl_Device.H:25,
                 from /usr/include/FL/Fl_Graphics_Driver.H:31,
                 from /usr/include/FL/fl_draw.H:26,
                 from ../src/graph/plotfltk.c:29:
/usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/bits/alloc_traits.h:1005:46: error: macro swap requires 2 arguments, but only 1 given
 1005 |                 __c.get_allocator()).swap(__c);
      |                                              ^

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_no_multilib-20250107-201504

  UNMASKED:
  <sys-devel/gcc-15.0.9999:15

  The attached etc.portage.tar.xz has all details.
  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-15 *
clang version 19.1.6
llvm-config: 19.1.6
Python 3.12.8
go version go1.23.4 linux/amd64
Available Ruby profiles:
  [1]   ruby32 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.71.1
  [2]   rust-bin-1.77.1
  [3]   rust-bin-1.81.0
  [4]   rust-bin-1.83.0
  [5]   rust-bin-1.84.0
  [6]   rust-1.84.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.25_p9 [openjdk-bin-11]
2)	Eclipse Temurin JDK 17.0.13_p11 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.5_p11 [openjdk-bin-21]
4)	Eclipse Temurin JDK 8.432_p06 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17 
  [4]   openjdk-bin-21  system-vm


  HEAD of ::gentoo
commit d5744f066d6f12f399f3bc94409be37007b17174
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Jan 12 07:19:03 2025 +0000

    Merge updates from master

emerge -qpvO =sci-mathematics/pari-2.17.1
[ebuild  N    ] sci-mathematics/pari-2.17.1  USE="fltk -X -data -doc -examples -gmp -test -threads"
Comment 1 Toralf Förster gentoo-dev 2025-01-12 09:54:02 UTC
Created attachment 916375 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2025-01-12 09:54:03 UTC
Created attachment 916376 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2025-01-12 09:54:04 UTC
Created attachment 916377 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2025-01-12 09:54:05 UTC
Created attachment 916378 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2025-01-12 09:54:06 UTC
Created attachment 916379 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2025-01-12 09:54:07 UTC
Created attachment 916380 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2025-01-12 09:54:08 UTC
Created attachment 916381 [details]
qlist-info.txt.xz
Comment 8 Toralf Förster gentoo-dev 2025-01-12 09:54:09 UTC
Created attachment 916382 [details]
sci-mathematics:pari-2.17.1:20250112-090620.log
Comment 9 Toralf Förster gentoo-dev 2025-01-12 09:54:09 UTC
Created attachment 916383 [details]
temp.tar.xz
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-01-12 11:47:59 UTC
This is probably a missing include with a poor error.
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-01-12 11:48:21 UTC
Or maybe not, the swap macro is conflicting?
Comment 12 Michael Orlitzky gentoo-dev 2025-01-13 02:17:15 UTC
Nothing exciting: PARI includes its own headers (which define the swap macro) before the headers for FLTK, inadvertently clobbering the word "swap" for the C++ headers that FLTK wants to use.
Comment 13 Larry the Git Cow gentoo-dev 2025-01-13 02:31:52 UTC
The bug has been closed via the following commit(s):

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

commit bbc1cc4fdc520d6dc814d0af9dc3f1a808995137
Author:     Michael Orlitzky <mjo@gentoo.org>
AuthorDate: 2025-01-13 02:15:12 +0000
Commit:     Michael Orlitzky <mjo@gentoo.org>
CommitDate: 2025-01-13 02:27:54 +0000

    sci-mathematics/pari: fix build with gcc-15
    
    Closes: https://bugs.gentoo.org/947939
    Signed-off-by: Michael Orlitzky <mjo@gentoo.org>

 .../files/pari-2.17.1-gcc15-swap-conflict.patch    | 53 ++++++++++++++++++++++
 sci-mathematics/pari/pari-2.17.1.ebuild            |  2 +
 2 files changed, 55 insertions(+)