Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Aug 2011 23:04:41 +0300
From:      Kostik Belousov <kostikbel@gmail.com>
To:        Dimitry Andric <dim@freebsd.org>
Cc:        freebsd-toolchain@freebsd.org
Subject:   Re: Relocatable linking with relocations from format elf64-x86-64-freebsd (crt1_s.o) to format elf32-i386-freebsd (gcrt1.o) is not supported
Message-ID:  <20110818200441.GJ17489@deviant.kiev.zoral.com.ua>
In-Reply-To: <4E4D6E01.40905@FreeBSD.org>
References:  <20110818050142.GA96873@freebsd.org> <4E4CB59B.3000005@FreeBSD.org> <20110818173508.GA92360@freebsd.org> <4E4D6E01.40905@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--VLmBeLhlY1zFIFqG
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Aug 18, 2011 at 09:54:41PM +0200, Dimitry Andric wrote:
> The problem is in your make.conf. Effectively, you are doing:
>=20
> CC =3D clang
> CXX =3D clang++
>=20
> which will not work, at least not for the 32-bit compat stage on amd64.
> Please use the following fragment instead, which is recommended on
> <http://wiki.freebsd.org/BuildingFreeBSDWithClang>:
>=20
> .if !defined(CC) || ${CC} =3D=3D "cc"
> CC=3Dclang
> .endif
> .if !defined(CXX) || ${CXX} =3D=3D "c++"
> CXX=3Dclang++
> .endif
> .if !defined(CPP) || ${CPP} =3D=3D "cpp"
> CPP=3Dclang -E
> .endif

May be, add the commented out lines into share/examples/etc/make.conf ?

--VLmBeLhlY1zFIFqG
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (FreeBSD)

iEYEARECAAYFAk5NcFgACgkQC3+MBN1Mb4j1agCg6Kci9/4Eb6Dm2AHYoXkgrgXy
hb0Anjb2JwWWy5srEmHq/j/3t7K9gtPN
=xUVU
-----END PGP SIGNATURE-----

--VLmBeLhlY1zFIFqG--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110818200441.GJ17489>