Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
x11-wm/fluxbox build failure on amd64-musl-llvm
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
JaWie
n00b
n00b


Joined: 03 Apr 2025
Posts: 5

PostPosted: Thu Jun 19, 2025 12:01 pm    Post subject: x11-wm/fluxbox build failure on amd64-musl-llvm Reply with quote

After solving the issue with rust and getting X.org, I chose to install x11-wm/fluxbox (currenttly at 1.3.7-r5) and all dependences emerged succesfully, unlike Fluxbox itself. It failed on several errors that seem to be realted to the source code itself, as shown below:
Code:
In file included from src/FbTk/Button.cc:22:
In file included from src/FbTk/Button.hh:28:
#[1msrc/FbTk/FbWindow.hh:244:10: #[0m#[0;1;31merror: #[0m#[1mno template named 'auto_ptr' in namespace 'std'#[0m
  244 |     std::auto_ptr<FbTk::Transparent> m_transparent;#[0m
      | #[0;1;32m    ~~~~~^
#[0m#[1msrc/FbTk/Button.cc:43:37: #[0m#[0;1;31merror: #[0m#[1mno matching member function for call to 'add'#[0m
   43 |     FbTk::EventManager::instance()->add(*#[0;34mthis#[0m, *#[0;34mthis#[0m); #[0m
      | #[0;1;32m    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
#[0m#[1msrc/FbTk/EventManager.hh:43:10: #[0m#[0;1;36mnote: #[0mcandidate function not viable: no known conversion from 'FbTk::Button' to 'EventHandler &' for 1st argument#[0m
   43 |     #[0;34mvoid#[0m add(EventHandler &ev, #[0;34mconst#[0m FbWindow &win);#[0m
      | #[0;1;32m         ^   ~~~~~~~~~~~~~~~~
#[0m#[1msrc/FbTk/EventManager.hh:45:10: #[0m#[0;1;36mnote: #[0mcandidate function not viable: no known conversion from 'FbTk::Button' to 'EventHandler &' for 1st argument#[0m
   45 |     #[0;34mvoid#[0m add(EventHandler &ev, Window win) { registerEventHandler(ev, win); }#[0m
      | #[0;1;32m         ^   ~~~~~~~~~~~~~~~~
#[0m#[1msrc/FbTk/Button.cc:54:54: #[0m#[0;1;31merror: #[0m#[1mcannot initialize object parameter of type 'const FbTk::FbWindow' with an expression of type 'FbTk::Button'#[0m
   54 |     m_gc(DefaultGC(FbTk::App::instance()->display(), screenNumber())),#[0m
      | #[0;1;32m                                                     ^~~~~~~~~~~~
#[0m#[1m/usr/include/X11/Xlib.h:92:51: #[0m#[0;1;36mnote: #[0mexpanded from macro 'DefaultGC'#[0m
   92 | #define DefaultGC(dpy, scr)     (ScreenOfDisplay(dpy,scr)->default_gc)#[0m
      | #[0;1;32m                                                     ^~~
#[0m#[1m/usr/include/X11/Xlib.h:119:68: #[0m#[0;1;36mnote: #[0mexpanded from macro 'ScreenOfDisplay'#[0m
  119 | #define ScreenOfDisplay(dpy, scr)(&((_XPrivDisplay)(dpy))->screens[scr])#[0m
      | #[0;1;32m                                                                   ^~~
#[0m#[1msrc/FbTk/Button.cc:58:37: #[0m#[0;1;31merror: #[0m#[1mno matching member function for call to 'add'#[0m
   58 |     FbTk::EventManager::instance()->add(*#[0;34mthis#[0m, *#[0;34mthis#[0m);#[0m
      | #[0;1;32m    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
#[0m#[1msrc/FbTk/EventManager.hh:43:10: #[0m#[0;1;36mnote: #[0mcandidate function not viable: no known conversion from 'FbTk::Button' to 'EventHandler &' for 1st argument#[0m
   43 |     #[0;34mvoid#[0m add(EventHandler &ev, #[0;34mconst#[0m FbWindow &win);#[0m

      | #[0;1;32m         ^   ~~~~~~~~~~~~~~~~
#[0m#[1msrc/FbTk/EventManager.hh:45:10: #[0m#[0;1;36mnote: #[0mcandidate function not viable: no known conversion from 'FbTk::Button' to 'EventHandler &' for 1st argument#[0m
   45 |     #[0;34mvoid#[0m add(EventHandler &ev, Window win) { registerEventHandler(ev, win); }#[0m
      | #[0;1;32m         ^   ~~~~~~~~~~~~~~~~
#[0m#[1msrc/FbTk/Button.cc:87:21: #[0m#[0;1;31merror: #[0m#[1mcannot initialize object parameter of type 'FbTk::FbWindow' with an expression of type 'FbTk::Button'#[0m
   87 |     FbTk::FbWindow::setBackgroundColor(color);#[0m
      | #[0;1;32m                    ^~~~~~~~~~~~~~~~~~
#[0m#[1msrc/FbTk/Button.cc:92:21: #[0m#[0;1;31merror: #[0m#[1mcannot initialize object parameter of type 'FbTk::FbWindow' with an expression of type 'FbTk::Button'#[0m
   92 |     FbTk::FbWindow::setBackgroundPixmap(pm);#[0m
      | #[0;1;32m                    ^~~~~~~~~~~~~~~~~~~
#[0m#[1msrc/FbTk/Button.cc:107:25: #[0m#[0;1;31merror: #[0m#[1mcannot initialize object parameter of type 'FbTk::FbWindow' with an expression of type 'FbTk::Button'#[0m
  107 |         FbTk::FbWindow::setBackgroundPixmap(m_pressed_pm);#[0m
      | #[0;1;32m                        ^~~~~~~~~~~~~~~~~~~
#[0m#[1msrc/FbTk/Button.cc:110:25: #[0m#[0;1;31merror: #[0m#[1mcannot initialize object parameter of type 'FbTk::FbWindow' with an expression of type 'FbTk::Button'#[0m
  110 |         FbTk::FbWindow::setBackgroundColor(m_pressed_color);#[0m
      | #[0;1;32m                        ^~~~~~~~~~~~~~~~~~
#[0m#[1msrc/FbTk/Button.cc:115:9: #[0m#[0;1;31merror: #[0m#[1mcannot initialize object parameter of type 'FbTk::FbWindow' with an expression of type 'FbTk::Button'#[0m
  115 |         clear();#[0m
      | #[0;1;32m        ^~~~~
#[0m#[1msrc/FbTk/Button.cc:131:41: #[0m#[0;1;31merror: #[0m#[1mcannot initialize object parameter of type 'const FbTk::FbWindow' with an expression of type 'FbTk::Button'#[0m
  131 |         event.x >= -#[0;34mstatic_cast#[0m<#[0;34msigned#[0m>(borderWidth()) &&#[0m
      | #[0;1;32m                                        ^~~~~~~~~~~
#[0m#[1msrc/FbTk/Button.cc:132:40: #[0m#[0;1;31merror: #[0m#[1mcannot initialize object parameter of type 'const FbTk::FbWindow' with an expression of type 'FbTk::Button'#[0m
  132 |         event.x <= #[0;34mstatic_cast#[0m<#[0;34msigned#[0m>(width()+borderWidth()) &&#[0m
      | #[0;1;32m                                       ^~~~~
#[0m#[1msrc/FbTk/Button.cc:132:48: #[0m#[0;1;31merror: #[0m#[1mcannot initialize object parameter of type 'const FbTk::FbWindow' with an expression of type 'FbTk::Button'#[0m
  132 |         event.x <= #[0;34mstatic_cast#[0m<#[0;34msigned#[0m>(width()+borderWidth()) &&#[0m
      | #[0;1;32m                                               ^~~~~~~~~~~
#[0m#[1msrc/FbTk/Button.cc:133:41: #[0m#[0;1;31merror: #[0m#[1mcannot initialize object parameter of type 'const FbTk::FbWindow' with an expression of type 'FbTk::Button'#[0m
  133 |         event.y >= -#[0;34mstatic_cast#[0m<#[0;34msigned#[0m>(borderWidth()) &&#[0m
      | #[0;1;32m                                        ^~~~~~~~~~~
#[0m#[1msrc/FbTk/Button.cc:134:40: #[0m#[0;1;31merror: #[0m#[1mcannot initialize object parameter of type 'const FbTk::FbWindow' with an expression of type 'FbTk::Button'#[0m
  134 |         event.y <= #[0;34mstatic_cast#[0m<#[0;34msigned#[0m>(height()+borderWidth()) &&#[0m
      | #[0;1;32m                                       ^~~~~~
#[0m#[1msrc/FbTk/Button.cc:134:49: #[0m#[0;1;31merror: #[0m#[1mcannot initialize object parameter of type 'const FbTk::FbWindow' with an expression of type 'FbTk::Button'#[0m
  134 |         event.y <= #[0;34mstatic_cast#[0m<#[0;34msigned#[0m>(height()+borderWidth()) &&#[0m
      | #[0;1;32m                                                ^~~~~~~~~~~
#[0m#[1msrc/FbTk/Button.cc:151:13: #[0m#[0;1;31merror: #[0m#[1mcannot initialize object parameter of type 'FbTk::FbWindow' with an expression of type 'FbTk::Button'#[0m
  151 |             clear(); #[0;33m// clear background#[0m
      | #[0;1;32m            ^~~~~
#[0m#[1msrc/FbTk/Button.cc:157:5: #[0m#[0;1;31merror: #[0m#[1mcannot initialize object parameter of type 'FbTk::FbWindow' with an expression of type 'FbTk::Button'#[0m
  157 |     clearArea(event.x, event.y, event.width, event.height);#[0m
      | #[0;1;32m    ^~~~~~~~~
#[0mclang++ -DHAVE_CONFIG_H -I.  -I/usr/include/freetype2 -I/usr/include/fribidi -include ./config.h -I./src -I./src -I./nls -I/usr/include/fribidi  -march=btver1 -mtune=btver1 -O2 -fomit-frame-pointer -pipe  -c -o src/FbTk/libFbTk_a-ColorLUT.o `test -f 'src/FbTk/ColorLUT.cc' || echo './'`src/FbTk/ColorLUT.cc
clang++ -DHAVE_CONFIG_H -I.  -I/usr/include/freetype2 -I/usr/include/fribidi -include ./config.h -I./src -I./src -I./nls -I/usr/include/fribidi  -march=btver1 -mtune=btver1 -O2 -fomit-frame-pointer -pipe  -c -o src/FbTk/libFbTk_a-Container.o `test -f 'src/FbTk/Container.cc' || echo './'`src/FbTk/Container.cc
17 errors generated.
make[2]: *** [Makefile:2373: src/FbTk/libFbTk_a-Button.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from src/FbTk/Container.cc:23:
In file included from src/FbTk/Container.hh:26:
#[1msrc/FbTk/FbWindow.hh:244:10: #[0m#[0;1;31merror: #[0m#[1mno template named 'auto_ptr' in namespace 'std'#[0m
  244 |     std::auto_ptr<FbTk::Transparent> m_transparent;#[0m
      | #[0;1;32m    ~~~~~^
#[0mIn file included from src/FbTk/Container.cc:23:
#[1msrc/FbTk/Container.hh:93:24: #[0m#[0;1;31merror: #[0m#[1mno template named 'mem_fun_t' in namespace 'std'; did you mean 'mem_fn'?#[0m
   93 |     #[0;34mvoid#[0m for_each(std::mem_fun_t<#[0;34mvoid#[0m, FbWindow> function);#[0m
      | #[0;1;32m                  ~~~~~^~~~~~~~~
#[0m      | #[0;32m                       mem_fn
#[0m#[1m/usr/include/c++/v1/__functional/mem_fn.h:46:81: #[0m#[0;1;36mnote: #[0m'mem_fn' declared here#[0m
   46 | #[0;34minline#[0m _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 __mem_fn<_Rp _Tp::*> mem_fn(_Rp _Tp::*__pm) _NOEXCEPT {#[0m
      | #[0;1;32m                                                                                ^
#[0mIn file included from src/FbTk/Container.cc:23:
#[1msrc/FbTk/Container.hh:93:19: #[0m#[0;1;31merror: #[0m#[1mexpected parameter declarator#[0m
   93 |     #[0;34mvoid#[0m for_each(std::mem_fun_t<#[0;34mvoid#[0m, FbWindow> function);#[0m
      | #[0;1;32m                  ^
#[0m#[1msrc/FbTk/Container.hh:93:50: #[0m#[0;1;31merror: #[0m#[1mexpected ')'#[0m
   93 |     #[0;34mvoid#[0m for_each(std::mem_fun_t<#[0;34mvoid#[0m, FbWindow> function);#[0m
      | #[0;1;32m                                                 ^
#[0m#[1msrc/FbTk/Container.hh:93:18: #[0m#[0;1;36mnote: #[0mto match this '('#[0m
   93 |     #[0;34mvoid#[0m for_each(std::mem_fun_t<#[0;34mvoid#[0m, FbWindow> function);#[0m
      | #[0;1;32m                 ^
#[0mIn file included from src/FbTk/Container.cc:28:
#[1msrc/FbTk/CompareEqual.hh:30:38: #[0m#[0;1;31merror: #[0m#[1mno template named 'unary_function' in namespace 'std'; did you mean '__unary_function'?#[0m
   30 | #[0;34mclass#[0m CompareEqual_base: #[0;34mpublic#[0m std::unary_function<ClassType, #[0;34mbool#[0m> {#[0m
      | #[0;1;32m                                ~~~~~^~~~~~~~~~~~~~
#[0m      | #[0;32m                                     __unary_function
#[0m#[1m/usr/include/c++/v1/__functional/unary_function.h:46:1: #[0m#[0;1;36mnote: #[0m'__unary_function' declared here#[0m
   46 | #[0;34musing#[0m __unary_function _LIBCPP_NODEBUG = __unary_function_keep_layout_base<_Arg, _Result>;#[0m
      | #[0;1;32m^
#[0m#[1msrc/FbTk/Container.cc:45:31: #[0m#[0;1;31merror: #[0m#[1mno matching member function for call to 'add'#[0m
   45 |     EventManager::instance()->add(*#[0;34mthis#[0m, *#[0;34mthis#[0m);#[0m
      | #[0;1;32m    ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
#[0m#[1msrc/FbTk/EventManager.hh:43:10: #[0m#[0;1;36mnote: #[0mcandidate function not viable: no known conversion from 'FbTk::Container' to 'EventHandler &' for 1st argument#[0m
   43 |     #[0;34mvoid#[0m add(EventHandler &ev, #[0;34mconst#[0m FbWindow &win);#[0m
      | #[0;1;32m         ^   ~~~~~~~~~~~~~~~~
#[0m#[1msrc/FbTk/EventManager.hh:45:10: #[0m#[0;1;36mnote: #[0mcandidate function not viable: no known conversion from 'FbTk::Container' to 'EventHandler &' for 1st argument#[0m
   45 |     #[0;34mvoid#[0m add(EventHandler &ev, Window win) { registerEventHandler(ev, win); }#[0m
      | #[0;1;32m         ^   ~~~~~~~~~~~~~~~~
#[0m#[1msrc/FbTk/Container.cc:54:19: #[0m#[0;1;31merror: #[0m#[1mcannot initialize object parameter of type 'const FbTk::FbWindow' with an expression of type 'FbTk::Container'#[0m
   54 |     #[0;34mif#[0m (FbWindow::width() == width &&#[0m
      | #[0;1;32m                  ^~~~~
#[0m#[1msrc/FbTk/Container.cc:55:19: #[0m#[0;1;31merror: #[0m#[1mcannot initialize object parameter of type 'const FbTk::FbWindow' with an expression of type 'FbTk::Container'#[0m
   55 |         FbWindow::height() == height)#[0m
      | #[0;1;32m                  ^~~~~~
#[0m#[1msrc/FbTk/Container.cc:58:15: #[0m#[0;1;31merror: #[0m#[1mcannot initialize object parameter of type 'FbTk::FbWindow' with an expression of type 'FbTk::Container'#[0m
   58 |     FbWindow::resize(width, height);#[0m
      | #[0;1;32m              ^~~~~~
#[0m#[1msrc/FbTk/Container.cc:64:15: #[0m#[0;1;31merror: #[0m#[1mcannot initialize object parameter of type 'FbTk::FbWindow' with an expression of type 'FbTk::Container'#[0m
   64 |     FbWindow::moveResize(x, y, width, height);#[0m
      | #[0;1;32m              ^~~~~~~~~~
#[0m#[1msrc/FbTk/Container.cc:73:9: #[0m#[0;1;31merror: #[0m#[1mcannot initialize object parameter of type 'const FbTk::FbWindow' with an expression of type 'Button'#[0m
   73 |     #[0;34mif#[0m (item->parent() != #[0;34mthis#[0m)#[0m
      | #[0;1;32m        ^~~~
#[0m#[1msrc/FbTk/Container.cc:134:32: #[0m#[0;1;31merror: #[0m#[1mcannot
 initialize object parameter of type 'const FbTk::FbWindow' with an expression of type 'FbTk::Container'#[0m
  134 |     #[0;34mif#[0m (!XQueryTree(display(), window(),#[0m
      | #[0;1;32m                               ^~~~~~
#[0m#[1msrc/FbTk/Container.cc:144:45: #[0m#[0;1;31merror: #[0m#[1mcannot initialize object parameter of type 'const FbTk::FbWindow' with an expression of type 'FbTk::Container'#[0m
  144 |                                root_return, window(),#[0m
      | #[0;1;32m                                            ^~~~~~
#[0m#[1msrc/FbTk/Container.cc:159:32: #[0m#[0;1;31merror: #[0m#[1mcannot initialize object parameter of type 'const FbTk::FbWindow' with an expression of type 'FbTk::Container'#[0m
  159 |                                window(), itemwin,#[0m
      | #[0;1;32m                               ^~~~~~
#[0m#[1msrc/FbTk/Container.cc:242:9: #[0m#[0;1;31merror: #[0m#[1mcannot initialize object parameter of type 'FbTk::FbWindow' with an expression of type 'FbTk::Container'#[0m
  242 |         clearArea(event.x, event.y, event.width, event.height);#[0m
      | #[0;1;32m        ^~~~~~~~~
#[0m#[1msrc/FbTk/Container.cc:247:25: #[0m#[0;1;31merror: #[0m#[1mcannot initialize object parameter of type 'const FbTk::FbWindow' with an expression of type 'FbTk::Container'#[0m
  247 |     #[0;34mif#[0m (event.window == window()) {#[0m
      | #[0;1;32m                        ^~~~~~
#[0m#[1msrc/FbTk/Container.cc:264:25: #[0m#[0;1;31merror: #[0m#[1mcannot initialize object parameter of type 'const FbTk::FbWindow' with an expression of type 'FbTk::Container'#[0m
  264 |     #[0;34mif#[0m (event.window == window()) {#[0m
      | #[0;1;32m                        ^~~~~~
#[0m#[1msrc/FbTk/Container.cc:281:25: #[0m#[0;1;31merror: #[0m#[1mcannot initialize object parameter of type 'const FbTk::FbWindow' with an expression of type 'FbTk::Container'#[0m
  281 |     #[0;34mif#[0m (event.window == window()) {#[0m
      | #[0;1;32m                        ^~~~~~
#[0m#[1msrc/FbTk/Container.cc:306:28: #[0m#[0;1;31merror: #[0m#[1mcannot initialize object parameter of type 'const FbTk::FbWindow' with an expression of type 'FbTk::Button'#[0m
  306 |     #[0;34munsigned#[0m #[0;34mint#[0m borderW = m_item_list.front()->borderWidth();#[0m
      | #[0;1;32m                           ^~~~~~~~~~~~~~~~~~~
#[0m#[0;1;31mfatal error: #[0m#[1mtoo many errors emitted, stopping now [-ferror-limit=]#[0m
20 errors generated.
make[2]: *** [Makefile:2429: src/FbTk/libFbTk_a-Container.o] Error 1
make[2]: Leaving directory '/var/tmp/portage/x11-wm/fluxbox-1.3.7-r5/work/fluxbox-1.3.7'
make[1]: *** [Makefile:4701: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/x11-wm/fluxbox-1.3.7-r5/work/fluxbox-1.3.7'
make: *** [Makefile:1599: all] Error 2
 #[31;01m*#[0m ERROR: x11-wm/fluxbox-1.3.7-r5::gentoo failed (compile phase):
 #[31;01m*#[0m   emake failed
 #[31;01m*#[0m
 #[31;01m*#[0m If you need support, post the output of `emerge --info '=x11-wm/fluxbox-1.3.7-r5::gentoo'`,
 #[31;01m*#[0m the complete build log and the output of `emerge -pqv '=x11-wm/fluxbox-1.3.7-r5::gentoo'`.
 #[31;01m*#[0m The complete build log is located at '/var/tmp/portage/x11-wm/fluxbox-1.3.7-r5/temp/build.log'.
 #[31;01m*#[0m The ebuild environment file is located at '/var/tmp/portage/x11-wm/fluxbox-1.3.7-r5/temp/environment'.
 #[31;01m*#[0m Working directory: '/var/tmp/portage/x11-wm/fluxbox-1.3.7-r5/work/fluxbox-1.3.7'
 #[31;01m*#[0m S: '/var/tmp/portage/x11-wm/fluxbox-1.3.7-r5/work/fluxbox-1.3.7'

Could it have something to do with Clang? There is no newer Fluxbox version available to test. Is this the kind of problem, that should be posted to the bug tracker? I uploaded build.log, the environment file, the output of emerge --info '=x11-wm/fluxbox-1.3.7-r5::gentoo' and the output of emerge -pqv '=x11-wm/fluxbox-1.3.7-r5::gentoo'.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23562

PostPosted: Thu Jun 19, 2025 2:02 pm    Post subject: Reply with quote

This looks like x11-wm/fluxbox: fails to build with libcxx (no template named 'auto_ptr' in namespace 'std'), needs c++14. std::auto_ptr was deprecated, and ultimately removed in a newer standard. If this package does not set a C++ standard version, then it will build with whatever the default C++ standard version is for your chosen compiler. If that default is new enough that auto_ptr has been removed, then the build fails. The easiest workaround is to force the package to use a C++ standard version that still provides the required class. However, note that auto_ptr was deprecated for good reason, and projects should have moved away from it long ago.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



OSZAR »