Fixed this problem. You need to replace /B2G/external/busybox files with https://github.com/malkia/busybox-osx files.
On Friday, May 10, 2013 5:51:06 PM UTC+1, Kikyoung wrote: > I have been trying to build and install Firefox OS to Samsung Galaxy Nexus > device on Mac OS X. I have followed the below steps. (Mac OS X 10.7.5) > > > > - Firefox OS build prerequisites > (https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Firefox_OS_build_prerequisites) > > - Preparing for your first Firefox OS build > (https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Preparing_for_your_first_B2G_build) > > > > == > > > curl -fsSL > > https://raw.github.com/mozilla-b2g/B2G/master/scripts/bootstrap-mac.sh | > > bash > > Found Xcode: /Applications/Xcode.app > > Found Mac OS X 10.6 SDK: > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk > > Found git: /usr/bin/git > > Found gpg: /usr/local/bin/gpg > > Found ccache: /usr/local/bin/ccache > > Found yasm: /usr/local/bin/yasm > > Found cmake: /usr/local/bin/cmake > > Found autoconf-2.13: /usr/local/bin/autoconf213 > > Warning: gcc reports version i686-apple-darwin11-llvm-gcc-4.2, will look for > gcc-4.6 > > Found gcc-4.6: /usr/local/bin/gcc-4.6 > > > > Congratulations, you are now ready to start building Boot2Gecko! > > After than, I can do './build.sh gecko' successfully. However, when I run > './build.sh', I had the below error. > > == > > > > == > > B2G/external/busybox/scripts/kconfig/mconf.c: In function ‘exec_conf’: > > B2G/external/busybox/scripts/kconfig/mconf.c:469: error: ‘SIGWINCH’ > undeclared (first use in this function) > > B2G/external/busybox/scripts/kconfig/mconf.c:469: error: (Each undeclared > identifier is reported only once > > B2G/external/busybox/scripts/kconfig/mconf.c:469: error: for each function it > appears in.) > > So added "#define _DARWIN_C_SOURCE 1" to mconf.c according to > mozilla-b2g/android-device-panda#1, after then I have the below error. > > == > > > > What is the problem? is it not possible to build Firefox OS on Mac OS X, > should I use Linux? > > > > Thanks. > > > > == > > target thumb C++: libstagefright <= > frameworks/base/media/libstagefright/AMRWriter.cpp > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN include/applets.h > > target thumb C++: libstagefright <= > frameworks/base/media/libstagefright/AudioPlayer.cpp > > frameworks/base/media/libstagefright/AMRExtractor.cpp: In member function > 'virtual android::status_t android::AMRSource::read(android::MediaBuffer**, > const android::MediaSource::ReadOptions*)': > > frameworks/base/media/libstagefright/AMRExtractor.cpp:262: warning: > comparison between signed and unsigned integer expressions > > target thumb C++: libstagefright <= > frameworks/base/media/libstagefright/AudioSource.cpp > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN include/usage.h > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN applets/Kbuild > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN archival/Kbuild > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN archival/Config.in > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN archival/libarchive/Kbuild > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN console-tools/Kbuild > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN console-tools/Config.in > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN coreutils/Kbuild > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN coreutils/Config.in > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN coreutils/libcoreutils/Kbuild > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN debianutils/Kbuild > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN debianutils/Config.in > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN e2fsprogs/Kbuild > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN e2fsprogs/Config.in > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN e2fsprogs/old_e2fsprogs/Kbuild > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN e2fsprogs/old_e2fsprogs/Config.in > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN e2fsprogs/old_e2fsprogs/blkid/Kbuild > > target thumb C++: libstagefright <= > frameworks/base/media/libstagefright/AwesomePlayer.cpp > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN e2fsprogs/old_e2fsprogs/e2p/Kbuild > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN e2fsprogs/old_e2fsprogs/ext2fs/Kbuild > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN e2fsprogs/old_e2fsprogs/uuid/Kbuild > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN editors/Kbuild > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN editors/Config.in > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN findutils/Kbuild > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN findutils/Config.in > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN init/Kbuild > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN init/Config.in > > target thumb C++: libstagefright <= > frameworks/base/media/libstagefright/CameraSource.cpp > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN libbb/Kbuild > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN libbb/Config.in > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN libpwdgrp/Kbuild > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN loginutils/Kbuild > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN loginutils/Config.in > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN mailutils/Kbuild > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN mailutils/Config.in > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN miscutils/Kbuild > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN miscutils/Config.in > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN modutils/Kbuild > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN modutils/Config.in > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN networking/Kbuild > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN networking/Config.in > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN networking/libiproute/Kbuild > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN networking/udhcp/Kbuild > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN networking/udhcp/Config.in > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN printutils/Kbuild > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN printutils/Config.in > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN procps/Kbuild > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN procps/Config.in > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN runit/Kbuild > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN runit/Config.in > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN scripts/Kbuild > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN selinux/Kbuild > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN selinux/Config.in > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN shell/Kbuild > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN shell/Config.in > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN sysklogd/Kbuild > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN sysklogd/Config.in > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN util-linux/Kbuild > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN util-linux/Config.in > > sed: 1: "/^INSERT$/ { :l; n; p; ...": unexpected EOF (pending }'s) > > GEN util-linux/volume_id/Kbuild > > target thumb C++: libstagefright <= > frameworks/base/media/libstagefright/CameraSourceTimeLapse.cpp > > HOSTCC scripts/kconfig/conf.o > > HOSTCC scripts/kconfig/kxgettext.o > > HOSTCC scripts/kconfig/mconf.o > > target thumb C++: libstagefright <= > frameworks/base/media/libstagefright/VideoSourceDownSampler.cpp > > /Volumes/firefoxos/repository/B2G/external/busybox/scripts/kconfig/mconf.c: > In function ‘main’: > > /Volumes/firefoxos/repository/B2G/external/busybox/scripts/kconfig/mconf.c:1053: > warning: statement with no effect > > /Volumes/firefoxos/repository/B2G/external/busybox/scripts/kconfig/mconf.c:1054: > warning: statement with no effect > > HOSTCC scripts/kconfig/zconf.tab.o > > frameworks/base/media/libstagefright/VideoSourceDownSampler.cpp: In member > function 'void android::VideoSourceDownSampler::downSampleYUVImage(const > android::MediaBuffer&, android::MediaBuffer**) const': > > frameworks/base/media/libstagefright/VideoSourceDownSampler.cpp:90: warning: > 'yuvFormat' may be used uninitialized in this function > > target thumb C++: libstagefright <= > frameworks/base/media/libstagefright/DataSource.cpp > > target thumb C++: libstagefright <= > frameworks/base/media/libstagefright/DRMExtractor.cpp > > target thumb C++: libstagefright <= > frameworks/base/media/libstagefright/ESDS.cpp > > target thumb C++: libstagefright <= > frameworks/base/media/libstagefright/FileSource.cpp > > target thumb C++: libstagefright <= > frameworks/base/media/libstagefright/FLACExtractor.cpp > > target thumb C++: libstagefright <= > frameworks/base/media/libstagefright/HTTPBase.cpp > > target thumb C++: libstagefright <= > frameworks/base/media/libstagefright/JPEGSource.cpp > > target thumb C++: libstagefright <= > frameworks/base/media/libstagefright/MP3Extractor.cpp > > HOSTLD scripts/kconfig/conf > > Config.in:784: 'endmenu' in different file than 'menu' > > libbb/Config.in:7: location of the 'menu' > > shell/Config.in:7: missing end statement for this entry > > selinux/Config.in:7: missing end statement for this entry > > runit/Config.in:7: missing end statement for this entry > > procps/Config.in:7: missing end statement for this entry > > mailutils/Config.in:2: missing end statement for this entry > > printutils/Config.in:7: missing end statement for this entry > > networking/Config.in:7: missing end statement for this entry > > miscutils/Config.in:7: missing end statement for this entry > > util-linux/Config.in:7: missing end statement for this entry > > modutils/Config.in:7: missing end statement for this entry > > e2fsprogs/Config.in:7: missing end statement for this entry > > loginutils/Config.in:7: missing end statement for this entry > > init/Config.in:7: missing end statement for this entry > > findutils/Config.in:7: missing end statement for this entry > > editors/Config.in:7: missing end statement for this entry > > debianutils/Config.in:7: missing end statement for this entry > > console-tools/Config.in:7: missing end statement for this entry > > coreutils/Config.in:7: missing end statement for this entry > > archival/Config.in:7: missing end statement for this entry > > Config.in:12: missing end statement for this entry > > make[3]: *** [android_defconfig] Error 1 > > make[2]: *** [android_defconfig] Error 2 > > make[1]: *** [android_defconfig] Error 2 > > make: *** > [out/target/product/maguro/obj/EXECUTABLES/busybox_intermediates//.config] > Error 2 > > make: *** Waiting for unfinished jobs.... > > > > real 5m54.219s > > user 10m15.479s > > sys 2m11.937s > > > > Build failed! < > > Build with |./build.sh -j1| for better messages > > If all else fails, use |rm -rf objdir-gecko| to clobber gecko and |rm -rf > out| to clobber everything else. _______________________________________________ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g