About failing MacOs TB

Stephan Bergmann sbergman at redhat.com
Fri Aug 18 11:37:08 UTC 2017


On 07/30/2017 10:46 AM, julien2412 wrote:
> Noticing failing MacOs TB with:
> 2944          Undefined symbols for architecture x86_64:
> 2945            "___cxa_deleted_virtual", referenced from:
> 2946                vtable for drawinglayer::primitive2d::BorderLine in
> borderlineprimitive2d.o
> 2947  NEXT    ld: symbol(s) not found for architecture x86_64
> 2948  NEXT    clang: error: linker command failed with exit code 1 (use -v
> to see invocation)
> 2949  NEXT
> /Users/tdf/lode/jenkins/workspace/lo_tb_master_mac/drawinglayer/Library_drawinglayer.mk:10:
> recipe for target
> ´/Users/tdf/lode/jenkins/workspace/lo_tb_master_mac/instdir/LibreOfficeDev.app/Contents/Frameworks/libdrawinglayerlo.dylib´
> failed
> 2950  NEXT    make[1]: ***
> [/Users/tdf/lode/jenkins/workspace/lo_tb_master_mac/instdir/LibreOfficeDev.app/Contents/Frameworks/libdrawinglayerlo.dylib]
> Error 1
> 
> I gave a try with MacOs 10.12.6 and last XCode (Apple LLVM version 8.1.0
> (clang-802.0.42)) I could reproduce this.
> This problem is triggered:
> 53  virtual bool operator!=(const BorderLine& rBorderLine) const = delete;
> (see
> https://opengrok.libreoffice.org/xref/core/include/drawinglayer/primitive2d/borderlineprimitive2d.hxx#53)
> 
> Reading about this, I saw
> https://stackoverflow.com/questions/3910083/deleting-virtual-functions-in-c0x
> and https://bugs.llvm.org/show_bug.cgi?id=13684.
> and most particularly the comment 5:
> "... You need to use clang++ to link, not just clang, to link against the
> relevant C++ standard libraries."
> 
> Any thoughts?

bug in LLVM's libc++, <https://reviews.llvm.org/D36870> "[libcxx] Add 
missing __cxa_deleted_virtual"


More information about the LibreOffice mailing list