AFNI Message Board

Dear AFNI users-

We are very pleased to announce that the new AFNI Message Board framework is up! Please join us at:

https://discuss.afni.nimh.nih.gov

Existing user accounts have been migrated, so returning users can login by requesting a password reset. New users can create accounts, as well, through a standard account creation process. Please note that these setup emails might initially go to spam folders (esp. for NIH users!), so please check those locations in the beginning.

The current Message Board discussion threads have been migrated to the new framework. The current Message Board will remain visible, but read-only, for a little while.

Sincerely, AFNI HQ

History of AFNI updates  

|
Giuseppe Pagnoni
April 23, 2009 03:36AM
Dear Glen,

That's good to know. I was just pointing out that AFNI seems to call "cc" (and /usr/bin/cc is originally linked to gcc-4.0) rather than "gcc", so just changing the symbolic link for gcc does not do the trick for OpenMP (at least on this machine...).

On this topic, I just managed to build AFNI from source using a modified version of the Makefile.macosx_10.5_Intel for using MacPorts instead of Fink (see the Makefile below). The building process completes with seemingly no errors (I tried to attach the build.log file using the "bogus" extension .bmp: it is actually a text, not an image file), but when I attempt to start AFNI it crashes with the following message:

Initializing: X11.
Fatal Signal 10 (SIGBUS) received
open_MCW_imseq
SPLASH_popup_image
AFNI_splashup
MAIN_workprocess
AFNI:main
Bottom of Debug Stack
** AFNI version = AFNI_2008_07_18_1710 Compile date = Apr 23 2009
** [[Precompiled binary macosx_10.5_Intel: Apr 23 2009]]
** Program Abort **


Any clues about what could have gone wrong?


thanks in advance,

g.

*** modified Makefile *** START

# This Makefile is for Mac OSX 10.5 (Leopard)

# You should install 'macports' before using this, and then use it to
# install the packages below:
# glib2
# openmotif
# gsl
#
# The first is needed to compile SUMA; the second for both AFNI and SUMA, the
# third for the compilation of the file "balloon.c".

USE_ZLIB = -DHAVE_ZLIB
LZLIB = -lz
USE_GIFTI = -DHAVE_GIFTI
LGIFTI = -lexpat

XROOT = /opt/local
XROOT_I = -I$(XROOT)/include
XROOT_L = -L$(XROOT)/lib
XLIBS = $(XROOT)/lib/libXm.a -lXt


CCDEBS = -DAFNI_DEBUG -DIMSEQ_DEBUG -DDISPLAY_DEBUG -DTHD_DEBUG
CEXTRA = -Wcomment -Wformat -DUSE_TRACING -DHAVE_XDBE -no-cpp-precomp -DDONT_USE_MCW_MALLOC
CC = cc -O2 -ffast-math -DDARWIN $(CEXTRA)
CCVOL = cc -O2 -ffast-math -DDARWIN $(CEXTRA)
CCFAST = cc -O3 -ftree-vectorize -ffast-math -DDARWIN $(CEXTRA)
CCMIN = cc
CCD = $(CC) $(CCDEBS)

OMPFLAG = -fopenmp -DUSE_OMP

IFLAGS = -I. $(XROOT_I) -I/usr/X11R6/include
LFLAGS = -L. $(XROOT_L) -L/usr/lib -L/usr/X11R6/lib -L/usr/local/lib -Wl,-x -Wl,-multiply_defined -Wl,warning -Wl,-bind_at_load

CCSVD = cc -O0 -no-cpp-precomp

PLUGIN_SUFFIX = so
PLUGIN_LFLAGS = -bundle -flat_namespace -undefined suppress -Wl,-x
PLUGIN_CC = $(CC) -dynamic -fno-common
#PLFLAGS = -dynamic -L. -L/opt/local/lib -L/usr/X11R6/lib -L/usr/local/lib -Wl,-x -Wl,-multiply_defined -Wl,warning -Wl,-bind_at_load
PLFLAGS = -dynamic $(LFLAGS)

# include the line below if you want to include vector arith in 3dDeconvolve_f
# SPECIAL = -framework Accelerate -DUSE_ACCELERATE

AR = /usr/bin/ar
RANLIB = /usr/bin/ranlib
TAR = /usr/bin/tar
MKDIR = /bin/mkdir
GZIP = /usr/bin/gzip
LD = cc

RM = /bin/rm -f
MV = /bin/mv -f
CP = /bin/cp -f

# But there is no "lint" on Mac OS X...
LINT = /usr/bin/lint -a -b -u -v -x $(IFLAGS) $(CCDEFS)

INSTALLDIR = macosx_10.5_Intel
LIBDIR = $(INSTALLDIR)
SHOWOFF = -DSHOWOFF=macosx_10.5_Intel

#INSTALL_PREREQ = suma_gts #won't work with static libglib-2.0.a
#INSTALL_PREREQ = suma_gts
INSTALL_PREREQ = suma
GSLPROGS = balloon
EXPROGS = gifti_tool $(GSLPROGS)
#EXPROGS = gifti_tool

# for dynamic linking

LLIBS = -lmri $(XLIBS) -lXft -lfontconfig -lpng -liconv -lXmu -lXp -lXpm -lXext -lX11 -ljpeg $(LZLIB) $(LGIFTI) -lm -lmri -lc

# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
# For suma
# ZSS Aug. 08. LibGLw.a now made locally and called libGLws.a

# -------------------------------------------------------------------
# # OSX 10.5 has issues with libGL, where the multiple copies cause a cycle
# (somehow). Get around this by using -dylib_file (in a strange way).

SUMA_GLLIB = /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
SUMA_GL_DYLIB_CMD = -dylib_file $(SUMA_GLLIB): $(SUMA_GLLIB)
# -------------------------------------------------------------------


GLw_IPATH =
GLw_LIB = -lGLw
#uncomment next two lines if you want to use libGLws.a, SUMA's copy of GLw
GLw_IPATH = -IGLw_local
GLw_LIB = libGLws.a


SUMA_INCLUDE_PATH = $(GLw_IPATH) -I. -I.. -I../niml $(IFLAGS) -Igts/src -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
#SUMA_LINK_PATH = -L/usr/lib -L/opt/local/lib -L/usr/X11R6/lib -L../ -L./ -L/usr/local/lib
SUMA_LINK_PATH = $(XROOT_L) $(LFLAGS) -L..


#SUMA_LINK_LIB = $(XLIBS) $(GLw_LIB) $(LLIBS) -lGLU -lGL -lmri -lmx -lXmu -lXp -lXt -lXext -lX11 $(LZLIB) $(LGIFTI) -lm -lglib-2.0 -bind_at_load $(SUMA_GL_DYLIB_CMD)
SUMA_LINK_LIB = $(XLIBS) $(GLw_LIB) $(LLIBS) -lGLU -lGL -lmri -lmx /opt/local/lib/libglib-2.0.a -bind_at_load $(SUMA_GL_DYLIB_CMD)
SUMA_MAKEFILE_NAME = SUMA_Makefile
SUMA_BIN_ARCHIVE = SUMA_MacOSX.tar

# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


###############################################################

MAKE = make
include Makefile.INCLUDE

*** modified Makefile *** END
Subject Author Posted

Mac OS X 10.5 - Intel - OpenMP

Bob Cox January 13, 2009 02:11PM

Re: Mac OS X 10.5 - Intel - OpenMP

Giuseppe Pagnoni April 22, 2009 06:09PM

Re: Mac OS X 10.5 - Intel - OpenMP

Daniel Glen April 22, 2009 06:18PM

Re: Mac OS X 10.5 - Intel - OpenMP: builds fine but crashes

Giuseppe Pagnoni April 23, 2009 03:36AM

Re: Mac OS X 10.5 - Intel - OpenMP: builds fine but crashes

Daniel Glen April 23, 2009 09:07AM

Re: Mac OS X 10.5 - Intel - OpenMP: builds fine but crashes

Giuseppe Pagnoni April 23, 2009 03:59PM