Issue 40 in casacore: Casacore won't compile with gcc4.6/g++4.6

1 view
Skip to first unread message

casa...@googlecode.com

unread,
Feb 23, 2012, 8:00:07 AM2/23/12
to casacor...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 40 by enno.mid...@gmail.com: Casacore won't compile with
gcc4.6/g++4.6
http://code.google.com/p/casacore/issues/detail?id=40

Hello,


tried to compile casacore on a freshly installed Linux Mint system
(essentially this is Debian Testing). The gcc/g++ versions are 4.6.1

Both using scons and cmake didn't work - there was the same error:

In file included from /opt/casacore-1.3.0/casa/Arrays/ArrayBase.h:34:0,
from /opt/casacore-1.3.0/casa/Arrays/Array.h:32,
from /opt/casacore-1.3.0/casa/Arrays/ArrayMath.h:34,
from /opt/casacore-1.3.0/casa/Arrays/Array2Math.cc:28:
/opt/casacore-1.3.0/casa/Arrays/IPosition.h:358:13: error: ‘ptrdiff_t’ does
not name a type
In file included from /opt/casacore-1.3.0/casa/Arrays/Array.h:33:0,
from /opt/casacore-1.3.0/casa/Arrays/ArrayMath.h:34,
from /opt/casacore-1.3.0/casa/Arrays/Array2Math.cc:28:
/opt/casacore-1.3.0/casa/Containers/Block.h:310:11: error: ‘ptrdiff_t’ does
not name a type
In file included from /opt/casacore-1.3.0/casa/Arrays/ArrayMath.h:34:0,
from /opt/casacore-1.3.0/casa/Arrays/Array2Math.cc:28:
/opt/casacore-1.3.0/casa/Arrays/Array.h:593:15: error: ‘ptrdiff_t’ does not
name a type
/opt/casacore-1.3.0/casa/Arrays/Array.h:631:15: error: ‘ptrdiff_t’ does not
name a type
make[2]: *** [casa/CMakeFiles/casa_casa.dir/Arrays/Array2Math.cc.o] Error 1
make[1]: *** [casa/CMakeFiles/casa_casa.dir/all] Error 2
make: *** [all] Error 2


Switching back to gcc/g++ v4.4 did the trick:

scons --with-cc=/usr/bin/gcc-4.4 --with-cxx=/usr/bin/g++-4.4 --prefix=/tmp
--wcs-root=/opt/



Regards,

Enno


casa...@googlecode.com

unread,
Feb 23, 2012, 6:32:55 PM2/23/12
to casacor...@googlegroups.com
Updates:
Status: Accepted

Comment #1 on issue 40 by Malte.Marquarding: Casacore won't compile with
gcc4.6/g++4.6
http://code.google.com/p/casacore/issues/detail?id=40

1.3 is fairly old so could you check if "trunk" builds. A new release will
be made soon (off trunk).


casa...@googlecode.com

unread,
Mar 22, 2012, 3:54:44 AM3/22/12
to casacor...@googlegroups.com
Updates:
Status: Fixed
Owner: gervandi...@gmail.com

Comment #2 on issue 40 by gervandi...@gmail.com: Casacore won't compile
with gcc4.6/g++4.6
http://code.google.com/p/casacore/issues/detail?id=40

This has been fixed and will be available in release 1.4.

Reply all
Reply to author
Forward
0 new messages