Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling on macOS Sequoia 15.3.1 will fail (OCD-1120) #359

Closed
zetaerre opened this issue Mar 9, 2025 · 2 comments
Closed

Compiling on macOS Sequoia 15.3.1 will fail (OCD-1120) #359

zetaerre opened this issue Mar 9, 2025 · 2 comments

Comments

@zetaerre
Copy link

zetaerre commented Mar 9, 2025

Compiling on macOs will fail with following error:


/Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive
Making all in jimtcl
make[2]: Nothing to be done for all'. restore=: && backupdir=".am$$" && \ am__cwd=pwd&& CDPATH="${ZSH_VERSION+.}:" && cd . && \ rm -rf $backupdir && mkdir $backupdir && \ if (echo makeinfo missing; true --version) >/dev/null 2>&1; then \ for f in doc/openocd.info doc/openocd.info-[0-9] doc/openocd.info-[0-9][0-9] doc/openocd.i[0-9] doc/openocd.i[0-9][0-9]; do \ if test -f $f; then mv $f $backupdir; restore=mv; else :; fi; \ done; \ else :; fi && \ cd "$am__cwd"; \ if echo makeinfo missing; true -I doc -I ./doc \ -o doc/openocd.info ./doc/openocd.texi; \ then \ rc=0; \ CDPATH="${ZSH_VERSION+.}:" && cd .; \ else \ rc=$?; \ CDPATH="${ZSH_VERSION+.}:" && cd . && \ $restore $backupdir/*echo "./doc/openocd.info" | sed 's|[^/]$||'; \ fi; \ rm -rf $backupdir; exit $rc makeinfo missing depbase=echo src/target/espressif/esp32_apptrace.lo | sed 's|[^/]$|.deps/&|;s|.lo$||'`;
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./src -I./src -DPKGDATADIR="/usr/local/share/openocd" -DBINDIR="/usr/local/bin" -I./jimtcl -I./jimtcl -Wall -Wstrict-prototypes -Wformat-security -Wshadow -Wextra -Wno-unused-parameter -Wbad-function-cast -Wcast-align -Wredundant-decls -Wpointer-arith -Wundef -Werror -g -O2 -MT src/target/espressif/esp32_apptrace.lo -MD -MP -MF $depbase.Tpo -c -o src/target/espressif/esp32_apptrace.lo src/target/espressif/esp32_apptrace.c &&
mv -f $depbase.Tpo $depbase.Plo
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -I./src -DPKGDATADIR="/usr/local/share/openocd" -DBINDIR="/usr/local/bin" -I./jimtcl -I./jimtcl -Wall -Wstrict-prototypes -Wformat-security -Wshadow -Wextra -Wno-unused-parameter -Wbad-function-cast -Wcast-align -Wredundant-decls -Wpointer-arith -Wundef -Werror -g -O2 -MT src/target/espressif/esp32_apptrace.lo -MD -MP -MF src/target/espressif/.deps/esp32_apptrace.Tpo -c src/target/espressif/esp32_apptrace.c -o src/target/espressif/esp32_apptrace.o
In file included from src/target/espressif/esp32_apptrace.c:25:
./src/helper/list.h:49:9: error: 'LIST_HEAD' macro redefined [-Werror,-Wmacro-redefined]
49 | #define LIST_HEAD(name)
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/queue.h:465:9: note: previous definition is here
465 | #define LIST_HEAD(name, type)
| ^
1 error generated.
make[2]: *** [src/target/espressif/esp32_apptrace.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

@github-actions github-actions bot changed the title Compiling on macOS Sequoia 15.3.1 will fail Compiling on macOS Sequoia 15.3.1 will fail (OCD-1120) Mar 9, 2025
@erhankur
Copy link
Collaborator

@zetaerre Thank you for reporting the issue. For the same error, there is a fix in the mainline OpenOCD. We will apply that fix to our repo and let you know.

@erhankur
Copy link
Collaborator

@zetaerre Fixed in the master branch. Please try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants