You are not logged in.
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
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