You are not logged in.

#1 2020-08-08 19:15:02

soloturn
Member
Registered: 2016-04-18
Posts: 5

building compiler-rt with clang++ fails, building with gnu not, why?

this is no real bug report as the package works. but as building the apple swift package fails with this error i'd be interested if anybody has an idea why compiler-rt (https://www.archlinux.org/packages/extr … mpiler-rt/) cannot be built with clang++.

$ export CC=clang
$ export CC=clang
$ makepkg -s

and it really gives the same error when compiling swift.
/usr/bin/clang++ -I../lib/tsan/dd/../.. -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -Wall -std=c++14 -Wno-unused-parameter -O3 -DNDEBUG -m64 -fno-lto -fPIC -fno-builtin -fno-exceptions -fomit-frame-pointer -funwind-tables -fno-stack-protector -fno-sanitize=safe-stack -fvisibility=hidden -fno-lto -O3 -gline-tables-only -Wno-gnu -Wno-variadic-macros -Wno-c99-extensions -Wno-non-virtual-dtor -fno-rtti -MD -MT lib/tsan/dd/CMakeFiles/clang_rt.dd-x86_64.dir/dd_interceptors.cpp.o -MF lib/tsan/dd/CMakeFiles/clang_rt.dd-x86_64.dir/dd_interceptors.cpp.o.d -o lib/tsan/dd/CMakeFiles/clang_rt.dd-x86_64.dir/dd_interceptors.cpp.o -c ../lib/tsan/dd/dd_interceptors.cpp
../lib/tsan/dd/dd_interceptors.cpp:225:1: warning: attribute declaration must precede definition [-Wignored-attributes]
..._NTH (realpath (const char *restrict __name, char *_restrict __resolved))
^
../lib/tsan/dd/dd_interceptors.cpp:225:20: error: redefinition of 'realpath'
...

Last edited by soloturn (2020-08-08 19:16:43)

Offline

#2 2020-08-09 01:30:20

loqs
Member
Registered: 2014-03-06
Posts: 17,199

Re: building compiler-rt with clang++ fails, building with gnu not, why?

Please post the full output of makepkg in code tags.  Just specifying CC=clang without CXX=clang++ produced a completely different error.

If you did set both https://bugs.gentoo.org/show_bug.cgi?id=636604

Offline

Board footer

Powered by FluxBB