Opened 12 years ago

Last modified 12 years ago

#272 new defect

Proble building asap-4.0.0 of fedora 17 (x64)

Reported by: anonymous Owned by: Malte Marquarding
Priority: normal Milestone: Unified development
Component: General Version: 2.0
Severity: major Keywords: fedora 17
Cc:

Description

I'm trying to build ASAP-4.0.0 on fedora 17 (x64). I built it on fedora 16 (32bit) and that was ok. See below for the error. Any clues would be appreciated.

Thanks Kym

[

root@maths14 asap]# cd asap-4.0.0/
[root@maths14 asap-4.0.0]# scons cfitsioincdir=/usr/include/cfitsio
scons: Reading SConscript files ...
Restoring previous command-line options from 'options.cache'
Checking for C++ library casa_casa... (cached) yes
Checking for C header file Python.h... (cached) yes
Checking for C library python2.7... (cached) yes
Checking for C++ library boost_python... (cached) yes
Checking for C++ library pyrap... (cached) no
Checking for C header file numpy/config.h... (cached) no
Checking for C header file numpy/numpyconfig.h... (cached) yes
Checking for C library m... (cached) yes
Checking for C library cfitsio... (cached) yes
Checking for C library wcs... (cached) yes
Checking for C library rpfits... (cached) yes
Checking for C library lapack... (cached) yes
Checking for C library blas... (cached) yes
Checking for C library gfortran... (cached) yes
Checking for C++ library stdc++... (cached) yes
scons: done reading SConscript files.
scons: Building targets ...
g++ -o build/STFitter.o -c -O2 -DWCSLIB_GETWCSTAB -fPIC -DHAVE_LIBPYRAP -DAIPS_USENUMPY -I/usr/include/cfitsio -I/usr/local/include/casacore -I/usr/include/python2.7 -I/usr/lib64/python2.7/site-packages/numpy/core/include -Iexternal-alma src/STFitter.cpp
src/STFitter.cpp: In member function 'bool asap::Fitter::computeEstimate()':
src/STFitter.cpp:121:30: error: request for member 'getAmpl' in 'listGauss.casa::SpectralList::operator[](i)', which is of pointer type 'casa::SpectralElement*' (maybe you meant to use '->' ?)
src/STFitter.cpp:122:30: error: request for member 'getCenter' in 'listGauss.casa::SpectralList::operator[](i)', which is of pointer type 'casa::SpectralElement*' (maybe you meant to use '->' ?)
src/STFitter.cpp:123:30: error: request for member 'getFWHM' in 'listGauss.casa::SpectralList::operator[](i)', which is of pointer type 'casa::SpectralElement*' (maybe you meant to use '->' ?)
scons: *** [build/STFitter.o] Error 1
scons: building terminated because of errors.

Change History (2)

comment:1 in reply to:  description Changed 12 years ago by s.p.c.peters@…

Same problem here. Looks like a problem that is actually originating in CASA Core. Maybe they modified things a bit?

I modified the lines up there into

(*g)[0] = static_cast<GaussianSpectralElement?*>(listGauss[i])->getAmpl(); (*g)[1] = static_cast<GaussianSpectralElement?*>(listGauss[i])->getCenter(); (*g)[2] = static_cast<GaussianSpectralElement?*>(listGauss[i])->getFWHM();

And it seems to be compiling now. No promises on if it actually doing what it should do, since I don't use that function..

Replying to anonymous:

I'm trying to build ASAP-4.0.0 on fedora 17 (x64). I built it on fedora 16 (32bit) and that was ok. See below for the error. Any clues would be appreciated.

Thanks Kym

[

root@maths14 asap]# cd asap-4.0.0/
[root@maths14 asap-4.0.0]# scons cfitsioincdir=/usr/include/cfitsio
scons: Reading SConscript files ...
Restoring previous command-line options from 'options.cache'
Checking for C++ library casa_casa... (cached) yes
Checking for C header file Python.h... (cached) yes
Checking for C library python2.7... (cached) yes
Checking for C++ library boost_python... (cached) yes
Checking for C++ library pyrap... (cached) no
Checking for C header file numpy/config.h... (cached) no
Checking for C header file numpy/numpyconfig.h... (cached) yes
Checking for C library m... (cached) yes
Checking for C library cfitsio... (cached) yes
Checking for C library wcs... (cached) yes
Checking for C library rpfits... (cached) yes
Checking for C library lapack... (cached) yes
Checking for C library blas... (cached) yes
Checking for C library gfortran... (cached) yes
Checking for C++ library stdc++... (cached) yes
scons: done reading SConscript files.
scons: Building targets ...
g++ -o build/STFitter.o -c -O2 -DWCSLIB_GETWCSTAB -fPIC -DHAVE_LIBPYRAP -DAIPS_USENUMPY -I/usr/include/cfitsio -I/usr/local/include/casacore -I/usr/include/python2.7 -I/usr/lib64/python2.7/site-packages/numpy/core/include -Iexternal-alma src/STFitter.cpp
src/STFitter.cpp: In member function 'bool asap::Fitter::computeEstimate()':
src/STFitter.cpp:121:30: error: request for member 'getAmpl' in 'listGauss.casa::SpectralList::operator[](i)', which is of pointer type 'casa::SpectralElement*' (maybe you meant to use '->' ?)
src/STFitter.cpp:122:30: error: request for member 'getCenter' in 'listGauss.casa::SpectralList::operator[](i)', which is of pointer type 'casa::SpectralElement*' (maybe you meant to use '->' ?)
src/STFitter.cpp:123:30: error: request for member 'getFWHM' in 'listGauss.casa::SpectralList::operator[](i)', which is of pointer type 'casa::SpectralElement*' (maybe you meant to use '->' ?)
scons: *** [build/STFitter.o] Error 1
scons: building terminated because of errors.

comment:2 Changed 12 years ago by s.p.c.peters@…

No undo button, so here it is again..

      (*g)[0] = static_cast<GaussianSpectralElement*>(listGauss[i])->getAmpl();
      (*g)[1] = static_cast<GaussianSpectralElement*>(listGauss[i])->getCenter();
      (*g)[2] = static_cast<GaussianSpectralElement*>(listGauss[i])->getFWHM();
Note: See TracTickets for help on using tickets.