[Trilinos-Users] trilinos build fails: undefined reference to _gfortran...

Slaven peles at cox.net
Fri Nov 20 06:00:41 MST 2009


Hi everybody,

My Trilinos build on a linux box failed with the error message as  
shown below. It seems as if -lgfortran flag is missing somewhere in  
linking options. I am new to cmake so I would appreciate any advice  
how to troubleshoot this problem. Please let me know if you need me  
to provide more information.

Thanks,
Slaven


[ 76%] Building CXX object packages/rythmos/test/UnitTest/CMakeFiles/ 
Rythmos_AdjointModelEvaluator_UnitTest.dir/Rythmos_UnitTest.cpp.o
Linking CXX executable Rythmos_AdjointModelEvaluator_UnitTest.exe
/usr/lib/gcc/i586-suse-linux/4.1.2/../../../liblapack.so: undefined  
reference to `_gfortran_concat_string'
/usr/lib/gcc/i586-suse-linux/4.1.2/../../../liblapack.so: undefined  
reference to `etime_'
/usr/lib/gcc/i586-suse-linux/4.1.2/../../../liblapack.so: undefined  
reference to `_gfortran_st_write_done'
/usr/lib/gcc/i586-suse-linux/4.1.2/../../../liblapack.so: undefined  
reference to `_gfortran_transfer_integer'
/usr/lib/gcc/i586-suse-linux/4.1.2/../../../liblapack.so: undefined  
reference to `_gfortran_stop_numeric'
/usr/lib/gcc/i586-suse-linux/4.1.2/../../../liblapack.so: undefined  
reference to `_gfortran_pow_i4_i4'
/usr/lib/gcc/i586-suse-linux/4.1.2/../../../liblapack.so: undefined  
reference to `_gfortran_st_write'
/usr/lib/gcc/i586-suse-linux/4.1.2/../../../liblapack.so: undefined  
reference to `_gfortran_copy_string'
/usr/lib/gcc/i586-suse-linux/4.1.2/../../../liblapack.so: undefined  
reference to `_gfortran_compare_string'
/usr/lib/gcc/i586-suse-linux/4.1.2/../../../liblapack.so: undefined  
reference to `_gfortran_pow_r8_i4'
/usr/lib/gcc/i586-suse-linux/4.1.2/../../../liblapack.so: undefined  
reference to `_gfortran_transfer_character'
/usr/lib/gcc/i586-suse-linux/4.1.2/../../../liblapack.so: undefined  
reference to `_gfortran_pow_r4_i4'
collect2: ld returned 1 exit status
make[2]: *** [packages/rythmos/test/UnitTest/ 
Rythmos_AdjointModelEvaluator_UnitTest.exe] Error 1
make[1]: *** [packages/rythmos/test/UnitTest/CMakeFiles/ 
Rythmos_AdjointModelEvaluator_UnitTest.dir/all] Error 2
make: *** [all] Error 2




More information about the Trilinos-Users mailing list