Open adigandhi opened 11 months ago
I'm not sure anyone here is running Sonoma yet. I'll see if I can get something upgraded and take a look.
I have exactly same error when building another small project after update to sonoma. Maybe it's something in macos
reproduced issue on minimal build example, https://stackoverflow.com/q/77444892/11335766
I don't see this issue on Sonoma 14.6.1, Command Line Tools (i.e. Xcode) 15.3 (building with CC=clang). Unfortunately this brings another issue, CLT15.3 doesn't include m4. I tried export M4=gm4
but Apple's gm4 doesn't accept --gnu
, which Homebrew's automake uses. Fortunately, HB's m4 (M4=/opt/homebrew/opt/m4/bin/m4
) works fine.
I have a further issue, I guess from upstream, with CC=clang
. Doesn't happen with GCC 14.1.0 (aarch64), though I guess it should!
libtool: compile: clang -DHAVE_CONFIG_H -I. -I./src -I./src -DPKGDATADIR=\"/Users/simon/local/share/openocd\" -DBINDIR=\"/Users/simon/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/riscv/batch.lo -MD -MP -MF src/target/riscv/.deps/batch.Tpo -c src/target/riscv/batch.c -o src/target/riscv/batch.o
src/target/riscv/batch.c:194:24: error: cast from 'uint8_t *' (aka 'unsigned char *') to 'uint32_t *' (aka 'unsigned int *') increases required alignment from 1 to 4 [-Werror,-Wcast-align]
uint32_t *data_in = (uint32_t *)batch->data_in;
^~~~~~~~~~~~~~~~~~~~~~~~~~
src/target/riscv/batch.c:243:23: error: cast from 'uint8_t *' (aka 'unsigned char *') to 'uint32_t *' (aka 'unsigned int *') increases required alignment from 1 to 4 [-Werror,-Wcast-align]
uint32_t *data_in = (uint32_t *)batch->data_in;
^~~~~~~~~~~~~~~~~~~~~~~~~~
2 errors generated.
make[2]: *** [src/target/riscv/batch.lo] Error 1
I have a further issue...
@simonjwright See #107
I followed steps from Getting Started with Pi Pico, andhttps://github.com/raspberrypi/openocd/issues/7. Also https://hackaday.io/page/13821-building-openocd-for-picoprobe-on-m1-mac
MacOS Sonoma M1 Max (Mac Studio)
I see this error: