Re: configure scripts, pthread detection and asan

2016-01-23 Thread Hanno Böck
On Wed, 20 Jan 2016 09:44:27 -0800 Konstantin Serebryany wrote: > On Wed, Jan 20, 2016 at 9:40 AM, Hanno Böck wrote: > > > Okay, so should we open a bug report for gcc? > > It won't hurt. I don't know what the gcc folks think about this, > but once we file a bug we'll know. :) Done that now:

Re: configure scripts, pthread detection and asan

2016-01-20 Thread Yuri Gribov
On Wed, Jan 20, 2016 at 8:44 PM, Konstantin Serebryany wrote: > > > On Wed, Jan 20, 2016 at 9:40 AM, Hanno Böck wrote: >> >> On Wed, 20 Jan 2016 09:14:53 -0800 >> Konstantin Serebryany wrote: >> >> > Are you talking about gcc or clang? >> >> gcc in this case. >> >> > In gcc looks like this does

Re: configure scripts, pthread detection and asan

2016-01-20 Thread Konstantin Serebryany
On Wed, Jan 20, 2016 at 9:40 AM, Hanno Böck wrote: > On Wed, 20 Jan 2016 09:14:53 -0800 > Konstantin Serebryany wrote: > > > Are you talking about gcc or clang? > > gcc in this case. > > > In gcc looks like this does not happen. > > (I'd say this needs to be fixed in gcc, just for compatibility,

Re: configure scripts, pthread detection and asan

2016-01-20 Thread Hanno Böck
On Wed, 20 Jan 2016 09:14:53 -0800 Konstantin Serebryany wrote: > Are you talking about gcc or clang? gcc in this case. > In gcc looks like this does not happen. > (I'd say this needs to be fixed in gcc, just for compatibility, at > least) Okay, so should we open a bug report for gcc? Anyway,

Re: configure scripts, pthread detection and asan

2016-01-20 Thread Konstantin Serebryany
Are you talking about gcc or clang? In clang, the driver adds -lpthread to the linker command. % clang -fsanitize=address ./heap-buffer-overflow.c -v 2>&1 | grep thread --color ...-lpthread -lrt -lm -ldl -lgcc... In gcc looks like this does not happen. (I'd say this needs to be fixed in gcc, jus

Re: configure scripts, pthread detection and asan

2016-01-20 Thread 'Dmitry Vyukov' via address-sanitizer
On Wed, Jan 20, 2016 at 2:22 PM, Hanno Böck wrote: > Hi, > > I stumbled upon an issue that I'm not sure what the best fix is and > wanted to ask people here for opinions. > > There are a couple of packages that have a check in the configure > script that will check for the presence of the pthread_

configure scripts, pthread detection and asan

2016-01-20 Thread Hanno Böck
Hi, I stumbled upon an issue that I'm not sure what the best fix is and wanted to ask people here for opinions. There are a couple of packages that have a check in the configure script that will check for the presence of the pthread_create function. The check works as far as I understand as follo