-
Notifications
You must be signed in to change notification settings - Fork 65
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
Build failure with gcc 13 #94
Comments
I just pushed a new commit to main that hopefully fixes this, can you give it a try? |
Hi - seeing the same in openSUSE.
Full log available at |
This patch on top of master/main seems to fix the build. I'm not sure how much this preserves source compatibility. I am surprised that previous compiler versions accepted this ambiguity between types and names. --- reproc-14.2.4/reproc++/include/reproc++/reproc.hpp 2023-04-04 23:14:25.549923395 +0200
+++ reproc-14.2.4/reproc++/include/reproc++/reproc.hpp 2023-04-04 23:13:00.824489755 +0200
@@ -65,7 +65,7 @@
using handle = int;
#endif
-struct redirect {
+struct redirect_t {
enum type {
default_, // Unfortunately, both `default` and `auto` are keywords.
pipe,
@@ -88,7 +88,7 @@
struct options {
struct {
- enum env::type behavior;
+ enum redirect_t::type behavior;
/*! Implicitly converts from any STL container of string pairs to the
environment format expected by `reproc_start`. */
class env extra;
@@ -97,9 +97,9 @@
const char *working_directory = nullptr;
struct {
- struct redirect in;
- struct redirect out;
- struct redirect err;
+ struct redirect_t in;
+ struct redirect_t out;
+ struct redirect_t err;
bool parent;
bool discard;
FILE *file;
--- reproc-14.2.4/reproc++/src/reproc.cpp 2023-04-04 23:14:25.549923395 +0200
+++ reproc-14.2.4/reproc++/src/reproc.cpp 2023-04-04 23:13:41.693181299 +0200
@@ -39,7 +39,7 @@
};
}
-static reproc_redirect reproc_redirect_from(redirect redirect)
+static reproc_redirect reproc_redirect_from(redirect_t redirect)
{
return { static_cast<REPROC_REDIRECT>(redirect.type), redirect.handle,
redirect.file, redirect.path }; |
Latest commit on main should fix the build issues. |
@DaanDeMeyer Is possible to do a release that includes the fix(es) for gcc v13? |
confirmed! |
@DaanDeMeyer Could you please make a new release? |
In Fedora 38/Rawhide with gcc 13 reproc 14.2.4 fails to build with:
The text was updated successfully, but these errors were encountered: