[llvm-bugs] [Bug 47163] New: compiler-rt cannot be compiled with llvm on arch linux: realpath redefinition
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Aug 13 19:54:18 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=47163
Bug ID: 47163
Summary: compiler-rt cannot be compiled with llvm on arch
linux: realpath redefinition
Product: compiler-rt
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: release blocker
Priority: P
Component: tsan
Assignee: unassignedbugs at nondot.org
Reporter: soloturn at gmail.com
CC: llvm-bugs at lists.llvm.org
am trying to create a swift-lang package for arch linux, with a continuous
build here: https://github.com/soloturn/swift-aur/actions
funny is that on arch linux which first has newest packages, and second, dev
packages do not exist, there is just one package including the developer
version in many cases.
compiler-rt can be built with g++, but using clang++ fails
$ 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'
see here the original bug report towards swift:
https://bugs.swift.org/browse/SR-13082
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200814/bdfa22e7/attachment.html>
More information about the llvm-bugs
mailing list