Created attachment 246823 [details] Poudriere build log Can't build the port due to baclight issue... ( full poudriere build log is attached ) =>> Building sysutils/plasma5-powerdevil build started at Wed Dec 6 15:30:48 MSK 2023 port directory: /usr/ports/sysutils/plasma5-powerdevil package name: plasma5-powerdevil-5.27.9_1 building for: FreeBSD freebsd.fractel.priv 12.4-STABLE FreeBSD 12.4-STABLE 1204500 amd64 maintained by: kde@FreeBSD.org Makefile ident: Poudriere version: 3.3.7_4 Host OSVERSION: 1204500 Jail OSVERSION: 1204500 Job Id: 02 ... [ 73% 168/230] /usr/bin/c++ -DKCOREADDONS_LIB -DKF_DEPRECATED_WARNINGS_SINCE=0x60000 -DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x56500 -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS_SINCE=0x60000 -DQT_DISABLE_DEPRECATED_BEFORE=0x50f02 -DQT_NO_DEBUG -DQT_NO_FOREACH -DQT_NO_KEYWORDS -DQT_USE_QSTRINGBUILDER -DTRANSLATION_DOMAIN=\"powerdevil\" -D_LARGEFILE64_SOURCE -I/wrkdirs/usr/ports/sysutils/plasma5-powerdevil/work/.build/daemon/backends/upower -I/wrkdirs/usr/ports/sysutils/plasma5-powerdevil/work/powerdevil-5.27.9/daemon/backends/upower -I/wrkdirs/usr/ports/sysutils/plasma5-powerdevil/work/.build/daemon/backends/upower/backlighthelper_autogen/include -I/wrkdirs/usr/ports/sysutils/plasma5-powerdevil/work/.build -I/wrkdirs/usr/ports/sysutils/plasma5-powerdevil/work/powerdevil-5.27.9/daemon -I/wrkdirs/usr/ports/sysutils/plasma5-powerdevil/work/.build/daemon -isystem /usr/local/include/qt5 -isystem /usr/local/include/qt5/QtCore -isystem /usr/local/lib/qt5/mkspecs/freebsd-clang -isystem /usr/local/include/KF5/KAuthCore -isystem /usr/local/include/KF5/KAuth -isystem /usr/local/include/KF5 -isystem /usr/local/include/KF5/KCoreAddons -isystem /usr/local/include/KF5/KI18n -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fno-operator-names -fno-exceptions -Wno-gnu-zero-variadic-macro-arguments -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Werror=init-self -Wvla -Wdate-time -fdiagnostics-color=always -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DNDEBUG -std=gnu++17 -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -MD -MT daemon/backends/upower/CMakeFiles/backlighthelper.dir/__/__/powerdevil_debug.cpp.o -MF daemon/backends/upower/CMakeFiles/backlighthelper.dir/__/__/powerdevil_debug.cpp.o.d -o daemon/backends/upower/CMakeFiles/backlighthelper.dir/__/__/powerdevil_debug.cpp.o -c /wrkdirs/usr/ports/sysutils/plasma5-powerdevil/work/.build/daemon/powerdevil_debug.cpp [ 73% 169/230] /usr/bin/c++ -DKCOREADDONS_LIB -DKF_DEPRECATED_WARNINGS_SINCE=0x60000 -DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x56500 -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS_SINCE=0x60000 -DQT_DISABLE_DEPRECATED_BEFORE=0x50f02 -DQT_NO_DEBUG -DQT_NO_FOREACH -DQT_NO_KEYWORDS -DQT_USE_QSTRINGBUILDER -DTRANSLATION_DOMAIN=\"powerdevil\" -D_LARGEFILE64_SOURCE -I/wrkdirs/usr/ports/sysutils/plasma5-powerdevil/work/.build/daemon/backends/upower -I/wrkdirs/usr/ports/sysutils/plasma5-powerdevil/work/powerdevil-5.27.9/daemon/backends/upower -I/wrkdirs/usr/ports/sysutils/plasma5-powerdevil/work/.build/daemon/backends/upower/backlighthelper_autogen/include -I/wrkdirs/usr/ports/sysutils/plasma5-powerdevil/work/.build -I/wrkdirs/usr/ports/sysutils/plasma5-powerdevil/work/powerdevil-5.27.9/daemon -I/wrkdirs/usr/ports/sysutils/plasma5-powerdevil/work/.build/daemon -isystem /usr/local/include/qt5 -isystem /usr/local/include/qt5/QtCore -isystem /usr/local/lib/qt5/mkspecs/freebsd-clang -isystem /usr/local/include/KF5/KAuthCore -isystem /usr/local/include/KF5/KAuth -isystem /usr/local/include/KF5 -isystem /usr/local/include/KF5/KCoreAddons -isystem /usr/local/include/KF5/KI18n -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fno-operator-names -fno-exceptions -Wno-gnu-zero-variadic-macro-arguments -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Werror=init-self -Wvla -Wdate-time -fdiagnostics-color=always -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DNDEBUG -std=gnu++17 -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -MD -MT daemon/backends/upower/CMakeFiles/backlighthelper.dir/freebsdbacklighthelper.cpp.o -MF daemon/backends/upower/CMakeFiles/backlighthelper.dir/freebsdbacklighthelper.cpp.o.d -o daemon/backends/upower/CMakeFiles/backlighthelper.dir/freebsdbacklighthelper.cpp.o -c /wrkdirs/usr/ports/sysutils/plasma5-powerdevil/work/powerdevil-5.27.9/daemon/backends/upower/freebsdbacklighthelper.cpp FAILED: daemon/backends/upower/CMakeFiles/backlighthelper.dir/freebsdbacklighthelper.cpp.o /usr/bin/c++ -DKCOREADDONS_LIB -DKF_DEPRECATED_WARNINGS_SINCE=0x60000 -DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x56500 -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS_SINCE=0x60000 -DQT_DISABLE_DEPRECATED_BEFORE=0x50f02 -DQT_NO_DEBUG -DQT_NO_FOREACH -DQT_NO_KEYWORDS -DQT_USE_QSTRINGBUILDER -DTRANSLATION_DOMAIN=\"powerdevil\" -D_LARGEFILE64_SOURCE -I/wrkdirs/usr/ports/sysutils/plasma5-powerdevil/work/.build/daemon/backends/upower -I/wrkdirs/usr/ports/sysutils/plasma5-powerdevil/work/powerdevil-5.27.9/daemon/backends/upower -I/wrkdirs/usr/ports/sysutils/plasma5-powerdevil/work/.build/daemon/backends/upower/backlighthelper_autogen/include -I/wrkdirs/usr/ports/sysutils/plasma5-powerdevil/work/.build -I/wrkdirs/usr/ports/sysutils/plasma5-powerdevil/work/powerdevil-5.27.9/daemon -I/wrkdirs/usr/ports/sysutils/plasma5-powerdevil/work/.build/daemon -isystem /usr/local/include/qt5 -isystem /usr/local/include/qt5/QtCore -isystem /usr/local/lib/qt5/mkspecs/freebsd-clang -isystem /usr/local/include/KF5/KAuthCore -isystem /usr/local/include/KF5/KAuth -isystem /usr/local/include/KF5 -isystem /usr/local/include/KF5/KCoreAddons -isystem /usr/local/include/KF5/KI18n -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fno-operator-names -fno-exceptions -Wno-gnu-zero-variadic-macro-arguments -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Werror=init-self -Wvla -Wdate-time -fdiagnostics-color=always -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DNDEBUG -std=gnu++17 -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -MD -MT daemon/backends/upower/CMakeFiles/backlighthelper.dir/freebsdbacklighthelper.cpp.o -MF daemon/backends/upower/CMakeFiles/backlighthelper.dir/freebsdbacklighthelper.cpp.o.d -o daemon/backends/upower/CMakeFiles/backlighthelper.dir/freebsdbacklighthelper.cpp.o -c /wrkdirs/usr/ports/sysutils/plasma5-powerdevil/work/powerdevil-5.27.9/daemon/backends/upower/freebsdbacklighthelper.cpp In file included from /wrkdirs/usr/ports/sysutils/plasma5-powerdevil/work/powerdevil-5.27.9/daemon/backends/upower/freebsdbacklighthelper.cpp:34: /usr/include/sys/sysctl.h:1117:25: error: unknown type name 'u_int'; did you mean 'uint'? int sysctl(const int *, u_int, void *, size_t *, const void *, size_t); ^ /usr/local/include/qt5/QtCore/qglobal.h:275:22: note: 'uint' declared here typedef unsigned int uint; ^ 1 error generated. ninja: build stopped: subcommand failed. *** Error code 1 Stop. make: stopped in /usr/ports/sysutils/plasma5-powerdevil =>> Cleaning up wrkdir ===> Cleaning for plasma5-powerdevil-5.27.9_1 build of sysutils/plasma5-powerdevil | plasma5-powerdevil-5.27.9_1 ended at Wed Dec 6 15:36:53 MSK 2023 build time: 472740:36:54 !!! build failure encountered !!!
Moin Moin Given the looming EOL of 12.x in threeish weeks, this is unlikely to get fixed unless it also affects 13.x. sorry Mfg Tobias
(In reply to Tobias C. Berner from comment #1) 13.x brahch has not issue. But is there any chance to be fixed for 12.x? Or should be used latest quarеerly branch 2023Q4?
(In reply to Tobias C. Berner from comment #1) Granted, and those of us planning to build a new system in 2024 will have no issue going forward, but is there a way to have those of us still using 12.4 get this compile finished to have a functional system until then? Thanks very much in advance.
(In reply to Robert from comment #3) Actually, I found a way to do it - see my reply to Tobias elsewhere in this thread.
(In reply to Sergey V. Koupreyenko from comment #2) I found a way to get this port to compile on FBSD 12.4, and it's by changing the order of the "include" section in "freebsdbacklighthelper.cpp": the "u_int" declaration is in "types.h" but the compiler will only look there first if the line including types.h is placed above the one for sysctl.h. It was a matter of swapping those two lines with each other, resaving "freebsdbacklighthelper.cpp" then running "make" once more.
(In reply to Robert from comment #5) Thanks for advise. I'll try to do it. Will report about results later.
(In reply to Robert from comment #5) if you upload a patch, I can commit it :) mfg Tobias
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=777444defaf302b6d19439f9139e1da2823dc259 commit 777444defaf302b6d19439f9139e1da2823dc259 Author: Jason E. Hale <jhale@FreeBSD.org> AuthorDate: 2023-12-11 20:15:52 +0000 Commit: Jason E. Hale <jhale@FreeBSD.org> CommitDate: 2023-12-11 20:54:13 +0000 sysutils/plasma5-powerdevil: Fix build on FreeBSD 12.x /usr/include/sys/sysctl.h:1117:25: error: unknown type name 'u_int'; did you mean 'uint'? int sysctl(const int *, u_int, void *, size_t *, const void *, size_t); PR: 275573 Reported by: Sergey V. Koupreyenko <sergey.koupreyenko@gmail.com> ...mon_backends_upower_freebsdbacklighthelper.cpp (new) | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)
Should be fixed now. It built for me in poudriere on 12.4-amd64.
(In reply to Jason E. Hale from comment #9) Confirmed. Built successfuly.