Re: Building 0.6.7 on OS X
Norman Gray <[email protected]> Wed, 20 Jan 2010 10:30:19 +0000
| Newsgroups | gmane.lisp.scheme.scsh |
|---|---|
| Message-ID | <[email protected]> |
Marcus, hello. On 2010 Jan 19, at 15:40, Marcus Crestani wrote: >>>>>> "NG" =3D=3D Norman Gray <[email protected]> writes: > NG> I'm having difficulty building scsh 0.6.7 on OS X (10.6.2 on an > NG> Intel box) The build fails at a point which is clearly magical > NG> enough that I don't think I'm going to have much luck debugging it > NG> on my own. The build fails with: >=20 > You probably need to set CFLAGS and LDFLAGS to "-arch i386" to force = an > 32-bit build, since scsh doesn't work with 64 bits (which is Snow > Leopard's default). That was it: configuring with % ./configure CFLAGS=3D-arch\ i386 LDFLAGS=3D-arch\ i386 worked fine. In fact, it turns out that CFLAGS=3D-m32 is enough, and I = think targets the problem more precisely. I'm the maintainer for the macports.org package file for scsh (not a big = deal -- I made a simple port file a few years ago and it hasn't broken = so far), so I'll submit a patch to that. I've uploaded a patch to configure.in of scsh 0.6.7, which tests whether = it needs to add CFLAGS options to force the compiler to build 32-bit = object files. At present, it only tests '' and '-m32' (for gcc); other = compilers' flags should be easy to add here. = https://sourceforge.net/tracker/?func=3Ddetail&aid=3D2935530&group_id=3D10= 493&atid=3D310493 Thanks for the help. Best wishes, Norman --=20 Norman Gray : http://nxg.me.uk