Subject: Re: Building R-2.6.0 fails on macppc
To: jim smith <n0oct@sbcglobal.net>
From: Hernani Marques Madeira <hernani@vecirex.net>
List: port-macppc
Date: 02/09/2008 00:44:08
--3siQDZowHQqNOShm
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Feb 08, 2008 at 12:45:57PM -0600, jim smith wrote:

> Apparently that last bit, "relocation truncated to fit:" is the key.
> The compiler [as I understand it], can't handle it on this platform.
> One also cannot add "makeoptions CFLAGS=3D"-mlong-calls" to the kernel
> conf and rebuild, as the -mlong-calls is not an option for the compiler
> on the macppc platform.
>=20
> Anybody had any luck getting around this for any packages?

Can you try using CFLAGS+=3D-fPIC in your Makefile, after cleaning, for
testing?

gcc(1) at me says:
	[...]
       -shared
           Produce a shared object which can then be linked with other obje=
cts
           to form an executable.  Not all systems support this option.  For
           predictable results, you must also specify the same set of optio=
ns
           that were used to generate code (-fpic, -fPIC, or model suboptio=
ns)
           when you specify this option.[1]
	[...]

To exclude that the problem is not of general nature I compiled R-2.6.0 on =
two=20
platforms: i386 (NetBSD v3.1.1_PATCH) and amd64 (NetBSD v4.99.52) -- there=
=20
anything went well.

--
hernani

--3siQDZowHQqNOShm
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (NetBSD)

iD8DBQFHrOlIe4NuQfernOURAofxAKCD3Y/QvoQmuUl3kCJdH99mkTCajwCgmTPk
SZues3Lr4obM20ppuxUOMsA=
=TfO2
-----END PGP SIGNATURE-----

--3siQDZowHQqNOShm--