[Gd-hackers] Problems with Open Dylan on OS X PPC
Andreas Bogk
andreas at andreas.org
Fri Jul 6 18:57:51 CEST 2007
Hackers,
just so it doesn't get lost: murpy_tcc pasted the following on #dylan.
Andreas
Build procedure and error results for SVN OpenDylan on PowerPC MacOS X
======================================================================
* Create a build directory and change into that directory.
* Get opendylan-1.0beta3-ppc-darwin.tar.bz2, unpack it into <build>,
and relocate it to have shorter paths:
curl -O
http://www.opendylan.org/~rayiner/opendylan-1.0beta3-ppc-darwin.tar.bz2
tar xjf opendylan-1.0beta3-ppc-darwin.tar.bz2
mv usr/local/opendylan-1.0beta3 .
rm -r usr
* Get a subversion snapshot of OpenDylan into <build>:
svn co svn://anonsvn.gwydiondylan.org/scm/svn/dylan/trunk/fundev
opendylan-svn
* Change into opendylan-svn, apply the patch below and prepare the
directory with autotools.
pushd opendylan-svn
patch <<EOF
Index: sources/system/file-system/unix-ffi.dylan
===================================================================
--- sources/system/file-system/unix-ffi.dylan (revision 11421)
+++ sources/system/file-system/unix-ffi.dylan (working copy)
@@ -86,9 +86,9 @@
define inline-only function st-mode (st :: <machine-word>) => (mode ::
<abstract-integer>)
raw-as-abstract-integer
- (primitive-c-unsigned-int-at(primitive-unwrap-machine-word(st),
- integer-as-raw($st-mode-offset),
- integer-as-raw(0)))
+ (primitive-c-unsigned-short-at(primitive-unwrap-machine-word(st),
+ integer-as-raw($st-mode-offset),
+ integer-as-raw(0)))
end function st-mode;
define inline-only function st-uid (st :: <machine-word>) => (uid ::
<abstract-integer>)
Index: configure.ac
===================================================================
--- configure.ac (revision 11421)
+++ configure.ac (working copy)
@@ -1,5 +1,6 @@
AC_INIT([Open Dylan], [1.0 beta 1])
AC_PREREQ(2.50)
+AM_INIT_AUTOMAKE
#---------------------
# Make srcdir absolute
Index: autogen.sh
===================================================================
--- autogen.sh (revision 11421)
+++ autogen.sh (working copy)
@@ -43,6 +43,6 @@
echo "processing (ignore errors and warnings from automake and
libtoolize)..."
( cd $srcdir
- libtoolize --force --copy
+ $LIBTOOLIZE --force --copy
automake --foreign --add-missing
autoconf )
EOF
sh autogen.sh
popd
* Set up the following environment variables
export PATH="$PWD/opendylan-1.0beta3/bin:$PATH"
export
DYLD_LIBRARY_PATH="$PWD/opendylan-1.0beta3/lib:$DYLD_LIBRARY_PATH"
export
OPEN_DYLAN_USER_REGISTRY="$PWD/opedylan-svn/sources/bootstrap1-registry"
export OPEN_DYLAN_USER_ROOT="$PWD/opendylan-root"
export OPEN_DYLAN_USER_INSTALL="$PWD/opendylan-boot"
* Create the bootstrapping compiler
pushd opendylan-svn/sources/environment/console
minimal-console-compiler -build minimal-console-compiler.lid
popd
* Modify your environment to use the bootstrapping compiler from now
on
export PATH="$(echo $PATH | sed 's/opendylan-1.0beta3/opendylan-boot/')"
export DYLD_LIBRARY_PATH="$(echo $DYLD_LIBRARY_PATH | sed
's/opendylan-1.0beta3/opendylan-boot/')"
unset OPEN_DYLAN_USER_REGISTRY
unset OPEN_DYLAN_USER_ROOT
unset OPEN_DYLAN_USER_INSTALL
* Create a directory for the build of the full environment, change
there and prepare for building
mkdir opendylan-build
pushd opendylan-build
../opendylan-svn/configure --enable-network --enable-testworks
--enable-dood --prefix=/usr/local/opendylan
* Perform the build with root rights as files are written to the
target during the build. Finally install remaining build products.
sudo make
The following error appears:
cp
/Users/murphy/Build/opendylan-svn/sources/dfmc/c-run-time/ppc-darwin-build.jam
\
Bootstrap.1/lib/ppc-darwin-build.jam
Building stage 1 bootstrap...
Building commands...
fdmake: compile failed (65280), see
/Users/murphy/Build/opendylan-build/Bootstrap.1/logs/compile-commands.txt
make: *** [Bootstrap.1/bin/minimal-console-compiler] Error 1
In the logfile the following error message appears:
[...]
Failed to find
/Users/murphy/Build/opendylan-svn/sources/bootstrap1-registry/ppc-darwin/common-dylan
[common-dylan under
/Users/murphy/Build/opendylan-svn/sources/bootstrap1-registry/ppc-darwin/]
Failed to find
/Users/murphy/Build/opendylan-boot/sources/registry/ppc-darwin/common-dylan
[common-dylan under
/Users/murphy/Build/opendylan-boot/sources/registry/ppc-darwin/]
Failed to find
/Users/murphy/Build/opendylan-svn/sources/bootstrap1-registry/generic/common-dylan
[common-dylan under
/Users/murphy/Build/opendylan-svn/sources/bootstrap1-registry/generic/]
Failed to find
/Users/murphy/Build/opendylan-boot/sources/registry/generic/common-dylan
[common-dylan under
/Users/murphy/Build/opendylan-boot/sources/registry/generic/]
Found database:
/Users/murphy/Build/opendylan-boot/databases/common-dylan.ddb
Warning:
Project common-dylan is read-only and cannot be compiled
but it depends on modified project unix-portability
Number of libraries to compile: 2
Parse-project-sources returned #f
Computing data models for {editable {class <system-project>}:
unix-portability in
/Users/murphy/Build/opendylan-svn/sources/lib/unix-portability/freebsd-portability.lid}
Internal error: : ELEMENT outside of range: 0
Exiting with return code -1
More information about the hackers
mailing list