Hi All,
Has anyone succesfully built Starlink on Fedora 7 x86_64? I'm running
into a problem which has confounded me. I started with a fresh
checkout yesterday.
It's failing on skycat, for reasons I don't understand:
cd thirdparty/eso/skycat \
&& (make && make install) >make.log 2>make.log.err || { cat make.log.err; false; }
Makefile:521: warning: overriding commands for target `distclean'
Makefile:462: warning: ignoring old commands for target `distclean'
./libwcs/wcs.c: In function `wcspos':
./libwcs/wcs.c:2311: warning: passing argument 1 of `wcsrev' from incompatible pointer type
./libwcs/wcs.c: In function `wcspix':
./libwcs/wcs.c:2340: warning: passing argument 2 of `wcsset' from incompatible pointer type
./libwcs/wcs.c:2364: warning: passing argument 1 of `wcsfwd' from incompatible pointer type
eval.y: In function `Do_BinOp_lng':
eval.y:2754: warning: cast from pointer to integer of different size
eval.y:2787: warning: cast to pointer from integer of different size
eval.y: In function `Do_BinOp_dbl':
eval.y:2935: warning: cast from pointer to integer of different size
eval.y:2968: warning: cast to pointer from integer of different size
ar: creating librtdImgEvt.a
ar: creating librtdRemote.a
/aspersa/scuba2/star-build/thirdparty/eso/skycat/skycat/rtd/librtd3.0.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&)'
/aspersa/scuba2/star-build/thirdparty/eso/skycat/skycat/astrotcl/libastrotcl2.0.so: undefined reference to `std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::_M_sync(char*, unsigned long, unsigned long)'
/aspersa/scuba2/star-build/thirdparty/eso/skycat/skycat/rtd/librtd3.0.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage'
/aspersa/scuba2/star-build/thirdparty/eso/skycat/skycat/rtd/librtd3.0.so: undefined reference to `__gnu_cxx::__exchange_and_add(int volatile*, int)'
collect2: ld returned 1 exit status
make[2]: *** [tRtd] Error 1
make[1]: *** [all] Error 2
make: *** [/aspersa/scuba2/star/manifests/skycat] Error 1
basic_string.h is here:
/usr/include/c++/4.1.2/bits/basic_string.h
as expected.
Further info that may be of relevance:
% gcc --version
gcc (GCC) 4.1.2 20070502 (Red Hat 4.1.2-12)
% g++ --version
g++ (GCC) 4.1.2 20070502 (Red Hat 4.1.2-12)
% g95 --version
G95 (GCC 4.1.2 (g95 0.91!) Sep 26 2007)
% uname -r
2.6.22.5-76.fc7
(latest FC kernel)
% ldd /aspersa/scuba2/star-build/thirdparty/eso/skycat/skycat/rtd/librtd3.0.so
libastrotcl2.0.so => not found
libtclutil2.0.so => not found
libBLT24.so => /aspersa/scuba2/star/lib/libBLT24.so (0x00002aaaaadac000)
libX11.so.6 => /usr/lib64/libX11.so.6 (0x00002aaaab0c5000)
libXext.so.6 => /usr/lib64/libXext.so.6 (0x00002aaaab3d0000)
libtcl8.4.so => /usr/lib64/libtcl8.4.so (0x00002aaaab5e1000)
libtk8.4.so => /usr/lib64/libtk8.4.so (0x00002aaaab8a7000)
libstdc++.so.5 => /usr/lib64/libstdc++.so.5 (0x00002aaaabba1000)
libm.so.6 => /lib64/libm.so.6 (0x00002aaaabe7c000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00002aaaac100000)
libc.so.6 => /lib64/libc.so.6 (0x00002aaaac30e000)
libXau.so.6 => /usr/lib64/libXau.so.6 (0x00002aaaac65f000)
libXdmcp.so.6 => /usr/lib64/libXdmcp.so.6 (0x00002aaaac862000)
libdl.so.2 => /lib64/libdl.so.2 (0x00002aaaaca67000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00002aaaacc6b000)
/lib64/ld-linux-x86-64.so.2 (0x0000555555554000)
I assume the first 2 `not founds' are just due to the fact that the
skycat install wasn't completed.
The following relevant environment variables are set:
STARCONF_DEFAULT_STARLINK=/aspersa/scuba2/star
STARCONF_DEFAULT_PREFIX=/aspersa/scuba2/star
STAR_SOURCE_ROOT_DIR=/aspersa/scuba2/star-build
FC=g95
F77=g95
Any clues? Have I forgotten something? The build works fine on Kubuntu
6.06LTS.
On another note, I notice that `make distclean' does not remove the
follow config.cache files:
thirdparty/tclsys/tclx/config.cache
thirdparty/tclsys/tk/unix/config.cache
thirdparty/tclsys/itcl/config.cache
thirdparty/tclsys/tcl/unix/config.cache
thirdparty/config.cache
thirdparty/heasarc/cfitsio/cfitsio/config.cache
thirdparty/eso/skycat/skycat/config.cache
which can cause problems (at least, it was causing me problems running
into fake Tcl errors).
Cheers,
Andy
|