Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

'ATL_dsize' undeclared

Help
2008-04-30
2013-01-09
  • Lars Holmstrom
    Lars Holmstrom
    2008-04-30

    While attempting to build ATLAS on a WinXP machine with Cygwin (configuration completed successfully), I get the following error during compilation:

    gcc -c -DL2SIZE=4194304 -I/cygdrive/c/cygwin//home/foo/atlas3.8.1/build/include -I/cygdrive/c/cygwin//home/foo/atlas3.8.1/build/..//include -I/cygdrive/c/cygwin//home/foo/atlas3.8.1/build/..//include/contrib -DAdd__ -DF77_INTEGER=int -DStringSunStyle -DATL_OS_WinNT -DATL_ARCH_CoreDuo -DGCCWIN -DUseClock -DATL_SSE3 -DATL_SSE2 -DATL_SSE1 -DATL_GAS_x8632 -DPentiumCPS=2000 -O -fomit-frame-pointer -m32 /cygdrive/c/cygwin//home/foo/atlas3.8.1/build/..//tune/sysinfo/GetSysSum.c
    /cygdrive/c/cygwin//home/foo/atlas3.8.1/build/..//tune/sysinfo/GetSysSum.c: In function `main':
    /cygdrive/c/cygwin//home/foo/atlas3.8.1/build/..//tune/sysinfo/GetSysSum.c:161: error: `ATL_dsize' undeclared (first use in this function)
    /cygdrive/c/cygwin//home/foo/atlas3.8.1/build/..//tune/sysinfo/GetSysSum.c:161: error: (Each undeclared identifier is reported only once
    /cygdrive/c/cygwin//home/foo/atlas3.8.1/build/..//tune/sysinfo/GetSysSum.c:161: error: for each function it appears in.)
    /cygdrive/c/cygwin//home/foo/atlas3.8.1/build/..//tune/sysinfo/GetSysSum.c:162: error: `ATL_ssize' undeclared (first use in this function)
    /cygdrive/c/cygwin//home/foo/atlas3.8.1/build/..//tune/sysinfo/GetSysSum.c:163: error: `ATL_csize' undeclared (first use in this function)
    /cygdrive/c/cygwin//home/foo/atlas3.8.1/build/..//tune/sysinfo/GetSysSum.c:164: error: `ATL_zsize' undeclared (first use in this function)

    Any clues where these are defined? Grep'ing through all of the files does not indicate any location where these are defined.

    -Lars

     
    • Inaki Goicolea
      Inaki Goicolea
      2008-11-23

      Hi there!

      I had the same problem. I found that there is a missing header file called atlas_type.h

      You should put this file into the ATLAS/include/ directory with the following content:

      #ifndef ATLAS_TYPE_H
      #define ATLAS_TYPE_H

      #define ATL_isize 4
      #define ATL_ssize 4
      #define ATL_dsize 8
      #define ATL_csize 8
      #define ATL_zsize 16
      #define ATL_iMulBySize(N_) ((((N_)) << 2))
      #define ATL_sMulBySize(N_) ((((N_)) << 2))
      #define ATL_dMulBySize(N_) ((((N_)) << 3))
      #define ATL_cMulBySize(N_) ((((N_)) << 3))
      #define ATL_zMulBySize(N_) ((((N_)) << 4))
      #define ATL_iDivBySize(N_) ((N_) >> 2)
      #define ATL_sDivBySize(N_) ((N_) >> 2)
      #define ATL_cDivBySize(N_) ((N_) >> 3)
      #define ATL_dDivBySize(N_) ((N_) >> 3)
      #define ATL_zDivBySize(N_) ((N_) >> 4)

      #endif

      Try again to compile, the problem should be fixed