Code Monkey home page Code Monkey logo

healpix-autotools's People

Contributors

tskisner avatar

Stargazers

 avatar

Watchers

 avatar  avatar

healpix-autotools's Issues

healpy compiled extensions need headers

At install time, healpy extensions need to have the installed C++ headers in the search path. This means that PREFIX/include must be in the CPATH. A better solution would be to add the relative path to the C++ source directories (../cxx/*) to the include_dirs variable in setup.py

Add configure check for healpy dependencies

Currently the build system assumes that if the python development libs are found, then all package dependencies for healpy are also installed. We should add checks for those and at least print an error and disable healpy building if they are not met. Investigate pyconfig to see whether it could help check for dependencies and in generating setup.py.

On some systems, C++ sources in the python package are being built with the C compiler.

This may be related to issue #3.

Symptom reported:

"... on a recent MacOs (10.10.5) in which I installed a genuine gcc (4.9.2) different from clang (7.0.2)
(while gcc has become an alias for clang without OpenMP on MacOSX).

First, in order to compile the C/C++ code (with gcc) I need to set CFLAGS="-std=c99” before running ‘configure’.
But then this becomes a problem for python during ‘make install’ because I get
clang -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -std=c99 -I/usr/local/lib/python2.7/site-packages/numpy/core/include -I/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c healpy/src/_healpy_pixel_lib.cc -o build/temp.macosx-10.10-x86_64-2.7/healpy/src/_healpy_pixel_lib.o
error: invalid argument '-std=c99' not allowed with 'C++/ObjC++’
"

libsharp routines not found in Fortran

Under MacOSX, with ifort 15.0.2 + gcc 4.9.2, the libsharp routines seem not to be found by the calling fortran codes:

  • the 'make check' step crashes in the F90 step with

    SYNFAST> Generating sky map(s)
    dyld: lazy symbol binding failed: Symbol not found: _sharp_hp_alm2map_pol_x_s _
    Referenced from: [***]/healpix-autotools-3.30.2/src/f90/libhealpix/.libs/libhealpix.1.dylib
    Expected in: flat namespace

dyld: Symbol not found: _sharp_hp_alm2map_pol_x_s _
Referenced from: [***]/healpix-autotools-3.30.2/src/f90/libhealpix/.libs/libhealpix.1.dylib
Expected in: flat namespace

  • this is not only a DYLD_LIBRARY_PATH problem, since there apparently is no _sharp_hp_alm2map _ symbol defined in any of the libraries of PREFIX/lib

C99 mode needed for libsharp on some compilers

Due to loop variable initialization, some compilers (gcc-4.9.0) complain about not have -std=c99. We should add configure checks for c99 and ensure that the compile flags are used in the libsharp Makefile.am

suggestions

Maybe there are already available and I missed them:

  • why not adding the configure flags -disable-cxx and -disable-c for users not interested in the C++ and C implementations
  • even better: how about -fortran-only, -cxx-only, ... (or -add-fortran, -add-cxx), for users interested in only
    one or a few implementations

Why putting the data files directly into PREFIX/share/healpix instead of PREFIX/share/healpix/data ?
This would be cleaner and a bit closer to the original directory structure.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.