qemu-ios icon indicating copy to clipboard operation
qemu-ios copied to clipboard

Build for iPod1G failed

Open andycode2009 opened this issue 4 months ago • 3 comments

git checkout ipod_touch_1g

device MBP 16inch macOS Sequoia 15.6 AppleSilicon M3 Pro

[1652/2313] Compiling C object libcommon.fa.p/audio_jackaudio.c.o FAILED: [code=1] libcommon.fa.p/audio_jackaudio.c.o cc -Ilibcommon.fa.p -I../dtc/libfdt -I/opt/homebrew/Cellar/pixman/0.46.4/include/pixman-1 -I/opt/homebrew/opt/libpng/include/libpng16 -I/opt/homebrew/opt/jpeg-turbo/include -I/opt/homebrew/Cellar/gnutls/3.8.10/include -I/opt/homebrew/Cellar/nettle/3.10.2/include -I/opt/homebrew/Cellar/libtasn1/4.20.0/include -I/opt/homebrew/Cellar/libidn2/2.3.8/include -I/opt/homebrew/Cellar/p11-kit/0.25.5/include/p11-kit-1 -I/opt/homebrew/include -I/opt/homebrew/include/SDL2 -I/opt/homebrew/Cellar/glib/2.84.3/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/ffi -I/opt/homebrew/Cellar/glib/2.84.3/include/glib-2.0 -I/opt/homebrew/Cellar/glib/2.84.3/lib/glib-2.0/include -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/Cellar/pcre2/10.45/include -I/opt/homebrew/Cellar/glib/2.84.3/include/gio-unix-2.0 -I/opt/homebrew/opt/zstd/include -I/opt/homebrew/Cellar/jack/1.9.22_1/include -I/opt/homebrew/Cellar/libusb/1.0.29/include/libusb-1.0 -I/usr/local/opt/openssl@3/include -fdiagnostics-color=auto -Wall -Winvalid-pch -std=gnu11 -O2 -g -iquote . -iquote /Users/liuzexuan/VmMachine/iPod/qemu -iquote /Users/liuzexuan/VmMachine/iPod/qemu/include -iquote /Users/liuzexuan/VmMachine/iPod/qemu/disas/libvixl -iquote /Users/liuzexuan/VmMachine/iPod/qemu/tcg/aarch64 -DOS_OBJECT_USE_OBJC=0 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv -Wold-style-definition -Wtype-limits -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wempty-body -Wnested-externs -Wendif-labels -Wexpansion-to-defined -Wno-initializer-overrides -Wno-missing-include-dirs -Wno-shift-negative-value -Wno-string-plus-int -Wno-typedef-redefinition -Wno-tautological-type-limit-compare -Wno-psabi -fstack-protector-strong -D_DARWIN_C_SOURCE -DNCURSES_WIDECHAR=1 -D_THREAD_SAFE -Wno-undef -DSTRUCT_IOVEC_DEFINED -MD -MQ libcommon.fa.p/audio_jackaudio.c.o -MF libcommon.fa.p/audio_jackaudio.c.o.d -o libcommon.fa.p/audio_jackaudio.c.o -c ../audio/jackaudio.c ../audio/jackaudio.c:634:33: error: too many arguments to function call, expected 1, have 2 634 | pthread_setname_np(thread, "jack-client"); | ~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/pthread.h:535:5: note: 'pthread_setname_np' declared here 535 | int pthread_setname_np(const char); | ^ ~~~~~~~~~~~ 1 error generated. ninja: build stopped: subcommand failed. make: *** [run-ninja] Error 1

I also try to use this command ../configure --enable-sdl --disable-cocoa --target-list=arm-softmmu --disable-capstone --disable-pie --disable-slirp --extra-cflags=-I/opt/homebrew/opt/openssl@3/include --extra-ldflags='-L/opt/homebrew/opt/openssl@3/lib -lcrypto'

the error still appear

[1869/2530] Compiling C object libcommon.fa.p/audio_jackaudio.c.o FAILED: [code=1] libcommon.fa.p/audio_jackaudio.c.o cc -Ilibcommon.fa.p -I../dtc/libfdt -I/opt/homebrew/Cellar/pixman/0.46.4/include/pixman-1 -I/opt/homebrew/opt/libpng/include/libpng16 -I/opt/homebrew/opt/jpeg-turbo/include -I/opt/homebrew/Cellar/gnutls/3.8.10/include -I/opt/homebrew/Cellar/nettle/3.10.2/include -I/opt/homebrew/Cellar/libtasn1/4.20.0/include -I/opt/homebrew/Cellar/libidn2/2.3.8/include -I/opt/homebrew/Cellar/p11-kit/0.25.5/include/p11-kit-1 -I/opt/homebrew/include -I/opt/homebrew/include/SDL2 -I/opt/homebrew/Cellar/glib/2.84.3/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/ffi -I/opt/homebrew/Cellar/glib/2.84.3/include/glib-2.0 -I/opt/homebrew/Cellar/glib/2.84.3/lib/glib-2.0/include -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/Cellar/pcre2/10.45/include -I/opt/homebrew/Cellar/glib/2.84.3/include/gio-unix-2.0 -I/opt/homebrew/opt/zstd/include -I/opt/homebrew/Cellar/jack/1.9.22_1/include -I/opt/homebrew/Cellar/libusb/1.0.29/include/libusb-1.0 -I/opt/homebrew/opt/openssl@3/include -fdiagnostics-color=auto -Wall -Winvalid-pch -std=gnu11 -O2 -g -iquote . -iquote /Users/liuzexuan/VmMachine/iPod/qemu -iquote /Users/liuzexuan/VmMachine/iPod/qemu/include -iquote /Users/liuzexuan/VmMachine/iPod/qemu/disas/libvixl -iquote /Users/liuzexuan/VmMachine/iPod/qemu/tcg/aarch64 -DOS_OBJECT_USE_OBJC=0 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv -Wold-style-definition -Wtype-limits -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wempty-body -Wnested-externs -Wendif-labels -Wexpansion-to-defined -Wno-initializer-overrides -Wno-missing-include-dirs -Wno-shift-negative-value -Wno-string-plus-int -Wno-typedef-redefinition -Wno-tautological-type-limit-compare -Wno-psabi -fstack-protector-strong -D_DARWIN_C_SOURCE -DNCURSES_WIDECHAR=1 -D_THREAD_SAFE -Wno-undef -DSTRUCT_IOVEC_DEFINED -MD -MQ libcommon.fa.p/audio_jackaudio.c.o -MF libcommon.fa.p/audio_jackaudio.c.o.d -o libcommon.fa.p/audio_jackaudio.c.o -c ../audio/jackaudio.c ../audio/jackaudio.c:634:33: error: too many arguments to function call, expected 1, have 2 634 | pthread_setname_np(thread, "jack-client"); | ~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/pthread.h:535:5: note: 'pthread_setname_np' declared here 535 | int pthread_setname_np(const char); | ^ ~~~~~~~~~~~ 1 error generated. ninja: build stopped: subcommand failed. make: *** [run-ninja] Error 1

andycode2009 avatar Aug 20 '25 03:08 andycode2009

Did you use the specific config commands for Apple Silicon?

gdandsm64fan123 avatar Sep 04 '25 14:09 gdandsm64fan123

I don't found config commands for Apple Silicon , so I changed the command for Intel Mac, may I need an Intel Mac?

andycode2009 avatar Sep 05 '25 02:09 andycode2009

I don't found config commands for Apple Silicon , so I changed the command for Intel Mac, may I need an Intel Mac?

Hey, I think @gdandsm64fan123 is referring to the commands that are on the "How to install iPod Touch 2G" emulator webpage. Indeed, for the commands that Martijn put in his "Emulating an iPod Touch 1st gen", you have to have a Intel Mac. I managed to compile the emulator (on M1 Mac Mini) by adding --disable-werror to the configure command.

theiphoneos1guy avatar Oct 14 '25 16:10 theiphoneos1guy