Cannot compile/make with g++ [Solved]

If you are new to Linux or new to Sabayon Linux and just not sure where to post, here ya go. Post without fear of being told to RTFM :)

Moderator: Moderators

Post Reply
lizardsquid
Baby Hen
Posts: 3
Joined: Wed Mar 21, 2018 4:30

Cannot compile/make with g++ [Solved]

Post by lizardsquid » Wed Mar 21, 2018 4:35

I am attempting to compile treesheets, but when I go to

Code: Select all

treesheets/src
and type

Code: Select all

make
, I get the following:

Code: Select all

g++ -DPACKAGE_VERSION=__DATE__ -std=c++17 `wx-config --cxxflags` -I ../lobster/include -I ../lobster/src   -c -o main.o main.cpp
In file included from main.cpp:2:0:
stdafx.h:73:23: fatal error: string_view: No such file or directory

                       ^
compilation terminated.
make: *** [<builtin>: main.o] Error 1
What am I missing?

(edit: I should note that this compiled fine on several other distributions mere days ago, so there isn't a problem with the source itself)
Last edited by lizardsquid on Fri Mar 23, 2018 7:38, edited 1 time in total.
Avery ░ Nonbinary (they/them) ░ Distro-hopper ░ Haskeller ░ Prefers BSPWM

User avatar
sabayonino
Sagely Hen
Posts: 3254
Joined: Sun Sep 21, 2008 1:12
Location: Italy
Contact:

Re: Cannot compile/make with g++

Post by sabayonino » Wed Mar 21, 2018 12:04

You need full gcc package

Code: Select all

# equo i @buiild-essentials
There are several topics about compiling failures and gcc required
[Che Cos'è Il Calcolo Distribuito (BOINC)

BOINC ready ! Sabayon+BOINC = BILD ,my Sabayon spin :cyclops: - Ready to crunch for the Science everywhere :)

lizardsquid
Baby Hen
Posts: 3
Joined: Wed Mar 21, 2018 4:30

Re: Cannot compile/make with g++

Post by lizardsquid » Wed Mar 21, 2018 12:52

After installing @build-essentials, I get exactly the same error
Avery ░ Nonbinary (they/them) ░ Distro-hopper ░ Haskeller ░ Prefers BSPWM

User avatar
sabayonino
Sagely Hen
Posts: 3254
Joined: Sun Sep 21, 2008 1:12
Location: Italy
Contact:

Re: Cannot compile/make with g++

Post by sabayonino » Wed Mar 21, 2018 13:24

not sure , but :

Code: Select all

-std=c++17
C++17 should be fully supported from GCC7.1 or later

Sabayon run GCC-6.4 by default and has some c++17 experimental features

according on GCC changes logs :
https://gcc.gnu.org/projects/cxx-status.html

https://gcc.gnu.org/gcc-6/changes.html
https://gcc.gnu.org/gcc-7/changes.html

I'm not a codedr but you can file a bug : https://bugs.sabayon.org/
or ask to the IRC channel : https://www.sabayon.org/chat
[Che Cos'è Il Calcolo Distribuito (BOINC)

BOINC ready ! Sabayon+BOINC = BILD ,my Sabayon spin :cyclops: - Ready to crunch for the Science everywhere :)

lizardsquid
Baby Hen
Posts: 3
Joined: Wed Mar 21, 2018 4:30

Re: Cannot compile/make with g++

Post by lizardsquid » Fri Mar 23, 2018 7:38

I compiled an earlier version successfully, hopefully g++7 support arrives soon
Avery ░ Nonbinary (they/them) ░ Distro-hopper ░ Haskeller ░ Prefers BSPWM

Post Reply