Chandra X-Ray Observatory (CXC)
Skip to the navigation links
Last modified: 2 May 2013

URL: http://cxc.harvard.edu/ciao/bugs/sourcebuild.html

Bugs: Building CIAO from Source


Table of Contents

Caveats

Bugs


Caveats

pkg-config must be version 0.18 or newer

To find out the version on your system:

pkg-config --version

If it is older then 0.18 or is not installed, you can the pkg-config included with the CIAO OTS.

setenv PATH <location of ciao>/ciao-4.4/ots/bin:$PATH
rehash

This must be done before running configure.

Download the binary tarfiles to use the precompiled OTS

If you are building from source but wish to use the compiled OTS packaged with CIAO (e.g. the CIAO copy of Python), it is necessary to download both the source and binary files.

Incompatible GCC compiler on Mac 10.7 (Lion)

Apple has upgraded the gcc compiler in the latest version of the developer toolkit from 4.2.1 to 4.4.1. This update impacts the source build of CIAO on Lion. Please contact the Helpdesk if you require assistance in building CIAO with the new compiler.

Building 32 bit CIAO on a 64 bit machine: if chips, transforms and crates fail to build

When performing a 32 bit build on a 64 bit machine, the chips, transforms and crates directories may fail to build. After running the configure command, the file src/include/Makefile.cxc needs to be updated to add the following two macro definitions which are necessary to compile the transforms, crates, and chips python modules:

CCFLAGS = -m32
FFLAGS = -m32

Bugs

Source builds with CIAO using OSX llvm[New] (02 May 2013)

Newer versions XCode (> 4.2) have switched to using the 'llvm' compiler instead GNU's gcc. There are several incompatibilities in llvm that cause building CIAO to fail.

The llvm compilers have a GNU back compatiblitity mode that is enabled by set the compilers expliciity before running configure (or python setup.py).

bash> export CC=/usr/bin/gcc
bash> export CXX=/usr/bin/g++ 
  
    or

tcsh% setenv CC /usr/bin/gcc
tcsh% setenv CXX /usr/bin/g++

Known build issues with GCC 4.7 and above[New] (02 May 2013)

There are various problems building CIAO with GCC version 4.7 and above. CIAO should be built with an earlier version of GCC.


Last modified: 2 May 2013
CXC logo

The Chandra X-Ray Center (CXC) is operated for NASA by the Smithsonian Astrophysical Observatory. 60 Garden Street, Cambridge, MA 02138 USA.   Email: cxcweb@head.cfa.harvard.edu Smithsonian Institution, Copyright © 1998-2012. All rights reserved.