You are not logged in.

#1 2018-12-02 20:39:54

dslink
Member
From: USA
Registered: 2012-02-23
Posts: 48

Can't get libc++ to update & build correctly, Clang error

Have never seen this before, please any insight would be great.



==> Making package: libc++ 7.0.0-1 (Sun 02 Dec 2018 03:32:42 PM EST)

==> Checking runtime dependencies...

==> Checking buildtime dependencies...

==> Retrieving sources...

-> Found llvm-7.0.0.src.tar.xz

-> Found llvm-7.0.0.src.tar.xz.sig

-> Found libcxx-7.0.0.src.tar.xz

-> Found libcxx-7.0.0.src.tar.xz.sig

-> Found libcxxabi-7.0.0.src.tar.xz

-> Found libcxxabi-7.0.0.src.tar.xz.sig

==> Validating source files with sha512sums...

llvm-7.0.0.src.tar.xz ... Passed

llvm-7.0.0.src.tar.xz.sig ... Skipped

libcxx-7.0.0.src.tar.xz ... Passed

libcxx-7.0.0.src.tar.xz.sig ... Skipped

libcxxabi-7.0.0.src.tar.xz ... Passed

libcxxabi-7.0.0.src.tar.xz.sig ... Skipped

==> Verifying source file signatures with gpg...

llvm-7.0.0.src.tar.xz ... Passed

libcxx-7.0.0.src.tar.xz ... Passed

libcxxabi-7.0.0.src.tar.xz ... Passed

==> Extracting sources...

==> Starting prepare()...

==> Starting build()...

CMake Deprecation Warning at CMakeLists.txt:14 (cmake_policy):

The OLD behavior for policy CMP0051 will be removed from a future version

of CMake.



The cmake-policies(7) manual explains that the OLD behaviors of all

policies are deprecated and that a policy should be set to OLD only under

specific short-term circumstances. Projects should be ported to the NEW

behavior and not rely on setting a policy to OLD.





-- The C compiler identification is Clang 7.0.0

-- The CXX compiler identification is Clang 7.0.0

-- The ASM compiler identification is Clang

-- Found assembler: /usr/bin/clang

-- Check for working C compiler: /usr/bin/clang

-- Check for working C compiler: /usr/bin/clang -- broken

CMake Error at /usr/share/cmake-3.12/Modules/CMakeTestCCompiler.cmake:52 (message):

The C compiler



"/usr/bin/clang"



is not able to compile a simple test program.



It fails with the following output:



Change Dir: /tmp/trizen-dustin/libc++/src/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/ninja" "cmTC_4756e"

[1/2] Building C object CMakeFiles/cmTC_4756e.dir/testCCompiler.c.o

[2/2] Linking C executable cmTC_4756e

FAILED: cmTC_4756e

: && /usr/bin/clang -march=native -mtune=native -O2 -pipe -fstack-protector-strong -mfpmath=sse -fopenmp -fomit-frame-pointer -pipe -fno-unwind-tables -fno-asynchronous-unwind-tables -Wl,-O1,--sort-common,--as-needed,-z,relro CMakeFiles/cmTC_4756e.dir/testCCompiler.c.o -o cmTC_4756e && :

/usr/bin/ld: cannot find -lomp

clang-7: error: linker command failed with exit code 1 (use -v to see invocation)

ninja: build stopped: subcommand failed.





CMake will not be able to correctly generate this project.

Call Stack (most recent call first):

CMakeLists.txt:50 (project)



-- Configuring incomplete, errors occurred!

See also "/tmp/trizen-dustin/libc++/src/build/CMakeFiles/CMakeOutput.log".

See also "/tmp/trizen-dustin/libc++/src/build/CMakeFiles/CMakeError.log".

==> ERROR: A failure occurred in build().

Aborting...

:: Unable to build libc++abi - makepkg exited with code: 4

Offline

#2 2018-12-02 20:51:58

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: Can't get libc++ to update & build correctly, Clang error

First, post properly formatted errors using the  "code" bbcode.

Second,

dslink wrote:
: && /usr/bin/clang -march=native -mtune=native -O2 -pipe -fstack-protector-strong -mfpmath=sse -fopenmp -fomit-frame-pointer -pipe -fno-unwind-tables -fno-asynchronous-unwind-tables -Wl,-O1,--sort-common,--as-needed,-z,relro CMakeFiles/cmTC_4756e.dir/testCCompiler.c.o -o cmTC_4756e && :
/usr/bin/ld: cannot find -lomp
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)

Do explain where these CFLAGS came from, please. Especially why you are passing -fopenmp here.


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#3 2018-12-02 20:52:48

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,524
Website

Re: Can't get libc++ to update & build correctly, Clang error

Please edit your post to add code tags.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Online

Board footer

Powered by FluxBB