LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-17-2021, 07:08 AM   #1
Mackyboy123
Member
 
Registered: Feb 2020
Distribution: Slackware
Posts: 92

Rep: Reputation: Disabled
YouCompleteMe won't compile on Slackware14.2


I am trying to compile YouCompleteMe for vim. When I ran install.py, I got this error

Code:
Searching Python 3.7 libraries...
Found Python library: /usr/lib64/libpython3.7m.so
Found Python headers folder: /usr/include/python3.7m
-- The C compiler identification is GNU 5.5.0
-- The CXX compiler identification is GNU 5.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:232 (message):
  Your C++ compiler does NOT fully support C++17.


-- Configuring incomplete, errors occurred!
See also "/tmp/ycm_build_s90xbc7b/CMakeFiles/CMakeOutput.log".
ERROR: the build failed.

NOTE: it is *highly* unlikely that this is a bug but rather
that this is a problem with the configuration of your system
or a missing dependency. Please carefully read CONTRIBUTING.md
and if you're sure that it is a bug, please raise an issue on the
issue tracker, including the entire output of this script
and the invocation line used to run it.
The log file above doesn't exist
 
Old 01-17-2021, 07:11 AM   #2
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
Quote:
Originally Posted by Mackyboy123 View Post
Code:
-- The CXX compiler identification is GNU 5.5.0
...
  Your C++ compiler does NOT fully support C++17.
The error message is pretty much saying it all.
 
Old 01-17-2021, 07:14 AM   #3
Mackyboy123
Member
 
Registered: Feb 2020
Distribution: Slackware
Posts: 92

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by shruggy View Post
The error message is pretty much saying it all.
How do I get a c++ compiler that suipports c++17
 
Old 01-17-2021, 09:11 AM   #4
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,405
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
Quote:
Originally Posted by Mackyboy123 View Post
How do I get a c++ compiler that suipports c++17
That might be a bit complicated. From Wikipedia :
  • GCC has had complete support for C++17 language features since version 8.
  • Clang 5 and later implement all the features of C++17.
  • Visual Studio 2017 15.8 (MSVC 19.15) supports all of C++17.

Upgrading compiler alone is hard job. You may want to target an older version of your software or consider upgrading to current.

Last edited by Tonus; 01-17-2021 at 09:14 AM. Reason: A bit more info and source
 
Old 01-17-2021, 09:17 AM   #5
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
pkgs.org says Slackware Extra for 14.2 includes llvm 8.0.1.
 
Old 01-17-2021, 09:25 AM   #6
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,405
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
Quote:
Originally Posted by shruggy View Post
pkgs.org
Quote:
Slackware Extra
You'll have to trust those. I do not (know them).
 
Old 01-17-2021, 09:29 AM   #7
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
You don't need to trust them, just trust any Slackware mirror:
https://mirror.bytemark.co.uk/slackw....2/extra/llvm/
 
Old 01-17-2021, 10:34 AM   #8
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
Extra is an official Slackware repo. Have you noticed the green label Official on the pkgs.org page? They mark unofficial repos with the red label Third-Party.
 
Old 01-17-2021, 11:10 AM   #9
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,405
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
Stand corrected, thanks ! I didn't realise it was the extra in official Slackware repo. I guess it might be because I haven't had a look tova 14.2 repo for a long time...
 
Old 01-18-2021, 12:44 AM   #10
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by shruggy View Post
Extra is an official Slackware repo. Have you noticed the green label Official on the pkgs.org page? They mark unofficial repos with the red label Third-Party.
Most don't recommend using pkgs.net for Slackware since the site doesn't document any dependencies, in addition to potential problems when mixing packages from two different repos.

That being said, official repos should be good.
 
Old 01-18-2021, 01:12 AM   #11
FlinchX
Member
 
Registered: Nov 2017
Distribution: Slackware Linux
Posts: 666

Rep: Reputation: Disabled
There's a newer cmake on SBo which claims to install to /opt and not interfere with system cmake. README.Slackware contains instructions about how to use it (editing the SlackBuilds is required). I've never tried it yet though. But it's in my TODO, because I'm affected by this too. To make YCM compile, you might try aliasing the new cmake as cmake, so YCM transparently uses the new one. If you try this first (before me), please let us know here if it worked.

Edit: this post is misleading. Trying to compile YCM with the newer cmake produces the same error, since the problem is the C++ compiler, not cmake itself. So the options are either to try -current or use an older YCM version. I think 2-3 months ago it compiled fine with the C++ compiler that Slackware 14.2 provides. My file dates show it compiled fine at the beginning of November last year.

Last edited by FlinchX; 01-18-2021 at 05:42 AM.
 
  


Reply



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] Kernel 5.4.17 won't mount ntfs-3g on Slackware14.2? bamunds Slackware 13 03-29-2020 04:32 PM
HOWTO - Install Slackware14 in 32MB memory with no CD or netboot OldHolborn Slackware 7 03-24-2014 08:31 PM
LXer: Open Recall: Raspberry Pi camera, YouCompleteMe, Java toolbar petition LXer Syndicated Linux News 0 02-08-2013 10:51 AM
Window managers in Slackware14 RC 2 and locale settings gargamel Slackware 3 08-19-2012 11:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:42 PM.

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