Problems with nrn5.7 on sun/sparc

Post Reply

Problems with nrn5.7 on sun/sparc

Post by asad »


I've been trying to compile iv and nrn (5.7.159) on a sunos/sparc machine for some time now. IV was a hassle but eventually I was able to compile it. nrn on the other hand is still giving me problems. It fails during 'make' for nrniv with the following message:
make[2]: Entering directory `/afs/'
/bin/bash ../../libtool --mode=link g++ -g -O2 -o nrniv nvkludge.o ../ivoc/ivocmain.o ../oc/modlreg.o ../nrnoc/ ../oc/ ../ivoc/ ../gnu/ ../scopmath/ ../sparse13/ ../sundials/ ../memacs/ ../mesch/ /misc/sans/neuron/iv/iv-17/sunOS-sparc/sparc/lib/ -L/pkg/gnu-libs/1.1/os/lib -lreadline -lcurses ../nrnjava/ -L/pkg/jdk/1.4.1_01/os/jre/lib/sparc -L/pkg/jdk/1.4.1_01/os/jre/lib/sparc/server -ljvm -lpthread -R /pkg/jdk/1.4.1_01/os/jre/lib/sparc -R /pkg/jdk/1.4.1_01/os/jre/lib/sparc/server -lm
g++ -g -O2 -o .libs/nrniv nvkludge.o ../ivoc/ivocmain.o ../oc/modlreg.o ../nrnoc/.libs/ ../oc/.libs/ -L/usr/openwin/lib -lX11 ./.libs/ -L/var/tmp/fjo/sparc-sun-solaris2.8/libstdc++-v3/src -L/var/tmp/fjo/sparc-sun-solaris2.8/libstdc++-v3/src/.libs -L/var/tmp/fjo/gcc ../ivoc/.libs/ ../gnu/.libs/ ../scopmath/.libs/ ../sparse13/.libs/ ../sundials/.libs/ ../memacs/.libs/ ../mesch/.libs/ /misc/sans/neuron/iv/iv-17/sunOS-sparc/sparc/lib/ -L/pkg/gnu-libs/1.1/os/lib -lreadline -lcurses ../nrnjava/.libs/ /pkg/gcc/3.2.1/os/lib/ -L/pkg/jdk/1.4.1_01/os/jre/lib/sparc -L/pkg/jdk/1.4.1_01/os/jre/lib/sparc/server -ljvm -lpthread -lm -Wl,-R -Wl,/misc/sans/neuron/nrn/5.7/sunOS-sparc/sparc/lib -Wl,-R -Wl,/misc/sans/neuron/iv/iv-17/sunOS-sparc/sparc/lib -Wl,-R -Wl,/pkg/gcc/3.2.1/os/lib -Wl,-R -Wl,/pkg/jdk/1.4.1_01/os/jre/lib/sparc -Wl,-R -Wl,/pkg/jdk/1.4.1_01/os/jre/lib/sparc/server
ld: warning: file /pkg/gcc/3.2.1/os/lib/gcc-lib/sparc-sun-solaris2.8/3.2.1/../../../ linked to /pkg/gcc/3.2.1/os/lib/ attempted multiple inclusion of file
Undefined first referenced
symbol in file
.LLC219 ../sundials/.libs/
ld: fatal: Symbol referencing errors. No output written to .libs/nrniv
collect2: ld returned 1 exit status
make[2]: *** [nrniv] Error 1
I have traced this back to a warning that appears during compilation (make) of sundials:
make[5]: Entering directory `/afs/'
/bin/bash ../../libtool --mode=link gcc -g -O2 -o -rpath /misc/sans/neuron/nrn/5.7/sunOS-sparc/sparc/lib shared/*.lo cvodes/*.lo ida/*.lo -lm
mkdir .libs
gcc -shared -Wl,-h -Wl, -o .libs/ shared/.libs/band.o shared/.libs/dense.o shared/.libs/fnvector_serial.o shared/.libs/iterative.o shared/.libs/nvector.o shared/.libs/nvector_serial.o shared/.libs/smalldense.o shared/.libs/spgmr.o shared/.libs/sundialsmath.o cvodes/.libs/cvband.o cvodes/.libs/cvbandpre.o cvodes/.libs/cvbbdpre.o cvodes/.libs/cvdense.o cvodes/.libs/cvdiag.o cvodes/.libs/cvodea.o cvodes/.libs/cvodes.o cvodes/.libs/cvodesio.o cvodes/.libs/cvspgmr.o ida/.libs/ida.o ida/.libs/idaband.o ida/.libs/idabbdpre.o ida/.libs/idadense.o ida/.libs/idaic.o ida/.libs/idaio.o ida/.libs/idaspgmr.o -lm -lc
ld: warning: relocation error: R_SPARC_32: file cvodes/.libs/cvodes.o: symbol .LLC219:
external symbolic relocation against non-allocatable section .stab;
cannot be processed at runtime: relocation ignored
(cd .libs && rm -f && ln -s
Does anyone know what this means? Or better yet, how to fix it? Output from uname -a and gcc -v are:

SunOS 5.9 Generic_118558-05 sun4u sparc SUNW,Ultra-4


Reading specs from /pkg/gcc/3.2.1/os/lib/gcc-lib/sparc-sun-solaris2.8/3.2.1/specs
Configured with: /pkg/gcc/src/3.2.1/gcc-3.2.1/configure --prefix=/pkg/gcc/3.2.1/os
Thread model: posix
gcc version 3.2.1


Asad Rustum
Site Admin
Posts: 1600
Joined: Wed May 18, 2005 3:32 pm

Post by hines »

The first step is to try again with the alpha version at ... .12.tar.gz
There have been a number of configuration updates so that it compiles on gcc4.0.0 on mac os x 4. That may help with gcc3.2.2 on the sparc.
The next step is to try configuring with the environment variables
to turn off the -O2 optimization. It is surprizing how often the gcc compilers are temporarily broken for a particular machine.
The last step, if you are not behind a firewall, is to give me a temporary guest account so I can try to fix the problem on that environment.

Post by asad »

Splendid! It works! Just for the record, I didn't download the alpha version, I just followed your recomendations with the optimization flags.

Thank you.
Post Reply