source: dynamico_lmdz/simple_physics/bash/compile_XCodeML.sh @ 4236

Last change on this file since 4236 was 4236, checked in by dubos, 5 years ago

simple_physics : some Python bindings

  • Property svn:executable set to *
File size: 1.4 KB
Line 
1#!/bin/bash
2
3
4# Compiles the omni-compiler suite, especially the Fortran front-end F_Front
5# which is used to parse the physics code and (later) check that coding standards are followed.
6
7# F_Front will be installed in the directory from which this script has been invoked.
8# Before executing this script, cd to the directory where you want to install.
9# e.g. > cd $HOME/local . Then F_Front will be in $HOME/local/bin .
10
11# There are chances this script fails on OSX if the standard gcc is used. You can try with a more recent gcc, which is easy to
12# install through Homebrew. The XML library libxml2 will be required too :
13#   * install gcc and libxml2 : > brew install gcc libxml2
14#   * check : > which gfortran
15#   * cd to simple_physics/bash/omnicompiler-1.3.2
16#   * run the configure script with :
17#          > CC=/usr/local/bin/gcc-9 ./configure --prefix=$HOME/local --with-libxml2=/usr/local/Cellar/libxml2/2.9.10/
18#    (your version numbers may be different
19#   * make all install
20#   * even if the full build fails, you may find a working F_Front in xcodeml-tools/F-FrontEnd/src :
21#          > xcodeml-tools/F-FrontEnd/src/F_Front --help
22#   * copy F_Front where desired
23 
24PREFIX=$(pwd)
25ROOT=$(dirname $0)
26ROOT=$(cd -P $ROOT ; pwd)
27
28OMNI=omnicompiler-1.3.2
29
30#echo "prefix : $PREFIX"
31#echo "ROOT   : $ROOT"
32cd $ROOT
33rm -rf ${OMNI}
34tar xjf ${OMNI}.tar.bz2
35cd ${OMNI}
36./configure --prefix=$PREFIX
37make -j 8
38make install
39ls -l $PREFIX/bin
Note: See TracBrowser for help on using the repository browser.