[Yhc] Problem building on Mac OS X
Brent Fulgham
bfulgham at mac.com
Fri Jun 30 23:02:50 EDT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Jun 30, 2006, at 6:41 AM, Malcolm Wallace wrote:
> Brent Fulgham <bfulgham at mac.com> wrote:
>
>> Attempting to build with gcc 4.0 on OS X fails with the following
>> errors. Has anyone else successfully built on OS X?
>
> Not yet. The problem you encountered seems to be the case-
> insensitivity
> of the MacOS file system. obj/FFI.o is overwriting obj/ffi.o.
>
> But my build does not even get that far. I have a couple of different
> errors, earlier in the build, when first trying to compile the libffi
> component:
>
> make -C libffi -f ConfigAndMake.makefile
> ln -s libffi/config-ml.in ../config-ml.in # HACK for broken
> configure
> sh ./configure
> checking build system type... powerpc-apple-darwin8.6.0
> [...output of configure...]
> make
> make "AR_FLAGS=" "CC_FOR_BUILD=" "CFLAGS=-g -O2" "CXXFLAGS="
> "CFLAGS_FOR_BUILD=" "CFLAGS_FOR_TARGET=" "INSTALL=/usr/bin/install -
> c" "INSTALL_DATA=/usr/bin/install -c -m 644" "INSTALL_PROGRAM=/usr/
> bin/install -c" "INSTALL_SCRIPT=/usr/bin/install -c" "JC1FLAGS="
> "LDFLAGS=" "LIBCFLAGS=" "LIBCFLAGS_FOR_TARGET=" "MAKE=make"
> "MAKEINFO=/bin/sh /Users/malcolm/Haskell/yhc-devel/src/runtime/
> libffi/missing --run makeinfo " "PICFLAG=" "PICFLAG_FOR_TARGET="
> "RUNTESTFLAGS=" "SHELL=/bin/sh" "exec_prefix=/usr/local" "infodir=/
> usr/local/info" "libdir=/usr/local/lib" "prefix=/usr/local" "AR=ar"
> "AS=as" "CC=gcc" "CXX=g++" "LD=ld" "NM=" "RANLIB=ranlib" "DESTDIR="
> all-recursive
> Making all in include
> cat: ../../gcc/BASE-VER: No such file or directory
> make[5]: Nothing to be done for `all'.
> Making all in testsuite
> make[5]: Nothing to be done for `all'.
> make[5]: execvp: /Users/malcolm/Haskell/yhc-devel/src/runtime/
> libffi/install-sh: Permission denied
I ran into that, too. The problems here are threefold:
1. The install-sh and other libtool stuff does not have the execute
permissions set.
2. The "gcc/BASE-VER" does not get created for some reason.
3. The libtool stuff may not be correct for Mac OS.
I did the following:
(a) I chmod'd the various "install-sh" scripts.
(b) I created a "src/runtime/gcc" directory, and created a file
called "BASE-VER" containing the text '4'.
(c) I updated the libtool scripts with the current stuff from the
Mac OS developer tools, then when that didn't work I erased the
directory and re-got everything from darcs.
Don't know if that will help, but it might get you a few steps
farther...
Thanks,
- -Brent
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (Darwin)
iD8DBQFEpeXbzGDdrzfvUpURAnUgAKCuxIH7F/BNM6HNcy7lgOPG+QlzyACfazR3
Ih8S7jG7A3bkZ1XLK59uitk=
=WEaR
-----END PGP SIGNATURE-----
More information about the Yhc
mailing list