#64514 closed defect (wontfix)
glib2 fails to build for ppc on 10.6.8 (Rosetta): error: 'NSMusicDirectory' undeclared
Reported by: | barracuda156 | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.7.1 |
Keywords: | powerpc snowleopard rosetta | Cc: | |
Port: | glib2 |
Description
[93/1040] /opt/local/bin/gcc-mp-7 -Iglib/libglib-2.0.0.dylib.p -Iglib -I../glib-2.64.6/glib -I. -I../glib-2.64.6 -I/opt/local/include -fdiagnostics-color=always -std=gnu99 -O2 -g -D_GNU_SOURCE -fno-strict-aliasing -DG_ENABLE_DEBUG -Wduplicated-branches -Wimplicit-fallthrough -Wmisleading-indentation -Wstrict-prototypes -Wunused -Wno-unused-parameter -Wno-bad-function-cast -Wno-pedantic -Wno-format-zero-length -Werror=declaration-after-statement -Werror=format=2 -Werror=implicit-function-declaration -Werror=init-self -Werror=missing-include-dirs -Werror=missing-prototypes -Werror=pointer-arith -pipe -Os -fstrict-aliasing -Wno-deprecated-declarations -arch ppc '-DG_LOG_DOMAIN="GLib"' -DGLIB_COMPILATION -fvisibility=hidden -MD -MQ glib/libglib-2.0.0.dylib.p/gthread-posix.c.o -MF glib/libglib-2.0.0.dylib.p/gthread-posix.c.o.d -o glib/libglib-2.0.0.dylib.p/gthread-posix.c.o -c ../glib-2.64.6/glib/gthread-posix.c In file included from ../glib-2.64.6/glib/gthread-posix.c:40:0: ./config.h:350:0: warning: "__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4" redefined #define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 <built-in>: note: this is the location of the previous definition [94/1040] /opt/local/bin/gcc-mp-7 -Iglib/libglib-2.0.0.dylib.p -Iglib -I../glib-2.64.6/glib -I. -I../glib-2.64.6 -I/opt/local/include -fdiagnostics-color=always -std=gnu99 -O2 -g -D_GNU_SOURCE -fno-strict-aliasing -DG_ENABLE_DEBUG -Wduplicated-branches -Wimplicit-fallthrough -Wmisleading-indentation -Wstrict-prototypes -Wunused -Wno-unused-parameter -Wno-bad-function-cast -Wno-pedantic -Wno-format-zero-length -Werror=declaration-after-statement -Werror=format=2 -Werror=implicit-function-declaration -Werror=init-self -Werror=missing-include-dirs -Werror=missing-prototypes -Werror=pointer-arith -pipe -Os -fstrict-aliasing -Wno-deprecated-declarations -arch ppc '-DG_LOG_DOMAIN="GLib"' -DGLIB_COMPILATION -fvisibility=hidden -MD -MQ glib/libglib-2.0.0.dylib.p/gspawn.c.o -MF glib/libglib-2.0.0.dylib.p/gspawn.c.o.d -o glib/libglib-2.0.0.dylib.p/gspawn.c.o -c ../glib-2.64.6/glib/gspawn.c In file included from ../glib-2.64.6/glib/gspawn.c:21:0: ./config.h:350:0: warning: "__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4" redefined #define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 <built-in>: note: this is the location of the previous definition ninja: build stopped: subcommand failed. Command failed: cd "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_glib2/glib2/work/build" && /opt/local/bin/ninja -j4 --verbose -v Exit code: 1 Error: Failed to build glib2: command execution failed Error: See /opt/local/var/macports/logs/_opt_PPCSnowLeopardPorts_devel_glib2/glib2/main.log for details. Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug. Error: Processing of port glib2 failed
Attachments (1)
Change History (6)
Changed 3 years ago by barracuda156
comment:1 Changed 3 years ago by barracuda156
Summary: | glib2 fails to build for ppc on 10.6.8 (Rosetta) → glib2 fails to build for ppc on 10.6.8 (Rosetta): error: 'NSMusicDirectory' undeclared |
---|
comment:2 follow-up: 3 Changed 3 years ago by barracuda156
comment:3 follow-up: 5 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Replying to barracuda156:
UPD: I finally built it after using 10.5 SDK and target with:
macosx_deployment_target 10.5 macosx_sdk_version 10.5
Ok great, then do that.
You're supposed to be able to build for older systems (setting macosx_deployment_target to the oldest version you want to run on) even while using the latest sdk, but that didn't always work correctly back in these early days of sdks, so sometimes using the sdk for the oldest version is better (though of course it means what you build will not be able to use features introduced in newer sdks).
comment:4 Changed 3 years ago by kencu (Ken)
Keywords: | snowleopard rosetta added |
---|
comment:5 Changed 3 years ago by barracuda156
Replying to ryandesign:
Replying to barracuda156:
UPD: I finally built it after using 10.5 SDK and target with:
macosx_deployment_target 10.5 macosx_sdk_version 10.5Ok great, then do that.
You're supposed to be able to build for older systems (setting macosx_deployment_target to the oldest version you want to run on) even while using the latest sdk, but that didn't always work correctly back in these early days of sdks, so sometimes using the sdk for the oldest version is better (though of course it means what you build will not be able to use features introduced in newer sdks).
Indeed, I could try changing deployment target first and resort to changing SDK if the first fails. Thank you.
UPD: I finally built it after using 10.5 SDK and target with:
Probably should build if
-isysroot/Developer/SDKs/MacOSX10.5.sdk
is added to CFLAGS and CXXFLAGS in port file (instead of changing Macports global settings).