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

            Bug ID: 371061
           Summary: memcheck/tests/demangle has undefined references with
                    clang
           Product: valgrind
           Version: 3.12 SVN
          Platform: Compiled Sources
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: jsew...@acm.org
          Reporter: austinengl...@gmail.com

clang -Winline -Wall -Wshadow -Wno-long-long -g -fno-stack-protector
-Wno-unused-private-field     -m64    -o demangle demangle.o  
demangle.o: In function `main':
/home/austin/src/valgrind/memcheck/tests/demangle.cpp:25: undefined reference
to `operator new(unsigned long)'
/home/austin/src/valgrind/memcheck/tests/demangle.cpp:27: undefined reference
to `operator new(unsigned long)'
demangle.o: In function `magic<int>::xyzzy(int*)':
/home/austin/src/valgrind/memcheck/tests/demangle.cpp:19: undefined reference
to `operator new(unsigned long)'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Makefile:1917: recipe for target 'demangle' failed
make[5]: *** [demangle] Error 1
make[5]: Leaving directory '/tmp/valgrind-clang/memcheck/tests'

works with:
austin@debian-laptop:/tmp/valgrind-clang$ gcc --version
gcc (Debian 6.2.0-6) 6.2.0 20161010
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

fails with:
austin@debian-laptop:/tmp/valgrind-clang$ clang --version
clang version 3.8.1-12 (tags/RELEASE_381/final)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin

r16070, debian sid.

Reproducible: Always

Steps to Reproduce:
1. ./configure CC=clang CXX=clang
2. make -j8
3. make check

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

Reply via email to