[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] Boost/GCC version problems
From: |
Nathaniel J. Smith |
Subject: |
Re: [Monotone-devel] Boost/GCC version problems |
Date: |
Tue, 23 Jan 2007 05:46:39 -0800 |
User-agent: |
Mutt/1.2.5.1i |
On Tue, Jan 23, 2007 at 02:29:48PM +0100, Jon Bright wrote:
> Having seen a few of those segfault problems floating around recently:
> might it be worth adding something like the following to configure?
>
> BOOSTGCC=$(strings libboost_date_time-gcc-1_33_1.a |grep '^GCC.*GNU'
> |head -n 1 |cut -d ' ' -f 3)
> CURRENTGCC=$(gcc --version |head -n 1 |cut -d ' ' -f 3)
> if [ "$BOOSTGCC" != "" -a "$CURRENTGCC" != "" -a "$BOOSTGCC" !=
> "$CURRENTGCC" ]; then
> echo "The gcc used to compile Boost is not the same version as the gcc
> which would currently be used. This frequently leads to problems. We
> very strongly recommend recompiling Boost with your current GCC version."
> exit
> fi
>
> My quickly-hacked shell script might need some tweaking to be more
> broadly applicable, but this seems like an approach that could avoid
> developer time being taken up with these problems (and also avoid a lot
> of poor user experiences)?
A (perhaps?) more reliable approach (though it won't work
cross-compiling): just compile a test boost program with $(CXX), make
sure it doesn't blow up...
-- Nathaniel