google-code-export / webm

Automatically exported from code.google.com/p/webm
1 stars 0 forks source link

[clang] link fails with rtti enabled #762

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
v1.3.0-2318-g7841721
since:
2dcbf8c Changing webmenc to use libwebm

With -fsanitize=undefined rtti is enabled, a workaround is to use -fno-rtti 
(-fno-sanitize=vptr).

Error:
third_party/libwebm/mkvmuxer.cpp.o:(.data+0xa8): undefined reference to 
`typeinfo for mkvparser::IMkvReader'

$ CC=clang \
CXX=clang++ \
LD=clang++ \
CFLAGS='-fsanitize=undefined -fno-strict-aliasing -fno-omit-frame-pointer 
-fno-optimize-sibling-calls' \
CXXFLAGS='-fsanitize=undefined -fno-omit-frame-pointer 
-fno-optimize-sibling-calls -g' \
LDFLAGS=-fsanitize=undefined \
./configure --enable-debug --disable-install-docs --enable-unit-tests

Original issue reported on code.google.com by jz...@google.com on 12 Apr 2014 at 1:01

GoogleCodeExporter commented 9 years ago

Original comment by renganat...@google.com on 9 Oct 2014 at 10:32