Opened 10 years ago

Last modified 3 years ago

#45811 assigned defect

gcc49: thread sanitizer is broken

Reported by: akimd (Akim Demaille) Owned by: larryv (Lawrence Velázquez)
Priority: Normal Milestone:
Component: ports Version: 2.3.2
Keywords: Cc: evanmiller (Evan Miller)
Port: gcc49

Description

$ echo "int main(){}" > foo.cc
$ gcc-mp-4.9 -fsanitize=thread foo.cc
Undefined symbols for architecture x86_64:
  "___tsan_init", referenced from:
      __GLOBAL__sub_I_00099_0_foo.cc in cckAoDmM.o
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status

See also #41366.

Change History (3)

comment:1 Changed 10 years ago by d.rohe@…

Hi there,

I also run into this problem with gcc 4.8, gcc 4.9 and also gcc 5. Are there any news on this subject? I just switched from Linux to OSX/Macports and this one is a nasty drawback for code development.

Cheers

comment:2 in reply to:  1 Changed 10 years ago by larryv (Lawrence Velázquez)

Cc: larryv@… removed
Owner: changed from macports-tickets@… to larryv@…
Status: newassigned

Sorry, it doesn’t seem that anyone’s had the time or inclination to look into this yet. I’ll try to investigate soon.

In any case, please note that ThreadSanitizer is not really supported on OS X.

comment:3 Changed 3 years ago by evanmiller (Evan Miller)

Cc: evanmiller added
Note: See TracTickets for help on using tickets.