Boost logo

Boost-Build :

Subject: Re: [Boost-build] How to specifiy multiple gcc compilers using windows 8.1
From: Paul A. Bristow (pbristow_at_[hidden])
Date: 2015-06-28 07:44:29

> -----Original Message-----
> From: Vladimir Prus [mailto:vladimir.prus_at_[hidden]]
> Sent: 26 June 2015 08:53
> To: boost-build_at_[hidden]
> Subject: Re: [Boost-build] How to specifiy multiple gcc compilers using windows 8.1
> On 6/23/2015 12:52 PM, Vladimir Prus wrote:
> >> <b2 toolset-clang
> >>
> >> 'C:\Program' is not recognized as an internal or external
> >> command, operable program or batch file.
> >
> > Paul,
> >
> > could you try the attached patch?
> Paul,
> did that patch work?

Yes, I think so.

(I wasn't able to use Tortoise GUT to apply the patch, but I did it manually - and sorry for delay
after your prompt fix).

I now have this in my user-config.jam

and I've tried it with putting /LLVM/... in all three probable places and clang++.exe is found

  using clang # from
    : # version
    : # Clang compiler .exe location
    #"C:/LLVM/bin/clang++.exe" # OK
    #"C:\\Program Files (x86)\\LLVM\\bin\\clang++.exe" # OK
    "C:\\Program Files\\LLVM\\bin\\clang++.exe" #
    : # options

So thanks.

I am not able to compile a hello-world program OK in 32-bit mode (see attached clang-32.log)

I:\modular-boost\libs\quickdox\example>b2 -a toolset=clang-3.6.1 address-model=32 --debug-configurat
ion > clang-32.log

but sadly adding address-model=64 like this

I:\modular-boost\libs\quickdox\example>b2 -a toolset=clang-3.6.1 address-model=64 --debug-configurat
ion > clang-64.log

still does not work.

notice: will use 'C:\Program Files\LLVM\bin\clang++.exe' for clang-linux, condition

is found but this below isn't what I expect

Performing configuration checks

    - 32-bit : yes (cached)

Compile looks OK


but link fails
l-64\quick_auto_dox_index.obj: file not recognized: File format not recognized
collect2.exe: error: ld returned 1 exit status

This has the -m64 option as expected and the address-mode-64 sub-folder too.

    "C:\Program Files\LLVM\bin\clang++.exe" -o
el-64\quick_auto_dox_index.exe" -Wl,--start-group
el-64\quick_auto_dox_index.obj" -Wl,-Bstatic -Wl,-Bdynamic -Wl,--end-group -g -m64

Suggestions most welcome.


Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at