You are not logged in.

#1 2017-09-06 20:25:59

rican-linux
Member
Registered: 2014-11-16
Posts: 63

[SOLVED] libc++ fails to build

I am trying to upgrade discord from the AUR and it depends on libc++. I keep getting this error when trying tombuild the packge

 I am getting the following error when trying to build.

Building C object CMakeFiles/cmTC_05128.dir/testCCompiler.c.o
/usr/bin/clang -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o CMakeFiles/cmTC_05128.dir/testCCompiler.c.o -c /home/rican-linux/.cache/pacaur/libc++/src/build/CMakeFiles/CMakeTmp/testCCompiler.c
clang-6.0: error: unknown argument: '-fno-plt'

Is this an issue I should report uptream?

Last edited by rican-linux (2017-09-06 23:40:31)

Offline

#2 2017-09-06 20:31:01

HalosGhost
Forum Moderator
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 2,092
Website

Re: [SOLVED] libc++ fails to build

rican-linux wrote:
clang-6.0: error: unknown argument: '-fno-plt'

There is no clang-6.0 (either in the repos, in the AUR, or for that matter, in existence as far as I can tell). The latest version of clang is 4.0.1.

What is happening there? What package owns /usr/bin/clang? and what is the output of `clang --version`?

Edit: also, doesn't glibc already provide libc++? Is dischord trying to build its own copy of it for some reason?

All the best,

-HG

Last edited by HalosGhost (2017-09-06 20:34:10)

Offline

#3 2017-09-06 21:23:23

Uriel_Bernhard48
Member
Registered: 2017-08-08
Posts: 29

Re: [SOLVED] libc++ fails to build

Clang doesn't support '-fno-plt' option. Official clang archlinux package take care of this. Install clang from repo.

Offline

#4 2017-09-06 23:40:06

rican-linux
Member
Registered: 2014-11-16
Posts: 63

Re: [SOLVED] libc++ fails to build

Uriel_Bernhard48 wrote:

Clang doesn't support '-fno-plt' option. Official clang archlinux package take care of this. Install clang from repo.

You are right I had clang-svn llvm-svn and lib-llvn-svn from the AUR. I switched them out for the Offical repo packages and all is well. Thanks!

Offline

Board footer

Powered by FluxBB