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

Build process is broken in Platform.cpp: sys/sysctl.h: No such file or directory with glibc 2.32.x #27

Open
FredBezies opened this issue Nov 9, 2020 · 0 comments

Comments

@FredBezies
Copy link

I tried to build from git imagewriter, but build process is broken while processing Platform.cpp:

g++ -c -pipe -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fvisibility=hidden -fvisibility-inlines-hidden -std=gnu++11 -Wall -Wextra -D_REENTRANT -fPIC -DUSEUDISKS2 -DAPP_VERSION=\"1.10\" -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -I. -I. -I/usr/include/qt -I/usr/include/qt/QtWidgets -I/usr/include/qt/QtGui -I/usr/include/qt/QtDBus -I/usr/include/qt/QtCore -I. -I/usr/lib/qt/mkspecs/linux-g++ -o Platform.o Platform.cpp
MainWindow.cpp:40:10: fatal error: sys/sysctl.h: No such file or directory
   40 | #include <sys/sysctl.h>
      |          ^~~~~~~~~~~~~~
compilation terminated.

It looks like to be related to glibc which removed sys/sysctl.h back in April 2020:

https://sourceware.org/git/?p=glibc.git;a=commit;h=076f09afbac1aa57756faa7a8feadb7936a724e4

So any glibc version starting with 2.32 is breaking build process.

@FredBezies FredBezies changed the title Build process is broken in Platform.cpp: sys/sysctl.h: No such file or directory Build process is broken in Platform.cpp: sys/sysctl.h: No such file or directory with glibc 2.32.x Nov 9, 2020
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

No branches or pull requests

1 participant