[plt-scheme] Question on build process for Linux and Mac OSX

From: Todd Rovito (rovitotv at gmail.com)
Date: Sun Jun 14 15:38:42 EDT 2009

Greetings,
   I would like to create a simple build process that creates mzscheme
and shared libs for both CGC and 3m garbage collectors.  For Linux I
perform the following steps with the source tree:
        ./configure --prefix=/opt/plt-scheme --enable-shared
        make both
        make install-both

This seems to work and I get .so files for everything I need.  On the
Mac OSX side I am struggling, admittedly I am less familar with OSX.
       ./configure --enable-xonx
--prefix=/Users/rovitotv/prog/plt-scheme/ --enable-shared
--disable-mred
       make both <--- this step never finishes I get an error.

The output from configure and make are below, thanks for the help.


====================================================================================
/configure --enable-xonx --prefix=/Users/rovitotv/prog/plt-scheme/
--enable-shared --disable-mred
=== X-on-X enabled
=== Shared libraries enabled
=== MrEd disabled
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 ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for ranlib... ranlib
checking for cos in -lm... yes
checking for dlopen in -ldl... yes
checking for inline keyword... yes
checking for noinline attribute... yes
checking for GNU preprocessor... yes
checking for nl_langinfo (CODESET)... yes
checking for getaddrinfo... no
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/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 iconv.h usability... yes
checking iconv.h presence... yes
checking for iconv.h... yes
checking iconv is usable... yes -liconv
checking for mbsrtowcs... yes
checking for char... yes
checking size of char... 1
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 long long... yes
checking size of long long... 8
checking for stack direction... down
checking whether byte ordering is bigendian... no
Configuring libtool
sh: /Users/rovitotv/prog/PLT: No such file or directory
configure: creating ./config.status
config.status: creating Makefile
config.status: creating mzscheme/Makefile
config.status: creating mzscheme/src/Makefile
config.status: creating mzscheme/dynsrc/Makefile
config.status: creating mzscheme/gc/Makefile
config.status: creating mzscheme/sgc/Makefile
config.status: creating mzscheme/gc2/Makefile
config.status: creating foreign/Makefile
config.status: creating mzscheme/mzconfig.h
config.status: mzscheme/mzconfig.h is unchanged
=== configuring in foreign/gcc/libffi (/Users/rovitotv/prog/PLT Scheme
v4.2 Source/src/foreign/gcc/libffi)
configure: running /bin/sh ./configure
'--prefix=/Users/rovitotv/prog/plt-scheme/'  '--enable-xonx'
'--enable-shared' '--disable-mred' '--enable-shared'
'--disable-multilib' --cache-file=/dev/null --srcdir=.
checking build system type... i386-apple-darwin9.7.0
checking host system type... i386-apple-darwin9.7.0
checking target system type... i386-apple-darwin9.7.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/bin/sh: /Users/rovitotv/prog/PLT: No such file or directory
configure: WARNING: `missing' script is too old or missing
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
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 ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld
checking if the linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld)
is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -p
checking the name lister (/usr/bin/nm -p) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld option to
reload object files... -r
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -p output from gcc object... rm:
conftest.dSYM: is a directory
ok
checking how to run the C preprocessor... gcc -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 dlfcn.h... yes
checking for objdir... .libs
rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
checking if gcc supports -fno-rtti -fno-exceptions... rm:
conftest.dSYM: is a directory
no
checking for gcc option to produce PIC... -fno-common -DPIC
checking if gcc PIC flag -fno-common -DPIC works... rm: conftest.dSYM:
is a directory
yes
checking if gcc static flag -static works... rm: conftest.dSYM: is a directory
no
checking if gcc supports -c -o file.o... rm: conftest.dSYM: is a directory
yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker
(/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) supports shared
libraries... yes
checking dynamic linker characteristics... darwin9.7.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking for mmap... yes
checking for sys/mman.h... (cached) yes
checking for mmap... (cached) yes
checking whether read-only mmap of a plain file works... yes
checking whether mmap from /dev/zero works... no
checking for MAP_ANON(YMOUS)... yes
checking whether mmap with MAP_ANON(YMOUS) works... yes
checking for ANSI C header files... (cached) yes
checking for memcpy... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for double... yes
checking size of double... 8
checking for long double... yes
checking size of long double... 16
checking whether byte ordering is bigendian... no
checking assembler .cfi pseudo-op support... no
checking whether .eh_frame section should be read-only... rm:
conftest.dSYM: is a directory
no
checking for __attribute__((visibility("hidden")))... rm:
conftest.dSYM: is a directory
no
configure: creating ./config.status
config.status: creating include/Makefile
config.status: WARNING:  include/Makefile.in seems to ignore the
--datarootdir setting
config.status: creating include/ffi.h
config.status: creating Makefile
config.status: WARNING:  Makefile.in seems to ignore the --datarootdir setting
config.status: creating fficonfig.h
config.status: fficonfig.h is unchanged
config.status: linking ./src/x86/ffitarget.h to include/ffitarget.h
config.status: executing default-1 commands
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing include commands
config.status: executing src commands
>>> Installation targets:
 executables  : ${exec_prefix}/bin/...
 Scheme code  : ${exec_prefix}/lib/plt/collects/...
 core docs    : ${datarootdir}/plt/doc/...
 C libraries  : ${exec_prefix}/lib/...
 C headers    : ${prefix}/include/plt/...
 extra C objs : ${exec_prefix}/lib/plt/...
 man pages    : ${datarootdir}/man/...
     where prefix = /Users/rovitotv/prog/plt-scheme/
  and datarootdir = ${prefix}/share
  and exec_prefix = ${prefix}
rryazl062017509:src rovitotv$ make both
make cgc
cd mzscheme; make cgc
make common
make g-c
cd gc; make ../libmzgc.la
/Users/rovitotv/prog/PLT Scheme v4.2 Source/src/lt/libtool
--mode=compile --tag=CC gcc  -I./include -DNO_SIGNALS -g -O2  -Wall
-DOS_X -D_DARWIN_UNLIMITED_SELECT -DXONX     -DNO_EXECUTE_PERMISSION
-DSILENT -DNO_GETENV -DLARGE_CONFIG -DATOMIC_UNCOLLECTABLE
-DINITIAL_MARK_STACK_SIZE=8192 -c ./alloc.c
make[5]: /Users/rovitotv/prog/PLT: Command not found
make[5]: *** [alloc.lo] Error 127
make[4]: *** [g-c] Error 2
make[3]: *** [common] Error 2
make[2]: *** [cgc] Error 2
make[1]: *** [cgc] Error 2
make: *** [both] Error 2
rryazl062017509:src rovitotv$


Posted on the users mailing list.