How to create an additional library using the open64 compiler?

I would like to give the AMD open64 compiler a try, but for this I first need to create some boost libraries (current version 1.46_1) using this compiler. Unfortunately, open64 is not part of the toolbox provided by boost.build, see, for example, here or in more detail here .

Now, how do I get support for building with open64? Here is what I have tried / understood so far:

  • There is a bunch of .jam files in the tools/build/v2/tools subdirectory that seem to define a set of tools that can then be used using the using directive, for example. using gcc ; . They look ugly, and I really don't know how to write one for open64 (or openCC, which is the actual command).
  • Since the interface for openCC seems to be very similar to the gcc interface, I tried using bjam to use it like this:
    • In tools/build/v2/user-config.jam I put using gcc : 4.2.5 : /usr/local/bin/openCC : <cxxflags>"-O3" ; .
    • Then I built bjam as ./bootstrap.sh --with-toolset=gcc and ./bjam install --prefix=my_dir
    • Using the built-in bjam, I tried to create boost libraries using ./bootstrap.sh --with-bjam=my_dir/bin/bjam --prefix=$HOME/my_targe --with-toolset=gcc --with-libraries=regex , and then my_dir/bin/bjam

It looks like there is something with names, including gcc-4.2.5 - but, let’s say, this cannot be the real way. Is there a β€œright” way to do this. Has anyone tried? Are there any toolkit definitions for open64? Other offers?

+4
source share
1 answer

You can try the latest CMake with boost-cmake from github.

Also please check ryppl .

In general, the following steps should be sufficient:

 CXX=/usr/local/bin/openCC cmake <path to boost-cmake folder with clone> make 
+1
source

All Articles