[lsst-dm-stack-users] Fwd: Troubles building Winter2013Beta on Ubuntu 11.04

Jim Bosch jbosch at astro.princeton.edu
Thu Apr 11 12:54:31 PDT 2013


I'm afraid the root problem here is a known bug in gcc 4.5 that makes it incompatible with the ndarray package (we have to #ifdef out parts of ndarray to get it to work at all with gcc 4.5, and those parts are in use by afw here).  Both gcc 4.4 and gcc 4.6 are known to work.  If it's possible to try one of those compilers on your system (or clang), I would recommend that.

HTH!

Jim




On 04/11/2013 03:32 PM, Paul Price wrote:
> This looks like your bug.
>
> P.
>
>
> Begin forwarded message:
>
>> *From: *Heather Kelly <heather625 at gmail.com <mailto:heather625 at gmail.com>>
>> *Subject: **[lsst-dm-stack-users] Troubles building Winter2013Beta on Ubuntu 11.04*
>> *Date: *April 11, 2013 11:39:31 AM EDT
>> *To: *lsst-dm-stack-users at lsstcorp.org <mailto:lsst-dm-stack-users at lsstcorp.org>
>> *Reply-To: *heather625 at gmail.com <mailto:heather625 at gmail.com>
>>
>>
>> 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 <http://6.1.0.1/>+2 , base/6.1.0.0 <http://6.1.0.0/>+1 , lsst_thirdparty/6.1.0.3 <http://6.1.0.3/>+1 , testing_displayQA/6.1.0.0 <http://6.1.0.0/>+3 , ndarray/6.1.0.0 <http://6.1.0.0/>+1 , pex_exceptions/6.1.0.0 <http://6.1.0.0/>+1 , utils/6.1.0.0 <http://6.1.0.0/>+1 , daf_base/6.1.0.0 <http://6.1.0.0/>+1 , geom/6.1.0.0 <http://6.1.0.0/>+1 , pex_logging/6.1.0.0 <http://6.1.0.0/>+1 , pex_policy/6.1.0.0 <http://6.1.0.0/>+1 , daf_persistence/6.1.0.0 <http://6.1.0.0/>+1 , pex_config/6.1.0.0 <http://6.1.0.0/>+1 } successfully
>>
>> but failed installing 'afw/6.1.1.1 <http://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
>> _______________________________________________
>> lsst-dm-stack-users mailing list
>> lsst-dm-stack-users at lsstcorp.org <mailto:lsst-dm-stack-users at lsstcorp.org>
>> http://listserv.lsstcorp.org/mailman/listinfo/lsst-dm-stack-users
>




More information about the dm-users mailing list