Project

General

Profile

Actions

Bug #3828

closed

Configure fails to link Boost with pthread while using address sanitizer

Added by Eric Newberry about 8 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Build
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:

Description

When one attempts to compile either ndn-cxx or NFD with address sanitizer, the linking with Boost step fails because "-pthread" is not specified in both the CXXFLAGS and LINKFLAGS. According to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69443, this is because the sanitizer provides pthread_create and no other pthread functions, causing waf to detect that no flag is required to use pthreads.

This issue can be fixed by loading the sanitizers waf tool last in wscript.

Presumably, this issue affects ndn-tools as well.

Actions

Also available in: Atom PDF