Hey Ryan, I also ran into this problem when trying to build the emulator target today. It looks like a few of the GL tests for the emulator forcefully add /usr/lib/dylib1.o to the link path, which is causing this build error when you have the 10.6 SDK installed (I'm assuming you used the bootstrap script?)
Here's a patch I wrote that fixes the build for me. After the successful build, I verified that FxOS is running correctly in the emulator. Just apply this in the "sdk" directory: === diff --git a/emulator/opengl/tests/translator_tests/GLES_CM/Android.mk b/emulator/opengl/tests/translator_tests/GLES_CM/Android.mk index bce56e3..9f6188c 100644 --- a/emulator/opengl/tests/translator_tests/GLES_CM/Android.mk +++ b/emulator/opengl/tests/translator_tests/GLES_CM/Android.mk @@ -11,7 +11,7 @@ LOCAL_SDL_LDLIBS := $(filter-out %.a %.lib,$(shell $(LOCAL_SDL_CONFIG) --static- ifeq ($(HOST_OS),darwin) # OS X 10.6+ needs to be forced to link dylib to avoid problems # with the dynamic function lookups in SDL 1.2 - LOCAL_SDL_LDLIBS += /usr/lib/dylib1.o + # LOCAL_SDL_LDLIBS += /usr/lib/dylib1.o endif LOCAL_SRC_FILES:= \ diff --git a/emulator/opengl/tests/translator_tests/GLES_V2/Android.mk b/emulator/opengl/tests/translator_tests/GLES_V2/Android.mk index 504530f..dde1949 100644 --- a/emulator/opengl/tests/translator_tests/GLES_V2/Android.mk +++ b/emulator/opengl/tests/translator_tests/GLES_V2/Android.mk @@ -19,7 +19,7 @@ LOCAL_STATIC_LIBRARIES += libSDL libSDLmain ifeq ($(HOST_OS),darwin) # OS X 10.6+ needs to be forced to link dylib to avoid problems # with the dynamic function lookups in SDL 1.2 - LOCAL_LDLIBS += /usr/lib/dylib1.o + # LOCAL_LDLIBS += /usr/lib/dylib1.o $(call emugl-import,libMac_view) endif On Wednesday, November 6, 2013 3:14:44 PM UTC-6, J. Ryan Stinnett wrote: > I am trying to build the emulator (I've tried both "emulator" and > > "emulator-x86") for the first time in a while, but I keep getting errors. > > > > I am using OS X 10.8.5 with Xcode 5.0.1. I believe I have all build > > dependencies and have set things up to use gcc 4.6. > > > > Here's the error I get: > > > > host Executable: triangleCM > > (out/host/darwin-x86/obj/EXECUTABLES/triangleCM_intermediates/triangleCM) > > duplicate symbol __dyld_func_lookup in: > > /usr/lib/crt1.10.5.o > > /usr/lib/dylib1.o > > duplicate symbol dyld_stub_binding_helper in: > > /usr/lib/crt1.10.5.o > > /usr/lib/dylib1.o > > ld: 2 duplicate symbols for architecture i386 > > collect2: ld returned 1 exit status > > make: *** > > [out/host/darwin-x86/obj/EXECUTABLES/triangleCM_intermediates/triangleCM] > > Error 1 > > > > Any ideas would be greatly appreciated! > > > > - Ryan _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
