[lsst-dm-stack-users] Troubles building Winter2013Beta on Ubuntu 11.04
Heather Kelly
heather625 at gmail.com
Thu Apr 11 08:39:31 PDT 2013
One of our collaborators in Paris was trying to install the Winter2013Beta
from source on Unbuntu 11.04. He has followed the instructions but has run
into a compilation error. Actually.. we did go back and note the linking
updating:
Ubuntu 12.04 specific
step<https://dev.lsstcorp.org/trac/wiki/Installing/Winter2013#Ubuntu12.04specificstep>
Starting with Natty Narwhal (Ubuntu 11.04), Ubuntu changed the behavior of
the linker (for details, see
https://wiki.ubuntu.com/NattyNarwhal/ToolchainTransition). While this is
intended to make linking more robust, this currently breaks the LSST build.
To undo the effects of these changes, add the following environment
variables
export LDFLAGS+=" -Wl,--no-as-needed"
SCONSFLAGS+=" LINKFLAGS='-Wl,--no-as-needed' --setenv"
and following those additional instructions didn't help, as likely expected
since this appears to be a compilation issue. It did seem to cause the
error to come up for FootprintSet.cc rather than Footprint.cc
Here are the details:
I did not succeed in installing the Winter2013Beta stack version
- on Ubuntu 11.04,
- with C++ compiler g++ version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4)
Hereafter is a copy of my logfile :
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%**%%%%%%%%%%%%%
Now try installing the beta version Winter13,
following the 'Step by step instructions (for Linux)' wiki section :
$ unset LSST_HOME EUPS_PATH
$ mkdir DMSwinter13; cd DMSwinter13
$ curl -O http://sw.lsstcorp.org/pkgs/**std/w12/newinstall.sh<http://sw.lsstcorp.org/pkgs/std/w12/newinstall.sh>
$ bash newinstall.sh
$ export LANG=C; export CC=clang; export CXX=clang++;
$ export NCORES [...]; export MAKEFLAGS="-j $NCORES"
$ export SCONSFLAGS="-j $NCORES"
$ source loadLSST.sh
$ eups distrib install --nolocks -t v6_1 lsst_distrib
==> install
{ external/pyfits/3.1+1 , sconsUtils/6.1.0.1+2 , base/6.1.0.0+1 ,
lsst_thirdparty/6.1.0.3+1 , testing_displayQA/6.1.0.0+3 , ndarray/6.1.0.0+1
, pex_exceptions/6.1.0.0+1 , utils/6.1.0.0+1 , daf_base/6.1.0.0+1 , geom/
6.1.0.0+1 , pex_logging/6.1.0.0+1 , pex_policy/6.1.0.0+1 , daf_persistence/
6.1.0.0+1 , pex_config/6.1.0.0+1 } successfully
but failed installing 'afw/6.1.1.1+1' at 'Footprint.cc' stage, with error :
"""
include/lsst/afw/table/**BaseColumnView.h:107:5: error: 'result_of' in
namespace 'ndarray' does not name a type
"""
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%**%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%**%%
It's the same error as for Summer2012, which we traced back and somehow
solved by adding '#include "ndarray/vectorize.h"' in the file
'include/lsst/afw/table/**BaseColumnView.h', and re-issuing the last c++
compilation command line, as copied from the 'build.log' file (attached).
Then, there are no warnings and no errors when compiling Footprint.cc .
But I had no clue on how to resume the installation of the remaining source
files and packages from this point.
Also, I don't know if such a modification may or not introduce errors when
compiling other source files which depend on ndarray !?
Any thoughts would be helpful!
Take care,
Heather
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://listserv.lsstcorp.org/pipermail/dm-users/attachments/20130411/f20ed455/attachment.html>
More information about the dm-users
mailing list