Opened 7 years ago

Last modified 6 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:
Port: gcc49


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

See also #41366.

Change History (2)

comment:1 Changed 6 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.


comment:2 in reply to:  1 Changed 6 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.

Note: See TracTickets for help on using tickets.