ISIS non-thermal module compilation error

From: Jamie Cohen <jcohen_at_email.domain.hidden>
Date: Mon, 29 Apr 2013 10:25:42 -0400
Dear All,

I'm trying to compile isis and the non-thermal module for isis on a mac
running Mountain Lion. I compiled gsl and slang2 via macports, both with
the universal variants, and am using gcc 4.2.1 and gfortan 4.6.3 (both
recommended for building heasoft). If I follow the mac installation
instructions for isis, building everything (heasoft & xspec+patch, the
S-Lang gsl L module, and isis) with -m32 flags, I don't notice any obvious
compilation errors when building isis, but when I call isis on the command
line it says:

* S-Lang Library not built properly.  Fix SIZEOF_* in config.h and
recompile.*

 Despite this, I continue on and try to compile the non-thermal module, and
when I do, I get the following make error:

*/usr/bin/gcc -m32 -bundle -flat_namespace -undefined suppress -g -O2
 -fno-common -I/opt/local/include -I/usr/local/isis/1.6.2/include
-I/opt/local/include  libnonthermal.c -o
/Users/jmcohen/Desktop/nonthermal-1.0.2/src/elfobjs/libnonthermal.so
/Users/jmcohen/Desktop/nonthermal-1.0.2/src/elfobjs/bbody.o
/Users/jmcohen/Desktop/nonthermal-1.0.2/src/elfobjs/bisect.o
/Users/jmcohen/Desktop/nonthermal-1.0.2/src/elfobjs/bspline_22.o
/Users/jmcohen/Desktop/nonthermal-1.0.2/src/elfobjs/syn_table.o
/Users/jmcohen/Desktop/nonthermal-1.0.2/src/elfobjs/ic_table.o
/Users/jmcohen/Desktop/nonthermal-1.0.2/src/elfobjs/ntb_table.o
/Users/jmcohen/Desktop/nonthermal-1.0.2/src/elfobjs/pizero_table.o
/Users/jmcohen/Desktop/nonthermal-1.0.2/src/elfobjs/synchrotron.o
/Users/jmcohen/Desktop/nonthermal-1.0.2/src/elfobjs/inverse_compton.o
/Users/jmcohen/Desktop/nonthermal-1.0.2/src/elfobjs/ntbrems.o
/Users/jmcohen/Desktop/nonthermal-1.0.2/src/elfobjs/pizero.o
/Users/jmcohen/Desktop/nonthermal-1.0.2/src/elfobjs/particle_spectrum.o
 -L/opt/local/lib -lgsl -lgslcblas -L/usr/local/isis/1.6.2/lib -lisis   -lm*
*ld: can't link with bundle (MH_BUNDLE) only dylibs (MH_DYLIB) for
architecture i386*
*collect2: ld returned 1 exit status*
*make[1]: *** [libnonthermal.so] Error 1*
*make: *** [all] Error 2*

I also tried to rebuild everything listed above without the -m32 flags.
When doing this, isis seem to work (when I run isis I don't get that S-LANG
not built properly error message). When I then try to compile the
non-thermal module for isis I get the following similar make error:

*gcc -bundle -flat_namespace -undefined suppress -g -O2  -fno-common
-I/opt/local/include -I/usr/local/isis/1.6.2/include -I/opt/local/include
 libnonthermal.c -o
/Users/jmcohen/Desktop/nonthermal-1.0.2/src/elfobjs/libnonthermal.so
/Users/jmcohen/Desktop/nonthermal-1.0.2/src/elfobjs/bbody.o
/Users/jmcohen/Desktop/nonthermal-1.0.2/src/elfobjs/bisect.o
/Users/jmcohen/Desktop/nonthermal-1.0.2/src/elfobjs/bspline_22.o
/Users/jmcohen/Desktop/nonthermal-1.0.2/src/elfobjs/syn_table.o
/Users/jmcohen/Desktop/nonthermal-1.0.2/src/elfobjs/ic_table.o
/Users/jmcohen/Desktop/nonthermal-1.0.2/src/elfobjs/ntb_table.o
/Users/jmcohen/Desktop/nonthermal-1.0.2/src/elfobjs/pizero_table.o
/Users/jmcohen/Desktop/nonthermal-1.0.2/src/elfobjs/synchrotron.o
/Users/jmcohen/Desktop/nonthermal-1.0.2/src/elfobjs/inverse_compton.o
/Users/jmcohen/Desktop/nonthermal-1.0.2/src/elfobjs/ntbrems.o
/Users/jmcohen/Desktop/nonthermal-1.0.2/src/elfobjs/pizero.o
/Users/jmcohen/Desktop/nonthermal-1.0.2/src/elfobjs/particle_spectrum.o
 -L/opt/local/lib -lgsl -lgslcblas -L/usr/local/isis/1.6.2/lib -lisis   -lm*
*ld: can't link with bundle (MH_BUNDLE) only dylibs (MH_DYLIB) for
architecture x86_64*
*collect2: ld returned 1 exit status*
*make[1]: *** [libnonthermal.so] Error 1*
*make: *** [all] Error 2*

Any help with solving this problem would be much appreciated, and thanks in
advance.

Best,
Jamie

----
You received this message because you are
subscribed to the isis-users list.
To unsubscribe, send a message to
isis-users-request_at_email.domain.hiddenwith the first line of the message as:
unsubscribe
Received on Mon Apr 29 2013 - 10:26:45 EDT

This archive was generated by hypermail 2.3.0 : Fri May 02 2014 - 08:35:47 EDT