Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problem with clang on Manjaro

42 views
Skip to first unread message

woodb...@gmail.com

unread,
Apr 15, 2018, 3:59:53 PM4/15/18
to
Shalom

When I installed Manjaro it came with gcc 7.3 already installed
and this software:
https://github.com/Ebenezer-group/onwards

builds fine with g++. I installed clang using the pacman tool
and got clang 6.0.0. When I build the same software, I get an
error:

clang++ -stdlib=libc++ -std=c++17 -I. -Os -Wundef -W -Wall -Wextra -Wpedantic -Wreorder -o tiers/genz tiers/genz.cc
In file included from tiers/genz.cc:1:
In file included from ./Buffer.hh:2:
./ErrorWords.hh:2:9: fatal error: 'exception' file not found
#include<exception>

Previously I was using openSuse and was able to build the
software with both gcc and clang on that configuration. Any
ideas on how to fix this? Thanks in advance.


Brian
Ebenezer Enterprises - Enjoying programming again.
http://webEbenezer.net

Melzzzzz

unread,
Apr 15, 2018, 8:13:03 PM4/15/18
to
On 2018-04-15, woodb...@gmail.com <woodb...@gmail.com> wrote:
> Shalom
>
> When I installed Manjaro it came with gcc 7.3 already installed
> and this software:
> https://github.com/Ebenezer-group/onwards
>
> builds fine with g++. I installed clang using the pacman tool
> and got clang 6.0.0. When I build the same software, I get an
> error:
>
> clang++ -stdlib=libc++ -std=c++17 -I. -Os -Wundef -W -Wall -Wextra -Wpedantic -Wreorder -o tiers/genz tiers/genz.cc
> In file included from tiers/genz.cc:1:
> In file included from ./Buffer.hh:2:
> ./ErrorWords.hh:2:9: fatal error: 'exception' file not found
> #include<exception>
>
> Previously I was using openSuse and was able to build the
> software with both gcc and clang on that configuration. Any
> ideas on how to fix this? Thanks in advance.

Perhaps libc++ is not installed?


--
press any key to continue or any other to quit...

woodb...@gmail.com

unread,
Apr 15, 2018, 9:37:53 PM4/15/18
to
I think that's right. Now I'm not sure how to install it.
This page:
https://stackoverflow.com/questions/39332406/install-libc-on-ubuntu
said to install libc++-dev, but that doesn't work here. I get
"target not found".

woodb...@gmail.com

unread,
Apr 15, 2018, 9:41:17 PM4/15/18
to
I wonder why I didn't get that when I installed clang.

Melzzzzz

unread,
Apr 15, 2018, 10:08:35 PM4/15/18
to
clang uses libstdc++ on Linux.

Chris Vine

unread,
Apr 16, 2018, 7:08:43 AM4/16/18
to
On Mon, 16 Apr 2018 02:08:23 GMT
Melzzzzz <Melz...@zzzzz.com> wrote:
[snip]
> clang uses libstdc++ on Linux.

You can choose libc++ by adding -stdlib=libc++ to the command line.
Obviously, that will fail if libc++ is not installed. I don't believe
ubuntu supply libc++ packages. Debian do however, so their build
scripts may work on ubuntu (dunno).

In any event, Brian should be able to build his own.

Chris Vine

unread,
Apr 16, 2018, 7:11:37 AM4/16/18
to
I don't know why I mentioned ubuntu as the subject line says he uses
Manjaro. Never heard of it before.

Melzzzzz

unread,
Apr 16, 2018, 9:48:20 AM4/16/18
to
Manjaro is new distro based on Arch. I use it since 2014.

woodb...@gmail.com

unread,
Apr 16, 2018, 1:56:18 PM4/16/18
to
Yeah, I used Arch a few years ago, but wasn't keeping up
with the system administration so stopped using it. My
initial impression of Manjaro is pretty good. I had a
problem where the backlighting got dim and I wasn't able
to figure out how to make it brighter. I reinstalled and
so far it's staying bright. I don't think there's a simple
way to adjust it, but if it stays like this I'm fine with
it.


Brian
Ebenezer Enterprises - In G-d we trust.
http://webEbenezer.net
0 new messages