On macOS 10.13.6, building SIMPLELINK-OPENOCD fails due to a call of a deprecated function in the latest version of libusb 1.0.22.
$ make [...] libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -I./src -I./src/helper -DPKGDATADIR=\"/usr/local/share/openocd\" -DBINDIR=\"/usr/local/bin\" -I./jimtcl -I./jimtcl -isystem /usr/local/Cellar/libusb/1.0.22/include/libusb-1.0 -I/usr/local/Cellar/libusb-compat/0.1.5_1/include -I/usr/local/Cellar/libusb/1.0.22/include/libusb-1.0 -I/usr/local/Cellar/libftdi/1.4/include/libftdi1 -I/usr/local/Cellar/libusb/1.0.22/include/libusb-1.0 -I/usr/local/Cellar/hidapi/0.8.0-rc1/include/hidapi -I./src/jtag/drivers/libjaylink/libjaylink -I./src/jtag/drivers/libjaylink -Wall -Wstrict-prototypes -Wformat-security -Wshadow -Wextra -Wno-unused-parameter -Wbad-function-cast -Wcast-align -Wredundant-decls -Werror -g -O2 -MT src/jtag/drivers/src_jtag_drivers_libocdjtagdrivers_la-xds110.lo -MD -MP -MF src/jtag/drivers/.deps/src_jtag_drivers_libocdjtagdrivers_la-xds110.Tpo -c src/jtag/drivers/xds110.c -o src/jtag/drivers/src_jtag_drivers_libocdjtagdrivers_la-xds110.o
src/jtag/drivers/xds110.c:344:3: error: 'libusb_set_debug' is deprecated [-Werror,-Wdeprecated-declarations] libusb_set_debug(ctx, LIBUSB_LOG_LEVEL_NONE); ^ /usr/local/Cellar/libusb/1.0.22/include/libusb-1.0/libusb.h:1299:1: note: 'libusb_set_debug' has been explicitly marked deprecated here LIBUSB_DEPRECATED_FOR(libusb_set_option) ^ /usr/local/Cellar/libusb/1.0.22/include/libusb-1.0/libusb.h:89:49: note: expanded from macro 'LIBUSB_DEPRECATED_FOR' #define LIBUSB_DEPRECATED_FOR(f) __attribute__((deprecated)) ^
Solution consists to switch to an earlier release of libusb, e.g. 1.0.21.
$ brew info libusb libusb: stable 1.0.22 (bottled), HEAD Library for USB device access https://libusb.info/ /usr/local/Cellar/libusb/1.0.21 (29 files, 510.4KB) Poured from bottle on 2017-01-24 at 14:28:02 /usr/local/Cellar/libusb/1.0.22 (29 files, 514.8KB) * Poured from bottle on 2018-07-25 at 16:12:55 From: github.com/.../libusb.rb ==> Options --with-default-log-level-debug Build with default runtime log level of debug (instead of none) --without-runtime-logging Build without runtime logging functionality --HEAD Install HEAD version $ brew switch libusb 1.0.21 Cleaning /usr/local/Cellar/libusb/1.0.21 Cleaning /usr/local/Cellar/libusb/1.0.22 4 links created for /usr/local/Cellar/libusb/1.0.21 $ brew info libusb libusb: stable 1.0.22 (bottled), HEAD Library for USB device access https://libusb.info/ /usr/local/Cellar/libusb/1.0.21 (29 files, 510.4KB) * Poured from bottle on 2017-01-24 at 14:28:02 /usr/local/Cellar/libusb/1.0.22 (29 files, 514.8KB) Poured from bottle on 2018-07-25 at 16:12:55 From: github.com/.../libusb.rb ==> Options --with-default-log-level-debug Build with default runtime log level of debug (instead of none) --without-runtime-logging Build without runtime logging functionality --HEAD Install HEAD version
I haven't found how to report an issue at the SDO-EMU > OpenOCD repository.