[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Powerpc on core-updates

From: Andreas Enge
Subject: Powerpc on core-updates
Date: Thu, 13 Apr 2023 11:32:22 +0200


recently I claimed that powerpc was repaired, but I must have made a mistake.
It is still completely broken:
due to this:
It does not look easy to fix, but might be *the* blocker for a core-updates

The error is this:
../../../libstdc++-v3/src/c++17/ In function 
'std::from_chars_result std::from_chars(const char*, const char*, __ieee128&, 
../../../libstdc++-v3/src/c++17/ error: 'string' 
is not a member of 'std::pmr'; did you mean 'std::string'?
  499 |   pmr::string buf(&mr);
      |        ^~~~~~
In file included from 
                 from ../../../libstdc++-v3/src/c++17/
 note: 'std::string' declared here
   79 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
../../../libstdc++-v3/src/c++17/ error: 'buf' was 
not declared in this scope
  504 |       if (const char* pat = pattern(first, last, fmt, buf)) [[likely]]

In the file
previous functions have code like this:
  buffer_resource mr;
  pmr::string buf(&mr);
  string buf;
  if (!reserve_string(buf))
    return make_result(first, 0, {}, ec);

while here we only have:
  buffer_resource mr;
  pmr::string buf(&mr);

So my guess would be that we should simply replace this snippet with the
one above.

Could someone with access to a powerpc machine try out this change?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]