Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REGRESSION: build failure due to recent types.hpp change #10345

Closed
p01arst0rm opened this issue May 26, 2021 · 7 comments
Closed

REGRESSION: build failure due to recent types.hpp change #10345

p01arst0rm opened this issue May 26, 2021 · 7 comments
Labels
Build and CI Anything related to the build process and continuous integration OS: Linux

Comments

@p01arst0rm
Copy link
Contributor

p01arst0rm commented May 26, 2021

Quick summary

build failure on Linux platforms due to a recent change (#10326)

Details

/rpcs3/util/types.hpp:
    In instantiation of ‘constexpr To std::bit_cast(const From&)
    [with To = long unsigned int; From = std::nullptr_t]’:
/rpcs3/util/atomic.hpp:190:49:
    required from ‘constexpr u128 atomic_wait::get_value(X&, T, ...)
    [with X = stx::atomic_ptr<thread_future>; T = std::nullptr_t; u128 = __int128 unsigned]’
/rpcs3/util/atomic.hpp:203:19:
    required from ‘constexpr void atomic_wait::info::set_value(X&, T)
    [with X = stx::atomic_ptr<thread_future>; T = std::nullptr_t]’
/rpcs3/util/atomic.hpp:270:40:
    required from ‘constexpr void atomic_wait::list<Max, T>::set(T2&, U)
    [with unsigned int Index = 2; atomic_wait::op Flags = atomic_wait::op::eq; T2 = stx::atomic_ptr<thread_future>;
    U = std::nullptr_t; <template-parameter-2-5> = void; unsigned int Max = 3; T = {}]’
/rpcs3/../Utilities/Thread.h:288:14:
    required from ‘static void thread_ctrl::wait_on(T&, U, u64) [with atomic_wait::op
    Op = atomic_wait::op::eq; T = atomic_t<long unsigned int>; U = long unsigned int; u64 = long unsigned int]’
/rpcs3/Emu/Cell/SPUThread.h:307:39:
    required from here



/rpcs3/util/types.hpp:57:28: error:
    ‘__builtin_bit_cast’ was not declared in this scope; did you mean ‘__builtin_strcat’?

57 |   return __builtin_bit_cast(To, from);

0. Make sure you're running with settings as close to default as possible

  • Do NOT enable any emulator game patches when reporting issues
    n/a; build issue, all build flags set to default

1. Please provide exact build (or commit) information that introduced the regression you're reporting.

#10326

6. Please provide your system configuration:

  • OS: 5.9.16-1-MANJARO
  • CPU : n/a
  • GPU : n/a
  • CMake version 3.20.2

currently checked out to master (44f0ca0)

@Megamouse Megamouse added Build and CI Anything related to the build process and continuous integration OS: Linux labels May 26, 2021
@Megamouse
Copy link
Contributor

what compiler version?
maybe you're outdated

@p01arst0rm
Copy link
Contributor Author

[p01ar@p01ar-pc ~]$ gcc --version
gcc (GCC) 10.2.0
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[p01ar@p01ar-pc ~]$ ld --version
GNU ld (GNU Binutils) 2.36.1
Copyright (C) 2021 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.

[p01ar@p01ar-pc ~]$ ldd --version
ldd (GNU libc) 2.33
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.

[p01ar@p01ar-pc ~]$ g++ --version
g++ (GCC) 10.2.0
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


@Megamouse
Copy link
Contributor

Megamouse commented May 26, 2021

ci is using gcc-11/ clang-12

@Nekotekina
Copy link
Member

Needs a bump it seems.

@p01arst0rm
Copy link
Contributor Author

gcc-11 is not yet part of the core arch repository, and is still in testing. current estimate is 3 weeks.

https://archlinux.org/packages/core/x86_64/gcc/

@Megamouse
Copy link
Contributor

it says it's in core. idk where you get that estimate from

@Megamouse
Copy link
Contributor

superseded by #10349

@p01arst0rm p01arst0rm changed the title REGRESSION: build failure due to recent types.hpp failure REGRESSION: build failure due to recent types.hpp change May 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build and CI Anything related to the build process and continuous integration OS: Linux
Projects
None yet
Development

No branches or pull requests

3 participants