Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 919365

Summary: gui-apps/waybar-0.9.24 - [clang] backlight.cpp:(.text+<snip>): undefined reference to waybar::util::BacklightDevice const waybar::util::BacklightBackend::best
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Jonas Toth <gentoo>
Status: RESOLVED OBSOLETE    
Severity: normal CC: julien, onigino, yamadharma
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
emerge-history.txt.xz
environment
etc.clang.tar.xz
etc.portage.tar.xz
gui-apps:waybar-0.9.24:20231206-095939.log
logs.tar.xz
qlist-info.txt.xz
temp.tar.xz
var.tmp.clang.tar.xz

Description Toralf Förster gentoo-dev 2023-12-06 18:08:03 UTC
too long lines were shrinked:

[145/147] clang++ -Iwaybar.p -I. -I../Waybar-0.9.24 -I../Waybar-0.9.24/include -Iprotocol -I/usr/lib64/libffi/include -I/usr/include/sigc++-2.0 -I/usr/lib64/sigc++-2.0/include -I/usr/include/jsoncpp -I/usr/include/gtkmm-3.0 -I/usr/lib64/gtkmm-3.0/include -I/usr/include/atkmm-1.6 -I/usr/lib64/atkmm-1
[146/147] clang++ -Iwaybar.p -I. -I../Waybar-0.9.24 -I../Waybar-0.9.24/include -Iprotocol -I/usr/lib64/libffi/include -I/usr/include/sigc++-2.0 -I/usr/lib64/sigc++-2.0/include -I/usr/include/jsoncpp -I/usr/include/gtkmm-3.0 -I/usr/lib64/gtkmm-3.0/include -I/usr/include/atkmm-1.6 -I/usr/lib64/atkmm-1
[147/147] clang++  -o waybar waybar.p/src_factory.cpp.o waybar.p/src_AModule.cpp.o waybar.p/src_ALabel.cpp.o waybar.p/src_AIconLabel.cpp.o waybar.p/src_AAppIconLabel.cpp.o waybar.p/src_modules_custom.cpp.o waybar.p/src_modules_disk.cpp.o waybar.p/src_modules_idle_inhibitor.cpp.o waybar.p/src_modules
FAILED: waybar 
clang++  -o waybar waybar.p/src_factory.cpp.o waybar.p/src_AModule.cpp.o waybar.p/src_ALabel.cpp.o waybar.p/src_AIconLabel.cpp.o waybar.p/src_AAppIconLabel.cpp.o waybar.p/src_modules_custom.cpp.o waybar.p/src_modules_disk.cpp.o waybar.p/src_modules_idle_inhibitor.cpp.o waybar.p/src_modules_image.cpp
/usr/bin/x86_64-pc-linux-gnu-ld.bfd: waybar.p/src_modules_backlight.cpp.o: in function `waybar::modules::Backlight::update()':
backlight.cpp:(.text+0x3f4): undefined reference to `waybar::util::BacklightDevice const* waybar::util::BacklightBackend::best_device<__gnu_cxx::__normal_iterator<waybar::util::BacklightDevice const*, std::vector<waybar::util::BacklightDevice, std::allocator<waybar::util::BacklightDevice> > > >(__gn
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_systemd_merged_usr-20231128-203237

  -------------------------------------------------------------------

CC=clang
CXX=clang++
gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 17.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/17/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/17
17.0.6
Python 3.11.7
Available Ruby profiles:
  [1]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.73.0 *
The following VMs are available for generation-2:
1)	IcedTea JDK 3.16.0 [icedtea-bin-8]
2)	Eclipse Temurin JDK 11.0.20.1_p1 [openjdk-bin-11]
3)	Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.1_p12 [openjdk-bin-21]
5)	Eclipse Temurin JDK 8.382_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8 
  [2]   openjdk-bin-8 
  [3]   openjdk-bin-11 
  [4]   openjdk-bin-17 
  [5]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
  [1]   php8.1 *
  [2]   php8.2
  [3]   php8.3
go version go1.21.4 linux/amd64

  HEAD of ::gentoo
commit a5260a68dfb1d21b83808f5f0311142524b33abf
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Wed Dec 6 09:19:09 2023 +0000

    2023-12-06 09:19:09 UTC

emerge -qpvO gui-apps/waybar
[ebuild  N    ] gui-apps/waybar-0.9.24  USE="libinput logind popups systemd udev upower wifi -evdev -experimental -jack -mpd -mpris -network -pipewire -pulseaudio -sndio -test -tray"
Comment 1 Toralf Förster gentoo-dev 2023-12-06 18:08:04 UTC
Created attachment 877859 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-12-06 18:08:06 UTC
Created attachment 877860 [details]
emerge-history.txt.xz
Comment 3 Toralf Förster gentoo-dev 2023-12-06 18:08:07 UTC
Created attachment 877861 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-12-06 18:08:08 UTC
Created attachment 877862 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2023-12-06 18:08:09 UTC
Created attachment 877863 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-12-06 18:08:10 UTC
Created attachment 877864 [details]
gui-apps:waybar-0.9.24:20231206-095939.log
Comment 7 Toralf Förster gentoo-dev 2023-12-06 18:08:11 UTC
Created attachment 877865 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2023-12-06 18:08:12 UTC
Created attachment 877866 [details]
qlist-info.txt.xz
Comment 9 Toralf Förster gentoo-dev 2023-12-06 18:08:14 UTC
Created attachment 877867 [details]
temp.tar.xz
Comment 10 Toralf Förster gentoo-dev 2023-12-06 18:08:15 UTC
Created attachment 877868 [details]
var.tmp.clang.tar.xz
Comment 11 Gino McCarty 2024-03-30 23:50:49 UTC
I was able to replicate this issue
by running llvm-17 along with a `-stdlib=libstdc++` CXXFLAGS env override which I needed to get around a dev-lib/date issue reported elsewhere

this is turning into a bit of a mess
Comment 12 Dmitry S. Kulyabov 2024-05-08 09:33:22 UTC
Fixed in 0.10.3
Comment 13 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-05-09 20:51:54 UTC
(In reply to Dmitry S. Kulyabov from comment #12)
> Fixed in 0.10.3

Thanks.