Opened 2 months ago
Last modified 2 months ago
#73618 assigned defect
highway @1.3.0: error: use of undeclared identifier 'pthread_setname_np'; did you mean 'thread_state_t'?
| Reported by: | rmottola (Riccardo) | Owned by: | jmroot (Joshua Root) |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | |
| Keywords: | leopard, haspatch | Cc: | |
| Port: | highway |
Description
it goes directly with building with clang11
In file included from /opt/local/var/macports/build/highway-b1a5586a/work/highway-1.3.0/hwy/examples/profiler_example.cc:19:
/opt/local/var/macports/build/highway-b1a5586a/work/highway-1.3.0/hwy/contrib/thread_pool/thread_pool.h:69:19: error: use of undeclared identifier 'pthread_setname_np'; did you mean 'thread_state_t'?
HWY_ASSERT(0 == pthread_setname_np(buf));
^
/usr/include/mach/thread_status.h:83:20: note: 'thread_state_t' declared here
typedef natural_t *thread_state_t; /* Variable-length array */
^
1 error generated.
make[2]: *** [CMakeFiles/hwy_profiler_example.dir/hwy/examples/profiler_example.cc.o] Error 1
Change History (2)
comment:1 Changed 2 months ago by rmottola (Riccardo)
comment:2 Changed 2 months ago by ryandesign (Ryan Carsten Schmidt)
| Keywords: | haspatch added |
|---|---|
| Owner: | set to jmroot |
| Status: | new → assigned |
| Summary: | highway fails on Leopard → highway @1.3.0: error: use of undeclared identifier 'pthread_setname_np'; did you mean 'thread_state_t'? |
Do you want to submit a pull request with that fix?
Note: See
TracTickets for help on using
tickets.

and this did help