bootstrap.sh --with-toolset not accepting clang-XY.Z

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

bootstrap.sh --with-toolset not accepting clang-XY.Z

Boost - Build mailing list
Hi,

I'm using Docker with clang (nwtgck/llvm-clang:5.0.0) where there is
no clang alternative configured, but only /usr/bin/clang-5.0.0.

I was surprised to discover that

./bootstrap.sh --with-toolset=clang-5.0.0

fails with

./build.sh: 17: ./build.sh: clang: not found

I assume, similar failure would happen for gcc-7.2, for instance.

Is this known limitation or am I missing any options
or environment variables to the script?


Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build
Reply | Threaded
Open this post in threaded view
|

Re: bootstrap.sh --with-toolset not accepting clang-XY.Z

Boost - Build mailing list
AMDG

On 04/03/2018 09:31 AM, Mateusz Loskot via Boost-build wrote:

>
> I'm using Docker with clang (nwtgck/llvm-clang:5.0.0) where there is
> no clang alternative configured, but only /usr/bin/clang-5.0.0.
>
> I was surprised to discover that
>
> ./bootstrap.sh --with-toolset=clang-5.0.0
>
> fails with
>
> ./build.sh: 17: ./build.sh: clang: not found
>
> I assume, similar failure would happen for gcc-7.2, for instance.
>
> Is this known limitation or am I missing any options
> or environment variables to the script?
>

  The specific toolsets in bootstrap are quite hard-coded.
You may need to use the `cc` toolset and set CC and CFLAGS.
(You'll also have to edit or delete project-config.jam
as it probably won't be generated correctly in this case).

In Christ,
Steven Watanabe
_______________________________________________
Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build
Reply | Threaded
Open this post in threaded view
|

Re: bootstrap.sh --with-toolset not accepting clang-XY.Z

Boost - Build mailing list
On 9 April 2018 at 19:38, Steven Watanabe via Boost-build
<[hidden email]> wrote:

> On 04/03/2018 09:31 AM, Mateusz Loskot via Boost-build wrote:
>>
>> I'm using Docker with clang (nwtgck/llvm-clang:5.0.0) where there is
>> no clang alternative configured, but only /usr/bin/clang-5.0.0.
>>
>> I was surprised to discover that
>>
>> ./bootstrap.sh --with-toolset=clang-5.0.0
>>
>> fails with
>>
>> ./build.sh: 17: ./build.sh: clang: not found
>>
>> I assume, similar failure would happen for gcc-7.2, for instance.
>>
>> Is this known limitation or am I missing any options
>> or environment variables to the script?
>>
>
>   The specific toolsets in bootstrap are quite hard-coded.

Eventually, I switched to https://hub.docker.com/r/rferraro/cxx-clang/
where clang and clang++ commands are available.

> You may need to use the `cc` toolset and set CC and CFLAGS.

Thank you, new trick to me.

AFAICS, seems documented ;)


Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build