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

Compilation fails with Glibc 2.33 #6

Open
giordano opened this issue Nov 10, 2021 · 5 comments · Fixed by #7
Open

Compilation fails with Glibc 2.33 #6

giordano opened this issue Nov 10, 2021 · 5 comments · Fixed by #7

Comments

@giordano
Copy link
Contributor

giordano commented Nov 10, 2021

% make build 
mkdir  -p  bin
g++  -g   -fmax-errors=2  -Wall  -Werror  -Wextra  -Wno-unused-parameter  lxroot.cpp  -o bin/lxroot
lxroot.cpp: In static member function ‘static flags_t Syscall::st_to_ms(flags_t)’:
lxroot.cpp:731:42: error: comparison between ‘enum<unnamed>’ and ‘enum<unnamed>’ [-Werror=enum-compare]
  731 |     #define  if_equal(     a, b )  (   a == b                ? b : 0 )
      |                                          ^
lxroot.cpp:735:7: note: in expansion of macro ‘if_equal’
  735 |       if_equal         (  ST_RDONLY,       MS_RDONLY       )
      |       ^~~~~~~~
lxroot.cpp:731:42: error: comparison between types ‘<unnamed enum>’ and ‘<unnamed enum>’ [-Werror=sign-compare]
  731 |     #define  if_equal(     a, b )  (   a == b                ? b : 0 )
      |                                          ^
lxroot.cpp:735:7: note: in expansion of macro ‘if_equal’
  735 |       if_equal         (  ST_RDONLY,       MS_RDONLY       )
      |       ^~~~~~~~
compilation terminated due to -fmax-errors=2.
make: *** [Makefile:36: bin/lxroot] Error 1
% g++ --version
g++ (GCC) 11.1.0
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.
% uname -r
5.10.76-1-lts
% /usr/lib64/libc.so.6 
GNU C Library (GNU libc) release release version 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.
Compiled by GNU CC version 11.1.0.
libc ABIs: UNIQUE IFUNC ABSOLUTE
For bug reporting instructions, please see:
<https://bugs.archlinux.org/>
@parke
Copy link
Owner

parke commented Nov 10, 2021

Thanks for the pull request. I'm guessing that, with this change, you are now able to build Lxroot?

@giordano
Copy link
Contributor Author

With the changes in #7 I can build, yes

@giordano giordano changed the title Compilation fails with GCC 11.1 Compilation fails with Glibc 2.33 Nov 10, 2021
@parke
Copy link
Owner

parke commented Nov 10, 2021

Great! I expect I will accept your pull request soon.

If you have any user feedback for Lxroot, I'd be very curious to hear how well (or how poorly) Lxroot worked for you.

I'd also be curious to hear any advantages or disadvantages Lxroot has versus your userns_sandbox tool. Thanks!

@parke
Copy link
Owner

parke commented Nov 15, 2021

I believe this issue may now be fixed in the (new) main branch. Please be advised that the (old) master branch has been retired and renamed master-retired-20211114. I made these branch changes to remove a past trivial commit from a third-party contributor. I hope I have now learned enough about git, pull requests, branching, and copyright issues that I will never again need to shuffle branches like this.

@parke
Copy link
Owner

parke commented Nov 19, 2021

I believe this issue is now fixed in the master branch.

Thanks again for submitting the bug report and the pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants