Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 05-18-2020, 02:31 AM   #1
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 797

Rep: Reputation: 116Reputation: 116
qt-creator won't build on Current

I have an experimental system using slackware current, multilib, ktown and various SlackBuilds from

In the last day or so I've tried to compile qt-creator. It fails because

clangformatutils.cpp: In function 'clang::format::FormatStyle ClangFormat::qtcStyle()':
clangformatutils.cpp:60:43: error: cannot convert 'bool' to 'clang::format::FormatStyle::ShortBlockStyle' in assignment
60 | style.AllowShortBlocksOnASingleLine = false;
| ^~~~~
clangformatutils.cpp:71:49: error: cannot convert 'bool' to 'clang::format::FormatStyle::BraceWrappingAfterControlStatementStyle' in assignment
71 | style.BraceWrapping.AfterControlStatement = false;

I've made a patch which appears to fix the problem. Raised this with the SlackBuild maintainer as my patch follows on from the maintainers patch clang-9.patch which is still required.

--- a/src/plugins/clangformat/clangformatutils.cpp      2020-05-17 15:52:42.270567700 +0100
+++ b/src/plugins/clangformat/clangformatutils.cpp      2020-05-17 15:54:48.325316377 +0100
@@ -57,7 +57,7 @@
     style.AlignOperands = true;
     style.AlignTrailingComments = true;
     style.AllowAllParametersOfDeclarationOnNextLine = true;
-    style.AllowShortBlocksOnASingleLine = false;
+    style.AllowShortBlocksOnASingleLine = FormatStyle::SBS_Never;
     style.AllowShortCaseLabelsOnASingleLine = false;
     style.AllowShortFunctionsOnASingleLine = FormatStyle::SFS_Inline;
     style.AllowShortIfStatementsOnASingleLine = FormatStyle::SIS_Never;
@@ -68,7 +68,7 @@
     style.BinPackArguments = false;
     style.BinPackParameters = false;
     style.BraceWrapping.AfterClass = true;
-    style.BraceWrapping.AfterControlStatement = false;
+    style.BraceWrapping.AfterControlStatement = FormatStyle::BWACS_Never;
     style.BraceWrapping.AfterEnum = false;
     style.BraceWrapping.AfterFunction = true;
     style.BraceWrapping.AfterNamespace = false;
qt-creator stands up after installing. Not tested.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Follow on re: CLISP re-build using current - does CLISP on current work with quicklisp ? badbetty Slackware 10 04-11-2018 02:47 PM
[SOLVED] Linux 4.4 seems to refuse to build IPv6 for the 64-bit build - 32-bit build works fine GameCodingNinja Linux From Scratch 2 02-07-2016 06:40 PM
[SOLVED] Script to build always a current ISO image of Slackware (slackware-current) robertjinx Slackware 2 12-09-2010 02:00 AM
LXer: Build 'em Right, Build 'em Strong, Build 'em Linux LXer Syndicated Linux News 0 10-01-2007 09:51 PM
Nautilus CD Creator won't accept CD-RW disc joffa Linux - Software 1 10-02-2004 11:14 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:03 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration