problem with SUSE 10.0 and gcc, fortran and LAPACK
Hello everyone I am desperately trying to compile C programs which require LAPACK on SUSE 10.0 (running on an AMD 64 bit architecture). So far, I was using Suse 9.1 and everything worked fine. There, I had the following packages installed: - gcc (3.3.3-41 i586) - gcc-f77 - f2c (0.11-1043 i586) - lapack (3.0-920.1 i586) Using the following line in the makefile, gcc was able to compile C programs involving LAPCK: LDLIBS+= -lgcc -llapck -lg2c -lm Now, under SUSE 10.0, I installed the following packages: - gcc (4.0.2_20050901-3x86_64) - gcc-fortran - compat-g77 (3.3.5-2x86_64) - f2c (0.11-1052x85_64) - lapack (3.0-926x86_64) Alas, using the same linking options as above now results in numerous errors such as: /usr/lib64/gcc/x86_64-suse-linux/4.0.2/../../../lib64/liblapack.a(dgeev.i): In function 'dgeev_': undefined reference to 'gfortran_copy_string' What can be done to resolve this and to get programs developped under SUSE 9.1 running under SUSE 10.0? Calling SUSE support on this was a nightmare experience! Does anybody here have an idea? Best regards Christian ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.
bauckhag@cs.yorku.ca wrote:
Hello everyone
I am desperately trying to compile C programs which require LAPACK on SUSE 10.0 (running on an AMD 64 bit architecture).
So far, I was using Suse 9.1 and everything worked fine. There, I had the following packages installed: - gcc (3.3.3-41 i586) - gcc-f77 - f2c (0.11-1043 i586) - lapack (3.0-920.1 i586)
Using the following line in the makefile, gcc was able to compile C programs involving LAPCK: LDLIBS+= -lgcc -llapck -lg2c -lm
Now, under SUSE 10.0, I installed the following packages: - gcc (4.0.2_20050901-3x86_64) - gcc-fortran - compat-g77 (3.3.5-2x86_64) - f2c (0.11-1052x85_64) - lapack (3.0-926x86_64)
Alas, using the same linking options as above now results in numerous errors such as: /usr/lib64/gcc/x86_64-suse-linux/4.0.2/../../../lib64/liblapack.a(dgeev.i): In function 'dgeev_': undefined reference to 'gfortran_copy_string'
What can be done to resolve this and to get programs developped under SUSE 9.1 running under SUSE 10.0? Calling SUSE support on this was a nightmare experience! Does anybody here have an idea?
Looks to me like gfortran_copy_string is undefined in libgfortran change you LDLIBS to LDLIBS+= -lgcc -llapack -lg2c -lm -fdefault-integer-8 -lgfortran Regards, Tore -- Tore H. Larsen | Switch: +47 55 21 80 00 Silicon Graphics AS | Bus.fax: +47 55 21 80 01 Bergen - Norway | Phone: +47 55 21 80 14 Technical Support Engineer | Cellul: +47 918 33 670 V-net: SGI Global Services Organization | E-mail: torel@sgi.com 736-8014 | Skype id: torehlarsen ---------------------------------------------------------- http://www.sgi.com/products/servers/altix/4000/
Tore H. Larsen wrote:
bauckhag@cs.yorku.ca wrote:
Hello everyone
I am desperately trying to compile C programs which require LAPACK on SUSE 10.0 (running on an AMD 64 bit architecture).
So far, I was using Suse 9.1 and everything worked fine. There, I had the following packages installed: - gcc (3.3.3-41 i586) - gcc-f77 - f2c (0.11-1043 i586) - lapack (3.0-920.1 i586)
Using the following line in the makefile, gcc was able to compile C programs involving LAPCK: LDLIBS+= -lgcc -llapck -lg2c -lm
Now, under SUSE 10.0, I installed the following packages: - gcc (4.0.2_20050901-3x86_64) - gcc-fortran - compat-g77 (3.3.5-2x86_64) - f2c (0.11-1052x85_64) - lapack (3.0-926x86_64)
Alas, using the same linking options as above now results in numerous errors such as: /usr/lib64/gcc/x86_64-suse-linux/4.0.2/../../../lib64/liblapack.a(dgeev.i): In function 'dgeev_': undefined reference to 'gfortran_copy_string'
What can be done to resolve this and to get programs developped under SUSE 9.1 running under SUSE 10.0? Calling SUSE support on this was a nightmare experience! Does anybody here have an idea?
Looks to me like gfortran_copy_string is undefined in libgfortran
^undefined^defined :) --Tore
change you LDLIBS to
LDLIBS+= -lgcc -llapack -lg2c -lm -fdefault-integer-8 -lgfortran
Regards, Tore
Looks to me like gfortran_copy_string is undefined in libgfortran
change you LDLIBS to
LDLIBS+= -lgcc -llapack -lg2c -lm -fdefault-integer-8 -lgfortran
Thanks a lot! That helped. Christian ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.
participants (2)
-
bauckhag@cs.yorku.ca
-
Tore H. Larsen