[lsst-dm-stack-users] Difficulties installing DM on Ubuntu 11
Dustin Lang
dstndstn at gmail.com
Mon Apr 21 09:37:54 PDT 2014
Hi Heather,
Some recent compilers have gotten fussy about the argument ordering when
linking: libraries have to appear *after* the code that uses them, so
"-lm" must go at the very end. The ancient version of the astrometry.net
code used in the LSST stack doesn't have those fixes to its Makefiles,
though I'm surprised there isn't a fix/patch/workaround in the LSST build
scripts. Others will have to chime in on that.
Apologies for the trouble (that's my code),
--dustin
On Mon, 21 Apr 2014, Heather Kelly wrote:
> Hi,
> I'm trying to install DMstack on an Ubuntu 11.1 lab machine at BNL:
> Distributor ID: Ubuntu
> Description: Ubuntu 11.10
> Release: 11.10
> Codename: oneiric
>
> I've tried both Winter2014 and Summer2013 and I end up with the same
> compilation error, which to me.. seems really odd.. I clearly see "-lm"
> in the build command, so it's odd that "roundf" is seen to be missing..
> and now I'm going to click "send" and something silly will occur to me,
> but any suggestions would be very welcome:
>
> cc -std=gnu89 -std=gnu89 -g -Wall -ffinite-math-only
> -fno-signaling-nans -pthread -mtune=generic -O3 -fomit-frame-pointer
> -DNDEBUG -fPIC -Winline -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> -D_GNU_SOURCE -pthread -I/usr/include/cairo -I/usr/include/glib-2.0
> -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/p
> ixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12
> -I../gsl-an -I../qfits-an/include -I../libkd -I. -c -o
> an-fitstopnm.o an-fitstopnm.c
> cc -g -Wall -ffinite-math-only -fno-signaling-nans -pthread
> -mtune=generic -O3 -fomit-frame-pointer -DNDEBUG -fPIC -Winline -lm
> an-fitstopnm.o libanutils.a ..
> /qfits-an/lib/libqfits.a -o an-fitstopnman-fitstopnm.o: In function
> `main':
> /opt/lsst/DMstack/Winter2014/EupsBuildDir/Linux64/astrometry_net-0.30+3/astrometry_net-0.30+3/util/an-fitstopnm.c:348:
> undefined reference to `roundf'
> /opt/lsst/DMstack/Winter2014/EupsBuildDir/Linux64/astrometry_net-0.30+3/astrometry_net-0.30+3/util/an-fitstopnm.c:339:
> undefined reference to `roundf'
> collect2: ld returned 1 exit status
> make[1]: *** [an-fitstopnm] Error 1
> make[1]: Leaving directory
> `/opt/lsst/DMstack/Winter2014/EupsBuildDir/Linux64/astrometry_net-0.30+3/astrometry_net-0.30+3/util'
> make: *** [all] Error 2
>
> Take care,
> heather
> _______________________________________________
> lsst-dm-stack-users mailing list
> 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