Commit c009a3268e83fc71f73e3eac1c4bcf3a28a1beac
1 parent
bd372e66
Add known issue about compiling against conda
Showing
1 changed file
with
91 additions
and
58 deletions
doc/source/help/issues.rst
| ... | ... | @@ -5,11 +5,95 @@ Known issues |
| 5 | 5 | |
| 6 | 6 | Below you will find a list of known issues. |
| 7 | 7 | |
| 8 | +**Compilation issues** | |
| 9 | + | |
| 10 | +- :ref:`GammaLib does not compile against conda Python <conda_python>` | |
| 11 | +- :ref:`GammaLib does not compile on Mac OS X <issue_macosx>` | |
| 12 | +- :ref:`GammaLib does not compile on Solaris <issue_solaris>` | |
| 13 | +- :ref:`GammaLib does not compile on OpenSolaris <issue_opensolaris>` | |
| 14 | + | |
| 15 | +**Unit testing issues** | |
| 16 | + | |
| 8 | 17 | - :ref:`Many (but not all) unit tests fail <issue_test_fail>` |
| 18 | + | |
| 19 | +**Other issues** | |
| 20 | + | |
| 9 | 21 | - :ref:`Python module does not work <issue_python>` |
| 10 | -- :ref:`Mac OS X <issue_macosx>` | |
| 11 | -- :ref:`Solaris <issue_solaris>` | |
| 12 | -- :ref:`OpenSolaris <issue_opensolaris>` | |
| 22 | + | |
| 23 | +Compilation issues | |
| 24 | +^^^^^^^^^^^^^^^^^^ | |
| 25 | + | |
| 26 | +.. _conda_python: | |
| 27 | + | |
| 28 | +.. topic:: GammaLib does not compile against conda Python | |
| 29 | + | |
| 30 | + Trying to compile GammaLib against conda Python may fail due to | |
| 31 | + incompatibility issues. If you'd like to compile GammaLib against conda | |
| 32 | + Python, make sure that gcc, swig, and cfitsio are all installed via | |
| 33 | + anaconda | |
| 34 | + | |
| 35 | + .. code-block:: bash | |
| 36 | + | |
| 37 | + $ conda install gcc swig | |
| 38 | + $ conda install -c conda-forge cfitsio | |
| 39 | + | |
| 40 | +.. _issue_macosx: | |
| 41 | + | |
| 42 | +.. topic:: GammaLib does not compile on Mac OS X | |
| 43 | + | |
| 44 | + Dependent on the Mac OS X version you are using, not everything that | |
| 45 | + is needed to install GammaLib may be available (e.g. automake, libtool, | |
| 46 | + etc...). The easiest way to get the needed software is using a package | |
| 47 | + management system such as `MacPorts <https://www.macports.org/>`_ or | |
| 48 | + `Homebrew <http://brew.sh/>`_. On a fresh El Capitan install you need | |
| 49 | + for example the following from `Homebrew <http://brew.sh/>`_: | |
| 50 | + | |
| 51 | + .. code-block:: bash | |
| 52 | + | |
| 53 | + $ brew install automake | |
| 54 | + $ brew install libtool | |
| 55 | + $ brew install cfitsio | |
| 56 | + $ brew install swig | |
| 57 | + | |
| 58 | + `swig <http://www.swig.org/>`_ is only necessary if you installed the | |
| 59 | + code from git. Dependening on your system, you also may need to install | |
| 60 | + the Python development package. | |
| 61 | + | |
| 62 | +.. _issue_solaris: | |
| 63 | + | |
| 64 | +.. topic:: GammaLib does not compile on Solaris | |
| 65 | + | |
| 66 | + Although GammaLib builds on Solaris using the Sun compiler, there are | |
| 67 | + problems with global symbols in shared libraries and exception catching, | |
| 68 | + which prevents the FITS interface to work correctly. GammaLib has | |
| 69 | + however been built and tested successfully using the GNU compiler, and | |
| 70 | + this is the only build method that is currently supported. Problems have | |
| 71 | + also been encountered when compiling cfitsio versions more recent than | |
| 72 | + 3.250. The problems have been reported to the cfitsio developer team, | |
| 73 | + and are likely to be solved in the future. For the time being, it is | |
| 74 | + recommended to use cfitsio version 3.250 on Solaris. | |
| 75 | + | |
| 76 | +.. _issue_opensolaris: | |
| 77 | + | |
| 78 | +.. topic:: GammaLib does not compile on OpenSolaris | |
| 79 | + | |
| 80 | + On OpenSolaris, the same problems concerning the SunStudio compiler | |
| 81 | + occur as for Solaris, and also here, the GNU compiler is the recommended | |
| 82 | + tool to build GammaLib. Also here, cfitsio version 3.250 is the | |
| 83 | + recommended library as more recent version feature relocation | |
| 84 | + problems. GammaLib has been tested using gcc 4.3.2 on OpenSolaris | |
| 85 | + 2009.06. Make sure to create the following symbolic links if they do | |
| 86 | + not yet exist on your system: | |
| 87 | + | |
| 88 | + .. code-block:: bash | |
| 89 | + | |
| 90 | + $ ln -s /usr/bin/gcc4.3.2 /usr/bin/gcc | |
| 91 | + $ ln -s /usr/bin/g++4.3.2 /usr/bin/g++ | |
| 92 | + | |
| 93 | + They avoid excess warnings during compilation. | |
| 94 | + | |
| 95 | +Unit testing issues | |
| 96 | +^^^^^^^^^^^^^^^^^^^ | |
| 13 | 97 | |
| 14 | 98 | .. _issue_test_fail: |
| 15 | 99 | |
| ... | ... | @@ -48,6 +132,10 @@ Below you will find a list of known issues. |
| 48 | 132 | on Mac OS X (``/directory/to/lib`` should be replaced by the correct |
| 49 | 133 | library path on your system). |
| 50 | 134 | |
| 135 | + | |
| 136 | +Other issues | |
| 137 | +^^^^^^^^^^^^ | |
| 138 | + | |
| 51 | 139 | .. _issue_python: |
| 52 | 140 | |
| 53 | 141 | .. topic:: Python module does not work |
| ... | ... | @@ -71,58 +159,3 @@ Below you will find a list of known issues. |
| 71 | 159 | but if the wrappers don't exist you need `swig <http://www.swig.org/>`_. |
| 72 | 160 | If the ``Python.h`` header file does not exist then install the Python |
| 73 | 161 | development package. |
| 74 | - | |
| 75 | -.. _issue_macosx: | |
| 76 | - | |
| 77 | -.. topic:: Mac OS X | |
| 78 | - | |
| 79 | - Dependent on the Mac OS X version you are using, not everything that | |
| 80 | - is needed to install GammaLib may be available (e.g. automake, libtool, | |
| 81 | - etc...). The easiest way to get the needed software is using a package | |
| 82 | - management system such as `MacPorts <https://www.macports.org/>`_ or | |
| 83 | - `Homebrew <http://brew.sh/>`_. On a fresh El Capitan install you need | |
| 84 | - for example the following from `Homebrew <http://brew.sh/>`_: | |
| 85 | - | |
| 86 | - .. code-block:: bash | |
| 87 | - | |
| 88 | - $ brew install automake | |
| 89 | - $ brew install libtool | |
| 90 | - $ brew install cfitsio | |
| 91 | - $ brew install swig | |
| 92 | - | |
| 93 | - `swig <http://www.swig.org/>`_ is only necessary if you installed the | |
| 94 | - code from git. Dependening on your system, you also may need to install | |
| 95 | - the Python development package. | |
| 96 | - | |
| 97 | -.. _issue_solaris: | |
| 98 | - | |
| 99 | -.. topic:: Solaris | |
| 100 | - | |
| 101 | - Although GammaLib builds on Solaris using the Sun compiler, there are | |
| 102 | - problems with global symbols in shared libraries and exception catching, | |
| 103 | - which prevents the FITS interface to work correctly. GammaLib has | |
| 104 | - however been built and tested successfully using the GNU compiler, and | |
| 105 | - this is the only build method that is currently supported. Problems have | |
| 106 | - also been encountered when compiling cfitsio versions more recent than | |
| 107 | - 3.250. The problems have been reported to the cfitsio developer team, | |
| 108 | - and are likely to be solved in the future. For the time being, it is | |
| 109 | - recommended to use cfitsio version 3.250 on Solaris. | |
| 110 | - | |
| 111 | -.. _issue_opensolaris: | |
| 112 | - | |
| 113 | -.. topic:: OpenSolaris | |
| 114 | - | |
| 115 | - On OpenSolaris, the same problems concerning the SunStudio compiler | |
| 116 | - occur as for Solaris, and also here, the GNU compiler is the recommended | |
| 117 | - tool to build GammaLib. Also here, cfitsio version 3.250 is the | |
| 118 | - recommended library as more recent version feature relocation | |
| 119 | - problems. GammaLib has been tested using gcc 4.3.2 on OpenSolaris | |
| 120 | - 2009.06. Make sure to create the following symbolic links if they do | |
| 121 | - not yet exist on your system: | |
| 122 | - | |
| 123 | - .. code-block:: bash | |
| 124 | - | |
| 125 | - $ ln -s /usr/bin/gcc4.3.2 /usr/bin/gcc | |
| 126 | - $ ln -s /usr/bin/g++4.3.2 /usr/bin/g++ | |
| 127 | - | |
| 128 | - They avoid excess warnings during compilation. | ... | ... |