open-discussion
open-discussion > Errors while building camino-trackvis
May 8, 2013 08:05 AM | Stuart Luscombe
Errors while building camino-trackvis
Hi,
I am helping a colleague of mine as they were having issues building camino-trackvis 0.2.8 on their RHEL6 workstation.
At first it was giving errors that f2c and lapack were not available. f2c was installed via a CentOS package (f2c-20031026-3.0.1.el6.x86_64) as an official one was not available and lapack was built from source as I could not find a package for v3.4.2.
gcc-gfortran-4.4.7-3.el6.x86_64 was also installed, but this was from the official repository.
Now, when running the build.sh script I am getting the following:
Any light that could be shed on the problem will be much appreciated.
I am helping a colleague of mine as they were having issues building camino-trackvis 0.2.8 on their RHEL6 workstation.
At first it was giving errors that f2c and lapack were not available. f2c was installed via a CentOS package (f2c-20031026-3.0.1.el6.x86_64) as an official one was not available and lapack was built from source as I could not find a package for v3.4.2.
gcc-gfortran-4.4.7-3.el6.x86_64 was also installed, but this was from the official repository.
Now, when running the build.sh script I am getting the following:
-bash-4.1$ ./build.sh
scons: Reading SConscript files ...
Checking for C header file f2c.h... yes
Checking for C library lapack... yes
Checking for C library blas... yes
scons: done reading SConscript files.
scons: Reading SConscript files ...
Checking for C header file f2c.h... yes
Checking for C library lapack... yes
Checking for C library blas... yes
scons: done reading SConscript files.
scons: warning: Support for pre-2.7.0
Python version (2.6.6) is deprecated.
If this will cause hardship, contact dev@scons.tigris.org.
File "alien/scons-local/scons.py", line 192, in
scons: Building targets ...
Install file: "alien/nifticlib-2.0.0/niftilib/nifti1.h" as "alien/nifticlib-2.0.0/include/nifti1.h"
Install file: "alien/nifticlib-2.0.0/niftilib/nifti1_io.h" as "alien/nifticlib-2.0.0/include/nifti1_io.h"
Install file: "alien/nifticlib-2.0.0/znzlib/znzlib.h" as "alien/nifticlib-2.0.0/include/znzlib.h"
gcc -o alien/nifticlib-2.0.0/niftilib/nifti1_io.o -c -Wall -ansi -pedantic -DHAVE_ZLIB -Ialien/nifticlib-2.0.0/include alien/nifticlib-2.0.0/niftilib/nifti1_io.c
gcc -o alien/nifticlib-2.0.0/znzlib/znzlib.o -c -Wall -ansi -pedantic -DHAVE_ZLIB -Ialien/nifticlib-2.0.0/include alien/nifticlib-2.0.0/znzlib/znzlib.c
ar rc alien/nifticlib-2.0.0/lib/libniftiio.a alien/nifticlib-2.0.0/niftilib/nifti1_io.o alien/nifticlib-2.0.0/znzlib/znzlib.o
ranlib alien/nifticlib-2.0.0/lib/libniftiio.a
ar rc alien/nifticlib-2.0.0/lib/libznz.a alien/nifticlib-2.0.0/znzlib/znzlib.o
ranlib alien/nifticlib-2.0.0/lib/libznz.a
gcc -o src/camino_to_trackvis.o -c -O2 -g -Ialien/nifticlib-2.0.0/include -Isrc src/camino_to_trackvis.c
gcc -o src/util.o -c -O2 -g -Ialien/nifticlib-2.0.0/include -Isrc src/util.c
gcc -o src/point.o -c -O2 -g -Ialien/nifticlib-2.0.0/include -Isrc src/point.c
gcc -o src/cli.o -c -O2 -g -Ialien/nifticlib-2.0.0/include -Isrc src/cli.c
gcc -o src/tract.o -c -O2 -g -Ialien/nifticlib-2.0.0/include -Isrc src/tract.c
gcc -o src/io.o -c -O2 -g -Ialien/nifticlib-2.0.0/include -Isrc src/io.c
gcc -o src/trk.o -c -O2 -g -Ialien/nifticlib-2.0.0/include -Isrc src/trk.c
gcc -o src/bfloat.o -c -O2 -g -Ialien/nifticlib-2.0.0/include -Isrc src/bfloat.c
gcc -o src/tract_file.o -c -O2 -g -Ialien/nifticlib-2.0.0/include -Isrc src/tract_file.c
gcc -o src/map.o -c -O2 -g -Ialien/nifticlib-2.0.0/include -Isrc src/map.c
gcc -o src/nifti.o -c -O2 -g -Ialien/nifticlib-2.0.0/include -Isrc src/nifti.c
gcc -o src/affine.o -c -O2 -g -Ialien/nifticlib-2.0.0/include -Isrc src/affine.c
ar rc lib/libtract.a src/util.o src/point.o src/cli.o src/tract.o src/io.o src/trk.o src/bfloat.o src/tract_file.o src/map.o src/nifti.o src/affine.o
ranlib lib/libtract.a
gcc -o bin/camino_to_trackvis -O2 -g src/camino_to_trackvis.o lib/libtract.a -Lalien/nifticlib-2.0.0/lib -llapack -lblas -lniftiio -lznz -lz
lib/libtract.a(nifti.o): In function 'nifti_print_coords':
/home/samba/user/kinnunen/Apps/camino-trackvis/camino-trackvis-0.2.8/src/nifti.c:160: undefined reference to 'sqrtf'
lib/libtract.a(affine.o): In function 'affine_rotation3':
/home/samba/user/kinnunen/Apps/camino-trackvis/camino-trackvis-0.2.8/src/affine.c:214: undefined reference to 'sincosf'
lib/libtract.a(affine.o): In function 'point_l2_norm':
/home/samba/user/kinnunen/Apps/camino-trackvis/camino-trackvis-0.2.8/src/affine.c:24: undefined reference to 'sqrtf'
lib/libtract.a(affine.o): In function 'affine_rotation2':
/home/samba/user/kinnunen/Apps/camino-trackvis/camino-trackvis-0.2.8/src/affine.c:178: undefined reference to 'sincosf'
lib/libtract.a(point.o): In function 'point_l2_distance':
/home/samba/user/kinnunen/Apps/camino-trackvis/camino-trackvis-0.2.8/src/point.c:17: undefined reference to 'sqrtf'
/usr/local/lib/liblapack.a(ilaenv.f.o): In function 'ilaenv_':
ilaenv.f:(.text+0x3fe): undefined reference to '_gfortran_compare_string'
ilaenv.f:(.text+0x421): undefined reference to '_gfortran_compare_string'
ilaenv.f:(.text+0x45e): undefined reference to '_gfortran_compare_string'
ilaenv.f:(.text+0x47d): undefined reference to '_gfortran_compare_string'
ilaenv.f:(.text+0x49c): undefined reference to '_gfortran_compare_string'
/usr/local/lib/liblapack.a(ilaenv.f.o):ilaenv.f:(.text+0x4bb): more undefined references to '_gfortran_compare_string' follow
/usr/local/lib/liblapack.a(iparmq.f.o): In function 'iparmq_':
iparmq.f:(.text+0x93): undefined reference to 'logf'
iparmq.f:(.text+0xa4): undefined reference to 'lroundf'
/usr/local/lib/liblapack.a(xerbla.f.o): In function 'xerbla_':
xerbla.f:(.text+0x68): undefined reference to '_gfortran_st_write'
xerbla.f:(.text+0x7f): undefined reference to '_gfortran_string_len_trim'
xerbla.f:(.text+0xa2): undefined reference to '_gfortran_transfer_character'
xerbla.f:(.text+0xc0): undefined reference to '_gfortran_transfer_integer'
xerbla.f:(.text+0xcf): undefined reference to '_gfortran_st_write_done'
xerbla.f:(.text+0xd9): undefined reference to '_gfortran_stop_numeric'
alien/nifticlib-2.0.0/lib/libniftiio.a(nifti1_io.o): In function 'nifti_quatern_to_mat44':
nifti1_io.c:(.text+0x2581): undefined reference to 'sqrt'
nifti1_io.c:(.text+0x25d8): undefined reference to 'sqrt'
alien/nifticlib-2.0.0/lib/libniftiio.a(nifti1_io.o): In function 'nifti_mat44_to_quatern':
nifti1_io.c:(.text+0x2aad): undefined reference to 'sqrt'
nifti1_io.c:(.text+0x2ae1): undefined reference to 'sqrt'
nifti1_io.c:(.text+0x2b15): undefined reference to 'sqrt'
alien/nifticlib-2.0.0/lib/libniftiio.a(nifti1_io.o):nifti1_io.c:(.text+0x2f64): more undefined references to 'sqrt' follow
collect2: ld returned 1 exit status
scons: *** [bin/camino_to_trackvis] Error 1
scons: building terminated because of errors.
If this will cause hardship, contact dev@scons.tigris.org.
File "alien/scons-local/scons.py", line 192, in
scons: Building targets ...
Install file: "alien/nifticlib-2.0.0/niftilib/nifti1.h" as "alien/nifticlib-2.0.0/include/nifti1.h"
Install file: "alien/nifticlib-2.0.0/niftilib/nifti1_io.h" as "alien/nifticlib-2.0.0/include/nifti1_io.h"
Install file: "alien/nifticlib-2.0.0/znzlib/znzlib.h" as "alien/nifticlib-2.0.0/include/znzlib.h"
gcc -o alien/nifticlib-2.0.0/niftilib/nifti1_io.o -c -Wall -ansi -pedantic -DHAVE_ZLIB -Ialien/nifticlib-2.0.0/include alien/nifticlib-2.0.0/niftilib/nifti1_io.c
gcc -o alien/nifticlib-2.0.0/znzlib/znzlib.o -c -Wall -ansi -pedantic -DHAVE_ZLIB -Ialien/nifticlib-2.0.0/include alien/nifticlib-2.0.0/znzlib/znzlib.c
ar rc alien/nifticlib-2.0.0/lib/libniftiio.a alien/nifticlib-2.0.0/niftilib/nifti1_io.o alien/nifticlib-2.0.0/znzlib/znzlib.o
ranlib alien/nifticlib-2.0.0/lib/libniftiio.a
ar rc alien/nifticlib-2.0.0/lib/libznz.a alien/nifticlib-2.0.0/znzlib/znzlib.o
ranlib alien/nifticlib-2.0.0/lib/libznz.a
gcc -o src/camino_to_trackvis.o -c -O2 -g -Ialien/nifticlib-2.0.0/include -Isrc src/camino_to_trackvis.c
gcc -o src/util.o -c -O2 -g -Ialien/nifticlib-2.0.0/include -Isrc src/util.c
gcc -o src/point.o -c -O2 -g -Ialien/nifticlib-2.0.0/include -Isrc src/point.c
gcc -o src/cli.o -c -O2 -g -Ialien/nifticlib-2.0.0/include -Isrc src/cli.c
gcc -o src/tract.o -c -O2 -g -Ialien/nifticlib-2.0.0/include -Isrc src/tract.c
gcc -o src/io.o -c -O2 -g -Ialien/nifticlib-2.0.0/include -Isrc src/io.c
gcc -o src/trk.o -c -O2 -g -Ialien/nifticlib-2.0.0/include -Isrc src/trk.c
gcc -o src/bfloat.o -c -O2 -g -Ialien/nifticlib-2.0.0/include -Isrc src/bfloat.c
gcc -o src/tract_file.o -c -O2 -g -Ialien/nifticlib-2.0.0/include -Isrc src/tract_file.c
gcc -o src/map.o -c -O2 -g -Ialien/nifticlib-2.0.0/include -Isrc src/map.c
gcc -o src/nifti.o -c -O2 -g -Ialien/nifticlib-2.0.0/include -Isrc src/nifti.c
gcc -o src/affine.o -c -O2 -g -Ialien/nifticlib-2.0.0/include -Isrc src/affine.c
ar rc lib/libtract.a src/util.o src/point.o src/cli.o src/tract.o src/io.o src/trk.o src/bfloat.o src/tract_file.o src/map.o src/nifti.o src/affine.o
ranlib lib/libtract.a
gcc -o bin/camino_to_trackvis -O2 -g src/camino_to_trackvis.o lib/libtract.a -Lalien/nifticlib-2.0.0/lib -llapack -lblas -lniftiio -lznz -lz
lib/libtract.a(nifti.o): In function 'nifti_print_coords':
/home/samba/user/kinnunen/Apps/camino-trackvis/camino-trackvis-0.2.8/src/nifti.c:160: undefined reference to 'sqrtf'
lib/libtract.a(affine.o): In function 'affine_rotation3':
/home/samba/user/kinnunen/Apps/camino-trackvis/camino-trackvis-0.2.8/src/affine.c:214: undefined reference to 'sincosf'
lib/libtract.a(affine.o): In function 'point_l2_norm':
/home/samba/user/kinnunen/Apps/camino-trackvis/camino-trackvis-0.2.8/src/affine.c:24: undefined reference to 'sqrtf'
lib/libtract.a(affine.o): In function 'affine_rotation2':
/home/samba/user/kinnunen/Apps/camino-trackvis/camino-trackvis-0.2.8/src/affine.c:178: undefined reference to 'sincosf'
lib/libtract.a(point.o): In function 'point_l2_distance':
/home/samba/user/kinnunen/Apps/camino-trackvis/camino-trackvis-0.2.8/src/point.c:17: undefined reference to 'sqrtf'
/usr/local/lib/liblapack.a(ilaenv.f.o): In function 'ilaenv_':
ilaenv.f:(.text+0x3fe): undefined reference to '_gfortran_compare_string'
ilaenv.f:(.text+0x421): undefined reference to '_gfortran_compare_string'
ilaenv.f:(.text+0x45e): undefined reference to '_gfortran_compare_string'
ilaenv.f:(.text+0x47d): undefined reference to '_gfortran_compare_string'
ilaenv.f:(.text+0x49c): undefined reference to '_gfortran_compare_string'
/usr/local/lib/liblapack.a(ilaenv.f.o):ilaenv.f:(.text+0x4bb): more undefined references to '_gfortran_compare_string' follow
/usr/local/lib/liblapack.a(iparmq.f.o): In function 'iparmq_':
iparmq.f:(.text+0x93): undefined reference to 'logf'
iparmq.f:(.text+0xa4): undefined reference to 'lroundf'
/usr/local/lib/liblapack.a(xerbla.f.o): In function 'xerbla_':
xerbla.f:(.text+0x68): undefined reference to '_gfortran_st_write'
xerbla.f:(.text+0x7f): undefined reference to '_gfortran_string_len_trim'
xerbla.f:(.text+0xa2): undefined reference to '_gfortran_transfer_character'
xerbla.f:(.text+0xc0): undefined reference to '_gfortran_transfer_integer'
xerbla.f:(.text+0xcf): undefined reference to '_gfortran_st_write_done'
xerbla.f:(.text+0xd9): undefined reference to '_gfortran_stop_numeric'
alien/nifticlib-2.0.0/lib/libniftiio.a(nifti1_io.o): In function 'nifti_quatern_to_mat44':
nifti1_io.c:(.text+0x2581): undefined reference to 'sqrt'
nifti1_io.c:(.text+0x25d8): undefined reference to 'sqrt'
alien/nifticlib-2.0.0/lib/libniftiio.a(nifti1_io.o): In function 'nifti_mat44_to_quatern':
nifti1_io.c:(.text+0x2aad): undefined reference to 'sqrt'
nifti1_io.c:(.text+0x2ae1): undefined reference to 'sqrt'
nifti1_io.c:(.text+0x2b15): undefined reference to 'sqrt'
alien/nifticlib-2.0.0/lib/libniftiio.a(nifti1_io.o):nifti1_io.c:(.text+0x2f64): more undefined references to 'sqrt' follow
collect2: ld returned 1 exit status
scons: *** [bin/camino_to_trackvis] Error 1
scons: building terminated because of errors.
Any light that could be shed on the problem will be much appreciated.
Threaded View
| Title | Author | Date |
|---|---|---|
| Stuart Luscombe | May 8, 2013 | |
| Nagesh Adluru | May 8, 2013 | |
| Nagesh Adluru | May 8, 2013 | |
