Skip to content

FTBFS: src/statusline.cpp:70:18: error: reference to 'numbers' is ambiguous #387

Description

@glaubitz

fs-uae has started to fail to build from source (FTBFS) recently:

src/statusline.cpp: In function ‘void write_tdnumber(uae_u8*, int, int, int, int, uae_u32, uae_u32)’:
src/statusline.cpp:70:18: error: reference to ‘numbers’ is ambiguous
   70 |         numptr = numbers + num * TD_NUM_WIDTH + NUMBERS_NUM * TD_NUM_WIDTH * y;
      |                  ^~~~~~~
  • there are 2 candidates
In file included from /usr/include/c++/16/bits/max_size_type.h:40,
                 from /usr/include/c++/16/bits/ranges_base.h:41,
                 from /usr/include/c++/16/string_view:62,
                 from /usr/include/c++/16/bits/basic_string.h:51,
                 from /usr/include/c++/16/string:58,
                 from ./src/od-fs/../include/sysdeps.h:27,
                 from ./src/od-fs/defines.h:117:
    • candidate 1: ‘namespace std::numbers { }’
      /usr/include/c++/16/numbers:56:11:
         56 | namespace numbers
            |           ^~~~~~~
    • candidate 2: ‘const char* numbers’
      src/statusline.cpp:47:20:
         47 | static const char *numbers = { /* ugly  0123456789CHD%+-P */
            |                    ^~~~~~~

See: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1143656

The issue is also present in openSUSE Tumbleweed: https://build.opensuse.org/package/live_build_log/Emulators/fs-uae/openSUSE_Tumbleweed/x86_64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions