Boost logo

Boost-Build :

Subject: Re: [Boost-build] Installing boost 1.59 from .tgz on Linux Mint 17.3 failed with "command.c(63): error: identifier "__INT_MAX__" is undefined"
From: Andreas Delleske (delleske_at_[hidden])
Date: 2015-12-18 09:52:05


Dear John,

Many thanks for your answer..

> Works for me with Intel-15.0.2 on Ubuntu.

OK..

> As a quick workaround can you not build bjam with gcc?

Sure -

> The compiler you
> use to build bjam has no relation to what's used to actually build Boost
> BTW, so you can still build Boost with the Intel toolset.

Ah OK - so bootstrap.sh uses gcc to build bjam / b2? And then b2 puts
all the files in place? And those files are compiler-agnostic?

I started bootstrap.sh with --prefix=/opt/boost/1.59.0/intel-linux -
seemed to work, although nothing has been put into the folder.

Then I started b2 with

./b2 --prefix=/opt/boost/1.59.0/intel-linux --toolset=linux stage

(I also tried with --toolset=intel-linux, same problem)

... and now I get all kinds of funny errors like:

    "icpc" -c -xc++ -w1 -inline-level=2 -O3 -ip -pthread -fPIC -m64
-DBOOST_ALL_NO_LIB=1 -DBOOST_FILESYSTEM_DYN_LINK=1
-DBOOST_SYSTEM_DYN_LINK=1 -DNDEBUG -I"." -c -o
"/opt/boost/1.59.0/intel-linux/boost/bin.v2/libs/filesystem/build/intel-linux/release/threading-multi/path.o"
"libs/filesystem/src/path.cpp"

...failed intel-linux.compile.c++
/opt/boost/1.59.0/intel-linux/boost/bin.v2/libs/filesystem/build/intel-linux/release/threading-multi/path.o...
intel-linux.compile.c++
/opt/boost/1.59.0/intel-linux/boost/bin.v2/libs/filesystem/build/intel-linux/release/threading-multi/path_traits.o
In file included from ./boost/config/compiler/intel.hpp(37),
                 from ./boost/config.hpp(39),
                 from ./boost/filesystem/config.hpp(28),
                 from libs/filesystem/src/path_traits.cpp(20):
./boost/config/compiler/gcc.hpp(283): error: #error directive: "Compiler
not configured - please reconfigure"
  # error "Compiler not configured - please reconfigure"

I don't get it.

What do I need to do?

Does boost not just check all its dependencies?

Why do I have to produce a "bjam" program first? I feel dumb and dumber.

Why are there no .deb or .rpm installers?

I am able to build a helloworld program with Intel and icpc -v shows:

icpc version 16.0.0 (gcc version 3.2.0 compatibility)

Unfortunately, i am not using boost myself but I'm trying to install it
for our developer..

Thanks -
Andreas


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk