Skip to content

Instantly share code, notes, and snippets.

@andoriyu
Created May 5, 2011 06:54
Show Gist options
  • Select an option

  • Save andoriyu/956655 to your computer and use it in GitHub Desktop.

Select an option

Save andoriyu/956655 to your computer and use it in GitHub Desktop.
Failed to build
Script started on Wed May 4 23:49:32 2011
bash-3.2$ ./bucouchdbx-core-builder.sh
+ '[' -z '' ']'
+ COUCHDB_VERSION=1.0.3
+ '[' -z '' ']'
+ COUCHDB_SVNPATH=tags/1.0.3
+ '[' -z '' ']'
+ ERLANG_VERSION=R14B02
+ MAKE_OPTS=-j4
+ DIRS='src dist'
++ pwd
+ WORKDIR=/Users/andoriyu/Developing/MacOSX/couchdbx-core
+ ERLANGSRCDIR=erlang_R14B02
+ ERLANGDISTDIR=erlang_R14B02
+ COUCHDBSRCDIR=couchdb_1.0.3
+ COUCHDBDISTDIR=couchdb_1.0.3
+ create_dirs
+ mkdir -p src dist
+ erlang
+ erlang_download
+ '[' '!' -e .erlang-R14B02-downloaded ']'
+ erlang_install
+ '[' '!' -e .erlang-R14B02-installed ']'
+ cd src/erlang_R14B02
+ ./configure --prefix=/Users/andoriyu/Developing/MacOSX/couchdbx-core/dist/erlang_R14B02 --enable-hipe --enable-dynamic-ssl-lib --with-ssl=/usr --without-java
Ignoring the --cache-file argument since it can cause the system to be erroneously configured
Disabling caching
checking build system type... i386-apple-darwin10.7.0
checking host system type... i386-apple-darwin10.7.0
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for ld... ld
checking for GNU make... yes (make)
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for ranlib... ranlib
checking ERTS version... 5.8.3
checking OTP release... R14B02
configure: creating ./config.status
config.status: creating Makefile
config.status: creating make/emd2exml
configure: configuring in lib
configure: running /bin/sh '/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/lib/configure' --prefix=/Users/andoriyu/Developing/MacOSX/couchdbx-core/dist/erlang_R14B02 '--prefix=/Users/andoriyu/Developing/MacOSX/couchdbx-core/dist/erlang_R14B02' '--enable-hipe' '--enable-dynamic-ssl-lib' '--with-ssl=/usr' '--without-java' --cache-file=/dev/null --srcdir=/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/lib
configure: creating ./config.status
configure: configuring in snmp/.
configure: running /bin/sh '/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/lib/snmp/./configure' --prefix=/Users/andoriyu/Developing/MacOSX/couchdbx-core/dist/erlang_R14B02 '--prefix=/Users/andoriyu/Developing/MacOSX/couchdbx-core/dist/erlang_R14B02' '--enable-hipe' '--enable-dynamic-ssl-lib' '--with-ssl=/usr' '--without-java' '--cache-file=/dev/null' '--srcdir=/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/lib' --cache-file=/dev/null --srcdir=/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/lib/snmp/.
checking build system type... i386-apple-darwin10.7.0
checking host system type... i386-apple-darwin10.7.0
checking for perl... perl
configure: creating ./config.status
config.status: creating mibs/Makefile
configure: configuring in common_test/.
configure: running /bin/sh '/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/lib/common_test/./configure' --prefix=/Users/andoriyu/Developing/MacOSX/couchdbx-core/dist/erlang_R14B02 '--prefix=/Users/andoriyu/Developing/MacOSX/couchdbx-core/dist/erlang_R14B02' '--enable-hipe' '--enable-dynamic-ssl-lib' '--with-ssl=/usr' '--without-java' '--cache-file=/dev/null' '--srcdir=/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/lib' --cache-file=/dev/null --srcdir=/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/lib/common_test/.
checking build system type... i386-apple-darwin10.7.0
checking host system type... i386-apple-darwin10.7.0
configure: creating ./config.status
config.status: creating priv/i386-apple-darwin10.7.0/Makefile
configure: configuring in erl_interface/.
configure: running /bin/sh '/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/lib/erl_interface/./configure' --prefix=/Users/andoriyu/Developing/MacOSX/couchdbx-core/dist/erlang_R14B02 '--prefix=/Users/andoriyu/Developing/MacOSX/couchdbx-core/dist/erlang_R14B02' '--enable-hipe' '--enable-dynamic-ssl-lib' '--with-ssl=/usr' '--without-java' '--cache-file=/dev/null' '--srcdir=/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/lib' --cache-file=/dev/null --srcdir=/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/lib/erl_interface/.
checking build system type... i386-apple-darwin10.7.0
checking host system type... i386-apple-darwin10.7.0
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for ranlib... ranlib
checking for ld.sh... no
checking for ld... ld
checking for egrep... grep -E
checking for ANSI C header files... rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for short... yes
checking size of short... 2
checking for int... yes
checking size of int... 4
checking for long... yes
checking size of long... 4
checking for void *... yes
checking size of void *... 4
checking for long long... yes
checking size of long long... 8
checking for ar... ar
checking for a BSD-compatible install... /usr/bin/install -c
checking how to create a directory including parents... /usr/bin/install -c -d
checking for gethostbyname in -lnsl... no
checking for getpeername in -lsocket... no
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking malloc.h usability... no
checking malloc.h presence... no
checking for malloc.h... no
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for sys/types.h... (cached) yes
checking for uid_t in sys/types.h... rm: conftest.dSYM: is a directory
yes
checking for pid_t... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for socklen_t usability... yes
checking for working alloca.h... yes
checking for alloca... yes
checking whether gcc needs -traditional... rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
no
checking for working memcmp... yes
checking for dup2... yes
checking for gethostbyaddr... yes
checking for gethostbyname... yes
checking for gethostbyaddr_r... no
checking for gethostbyname_r... no
checking for gethostname... yes
checking for writev... yes
checking for gethrtime... no
checking for gettimeofday... yes
checking for inet_ntoa... yes
checking for memchr... yes
checking for memmove... yes
checking for memset... yes
checking for select... yes
checking for socket... yes
checking for strchr... yes
checking for strerror... yes
checking for strrchr... yes
checking for strstr... yes
checking for uname... yes
checking for res_gethostbyname... no
checking for res_gethostbyname in -lresolv... no
checking for clock_gettime... no
checking for clock_gettime in -lrt... no
checking for mixed cygwin and native VC++ environment... no
checking for mixed cygwin and native MinGW environment... no
checking if we mix cygwin with any native compiler... no
checking for native win32 threads... no
checking for pthread_create in -lpthread... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking pthread/mit/pthread.h usability... no
checking pthread/mit/pthread.h presence... no
checking for pthread/mit/pthread.h... no
configure: creating ./config.status
config.status: creating src/i386-apple-darwin10.7.0/Makefile
config.status: creating src/i386-apple-darwin10.7.0/eidefs.mk
config.status: creating src/i386-apple-darwin10.7.0/config.h
configure: configuring in gs/.
configure: running /bin/sh '/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/lib/gs/./configure' --prefix=/Users/andoriyu/Developing/MacOSX/couchdbx-core/dist/erlang_R14B02 '--prefix=/Users/andoriyu/Developing/MacOSX/couchdbx-core/dist/erlang_R14B02' '--enable-hipe' '--enable-dynamic-ssl-lib' '--with-ssl=/usr' '--without-java' '--cache-file=/dev/null' '--srcdir=/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/lib' --cache-file=/dev/null --srcdir=/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/lib/gs/.
checking build system type... i386-apple-darwin10.7.0
checking host system type... i386-apple-darwin10.7.0
checking for prebuilt tcl/tk in tcl/binaries/i386_darwin10.tar.gz... not found
configure: creating ./config.status
config.status: creating tcl/i386-apple-darwin10.7.0/Makefile
config.status: creating tcl/win32/Makefile
configure: configuring in megaco/.
configure: running /bin/sh '/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/lib/megaco/./configure' --prefix=/Users/andoriyu/Developing/MacOSX/couchdbx-core/dist/erlang_R14B02 '--prefix=/Users/andoriyu/Developing/MacOSX/couchdbx-core/dist/erlang_R14B02' '--enable-hipe' '--enable-dynamic-ssl-lib' '--with-ssl=/usr' '--without-java' '--cache-file=/dev/null' '--srcdir=/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/lib' --cache-file=/dev/null --srcdir=/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/lib/megaco/.
checking build system type... i386-apple-darwin10.7.0
checking host system type... i386-apple-darwin10.7.0
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for reentrant capable flex... yes
checking for usable Dynamic Erlang Driver configuration... yes
checking for perl... perl
configure: creating ./config.status
config.status: creating src/flex/i386-apple-darwin10.7.0/Makefile
configure: configuring in odbc/.
configure: running /bin/sh '/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/lib/odbc/./configure' --prefix=/Users/andoriyu/Developing/MacOSX/couchdbx-core/dist/erlang_R14B02 '--prefix=/Users/andoriyu/Developing/MacOSX/couchdbx-core/dist/erlang_R14B02' '--enable-hipe' '--enable-dynamic-ssl-lib' '--with-ssl=/usr' '--without-java' '--cache-file=/dev/null' '--srcdir=/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/lib' --cache-file=/dev/null --srcdir=/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/lib/odbc/.
checking build system type... i386-apple-darwin10.7.0
checking host system type... i386-apple-darwin10.7.0
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for mixed cygwin and native VC++ environment... no
checking whether make sets $(MAKE)... yes
checking for ld.sh... no
checking for ld... ld
checking for connect... yes
checking for gethostbyname... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking winsock2.h usability... no
checking winsock2.h presence... no
checking for winsock2.h... no
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for struct sockaddr_in6.sin6_addr... yes
checking for memset... yes
checking for socket... yes
checking for native win32 threads... no
checking for pthread_create in -lpthread... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking pthread/mit/pthread.h usability... no
checking pthread/mit/pthread.h presence... no
checking for pthread/mit/pthread.h... no
/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/lib/odbc/./configure: line 5103: -L/usr/lib: No such file or directory
checking for SQLAllocHandle in -liodbc... yes
configure: creating ./config.status
config.status: creating c_src/i386-apple-darwin10.7.0/Makefile
configure: configuring in wx/.
configure: running /bin/sh '/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/lib/wx/./configure' --prefix=/Users/andoriyu/Developing/MacOSX/couchdbx-core/dist/erlang_R14B02 '--prefix=/Users/andoriyu/Developing/MacOSX/couchdbx-core/dist/erlang_R14B02' '--enable-hipe' '--enable-dynamic-ssl-lib' '--with-ssl=/usr' '--without-java' '--cache-file=/dev/null' '--srcdir=/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/lib' --cache-file=/dev/null --srcdir=/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/lib/wx/.
checking build system type... i386-apple-darwin10.7.0
checking host system type... i386-apple-darwin10.7.0
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
rm: conftest.dSYM: is a directory
checking for ranlib... ranlib
checking how to run the C preprocessor... gcc -E
configure: Building for darwin10.7.0
checking for mixed cygwin and native VC++ environment... no
checking for mixed cygwin and native MinGW environment... no
checking if we mix cygwin with any native compiler... no
checking for egrep... grep -E
checking for ANSI C header files... rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for void *... yes
checking size of void *... 4
checking GL/gl.h usability... no
checking GL/gl.h presence... no
checking for GL/gl.h... no
checking OpenGL/gl.h usability... yes
checking OpenGL/gl.h presence... yes
checking for OpenGL/gl.h... yes
checking for debug build of wxWidgets... checking for wx-config... /usr/bin/wx-config
checking for wxWidgets version >= 2.8.4 (--unicode --debug=yes)... yes (version 2.8.8)
checking for wxWidgets static library... no
checking for standard build of wxWidgets... checking for wx-config... (cached) /usr/bin/wx-config
checking for wxWidgets version >= 2.8.4 (--unicode --debug=no)... no
checking if wxwidgets have opengl support... yes
checking for GLintptr... yes
checking for GLintptrARB... yes
checking for GLchar... yes
checking for GLcharARB... yes
checking for GLhalfARB... yes
checking for GLint64EXT... no
checking GLU Callbacks uses Tiger Style... no
checking for wx/stc/stc.h... yes
checking if we can link wxwidgets programs... yes
configure: creating i386-apple-darwin10.7.0/config.status
config.status: creating config.mk
config.status: creating c_src/Makefile
configure: configuring in erts
configure: running /bin/sh '/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/configure' --prefix=/Users/andoriyu/Developing/MacOSX/couchdbx-core/dist/erlang_R14B02 '--prefix=/Users/andoriyu/Developing/MacOSX/couchdbx-core/dist/erlang_R14B02' '--enable-hipe' '--enable-dynamic-ssl-lib' '--with-ssl=/usr' '--without-java' --cache-file=/dev/null --srcdir=/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts
checking build system type... i386-apple-darwin10.7.0
checking host system type... i386-apple-darwin10.7.0
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for library containing strerror... none required
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking for mixed cygwin and native VC++ environment... no
checking for mixed cygwin and native MinGW environment... no
checking if we mix cygwin with any native compiler... no
checking for getconf... getconf
checking for large file support CFLAGS... failed
configure: WARNING: Check for large file support flags failed; getconf failed
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for void *... yes
checking size of void *... 4
checking whether compilation mode forces ARCH adjustment... no
checking if VM has to be linked with Carbon framework... yes
checking if we are building a halfword emulator (32bit heap on 64bit machine)... no
checking how to run the C preprocessor... gcc -E
checking for ranlib... ranlib
checking for bison... bison -y
checking for perl5... no
checking for perl... /usr/bin/perl
checking whether ln -s works... yes
checking for ar... ar
checking for rm... /bin/rm
checking for mkdir... /bin/mkdir
checking for xsltproc... xsltproc
checking for fop... no
configure: WARNING: No 'fop' command found: going to generate placeholder PDF files
checking for a BSD-compatible install... /usr/bin/install -c
checking how to create a directory including parents... /usr/bin/install -c -d
checking for extra flags needed to export symbols... none
none
checking for sin in -lm... yes
checking for dlopen in -ldl... yes
checking for main in -linet... no
checking for openpty in -lutil... yes
checking for native win32 threads... no
checking for pthread_create in -lpthread... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking pthread/mit/pthread.h usability... no
checking pthread/mit/pthread.h presence... no
checking for pthread/mit/pthread.h... no
checking for kstat_open in -lkstat... no
checking for pthread.h... (cached) yes
checking for pthread/mit/pthread.h... (cached) no
checking sched.h usability... yes
checking sched.h presence... yes
checking for sched.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for pthread_spin_lock... no
checking for sched_yield... yes
checking whether sched_yield() returns an int... yes
checking for pthread_yield... no
checking for pthread_rwlock_init... yes
checking for pthread_rwlockattr_setkind_np... no
checking for pthread_attr_setguardsize... yes
checking for Linux futexes... no
checking for GCC atomic operations... yes
checking for a usable libatomic_ops implementation... no
checking whether default stack size should be modified... no
checking for void *... (cached) yes
checking size of void *... (cached) 4
checking for int... yes
checking size of int... 4
checking for long... yes
checking size of long... 4
checking for long long... yes
checking size of long long... 8
checking for __int64... no
checking size of __int64... 0
checking whether byte ordering is bigendian... no
checking whether pre pentium 4 compatibility should forced... no
checking whether an emulator with smp support should be built... yes
checking for posix_fadvise... no
checking whether the emulator should use threads... yes; thread support required and therefore forced
checking whether lock checking should be enabled... no
checking whether lock counters should be enabled... no
checking whether the child waiter thread should be enabled... yes on SMP build, but not on non-SMP build
checking for kstat_open in -lkstat... (cached) no
checking for tgetent in -lncurses... yes
configure: Using own zlib source
checking for connect... yes
checking for gethostbyname... yes
checking for gethostbyname_r... no
checking for working posix_openpt implementation... yes
checking if netdb.h requires netinet/in.h to be previously included... rm: conftest.dSYM: is a directory
yes
checking for socklen_t... yes
checking for h_errno declaration in netdb.h... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking whether time.h and sys/time.h may both be included... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for unistd.h... (cached) yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking ieeefp.h usability... no
checking ieeefp.h presence... no
checking for ieeefp.h... no
checking for sys/types.h... (cached) yes
checking sys/stropts.h usability... no
checking sys/stropts.h presence... no
checking for sys/stropts.h... no
checking sys/sysctl.h usability... yes
checking sys/sysctl.h presence... yes
checking for sys/sysctl.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking for sys/time.h... (cached) yes
checking sys/uio.h usability... yes
checking sys/uio.h presence... yes
checking for sys/uio.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/sockio.h usability... yes
checking sys/sockio.h presence... yes
checking for sys/sockio.h... yes
checking sys/socketio.h usability... no
checking sys/socketio.h presence... no
checking for sys/socketio.h... no
checking net/errno.h usability... no
checking net/errno.h presence... no
checking for net/errno.h... no
checking malloc.h usability... no
checking malloc.h presence... no
checking for malloc.h... no
checking mach-o/dyld.h usability... yes
checking mach-o/dyld.h presence... yes
checking for mach-o/dyld.h... yes
checking arpa/nameser.h usability... yes
checking arpa/nameser.h presence... yes
checking for arpa/nameser.h... yes
checking pty.h usability... no
checking pty.h presence... no
checking for pty.h... no
checking util.h usability... yes
checking util.h presence... yes
checking for util.h... yes
checking utmp.h usability... yes
checking utmp.h presence... yes
checking for utmp.h... yes
checking langinfo.h usability... yes
checking langinfo.h presence... yes
checking for langinfo.h... yes
checking poll.h usability... yes
checking poll.h presence... yes
checking for poll.h... yes
checking sdkddkver.h usability... no
checking sdkddkver.h presence... no
checking for sdkddkver.h... no
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking whether getrlimit is declared... yes
checking whether setrlimit is declared... yes
checking whether RLIMIT_STACK is declared... yes
checking sys/event.h usability... yes
checking sys/event.h presence... yes
checking for sys/event.h... yes
checking sys/epoll.h usability... no
checking sys/epoll.h presence... no
checking for sys/epoll.h... no
checking sys/devpoll.h usability... no
checking sys/devpoll.h presence... no
checking for sys/devpoll.h... no
checking valgrind/valgrind.h usability... no
checking valgrind/valgrind.h presence... no
checking for valgrind/valgrind.h... no
checking for SO_BSDCOMPAT declaration... no
checking for INADDR_LOOPBACK in netinet/in.h... yes
checking for sys_errlist declaration in stdio.h or errno.h... yes
checking if windows.h includes winsock2.h... no
checking for an ANSI C-conforming const... yes
checking return type of signal handlers... void
checking for off_t... yes
checking for pid_t... yes
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking whether struct sockaddr has sa_len field... yes
checking for struct exception (and matherr function)... no
checking for char... yes
checking size of char... 1
checking for short... yes
checking size of short... 2
checking for int... (cached) yes
checking size of int... (cached) 4
checking for long... (cached) yes
checking size of long... (cached) 4
checking for void *... (cached) yes
checking size of void *... (cached) 4
checking for long long... (cached) yes
checking size of long long... (cached) 8
checking for size_t... (cached) yes
checking size of size_t... 4
checking for off_t... (cached) yes
checking size of off_t... 8
checking if we should add -fno-tree-copyrename to CFLAGS for computed gotos to work properly... no
checking for broken gcc-4.3.0 compiler... no
checking whether byte ordering is bigendian... (cached) no
checking windows.h usability... no
checking windows.h presence... no
checking for windows.h... no
checking winsock2.h usability... no
checking winsock2.h presence... no
checking for winsock2.h... no
checking for ws2tcpip.h... no
checking for getaddrinfo... yes
checking whether getaddrinfo accepts enough flags... yes
checking for getnameinfo... yes
checking for getipnodebyname... yes
checking for getipnodebyaddr... yes
checking for gethostbyname2... yes
checking for ieee_handler... no
checking for fpsetmask... no
checking for finite... yes
checking for isnan... yes
checking for isinf... yes
checking for res_gethostbyname... no
checking for dlopen... yes
checking for pread... yes
checking for pwrite... yes
checking for writev... yes
checking for memmove... yes
checking for strerror... yes
checking for strerror_r... yes
checking for strncasecmp... yes
checking for gethrtime... no
checking for localtime_r... yes
checking for gmtime_r... yes
checking for mmap... yes
checking for mremap... no
checking for memcpy... yes
checking for mallopt... no
checking for sbrk... yes
checking for _sbrk... no
checking for __sbrk... no
checking for brk... yes
checking for _brk... no
checking for __brk... no
checking for flockfile... yes
checking for fstat... yes
checking for strlcpy... yes
checking for strlcat... yes
checking for setsid... yes
checking for posix2time... yes
checking for setlocale... yes
checking for nl_langinfo... yes
checking for poll... yes
checking whether posix2time is declared... yes
checking for function prototypes... yes
checking whether setvbuf arguments are reversed... no
checking if vfork is known to hang multithreaded applications... no
checking for unistd.h... (cached) yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for vprintf... yes
checking for _doprnt... no
checking for conflicting declaration of fread... yes
checking for putc_unlocked... yes
checking for fwrite_unlocked... no
checking for openpty... yes
checking for fdatasync... yes
checking for library containing fdatasync... none required
checking net/if_dl.h usability... yes
checking net/if_dl.h presence... yes
checking for net/if_dl.h... yes
checking ifaddrs.h usability... yes
checking ifaddrs.h presence... yes
checking for ifaddrs.h... yes
checking netpacket/packet.h usability... no
checking netpacket/packet.h presence... no
checking for netpacket/packet.h... no
checking for getifaddrs... yes
checking for sched_getaffinity/sched_setaffinity... no
checking for pset functionality... no
checking for processor_bind functionality... no
checking for cpuset_getaffinity/cpuset_setaffinity... no
checking for 'end' symbol... no
checking for '_end' symbol... no
checking if __after_morecore_hook can track malloc()s core memory use... no
checking types of sbrk()s return value and argument... void *,int
checking types of brk()s return value and argument... void *,const void *
checking if sbrk()/brk() wrappers can track malloc()s core memory use... no
checking for IP version 6 support... yes
checking for multicast support... rm: conftest.dSYM: is a directory
yes
checking how to correct for time adjustments... none
checking if gethrvtime works and how to use it... not working
checking if clock_gettime can be used to get process CPU time... no
checking for m4... m4
checking For modern (leopard) style mcontext_t... yes
checking for unreliable floating point execptions... reliable
checking whether to redefine FD_SETSIZE... no
checking whether a hybrid heap emulator should be built... yes; default on this platform
checking for vperfctr_info in -lperfctr... no
checking for working poll()... no; non-existing, broken, or based on select()
checking whether kqueue() fd can be select()ed on... yes
checking whether kernel poll support should be enabled... yes; kqueue
checking whether putenv() stores a copy of the key-value pair... no
checking for ld... gcc
checking for compiler flags for loadable drivers... -m32 -g -O2 -I/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/i386-apple-darwin10.7.0 -no-cpp-precomp -D_XOPEN_SOURCE -fPIC -fno-common
checking for linker for loadable drivers... gcc
checking for linker flags for loadable drivers... -m32 -bundle -flat_namespace -undefined suppress
checking for 'runtime library path' linker flag... not found
checking for a compiler that handles jumptables... gcc
checking for static ZLib to be used by SSL in standard locations... no
checking for OpenSSL kerberos 5 support... no
rm: conftest.dSYM: is a directory
checking for kstat_open in -lkstat... (cached) no
checking for javac.sh... no
checking for javac... javac
checking for JDK version 1.5... yes
checking for c++... c++
configure: creating ./config.status
config.status: creating emulator/i386-apple-darwin10.7.0/Makefile
config.status: creating emulator/zlib/i386-apple-darwin10.7.0/Makefile
config.status: creating emulator/pcre/i386-apple-darwin10.7.0/Makefile
config.status: creating epmd/src/i386-apple-darwin10.7.0/Makefile
config.status: creating etc/common/i386-apple-darwin10.7.0/Makefile
config.status: creating include/internal/i386-apple-darwin10.7.0/ethread.mk
config.status: creating include/internal/i386-apple-darwin10.7.0/erts_internal.mk
config.status: creating lib_src/i386-apple-darwin10.7.0/Makefile
config.status: creating Makefile
config.status: creating ../make/i386-apple-darwin10.7.0/otp.mk
config.status: creating ../make/i386-apple-darwin10.7.0/otp_ded.mk
config.status: creating ../lib/ic/c_src/i386-apple-darwin10.7.0/Makefile
config.status: creating ../lib/os_mon/c_src/i386-apple-darwin10.7.0/Makefile
config.status: creating ../lib/ssl/c_src/i386-apple-darwin10.7.0/Makefile
config.status: creating ../lib/crypto/c_src/i386-apple-darwin10.7.0/Makefile
config.status: creating ../lib/orber/c_src/i386-apple-darwin10.7.0/Makefile
config.status: creating ../lib/runtime_tools/c_src/i386-apple-darwin10.7.0/Makefile
config.status: creating ../lib/tools/c_src/i386-apple-darwin10.7.0/Makefile
config.status: creating i386-apple-darwin10.7.0/config.h
config.status: creating include/internal/i386-apple-darwin10.7.0/ethread_header_config.h
config.status: creating include/i386-apple-darwin10.7.0/erl_int_sizes_config.h
*********************************************************************
********************** APPLICATIONS DISABLED **********************
*********************************************************************
wx :
*********************************************************************
*********************************************************************
********************** DOCUMENTATION INFORMATION ******************
*********************************************************************
documentation :
fop is missing.
Using fakefop to generate placeholder PDF files.
*********************************************************************
+ touch lib/wx/SKIP
+ make
test X"$ERTS_SKIP_DEPEND" = X"true" || (cd erts/emulator && ERL_TOP=/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02 make generate depend)
make -f i386-apple-darwin10.7.0/Makefile generate
/bin/mkdir -p i386-apple-darwin10.7.0/opt/plain
/bin/mkdir -p obj/i386-apple-darwin10.7.0/opt/plain
/bin/mkdir -p pcre/obj/i386-apple-darwin10.7.0/opt
/bin/mkdir -p zlib/obj/i386-apple-darwin10.7.0/opt
LANG=C /usr/bin/perl utils/beam_makeops \
-wordsize 32 \
-outdir i386-apple-darwin10.7.0/opt/plain \
-emulator /Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/lib/compiler/src/genop.tab beam/ops.tab hipe/hipe_ops.tab
LANG=C /usr/bin/perl utils/make_tables -src i386-apple-darwin10.7.0 -include i386-apple-darwin10.7.0\
beam/atom.names beam/bif.tab hipe/hipe_bif0.tab hipe/hipe_bif1.tab hipe/hipe_bif2.tab hipe/hipe_x86.tab
LANG=C /usr/bin/perl utils/make_version -o i386-apple-darwin10.7.0/erl_version.h R14B02 5.8.3 i386-apple-darwin10.7.0
LANG=C /usr/bin/perl utils/make_driver_tab -o i386-apple-darwin10.7.0/opt/plain/driver_tab.c obj/i386-apple-darwin10.7.0/opt/plain/efile_drv.o obj/i386-apple-darwin10.7.0/opt/plain/inet_drv.o obj/i386-apple-darwin10.7.0/opt/plain/zlib_drv.o obj/i386-apple-darwin10.7.0/opt/plain/ram_file_drv.o obj/i386-apple-darwin10.7.0/opt/plain/ttsl_drv.o
LANG=C /usr/bin/perl utils/make_alloc_types -src beam/erl_alloc.types -dst i386-apple-darwin10.7.0/opt/plain/erl_alloc_types.h threads hipe nofrag unix
LANG=C /usr/bin/perl utils/make_preload -old /Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/preloaded/ebin/otp_ring0.beam /Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/preloaded/ebin/init.beam /Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/preloaded/ebin/prim_inet.beam /Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/preloaded/ebin/prim_file.beam /Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/preloaded/ebin/zlib.beam /Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/preloaded/ebin/prim_zip.beam /Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/preloaded/ebin/erl_prim_loader.beam /Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/preloaded/ebin/erlang.beam > i386-apple-darwin10.7.0/preload.c
m4 -DTARGET=i386-apple-darwin10.7.0 -DOPSYS=darwin -DARCH=x86 hipe/hipe_x86_asm.m4 > i386-apple-darwin10.7.0/opt/plain/hipe_x86_asm.h
m4 -DTARGET=i386-apple-darwin10.7.0 -DOPSYS=darwin -DARCH=x86 hipe/hipe_amd64_asm.m4 > i386-apple-darwin10.7.0/opt/plain/hipe_amd64_asm.h
m4 -DTARGET=i386-apple-darwin10.7.0 -DOPSYS=darwin -DARCH=x86 hipe/hipe_sparc_asm.m4 > i386-apple-darwin10.7.0/opt/plain/hipe_sparc_asm.h
m4 -DTARGET=i386-apple-darwin10.7.0 -DOPSYS=darwin -DARCH=x86 hipe/hipe_ppc_asm.m4 > i386-apple-darwin10.7.0/opt/plain/hipe_ppc_asm.h
m4 -DTARGET=i386-apple-darwin10.7.0 -DOPSYS=darwin -DARCH=x86 hipe/hipe_arm_asm.m4 > i386-apple-darwin10.7.0/opt/plain/hipe_arm_asm.h
gcc -mdynamic-no-pic -m32 -g -O3 -I/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/i386-apple-darwin10.7.0 -no-cpp-precomp -D_XOPEN_SOURCE -DHAVE_CONFIG_H -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS -Ii386-apple-darwin10.7.0/opt/plain -Ibeam -Isys/unix -Isys/common -Ii386-apple-darwin10.7.0 -Izlib -Ipcre -Ihipe -I../include -I../include/i386-apple-darwin10.7.0 -I../include/internal -I../include/internal/i386-apple-darwin10.7.0 -c hipe/hipe_mkliterals.c -o obj/i386-apple-darwin10.7.0/opt/plain/hipe_mkliterals.o
gcc -mdynamic-no-pic -m32 -g -O2 -I/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/i386-apple-darwin10.7.0 -no-cpp-precomp -D_XOPEN_SOURCE -DHAVE_CONFIG_H -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS -Ii386-apple-darwin10.7.0/opt/plain -Ibeam -Isys/unix -Isys/common -Ii386-apple-darwin10.7.0 -Izlib -Ipcre -Ihipe -I../include -I../include/i386-apple-darwin10.7.0 -I../include/internal -I../include/internal/i386-apple-darwin10.7.0 -o /Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/bin/i386-apple-darwin10.7.0/hipe_mkliterals obj/i386-apple-darwin10.7.0/opt/plain/hipe_mkliterals.o
/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/bin/i386-apple-darwin10.7.0/hipe_mkliterals -c > i386-apple-darwin10.7.0/opt/plain/hipe_literals.h
make -f i386-apple-darwin10.7.0/Makefile depend
gcc -MM -MG -mdynamic-no-pic -m32 -g -O2 -I/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/i386-apple-darwin10.7.0 -no-cpp-precomp -D_XOPEN_SOURCE -DHAVE_CONFIG_H -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS -Ii386-apple-darwin10.7.0/opt/plain -Ibeam -Isys/unix -Isys/common -Ii386-apple-darwin10.7.0 -Izlib -Ipcre -Ihipe -I../include -I../include/i386-apple-darwin10.7.0 -I../include/internal -I../include/internal/i386-apple-darwin10.7.0 -Idrivers/common beam/atom.c beam/beam_bif_load.c beam/beam_bp.c beam/beam_catches.c beam/beam_debug.c beam/beam_emu.c beam/beam_load.c beam/benchmark.c beam/bif.c beam/big.c beam/binary.c beam/break.c beam/copy.c beam/dist.c beam/elib_memmove.c beam/erl_afit_alloc.c beam/erl_alloc.c beam/erl_alloc_util.c beam/erl_arith.c beam/erl_async.c beam/erl_bestfit_alloc.c beam/erl_bif_binary.c beam/erl_bif_chksum.c beam/erl_bif_ddll.c beam/erl_bif_guard.c beam/erl_bif_info.c beam/erl_bif_lists.c beam/erl_bif_op.c beam/erl_bif_os.c beam/erl_bif_port.c beam/erl_bif_re.c beam/erl_bif_timer.c beam/erl_bif_trace.c beam/erl_bits.c beam/erl_cpu_topology.c beam/erl_db.c beam/erl_db_hash.c beam/erl_db_tree.c beam/erl_db_util.c beam/erl_debug.c beam/erl_drv_thread.c beam/erl_fun.c beam/erl_gc.c beam/erl_goodfit_alloc.c beam/erl_init.c beam/erl_instrument.c beam/erl_lock_check.c beam/erl_lock_count.c beam/erl_math.c beam/erl_md5.c beam/erl_message.c beam/erl_monitors.c beam/erl_mtrace.c beam/erl_nif.c beam/erl_nmgc.c beam/erl_node_tables.c beam/erl_port_task.c beam/erl_posix_str.c beam/erl_printf_term.c beam/erl_process.c beam/erl_process_dict.c beam/erl_process_dump.c beam/erl_process_lock.c beam/erl_resolv_dns.c beam/erl_resolv_nodns.c beam/erl_term.c beam/erl_time_sup.c beam/erl_trace.c beam/erl_unicode.c beam/erl_zlib.c beam/export.c beam/external.c beam/fix_alloc.c beam/hash.c beam/index.c beam/io.c beam/module.c beam/packet_parser.c beam/register.c beam/safe_hash.c beam/time.c beam/utils.c \
| sed 's|^\([^:]*:\)|$(OBJDIR)/\1|g;s|i386-apple-darwin10.7.0/opt/plain/|$(TTF_DIR)/|g;s|\([ ]\)/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/|\1$(ERL_TOP)/|g;s|^/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/|$(ERL_TOP)/|g;s|$(OBJDIR)/erl_poll.o|$(OBJDIR)/erl_poll.kp.o $(OBJDIR)/erl_poll.nkp.o|g;s|$(OBJDIR)/erl_check_io.o|$(OBJDIR)/erl_check_io.kp.o $(OBJDIR)/erl_check_io.nkp.o|g' > i386-apple-darwin10.7.0/depend.mk
gcc -MM -MG -mdynamic-no-pic -m32 -g -O2 -I/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/i386-apple-darwin10.7.0 -no-cpp-precomp -D_XOPEN_SOURCE -DHAVE_CONFIG_H -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS -Ii386-apple-darwin10.7.0/opt/plain -Ibeam -Isys/unix -Isys/common -Ii386-apple-darwin10.7.0 -Izlib -Ipcre -Ihipe -I../include -I../include/i386-apple-darwin10.7.0 -I../include/internal -I../include/internal/i386-apple-darwin10.7.0 -Idrivers/common drivers/common/efile_drv.c drivers/common/gzio.c drivers/common/inet_drv.c drivers/common/ram_file_drv.c drivers/common/zlib_drv.c drivers/unix/bin_drv.c drivers/unix/multi_drv.c drivers/unix/sig_drv.c drivers/unix/ttsl_drv.c drivers/unix/unix_efile.c \
| sed 's|^\([^:]*:\)|$(OBJDIR)/\1|g;s|i386-apple-darwin10.7.0/opt/plain/|$(TTF_DIR)/|g;s|\([ ]\)/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/|\1$(ERL_TOP)/|g;s|^/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/|$(ERL_TOP)/|g;s|$(OBJDIR)/erl_poll.o|$(OBJDIR)/erl_poll.kp.o $(OBJDIR)/erl_poll.nkp.o|g;s|$(OBJDIR)/erl_check_io.o|$(OBJDIR)/erl_check_io.kp.o $(OBJDIR)/erl_check_io.nkp.o|g' >> i386-apple-darwin10.7.0/depend.mk
gcc -MM -MG -mdynamic-no-pic -m32 -g -O2 -I/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/i386-apple-darwin10.7.0 -no-cpp-precomp -D_XOPEN_SOURCE -DHAVE_CONFIG_H -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS -Ii386-apple-darwin10.7.0/opt/plain -Ibeam -Isys/unix -Isys/common -Ii386-apple-darwin10.7.0 -Izlib -Ipcre -Ihipe -I../include -I../include/i386-apple-darwin10.7.0 -I../include/internal -I../include/internal/i386-apple-darwin10.7.0 -Idrivers/common sys/unix/erl_child_setup.c sys/unix/erl_main.c sys/unix/erl_unix_sys_ddll.c sys/unix/sys.c sys/unix/sys_float.c sys/unix/sys_time.c sys/common/erl_check_io.c sys/common/erl_mseg.c sys/common/erl_mtrace_sys_wrap.c sys/common/erl_poll.c sys/common/erl_sys_common_misc.c \
| sed 's|^\([^:]*:\)|$(OBJDIR)/\1|g;s|i386-apple-darwin10.7.0/opt/plain/|$(TTF_DIR)/|g;s|\([ ]\)/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/|\1$(ERL_TOP)/|g;s|^/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/|$(ERL_TOP)/|g;s|$(OBJDIR)/erl_poll.o|$(OBJDIR)/erl_poll.kp.o $(OBJDIR)/erl_poll.nkp.o|g;s|$(OBJDIR)/erl_check_io.o|$(OBJDIR)/erl_check_io.kp.o $(OBJDIR)/erl_check_io.nkp.o|g' >> i386-apple-darwin10.7.0/depend.mk
gcc -MM -MG -mdynamic-no-pic -m32 -g -O2 -I/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/i386-apple-darwin10.7.0 -no-cpp-precomp -D_XOPEN_SOURCE -DHAVE_CONFIG_H -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS -Ii386-apple-darwin10.7.0/opt/plain -Ibeam -Isys/unix -Isys/common -Ii386-apple-darwin10.7.0 -Izlib -Ipcre -Ihipe -I../include -I../include/i386-apple-darwin10.7.0 -I../include/internal -I../include/internal/i386-apple-darwin10.7.0 -Idrivers/common i386-apple-darwin10.7.0/erl_atom_table.c i386-apple-darwin10.7.0/erl_bif_table.c i386-apple-darwin10.7.0/erl_bif_wrap.c i386-apple-darwin10.7.0/erl_pbifs.c i386-apple-darwin10.7.0/preload.c i386-apple-darwin10.7.0/opt/plain/beam_opcodes.c i386-apple-darwin10.7.0/opt/plain/driver_tab.c \
| sed 's|^\([^:]*:\)|$(OBJDIR)/\1|g;s|i386-apple-darwin10.7.0/opt/plain/|$(TTF_DIR)/|g;s|\([ ]\)/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/|\1$(ERL_TOP)/|g;s|^/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/|$(ERL_TOP)/|g;s|$(OBJDIR)/erl_poll.o|$(OBJDIR)/erl_poll.kp.o $(OBJDIR)/erl_poll.nkp.o|g;s|$(OBJDIR)/erl_check_io.o|$(OBJDIR)/erl_check_io.kp.o $(OBJDIR)/erl_check_io.nkp.o|g' >> i386-apple-darwin10.7.0/depend.mk
gcc -MM -MG -mdynamic-no-pic -m32 -g -O2 -I/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/i386-apple-darwin10.7.0 -no-cpp-precomp -D_XOPEN_SOURCE -DHAVE_CONFIG_H -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS -Ii386-apple-darwin10.7.0/opt/plain -Ibeam -Isys/unix -Isys/common -Ii386-apple-darwin10.7.0 -Izlib -Ipcre -Ihipe -I../include -I../include/i386-apple-darwin10.7.0 -I../include/internal -I../include/internal/i386-apple-darwin10.7.0 -Idrivers/common \
| sed 's|^\([^:]*\).o[ ]*:|$(OBJDIR)/\1.elib.o:|g;s|i386-apple-darwin10.7.0/opt/plain/|$(TTF_DIR)/|g;s|\([ ]\)/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/|\1$(ERL_TOP)/|g;s|^/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/|$(ERL_TOP)/|g;s|$(OBJDIR)/erl_poll.o|$(OBJDIR)/erl_poll.kp.o $(OBJDIR)/erl_poll.nkp.o|g;s|$(OBJDIR)/erl_check_io.o|$(OBJDIR)/erl_check_io.kp.o $(OBJDIR)/erl_check_io.nkp.o|g' >> i386-apple-darwin10.7.0/depend.mk
i686-apple-darwin10-gcc-4.2.1: no input files
gcc -MM -MG -mdynamic-no-pic -m32 -g -O2 -I/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/i386-apple-darwin10.7.0 -no-cpp-precomp -D_XOPEN_SOURCE -DHAVE_CONFIG_H -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS -Ii386-apple-darwin10.7.0/opt/plain -Ibeam -Isys/unix -Isys/common -Ii386-apple-darwin10.7.0 -Izlib -Ipcre -Ihipe -I../include -I../include/i386-apple-darwin10.7.0 -I../include/internal -I../include/internal/i386-apple-darwin10.7.0 -Idrivers/common hipe/hipe_amd64.c hipe/hipe_arm.c hipe/hipe_bif0.c hipe/hipe_bif1.c hipe/hipe_bif2.c hipe/hipe_debug.c hipe/hipe_gc.c hipe/hipe_mkliterals.c hipe/hipe_mode_switch.c hipe/hipe_native_bif.c hipe/hipe_perfctr.c hipe/hipe_ppc.c hipe/hipe_risc_stack.c hipe/hipe_sparc.c hipe/hipe_stack.c hipe/hipe_x86.c hipe/hipe_x86_signal.c hipe/hipe_x86_stack.c \
| sed 's|^\([^:]*:\)|$(OBJDIR)/\1|g;s|i386-apple-darwin10.7.0/opt/plain/|$(TTF_DIR)/|g;s|\([ ]\)/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/|\1$(ERL_TOP)/|g;s|^/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/|$(ERL_TOP)/|g;s|$(OBJDIR)/erl_poll.o|$(OBJDIR)/erl_poll.kp.o $(OBJDIR)/erl_poll.nkp.o|g;s|$(OBJDIR)/erl_check_io.o|$(OBJDIR)/erl_check_io.kp.o $(OBJDIR)/erl_check_io.nkp.o|g' >> i386-apple-darwin10.7.0/depend.mk
test X"$ERTS_SKIP_DEPEND" = X"true" || (cd erts/lib_src && ERL_TOP=/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02 make depend)
make -f i386-apple-darwin10.7.0/Makefile depend
Generating dependency file i386-apple-darwin10.7.0/depend.mk...
gcc -MM -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS -m32 -g -O3 -I/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/i386-apple-darwin10.7.0 -no-cpp-precomp -D_XOPEN_SOURCE -fomit-frame-pointer -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -DHAVE_CONFIG_H -I../include -I../include/i386-apple-darwin10.7.0 -I../include/internal -I../include/internal/i386-apple-darwin10.7.0 -I../emulator/beam -I../emulator/sys/unix common/ethr_aux.c common/ethr_atomics.c common/ethr_mutex.c common/ethr_cbf.c pthread/ethread.c pthread/ethr_event.c \
| sed 's|^\([^:]*\)\.o:|$(r_OBJ_DIR)/\1.o:|g;s|i386-apple-darwin10.7.0/opt/|$(TT_DIR)/|g;s|i386-apple-darwin10.7.0/|$(TARGET)/|g' >> i386-apple-darwin10.7.0/depend.mk
gcc -MM -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS -m32 -g -O3 -I/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/i386-apple-darwin10.7.0 -no-cpp-precomp -D_XOPEN_SOURCE -fomit-frame-pointer -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -DHAVE_CONFIG_H -I../include -I../include/i386-apple-darwin10.7.0 -I../include/internal -I../include/internal/i386-apple-darwin10.7.0 -I../emulator/beam -I../emulator/sys/unix common/erl_printf_format.c common/erl_printf.c common/erl_misc_utils.c \
| sed 's|^\([^:]*\)\.o:|$(r_OBJ_DIR)/\1.o:|g;s|i386-apple-darwin10.7.0/opt/|$(TT_DIR)/|g;s|i386-apple-darwin10.7.0/|$(TARGET)/|g' >> i386-apple-darwin10.7.0/depend.mk
gcc -MM -m32 -g -O3 -I/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/i386-apple-darwin10.7.0 -no-cpp-precomp -D_XOPEN_SOURCE -fomit-frame-pointer -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -DHAVE_CONFIG_H -I../include -I../include/i386-apple-darwin10.7.0 -I../include/internal -I../include/internal/i386-apple-darwin10.7.0 -I../emulator/beam -I../emulator/sys/unix common/erl_printf_format.c common/erl_printf.c common/erl_misc_utils.c \
| sed 's|^\([^:]*\)\.o:|$(OBJ_DIR)/\1.o:|g;s|i386-apple-darwin10.7.0/opt/|$(TT_DIR)/|g;s|i386-apple-darwin10.7.0/|$(TARGET)/|g' >> i386-apple-darwin10.7.0/depend.mk
gcc -MM -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS -m32 -g -O3 -I/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/i386-apple-darwin10.7.0 -no-cpp-precomp -D_XOPEN_SOURCE -fomit-frame-pointer -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -DHAVE_CONFIG_H -I../include -I../include/i386-apple-darwin10.7.0 -I../include/internal -I../include/internal/i386-apple-darwin10.7.0 -I../emulator/beam -I../emulator/sys/unix common/erl_memory_trace_parser.c \
| sed 's|^\([^:]*\)\.o:|$(r_OBJ_DIR)/\1.o:|g;s|i386-apple-darwin10.7.0/opt/|$(TT_DIR)/|g;s|i386-apple-darwin10.7.0/|$(TARGET)/|g' >> i386-apple-darwin10.7.0/depend.mk
gcc -MM -m32 -g -O3 -I/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/i386-apple-darwin10.7.0 -no-cpp-precomp -D_XOPEN_SOURCE -fomit-frame-pointer -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -DHAVE_CONFIG_H -I../include -I../include/i386-apple-darwin10.7.0 -I../include/internal -I../include/internal/i386-apple-darwin10.7.0 -I../emulator/beam -I../emulator/sys/unix common/erl_memory_trace_parser.c \
| sed 's|^\([^:]*\)\.o:|$(OBJ_DIR)/\1.o:|g;s|i386-apple-darwin10.7.0/opt/|$(TT_DIR)/|g;s|i386-apple-darwin10.7.0/|$(TARGET)/|g' >> i386-apple-darwin10.7.0/depend.mk
cd erts && ERL_TOP=/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02 make NO_START_SCRIPTS=true FLAVOR=
make -f i386-apple-darwin10.7.0/Makefile generate
/bin/mkdir -p i386-apple-darwin10.7.0/opt/smp
/bin/mkdir -p obj/i386-apple-darwin10.7.0/opt/smp
LANG=C /usr/bin/perl utils/beam_makeops \
-wordsize 32 \
-outdir i386-apple-darwin10.7.0/opt/smp \
-emulator /Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/lib/compiler/src/genop.tab beam/ops.tab hipe/hipe_ops.tab
LANG=C /usr/bin/perl utils/make_driver_tab -o i386-apple-darwin10.7.0/opt/smp/driver_tab.c obj/i386-apple-darwin10.7.0/opt/smp/efile_drv.o obj/i386-apple-darwin10.7.0/opt/smp/inet_drv.o obj/i386-apple-darwin10.7.0/opt/smp/zlib_drv.o obj/i386-apple-darwin10.7.0/opt/smp/ram_file_drv.o obj/i386-apple-darwin10.7.0/opt/smp/ttsl_drv.o
LANG=C /usr/bin/perl utils/make_alloc_types -src beam/erl_alloc.types -dst i386-apple-darwin10.7.0/opt/smp/erl_alloc_types.h threads hipe smp nofrag unix
m4 -DERTS_SMP=1 -DTARGET=i386-apple-darwin10.7.0 -DOPSYS=darwin -DARCH=x86 hipe/hipe_x86_asm.m4 > i386-apple-darwin10.7.0/opt/smp/hipe_x86_asm.h
m4 -DERTS_SMP=1 -DTARGET=i386-apple-darwin10.7.0 -DOPSYS=darwin -DARCH=x86 hipe/hipe_amd64_asm.m4 > i386-apple-darwin10.7.0/opt/smp/hipe_amd64_asm.h
m4 -DERTS_SMP=1 -DTARGET=i386-apple-darwin10.7.0 -DOPSYS=darwin -DARCH=x86 hipe/hipe_sparc_asm.m4 > i386-apple-darwin10.7.0/opt/smp/hipe_sparc_asm.h
m4 -DERTS_SMP=1 -DTARGET=i386-apple-darwin10.7.0 -DOPSYS=darwin -DARCH=x86 hipe/hipe_ppc_asm.m4 > i386-apple-darwin10.7.0/opt/smp/hipe_ppc_asm.h
m4 -DERTS_SMP=1 -DTARGET=i386-apple-darwin10.7.0 -DOPSYS=darwin -DARCH=x86 hipe/hipe_arm_asm.m4 > i386-apple-darwin10.7.0/opt/smp/hipe_arm_asm.h
gcc -mdynamic-no-pic -m32 -g -O3 -I/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/i386-apple-darwin10.7.0 -no-cpp-precomp -D_XOPEN_SOURCE -DERTS_SMP -DHAVE_CONFIG_H -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS -Ii386-apple-darwin10.7.0/opt/smp -Ibeam -Isys/unix -Isys/common -Ii386-apple-darwin10.7.0 -Izlib -Ipcre -Ihipe -I../include -I../include/i386-apple-darwin10.7.0 -I../include/internal -I../include/internal/i386-apple-darwin10.7.0 -c hipe/hipe_mkliterals.c -o obj/i386-apple-darwin10.7.0/opt/smp/hipe_mkliterals.o
gcc -mdynamic-no-pic -m32 -g -O2 -I/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/i386-apple-darwin10.7.0 -no-cpp-precomp -D_XOPEN_SOURCE -DERTS_SMP -DHAVE_CONFIG_H -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS -Ii386-apple-darwin10.7.0/opt/smp -Ibeam -Isys/unix -Isys/common -Ii386-apple-darwin10.7.0 -Izlib -Ipcre -Ihipe -I../include -I../include/i386-apple-darwin10.7.0 -I../include/internal -I../include/internal/i386-apple-darwin10.7.0 -o /Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/bin/i386-apple-darwin10.7.0/hipe_mkliterals.smp obj/i386-apple-darwin10.7.0/opt/smp/hipe_mkliterals.o
/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/bin/i386-apple-darwin10.7.0/hipe_mkliterals.smp -c > i386-apple-darwin10.7.0/opt/smp/hipe_literals.h
make -f i386-apple-darwin10.7.0/Makefile TYPE=opt
cd /Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/lib_src && make opt
make -f i386-apple-darwin10.7.0/Makefile TYPE=opt
/bin/mkdir -p obj/i386-apple-darwin10.7.0/opt
/bin/mkdir -p ../lib/i386-apple-darwin10.7.0
/bin/mkdir -p obj/i386-apple-darwin10.7.0/opt/r
/bin/mkdir -p ../lib/internal/i386-apple-darwin10.7.0
gcc -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS -m32 -g -O3 -I/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/i386-apple-darwin10.7.0 -no-cpp-precomp -D_XOPEN_SOURCE -fomit-frame-pointer -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -DHAVE_CONFIG_H -I../include -I../include/i386-apple-darwin10.7.0 -I../include/internal -I../include/internal/i386-apple-darwin10.7.0 -I../emulator/beam -I../emulator/sys/unix -c common/ethr_aux.c -o obj/i386-apple-darwin10.7.0/opt/r/ethr_aux.o
gcc -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS -m32 -g -O3 -I/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/i386-apple-darwin10.7.0 -no-cpp-precomp -D_XOPEN_SOURCE -fomit-frame-pointer -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -DHAVE_CONFIG_H -I../include -I../include/i386-apple-darwin10.7.0 -I../include/internal -I../include/internal/i386-apple-darwin10.7.0 -I../emulator/beam -I../emulator/sys/unix -c common/ethr_atomics.c -o obj/i386-apple-darwin10.7.0/opt/r/ethr_atomics.o
gcc -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS -m32 -g -O3 -I/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/i386-apple-darwin10.7.0 -no-cpp-precomp -D_XOPEN_SOURCE -fomit-frame-pointer -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -DHAVE_CONFIG_H -I../include -I../include/i386-apple-darwin10.7.0 -I../include/internal -I../include/internal/i386-apple-darwin10.7.0 -I../emulator/beam -I../emulator/sys/unix -c common/ethr_mutex.c -o obj/i386-apple-darwin10.7.0/opt/r/ethr_mutex.o
gcc -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS -m32 -g -O3 -I/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/i386-apple-darwin10.7.0 -no-cpp-precomp -D_XOPEN_SOURCE -fomit-frame-pointer -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -DHAVE_CONFIG_H -I../include -I../include/i386-apple-darwin10.7.0 -I../include/internal -I../include/internal/i386-apple-darwin10.7.0 -I../emulator/beam -I../emulator/sys/unix -c common/ethr_cbf.c -o obj/i386-apple-darwin10.7.0/opt/r/ethr_cbf.o
gcc -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS -m32 -g -O3 -I/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/i386-apple-darwin10.7.0 -no-cpp-precomp -D_XOPEN_SOURCE -fomit-frame-pointer -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -DHAVE_CONFIG_H -I../include -I../include/i386-apple-darwin10.7.0 -I../include/internal -I../include/internal/i386-apple-darwin10.7.0 -I../emulator/beam -I../emulator/sys/unix -c pthread/ethread.c -o obj/i386-apple-darwin10.7.0/opt/r/ethread.o
gcc -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS -m32 -g -O3 -I/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/i386-apple-darwin10.7.0 -no-cpp-precomp -D_XOPEN_SOURCE -fomit-frame-pointer -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -DHAVE_CONFIG_H -I../include -I../include/i386-apple-darwin10.7.0 -I../include/internal -I../include/internal/i386-apple-darwin10.7.0 -I../emulator/beam -I../emulator/sys/unix -c pthread/ethr_event.c -o obj/i386-apple-darwin10.7.0/opt/r/ethr_event.o
ar rcv ../lib/internal/i386-apple-darwin10.7.0/libethread.a obj/i386-apple-darwin10.7.0/opt/r/ethr_aux.o obj/i386-apple-darwin10.7.0/opt/r/ethr_atomics.o obj/i386-apple-darwin10.7.0/opt/r/ethr_mutex.o obj/i386-apple-darwin10.7.0/opt/r/ethr_cbf.o obj/i386-apple-darwin10.7.0/opt/r/ethread.o obj/i386-apple-darwin10.7.0/opt/r/ethr_event.o
a - obj/i386-apple-darwin10.7.0/opt/r/ethr_aux.o
a - obj/i386-apple-darwin10.7.0/opt/r/ethr_atomics.o
a - obj/i386-apple-darwin10.7.0/opt/r/ethr_mutex.o
a - obj/i386-apple-darwin10.7.0/opt/r/ethr_cbf.o
a - obj/i386-apple-darwin10.7.0/opt/r/ethread.o
a - obj/i386-apple-darwin10.7.0/opt/r/ethr_event.o
ranlib ../lib/internal/i386-apple-darwin10.7.0/libethread.a
gcc -m32 -g -O3 -I/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/i386-apple-darwin10.7.0 -no-cpp-precomp -D_XOPEN_SOURCE -fomit-frame-pointer -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -DHAVE_CONFIG_H -I../include -I../include/i386-apple-darwin10.7.0 -I../include/internal -I../include/internal/i386-apple-darwin10.7.0 -I../emulator/beam -I../emulator/sys/unix -c common/erl_memory_trace_parser.c -o obj/i386-apple-darwin10.7.0/opt/erl_memory_trace_parser.o
ar rcv ../lib/i386-apple-darwin10.7.0/liberts.a obj/i386-apple-darwin10.7.0/opt/erl_memory_trace_parser.o
a - obj/i386-apple-darwin10.7.0/opt/erl_memory_trace_parser.o
ranlib ../lib/i386-apple-darwin10.7.0/liberts.a
gcc -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS -m32 -g -O3 -I/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/i386-apple-darwin10.7.0 -no-cpp-precomp -D_XOPEN_SOURCE -fomit-frame-pointer -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -DHAVE_CONFIG_H -I../include -I../include/i386-apple-darwin10.7.0 -I../include/internal -I../include/internal/i386-apple-darwin10.7.0 -I../emulator/beam -I../emulator/sys/unix -c common/erl_memory_trace_parser.c -o obj/i386-apple-darwin10.7.0/opt/r/erl_memory_trace_parser.o
ar rcv ../lib/i386-apple-darwin10.7.0/liberts_r.a obj/i386-apple-darwin10.7.0/opt/r/erl_memory_trace_parser.o
a - obj/i386-apple-darwin10.7.0/opt/r/erl_memory_trace_parser.o
ranlib ../lib/i386-apple-darwin10.7.0/liberts_r.a
gcc -m32 -g -O3 -I/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/i386-apple-darwin10.7.0 -no-cpp-precomp -D_XOPEN_SOURCE -fomit-frame-pointer -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -DHAVE_CONFIG_H -I../include -I../include/i386-apple-darwin10.7.0 -I../include/internal -I../include/internal/i386-apple-darwin10.7.0 -I../emulator/beam -I../emulator/sys/unix -c common/erl_printf_format.c -o obj/i386-apple-darwin10.7.0/opt/erl_printf_format.o
gcc -m32 -g -O3 -I/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/i386-apple-darwin10.7.0 -no-cpp-precomp -D_XOPEN_SOURCE -fomit-frame-pointer -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -DHAVE_CONFIG_H -I../include -I../include/i386-apple-darwin10.7.0 -I../include/internal -I../include/internal/i386-apple-darwin10.7.0 -I../emulator/beam -I../emulator/sys/unix -c common/erl_printf.c -o obj/i386-apple-darwin10.7.0/opt/erl_printf.o
gcc -m32 -g -O3 -I/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/i386-apple-darwin10.7.0 -no-cpp-precomp -D_XOPEN_SOURCE -fomit-frame-pointer -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -DHAVE_CONFIG_H -I../include -I../include/i386-apple-darwin10.7.0 -I../include/internal -I../include/internal/i386-apple-darwin10.7.0 -I../emulator/beam -I../emulator/sys/unix -c common/erl_misc_utils.c -o obj/i386-apple-darwin10.7.0/opt/erl_misc_utils.o
common/erl_misc_utils.c:689: warning: ‘cpu_cmp’ defined but not used
common/erl_misc_utils.c:710: warning: ‘adjust_processor_nodes’ defined but not used
ar rcv ../lib/internal/i386-apple-darwin10.7.0/liberts_internal.a obj/i386-apple-darwin10.7.0/opt/erl_printf_format.o obj/i386-apple-darwin10.7.0/opt/erl_printf.o obj/i386-apple-darwin10.7.0/opt/erl_misc_utils.o
a - obj/i386-apple-darwin10.7.0/opt/erl_printf_format.o
a - obj/i386-apple-darwin10.7.0/opt/erl_printf.o
a - obj/i386-apple-darwin10.7.0/opt/erl_misc_utils.o
ranlib ../lib/internal/i386-apple-darwin10.7.0/liberts_internal.a
gcc -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS -m32 -g -O3 -I/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/i386-apple-darwin10.7.0 -no-cpp-precomp -D_XOPEN_SOURCE -fomit-frame-pointer -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -DHAVE_CONFIG_H -I../include -I../include/i386-apple-darwin10.7.0 -I../include/internal -I../include/internal/i386-apple-darwin10.7.0 -I../emulator/beam -I../emulator/sys/unix -c common/erl_printf_format.c -o obj/i386-apple-darwin10.7.0/opt/r/erl_printf_format.o
gcc -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS -m32 -g -O3 -I/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/i386-apple-darwin10.7.0 -no-cpp-precomp -D_XOPEN_SOURCE -fomit-frame-pointer -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -DHAVE_CONFIG_H -I../include -I../include/i386-apple-darwin10.7.0 -I../include/internal -I../include/internal/i386-apple-darwin10.7.0 -I../emulator/beam -I../emulator/sys/unix -c common/erl_printf.c -o obj/i386-apple-darwin10.7.0/opt/r/erl_printf.o
gcc -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS -m32 -g -O3 -I/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/i386-apple-darwin10.7.0 -no-cpp-precomp -D_XOPEN_SOURCE -fomit-frame-pointer -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -DHAVE_CONFIG_H -I../include -I../include/i386-apple-darwin10.7.0 -I../include/internal -I../include/internal/i386-apple-darwin10.7.0 -I../emulator/beam -I../emulator/sys/unix -c common/erl_misc_utils.c -o obj/i386-apple-darwin10.7.0/opt/r/erl_misc_utils.o
common/erl_misc_utils.c:689: warning: ‘cpu_cmp’ defined but not used
common/erl_misc_utils.c:710: warning: ‘adjust_processor_nodes’ defined but not used
ar rcv ../lib/internal/i386-apple-darwin10.7.0/liberts_internal_r.a obj/i386-apple-darwin10.7.0/opt/r/erl_printf_format.o obj/i386-apple-darwin10.7.0/opt/r/erl_printf.o obj/i386-apple-darwin10.7.0/opt/r/erl_misc_utils.o
a - obj/i386-apple-darwin10.7.0/opt/r/erl_printf_format.o
a - obj/i386-apple-darwin10.7.0/opt/r/erl_printf.o
a - obj/i386-apple-darwin10.7.0/opt/r/erl_misc_utils.o
ranlib ../lib/internal/i386-apple-darwin10.7.0/liberts_internal_r.a
make -f i386-apple-darwin10.7.0/Makefile TYPE=opt
gcc -c -m32 -g -O3 -I/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/i386-apple-darwin10.7.0 -no-cpp-precomp -D_XOPEN_SOURCE -DHAVE_CONFIG_H -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS -o /Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/emulator/zlib/obj/i386-apple-darwin10.7.0/opt/adler32.o adler32.c
gcc -c -m32 -g -O3 -I/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/i386-apple-darwin10.7.0 -no-cpp-precomp -D_XOPEN_SOURCE -DHAVE_CONFIG_H -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS -o /Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/emulator/zlib/obj/i386-apple-darwin10.7.0/opt/compress.o compress.c
gcc -c -m32 -g -O3 -I/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/i386-apple-darwin10.7.0 -no-cpp-precomp -D_XOPEN_SOURCE -DHAVE_CONFIG_H -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS -o /Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/emulator/zlib/obj/i386-apple-darwin10.7.0/opt/crc32.o crc32.c
gcc -c -m32 -g -O3 -I/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/i386-apple-darwin10.7.0 -no-cpp-precomp -D_XOPEN_SOURCE -DHAVE_CONFIG_H -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS -o /Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/emulator/zlib/obj/i386-apple-darwin10.7.0/opt/uncompr.o uncompr.c
gcc -c -m32 -g -O3 -I/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/i386-apple-darwin10.7.0 -no-cpp-precomp -D_XOPEN_SOURCE -DHAVE_CONFIG_H -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS -o /Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/emulator/zlib/obj/i386-apple-darwin10.7.0/opt/deflate.o deflate.c
gcc -c -m32 -g -O3 -I/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/i386-apple-darwin10.7.0 -no-cpp-precomp -D_XOPEN_SOURCE -DHAVE_CONFIG_H -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS -o /Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/emulator/zlib/obj/i386-apple-darwin10.7.0/opt/trees.o trees.c
gcc -c -m32 -g -O3 -I/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/i386-apple-darwin10.7.0 -no-cpp-precomp -D_XOPEN_SOURCE -DHAVE_CONFIG_H -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS -o /Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/emulator/zlib/obj/i386-apple-darwin10.7.0/opt/zutil.o zutil.c
gcc -c -m32 -g -O3 -I/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/i386-apple-darwin10.7.0 -no-cpp-precomp -D_XOPEN_SOURCE -DHAVE_CONFIG_H -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS -o /Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/emulator/zlib/obj/i386-apple-darwin10.7.0/opt/inflate.o inflate.c
gcc -c -m32 -g -O3 -I/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/i386-apple-darwin10.7.0 -no-cpp-precomp -D_XOPEN_SOURCE -DHAVE_CONFIG_H -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS -o /Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/emulator/zlib/obj/i386-apple-darwin10.7.0/opt/inftrees.o inftrees.c
gcc -c -m32 -g -O3 -I/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/i386-apple-darwin10.7.0 -no-cpp-precomp -D_XOPEN_SOURCE -DHAVE_CONFIG_H -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS -o /Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/emulator/zlib/obj/i386-apple-darwin10.7.0/opt/inffast.o inffast.c
ar rc /Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/emulator/zlib/obj/i386-apple-darwin10.7.0/opt/libz.a /Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/emulator/zlib/obj/i386-apple-darwin10.7.0/opt/adler32.o /Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/emulator/zlib/obj/i386-apple-darwin10.7.0/opt/compress.o /Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/emulator/zlib/obj/i386-apple-darwin10.7.0/opt/crc32.o /Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/emulator/zlib/obj/i386-apple-darwin10.7.0/opt/uncompr.o /Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/emulator/zlib/obj/i386-apple-darwin10.7.0/opt/deflate.o /Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/emulator/zlib/obj/i386-apple-darwin10.7.0/opt/trees.o /Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/emulator/zlib/obj/i386-apple-darwin10.7.0/opt/zutil.o /Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/emulator/zlib/obj/i386-apple-darwin10.7.0/opt/inflate.o /Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/emulator/zlib/obj/i386-apple-darwin10.7.0/opt/inftrees.o /Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/emulator/zlib/obj/i386-apple-darwin10.7.0/opt/inffast.o
make -f i386-apple-darwin10.7.0/Makefile TYPE=opt
gcc -c -O3 -m32 -g -I/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/i386-apple-darwin10.7.0 -no-cpp-precomp -D_XOPEN_SOURCE -DHAVE_CONFIG_H -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS -DERLANG_INTEGRATION -o /Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/emulator/pcre/obj/i386-apple-darwin10.7.0/opt/pcre_latin_1_table.o pcre_latin_1_table.c
gcc -c -O3 -m32 -g -I/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/i386-apple-darwin10.7.0 -no-cpp-precomp -D_XOPEN_SOURCE -DHAVE_CONFIG_H -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS -DERLANG_INTEGRATION -o /Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/emulator/pcre/obj/i386-apple-darwin10.7.0/opt/pcre_compile.o pcre_compile.c
gcc -c -O3 -m32 -g -I/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/i386-apple-darwin10.7.0 -no-cpp-precomp -D_XOPEN_SOURCE -DHAVE_CONFIG_H -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS -DERLANG_INTEGRATION -o /Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/emulator/pcre/obj/i386-apple-darwin10.7.0/opt/pcre_config.o pcre_config.c
gcc -c -O3 -m32 -g -I/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/i386-apple-darwin10.7.0 -no-cpp-precomp -D_XOPEN_SOURCE -DHAVE_CONFIG_H -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS -DERLANG_INTEGRATION -o /Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/emulator/pcre/obj/i386-apple-darwin10.7.0/opt/pcre_dfa_exec.o pcre_dfa_exec.c
for x in `grep -n COST_CHK pcre_exec.c | grep -v 'COST_CHK(N)' | awk -F: '{print $1}'`; \
do \
N=`expr $x + 100`; \
echo "case $N: goto L_LOOP_COUNT_${x};"; \
done > pcre_exec_loop_break_cases.inc
gcc -c -O3 -m32 -g -I/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/i386-apple-darwin10.7.0 -no-cpp-precomp -D_XOPEN_SOURCE -DHAVE_CONFIG_H -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS -DERLANG_INTEGRATION -o /Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/emulator/pcre/obj/i386-apple-darwin10.7.0/opt/pcre_exec.o pcre_exec.c
/var/folders/l9/l9vhMyH0GLagtRSQnFEZ-k+++TI/-Tmp-//ccBVyVbH.s:unknown:FATAL:can't create output file: /Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/emulator/pcre/obj/i386-apple-darwin10.7.0/opt/pcre_exec.o
make[5]: *** [/Users/andoriyu/Developing/MacOSX/couchdbx-core/src/erlang_R14B02/erts/emulator/pcre/obj/i386-apple-darwin10.7.0/opt/pcre_exec.o] Error 1
make[4]: *** [opt] Error 2
make[3]: *** [pcre] Error 2
make[2]: *** [opt] Error 2
make[1]: *** [smp] Error 2
make: *** [emulator] Error 2
bash-3.2$ exit
exit
Script done on Wed May 4 23:53:20 2011
#!/bin/sh -ex
# CouchDBX-Core-Builder
# Downloads, Install Erlang & CouchDB into a package
# Copyright 2009 Jan Lehnardt <jan@apache.org>
# Apache 2.0 Licensed
# customise here:
# use full svn path for branches like "branches/0.9.x"
if [ -z "$COUCHDB_VERSION" ]; then
COUCHDB_VERSION="1.0.3"
fi
if [ -z "$COUCHDB_SVNPATH" ]; then
COUCHDB_SVNPATH="tags/1.0.3"
fi
# or R12B-5
if [ -z "$ERLANG_VERSION" ]; then
ERLANG_VERSION="R14B02"
fi
# make options
MAKE_OPTS="-j4"
# stop customising
# internal vars
DIRS="src dist"
WORKDIR=`pwd`
ERLANGSRCDIR="erlang_$ERLANG_VERSION"
ERLANGDISTDIR="$ERLANGSRCDIR"
COUCHDBSRCDIR="couchdb_$COUCHDB_VERSION"
COUCHDBDISTDIR="$COUCHDBSRCDIR"
#functions
erlang_download()
{
if [ ! -e .erlang-$ERLANG_VERSION-downloaded ]; then
FILE_NAME="otp_src_$ERLANG_VERSION"
BASE_URL="http://www.erlang.org/download/"
cd src
if [ ! -e $FILE_NAME.tar.gz ]; then
curl -O $BASE_URL/$FILE_NAME.tar.gz
fi
tar xzf $FILE_NAME.tar.gz
mv $FILE_NAME $ERLANGSRCDIR
cd ..
touch .erlang-$ERLANG_VERSION-downloaded
fi
}
erlang_install()
{
if [ ! -e .erlang-$ERLANG_VERSION-installed ]; then
cd src/$ERLANGSRCDIR
./configure \
--prefix=$WORKDIR/dist/$ERLANGDISTDIR \
--enable-hipe \
--enable-dynamic-ssl-lib \
--with-ssl=/usr \
--without-java
# skip wxWidgets
touch lib/wx/SKIP
make # can't have -jN so no $MAKEOPTS
make install
cd ../../
cd dist
rm -rf erlang
cp -r $ERLANGDISTDIR erlang
cd ..
touch .erlang-$ERLANG_VERSION-installed
fi
}
erlang_post_install()
{
cd dist/$ERLANGDISTDIR
# change absolute paths to relative paths
perl -pi -e "s@$WORKDIR/dist@\`pwd\`@" bin/erl
# add quotes for paths with spaces
perl -pi -e \
's@`pwd`/erlang/lib/erlang@"`pwd`/erlang/lib/erlang"@' \
bin/erl
perl -pi -e 's@\$BINDIR/erlexec@"\$BINDIR/erlexec"@' bin/erl
cd ../../
}
strip_erlang_dist()
{
# backup erlang build tree
cp -r $WORKDIR/dist/$ERLANGDISTDIR $WORKDIR/dist/erlang
# strip unused erlang crap^Wlibs
cd $WORKDIR/dist/$ERLANGDISTDIR/lib/erlang/lib
rm -rf \
appmon-*/ \
asn1-*/ \
common_test-*/ \
compiler-*/ \
cosEvent-*/ \
cosEventDomain-*/ \
cosFileTransfer-*/ \
cosNotification-*/ \
cosProperty-*/ \
cosTime-*/ \
cosTransactions-*/ \
debugger-*/ \
dialyzer-*/ \
docbuilder-*/ \
edoc-*/ \
erl_interface-*/ \
erts-*/ \
et-*/ \
eunit-*/ \
gs-*/ \
hipe-*/ \
ic-*/ \
inviso-*/ \
jinterface-*/ \
megaco-*/ \
mnesia-*/ \
observer-*/ \
odbc-*/ \
orber-*/ \
os_mon-*/ \
otp_mibs-*/ \
parsetools-*/ \
percept-*/ \
pman-*/ \
public_key-*/ \
reltool-*/ \
runtime_tools-*/ \
snmp-*/ \
ssh-*/ \
syntax_tools-*/ \
test_server-*/ \
toolbar-*/ \
tools-*/ \
tv-*/ \
typer-*/ \
webtool-*/ \
wx-*/
find . -name "src" | xargs rm -rf
cd ../../../../../
rm -f js/lib/libjs.a
rm -rf js/bin
rm -rf Darwin_DBG.OBJ
}
erlang()
{
erlang_download
erlang_install
}
couchdb_download()
{
cd src
if [ ! -d "$COUCHDBSRCDIR" ]; then
svn checkout http://svn.apache.org/repos/asf/couchdb/$COUCHDB_SVNPATH $COUCHDBSRCDIR
fi
cd ..
}
couchdb_install()
{
# if [ ! -e .couchdb-installed ]; then
cd src/$COUCHDBSRCDIR
# remove icu-config call
perl -pi -e "s@command=\"\`%ICU_CONFIG% --invoke\`@command=\"@" bin/couchdb.tpl.in
# PATH hack for jan's machine
PATH=/usr/bin:$PATH ./bootstrap
export ERLC_FLAGS="+native"
export ERL=$WORKDIR/dist/$ERLANGDISTDIR/bin/erl
export ERLC=$WORKDIR/dist/$ERLANGDISTDIR/bin/erlc
./configure \
--prefix=$WORKDIR/dist/$COUCHDBDISTDIR \
--with-erlang=$WORKDIR/dist/$ERLANGDISTDIR/lib/erlang/usr/include/ \
--with-js-include=$WORKDIR/dist/js/include \
--with-js-lib=$WORKDIR/dist/js/lib
unset ERL_EXECUTABLE
unset ERLC_EXECUTABLE
make $MAKE_OPTS
make install
couchdb_post_install
cd ../../
# touch .couchdb-installed
# fi
}
couchdb_link_erl_driver()
{
if [ -d "src/couchdb/priv/icu_driver/" ]; then # we're on trunk
cd src/couchdb/priv/icu_driver/
gcc -I$WORKDIR/src/icu -I/usr/include -L/usr/lib \
-I$WORKDIR/dist/$ERLANGDISTDIR/lib/erlang/usr/include/ \
-lpthread -lm -licucore \
-flat_namespace -undefined suppress -bundle \
-o couch_icu_driver.so couch_icu_driver.c -fPIC
mv couch_icu_driver.so \
../../../../../../dist/$COUCHDBDISTDIR/lib/couchdb/erlang/lib/couch-*/priv/lib
cd ../../../../
else # we're on 0.10 or earlier
cd src/couchdb
gcc -I$WORKDIR/src/icu -I/usr/include -L/usr/lib \
-I$WORKDIR/dist/$ERLANGDISTDIR/lib/erlang/usr/include/ \
-lpthread -lm -licucore \
-flat_namespace -undefined suppress -bundle \
-o couch_erl_driver.so couch_erl_driver.c -fPIC
mv couch_erl_driver.so \
../../../../dist/$COUCHDBDISTDIR/lib/couchdb/erlang/lib/couch-*/priv/lib
cd ../../
fi
}
couchdb_post_install()
{
if [ "`uname`" = "Darwin" ]; then
# build couch_erl_driver.so against bundled ICU
couchdb_link_erl_driver
fi
cd ../../dist/$COUCHDBDISTDIR
# replace absolute to relative paths
perl -pi -e "s@$WORKDIR/dist/@@g" bin/couchdb bin/couchjs etc/couchdb/default.ini
cd ../../src/$COUCHDBSRCDIR
}
couchdb()
{
couchdb_download
couchdb_install
}
create_dirs()
{
mkdir -p $DIRS
}
cleanup()
{
rm -rf $DIRS \
.erlang-downloaded .erlang-installed \
.couchdb-downloaded .couchdb-installed
}
download_js()
{
if [ ! -e .js-downloaded ]; then
cd src
if [ ! -e js-1.7.0.tar.gz ]; then
curl -O http://ftp.mozilla.org/pub/mozilla.org/js/js-1.7.0.tar.gz
fi
tar xzf js-1.7.0.tar.gz
cd ..
touch .js-downloaded
fi
}
install_js()
{
if [ ! -e .js-installed ]; then
uname=`uname`
if [ "$uname" = "Darwin" ]; then
soext="dylib"
else
soext="so"
fi
cd src/js
cd src
patch -N -p0 < ../../../patches/js/patch-jsprf.c
make $MAKEOPTS -f Makefile.ref
JS_DIST=$WORKDIR/dist/js make -f Makefile.ref export
cd ../../../
touch .js-installed
fi
}
js()
{
download_js
install_js
}
package()
{
PACKAGEDIR="couchdbx-core-$ERLANG_VERSION-$COUCHDB_VERSION"
rm -rf $PACKAGEDIR
mkdir $PACKAGEDIR
cp -r dist/$ERLANGDISTDIR \
dist/$COUCHDBDISTDIR \
dist/js \
$PACKAGEDIR
install_name_tool -change Darwin_DBG.OBJ/libjs.dylib js/lib/libjs.dylib \
$PACKAGEDIR/$COUCHDBDISTDIR/lib/couchdb/bin/couchjs
cd $PACKAGEDIR
ln -s $COUCHDBDISTDIR couchdb
cd ..
tar czf $PACKAGEDIR.tar.gz $PACKAGEDIR
cd dist/
rm -rf $ERLANGDISTDIR
mv erlang $ERLANGDISTDIR
cd ..
}
# main:
create_dirs
erlang
js
couchdb
erlang_post_install
strip_erlang_dist
package
echo "Done, kthxbye."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment