Re: [cfe-users] Linking error and memory bloating for .so file creation

2019-03-11 Thread Matthew Fernandez via cfe-users
> On Mar 7, 2019, at 00:24, Ankush Sharma via cfe-users > wrote: > > Hi Team, > > During the linking stage for an “.so” file creation, an error message is > being flagged by clang. > ld: error: dummy.so: write: Function not implemented > > I'm not able to make a sense out of this message a

Re: [cfe-users] How do I make CMake use LLD

2019-03-11 Thread Itaru Kitayama via cfe-users
I was just setting the flag for the C++ compiler wrapper, but doing the same for the C compiler seems to work (on ppc64le linking with LLD fails though). On Tue, Mar 5, 2019 at 12:07 AM David Blaikie wrote: > Generally the linker is invoked via the compiler wrapper (eg: "clang x.o > y.o" to prod

[cfe-users] Manipulating the DeclContext

2019-03-11 Thread Connor Kuehl via cfe-users
Hello! I'm looking for some help in understanding how a DeclContext is created within Clang. More specifically, I'm curious to know how and when a DeclContext's members are added so that I can safely manipulate their order. If I understand it correctly, this order is based on a linked list whic

[cfe-users] Linking error and memory bloating for .so file creation

2019-03-11 Thread Ankush Sharma via cfe-users
Hi Team, During the linking stage for an “.so” file creation, an error message is being flagged by clang. *ld: error: dummy.so: write: Function not implemented* I'm not able to make a sense out of this message as it seems different from an "undefined reference" error. There are multiple occu

[cfe-users] Clang7 UBSan + -fvisibility-hidden

2019-03-11 Thread Philipp Berger via cfe-users
Dear all, We are currently investigating a possible undefined behaviour in our program that is flagged by clang7 UBSan in combination with boost::program_option from boost 1.69.0. We have created the following working example that can we compiled and run with clang++ -std=c++17 -fsanitize=undefi