Boost logo

Boost-Build :

Subject: Re: [Boost-build] Newbie building on interix
From: Vladimir Prus (ghost_at_[hidden])
Date: 2009-07-14 02:54:03


On Monday 13 July 2009 Robert Oeffner wrote:

> Hi,
> I'm trying to build Boost1.39.0 on interix which is a UNIX subsystem running on top of the NT kernel for Windows XP and Vista. MS provides it as an optional add-on.
> The compiler I'm using is an experimental port of GCC4.4.0 as there isn't any recent GCC port around for interix. So far I'm able to build medium sized C++ projects with the compiler so I believe it's working.
> Having tried to set up boost has so far proved problematic. A bootstrap.sh run followed by a bjam run results in compiler errors such as:
>
> "g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pthread -fPIC -DBOOST_ALL_NO_LIB=1 -DBOOST_MATH_TR1_DYN_LINK=1 -DNDEBUG -I"." -c -o "bin.v2/libs/math/build/gcc-4.4.0/release/threading-multi/asinh.o" "libs/math/build/../src/tr1/asinh.cpp"
> ...failed gcc.compile.c++ bin.v2/libs/math/build/gcc-4.4.0/release/threading-multi/asinh.o...
> gcc.compile.c++ bin.v2/libs/math/build/gcc-4.4.0/release/threading-multi/atanh.o
> g++: unrecognized option '-pthread'
>
> I know that on interix -pthread should be replaced by -lpthread and that GCC on interix currently doesn't support -fPIC. Does anybody know where I can amend these compiler flags?

Robert,

please see tools/gcc.jam file. It has functions 'setup-threading' and 'setup-fpic' that can
be adjusted. You probably should add 'interix' as the value for target-os feature, see
builtin.jam

- Volodya


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