Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 894632

Summary: dev-libs/fddl-20111124-r1 - /.../test_dynarray.cpp: error: reference to array is ambiguous
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: normal CC: arsen, jy6x2b32pie9, mehw.is.me
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/35966
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 865117    
Attachments: emerge-info.txt
dev-libs:fddl-20111124-r1:20230215-173953.log
emerge-history.txt
environment
etc.portage.tar.bz2
logs.tar.bz2
temp.tar.bz2

Description Toralf Förster gentoo-dev 2023-02-15 18:31:53 UTC
too long lines were shrinked:

  122 | }
      | ^
[3/10] /usr/bin/x86_64-pc-linux-gnu-g++    -pipe -march=native -fno-diagnostics-color -O2 -fno-diagnostics-color -MD -MT tests/CMakeFiles/test_dynarray.dir/test_dynarray.cpp.o -MF tests/CMakeFiles/test_dynarray.dir/test_dynarray.cpp.o.d -o tests/CMakeFiles/test_dynarray.dir/test_dynarray.cpp.o -c /v
FAILED: tests/CMakeFiles/test_dynarray.dir/test_dynarray.cpp.o 
/usr/bin/x86_64-pc-linux-gnu-g++    -pipe -march=native -fno-diagnostics-color -O2 -fno-diagnostics-color -MD -MT tests/CMakeFiles/test_dynarray.dir/test_dynarray.cpp.o -MF tests/CMakeFiles/test_dynarray.dir/test_dynarray.cpp.o.d -o tests/CMakeFiles/test_dynarray.dir/test_dynarray.cpp.o -c /var/tmp/
/var/tmp/portage/dev-libs/fddl-20111124-r1/work/fddl-20111124/tests/test_dynarray.cpp: In function bool test_access():
/var/tmp/portage/dev-libs/fddl-20111124-r1/work/fddl-20111124/tests/test_dynarray.cpp:9:11: error: reference to array is ambiguous
    9 |         *(array[0])=50;
      |           ^~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_systemd-j4-20230214-180043

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

GNUMAKEFLAGS="$GNUMAKEFLAGS --jobserver-style=pipe"
gcc-config -l:
 [1] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
/usr/lib/llvm/15
15.0.7
Python 3.10.10
Available Rust versions:
  [1]   rust-1.67.1 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 17.0.6_p10 [openjdk-bin-17]
2)	Eclipse Temurin JDK 8.362_p09 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17  system-vm

php cli (if any):
  [1]   php7.4
  [2]   php8.0
  [3]   php8.2 *

  HEAD of ::gentoo
commit e3b1c7a55feb1f91f41b9b0220694f7a1d50c583
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Wed Feb 15 17:31:52 2023 +0000

    2023-02-15 17:31:52 UTC

emerge -qpvO dev-libs/fddl
[ebuild  N    ] dev-libs/fddl-20111124-r1
Comment 1 Toralf Förster gentoo-dev 2023-02-15 18:31:54 UTC
Created attachment 851430 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-02-15 18:31:56 UTC
Created attachment 851432 [details]
dev-libs:fddl-20111124-r1:20230215-173953.log
Comment 3 Toralf Förster gentoo-dev 2023-02-15 18:31:58 UTC
Created attachment 851434 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2023-02-15 18:32:00 UTC
Created attachment 851436 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2023-02-15 18:32:01 UTC
Created attachment 851438 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2023-02-15 18:32:03 UTC
Created attachment 851440 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2023-02-15 18:32:04 UTC
Created attachment 851442 [details]
temp.tar.bz2
Comment 8 Arsen Arsenović gentoo-dev 2023-04-18 23:35:06 UTC
this library puts `using namespace std;' in various headers...
Comment 9 NHO 2024-03-25 09:34:18 UTC
Only user of this library is ITVal, project that has been without updates for 12 years and also fails to compile. It is also prototype that doesn't work, based on https://link.springer.com/article/10.1007/s10817-017-9445-1

Mask both this library and itval and drop them.
Comment 10 Larry the Git Cow gentoo-dev 2024-05-09 13:04:58 UTC
The bug has been closed via the following commit(s):

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

commit 6e82a85796d893a5e3142abc87ac29806b9dcf68
Author:     Matthew White <mehw.is.me@inventati.org>
AuthorDate: 2024-03-28 15:03:00 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2024-05-09 13:01:43 +0000

    dev-libs/fddl: disambiguate variable name from std::array
    
    Trivial fix to disambiguate variable named 'array' from 'std::array'.
    
    Closes: https://bugs.gentoo.org/894632
    Signed-off-by: Matthew White <mehw.is.me@inventati.org>
    Closes: https://github.com/gentoo/gentoo/pull/35966
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 dev-libs/fddl/fddl-20111124-r2.ebuild              | 40 +++++++++++++
 .../fddl-20111124-disambiguate-variable-name.patch | 65 ++++++++++++++++++++++
 2 files changed, 105 insertions(+)