https://bugs.kde.org/show_bug.cgi?id=338252

--- Comment #28 from Philippe Waroquiers <philippe.waroqui...@skynet.be> ---
(In reply to Philippe Waroquiers from comment #27)
> So, when I have a little bit of time, I will install llvm
> and see if I can make that work.

At least on Ubunty 17.10, with the distro llvm/clang, configuring and
building valgrind does not work properly, even without lto.

Without lto, some c++ regression tests fail to compile (most of this can
be bypassed by adding -std=c++11. Some tests are not compiling as
they seem to depend on gcc internals.

To try lto, some updates have to be done to configure.ac (I will attach the
tentative patch), but then the link fails with:
../coregrind/link_tool_exe_linux 0x58000000 clang     -o memcheck-amd64-linux
-flto -m64 -O2 -finline-functions -g -Wall -Wmissing-prototypes -Wshadow
-Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wcast-align
-Wcast-qual -Wwrite-strings -Wempty-body -Wformat -Wformat-security
-Wignored-qualifiers -fno-stack-protector -fno-strict-aliasing -fno-builtin
-Wno-cast-align -Wno-self-assign -Wno-tautological-compare -fomit-frame-pointer
-O2 -static -nodefaultlibs -nostartfiles -u _start  -m64
memcheck_amd64_linux-mc_leakcheck.o memcheck_amd64_linux-mc_malloc_wrappers.o
memcheck_amd64_linux-mc_main.o memcheck_amd64_linux-mc_main_asm.o
memcheck_amd64_linux-mc_translate.o memcheck_amd64_linux-mc_machine.o
memcheck_amd64_linux-mc_errors.o ../coregrind/libcoregrind-amd64-linux.a
../VEX/libvex-amd64-linux.a -lgcc 
Global is external, but doesn't have external or weak linkage!
i64 ()* @do_syscall_WRK
LLVM ERROR: Broken module found, compilation aborted!
clang: error: linker command failed with exit code 1 (use -v to see invocation)

So, some more work is needed to support llvm, and even more work needed
to support llvm+lto.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to