2 Replies Latest reply on Aug 6, 2007 2:45 PM by chipf

    undefined references in acml

    "kevinvanworkum
      where are things like z_abs, e_rsfi, s_copy

      I'm trying to build SuiteSparse using gcc on a 2.6 linux box. I have acml for the lapack and blas libraries. When I try to link against acml, I get several errors like this:

      /usr/local/acml/gnu32/lib/libacml.so: undefined reference to `e_wsfi'
      /usr/local/acml/gnu32/lib/libacml.so: undefined reference to `s_cat'
      /usr/local/acml/gnu32/lib/libacml.so: undefined reference to `s_stop'
      /usr/local/acml/gnu32/lib/libacml.so: undefined reference to `s_wsfi'
      /usr/local/acml/gnu32/lib/libacml.so: undefined reference to `c_abs'
      /usr/local/acml/gnu32/lib/libacml.so: undefined reference to `s_wsle'
      /usr/local/acml/gnu32/lib/libacml.so: undefined reference to `s_wsfe'
      /usr/local/acml/gnu32/lib/libacml.so: undefined reference to `s_copy'

      What are these related to?
        • undefined references in acml
          bragadeesh
          Hello kevinvanworkum,

          It seems like you are probably missing some libraries when you are linking or the order in which you pass the libraries to the linker may be incorrect. Please check that. If you can give us the command line arguments that is passed to the linker, it would help us understand the problem better.
          • undefined references in acml
            chipf
            These symbols are found in libg2c, which is included in the g77 install.

            The ACML gnu32 library is built with the g77 fortran compiler, and requires an older GCC 3.3.5 compiler with g77 in order to build properly. You could find libg2c and include it on the link command line, but the easiest way to get it is just to install g77.