Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Dec 2012 23:45:29 +0100
From:      "O. Hartmann" <ohartman@zedat.fu-berlin.de>
To:        Dimitry Andric <dim@FreeBSD.org>
Cc:        Current FreeBSD <freebsd-current@FreeBSD.org>
Subject:   Re: clang/llvm 3.2: -ccc-host-triple:
Message-ID:  <50D8DB09.7090104@zedat.fu-berlin.de>
In-Reply-To: <50D877B2.60006@FreeBSD.org>
References:  <50D8739F.4040306@zedat.fu-berlin.de> <50D877B2.60006@FreeBSD.org>

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

[-- Attachment #1 --]
Am 12/24/12 16:41, schrieb Dimitry Andric:
> On 2012-12-24 16:24, O. Hartmann wrote:
>> I try to compile a piece of software which uses LLVM as a backend (it is
>> POCL, PortableOpenCL library). On a 10.0-CURRENT r244650M, the software
>> fails du to an issued clang option -ccc-host-triple, which works well on
>> FreeBSD 9.1-PRE, which uses still LLVM/CLANG 3.1.
> 
> What is the exact reason the software wants to use this (rather
> undocumented) option?

Obviously, the make environment sets this in a couple of files.
> 
> 
>> On the net, I find confusing informations about this option. It seems to
>> be still in 3.1, but 3.2 doesn't accept it anymore.
> 
> Use -target instead.  But beware that cross-compilation does not work
> out of the box on FreeBSD.

The target is POCL, and as OpenCL naturally acts like, it is cross
compiling.

Thank you for the hint. I tried to follow some threads about this option
and they seem to confuse it with --ccc-target-triple.




[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)

iQEcBAEBAgAGBQJQ2NsKAAoJEOgBcD7A/5N8BVkIAKgr1AH2hj6SSqUOwlAz+OhQ
/vORXsB8bk9VKhNCbXQR1lauTd2oVZP8NGjOMba2SfyjmpiOyZsmUSkNtKd1u42x
kdT4AOSeRDum38Nl8TtvJgYlil2c9koeYgQGAnzBMIZPx9GEEXJgndxmxpwyD+lN
q9h3i5Bo9RBf+BxsB4o1x2q6EUmQXGqJ4qp831EtGga+iNgVUtzunppajRRcB8hG
8sgJpJ70gEYUreRYJqcp1vFzJSG7ELOAW3MiqzXafUJOC/v0AzjPfq4A7vdh9G4p
vXjuljId28r7i2naV7k9zcbprC+P79fcK3eRjoHYtj//xnx0X7vI3tmbrcuEjVY=
=EbnX
-----END PGP SIGNATURE-----

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