Skip to content

Instantly share code, notes, and snippets.

View cdeil's full-sized avatar

Christoph Deil cdeil

View GitHub Profile
@cdeil
cdeil / clang_librootnumpy_compile_warnings.log
Created September 9, 2012 21:59
clang_librootnumpy_compile_warnings
ip0x0872:rootpy deil$ rm -r build/
ip0x0872:rootpy deil$ python setup.py build
_
_ __ ___ ___ | |_ _ __ _ _
| '__/ _ \ / _ \| __| '_ \| | | |
| | | (_) | (_) | |_| |_) | |_| |
|_| \___/ \___/ \__| .__/ \__, |
|_| |___/
0.7.0-a0
@cdeil
cdeil / GammaLib-00-06-00_Mac_10.8_default_log.txt
Created September 15, 2012 12:22
GammaLib-00-06-00_Mac_10.8_default_log
ChristophMacbook:~ deil$ cd code/gammalib-00-06-00
ChristophMacbook:gammalib-00-06-00 deil$ ./configure
checking for a BSD-compatible install... /opt/local/bin/ginstall -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make sets $(MAKE)... (cached) yes
checking build system type... i686-apple-darwin12.1.0
checking host system type... i686-apple-darwin12.1.0
checking for g++... g++
@cdeil
cdeil / GammaLib-00-06-00_Linux_default_log.txt
Created September 15, 2012 12:49
GammaLib-00-06-00_Linux_default_log
lfs1> cd gammalib-00-06-00
lfs1> ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make sets $(MAKE)... (cached) yes
checking build system type... x86_64-redhat-linux-gnu
checking host system type... x86_64-redhat-linux-gnu
checking for g++... g++
@cdeil
cdeil / GammaLib-00-06-00_Mac_10.8_clang_log.txt
Created September 15, 2012 12:54
GammaLib-00-06-00_Mac_10.8_clang_log
make clean
Making clean in test
rm -f test_GSupport test_GSupport
rm -f test_GVector test_GVector
rm -f test_GMatrix test_GMatrix
rm -f test_GSymMatrix test_GSymMatrix
rm -f test_GSparseMatrix test_GSparseMatrix
rm -f test_GNumerics test_GNumerics
rm -f test_GFits test_GFits
rm -f test_GXml test_GXml
@cdeil
cdeil / GammaLib-00-06-00_Mac_10.8_Macports_gcc47_log
Created September 15, 2012 13:21
GammaLib-00-06-00_Mac_10.8_Macports_gcc47_log
ChristophMacbook:code deil$ cd gammalib-00-06-00
ChristophMacbook:gammalib-00-06-00 deil$ export CC=gcc-mp-4.7
ChristophMacbook:gammalib-00-06-00 deil$ export CXX=g++-mp-4.7
ChristophMacbook:gammalib-00-06-00 deil$ ./configure
checking for a BSD-compatible install... /opt/local/bin/ginstall -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make sets $(MAKE)... (cached) yes
checking build system type... i686-apple-darwin12.1.0
christophmacbook:gammalib-00-06-00 deil$ make
make all-recursive
Making all in include
make[2]: Nothing to be done for `all'.
Making all in inst
Making all in mwl
make[3]: Nothing to be done for `all'.
Making all in cta
make[3]: Nothing to be done for `all'.
Making all in lat
// Test program to debug a problem where an exception is not
// caught with Macports GCC 4.7 on Mac, but with other compilers
// on the same machine and with GCC 4.7 on Linux it is caught.
// https://sourceforge.net/p/gammalib/bugs/9
//
// TODO: At the moment this program doesn't reproduce the bug,
// catching works correctly with any compiler.
#include <string>
#include <iostream>
@cdeil
cdeil / Makefile
Created September 16, 2012 12:12
exception_not_catched_example
CXX=g++-mp-4.7
CFLAGS=-fopenmp -O2 -g
all:
$(CXX) $(CFLAGS) -c main.cpp
$(CXX) $(CFLAGS) -c lib.cpp -fPIC -DPIC
$(CXX) $(CFLAGS) -fPIC -DPIC -shared lib.o -o liba.so.1
ln -sf liba.so.1 liba.so
$(CXX) $(CFLAGS) -o main main.o -L. -la
LD_LIBRARY_PATH=`pwd` ./main
@cdeil
cdeil / gist:3796624
Created September 27, 2012 21:40
atpy doesn't read table data from very large files correctly!
from time import time
import numpy as np
from atpy import Table
nrows = int(8010973)
ncols = 70
#length = int(8010973)
print('Creating table')
data = np.arange(nrows, dtype='int32')
$ python setup.py install --user
non-existing path in 'skimage/_shared': 'tests'
cython -o /Users/deil/code/scikit-image/skimage/_shared/geometry.c /Users/deil/code/scikit-image/skimage/_shared/geometry.pyx
cython -o /Users/deil/code/scikit-image/skimage/_shared/interpolation.c /Users/deil/code/scikit-image/skimage/_shared/interpolation.pyx
cython -o /Users/deil/code/scikit-image/skimage/_shared/transform.c /Users/deil/code/scikit-image/skimage/_shared/transform.pyx
cython -o /Users/deil/code/scikit-image/skimage/draw/_draw.c /Users/deil/code/scikit-image/skimage/draw/_draw.pyx
non-existing path in 'skimage/draw': '../shared'
cython -o /Users/deil/code/scikit-image/skimage/feature/_texture.c /Users/deil/code/scikit-image/skimage/feature/_texture.pyx
cython -o /Users/deil/code/scikit-image/skimage/feature/_template.c /Users/deil/code/scikit-image/skimage/feature/_template.pyx
cython -o /Users/deil/code/scikit-image/skimage/filter/_ctmf.c /Users/deil/code/scikit-image/skimage/filter/_ctmf.pyx