[ADMB Users] This might be me being dumb. However It is what happens when I try to use icc.

bigA jaguar.smart at gmail.com
Mon Aug 8 13:05:11 PDT 2011


Thank you! It worked!
However, there are three small issues.

1) There should probably be a note that the most recent version of the
source code is available by svn on the downloads page.
http://admb-project.org/downloads
It just sometimes seems that there are several versions of the source code,
and a re-occurring issue is that people download an old copy of the source
code and have trouble.

2) The README.txt is missing a few instructions for the Intel compiler. I
have included a draft of a new README, but it might make since to reformat
in a way that better handles the following step, as I think it is common to
all compilers.

  $ make --directory=scripts/configure/

3) I get some warnings...mostly like this. However make verify seems to
work, and I don't think this is a real problem.

/usr/local/admb/include/adstring.hpp(259): warning #858: type qualifier on
return type is meaningless
    _CONST int indexmax(void) _CONST { return shape->indexmax();}
    ^
Thank you!
Aaron

On Fri, Aug 5, 2011 at 3:32 PM, Johnoel Ancheta <johnoel at hawaii.edu> wrote:

>  Try and checkout the trunk
>
> $ svn checkout http://www.admb-project.org/svn/trunk admb-trunk-readonly
>
> Then follow instruction in README.txt.
>
>
>
> On 8/5/11 7:23 AM, bigA wrote:
>
> Hi admb,
>
>  I follow the icc installation instructions and things don't seem to work.
>  It may simply be an error in the instructions, or perhaps admb doesn't
> support icc?
> Below is the output from ./configure and make. I have also attached my
> config.log.  I apologize that I haven't found a satisfactory work around,
> but hopefully it is simple to fix.
> Aaron
>
>
>   Hey daft ! What is up? debian :~/Downloads/admb-10.1$./configure CC=icc
> CXX=icpc BUILD_64BIT=yes
> checking for gcc... icc
> checking whether the C compiler works... yes
> checking for C compiler default output file name... a.out
> checking for suffix of executables...
> checking whether we are cross compiling... no
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether icc accepts -g... yes
> checking for icc option to accept ISO C89... none needed
> checking whether we are using the GNU C++ compiler... yes
> checking whether icpc accepts -g... yes
> checking how to run the C++ preprocessor... icpc -E
> checking for grep that handles long lines and -e... /bin/grep
> checking for egrep... /bin/grep -E
> checking for ANSI C header files... yes
> checking for sys/types.h... yes
> checking for sys/stat.h... yes
> checking for stdlib.h... yes
> checking for string.h... yes
> checking for memory.h... yes
> checking for strings.h... yes
> checking for inttypes.h... yes
> checking for stdint.h... yes
> checking for unistd.h... yes
> checking iostream usability... yes
> checking iostream presence... yes
> checking for iostream... yes
> checking for flex... no
> checking for lex... no
> checking for sed... yes
> checking for svnversion... yes
> configure: creating ./config.status
> config.status: creating GNUmakefile
> config.status: creating admb_configure.h
> config.status: creating scripts/admb/admb-bin
>
>  Configure completed for admb-10.1-linux-icc12.0.5-64bit
> To build ADMB, type 'make'
>
>  ##
> ### So I type make.
> ###
>    Hey daft ! What is up? debian :~/Downloads/admb-10.1$make
> CC=icc CXX=icpc CXXFLAGS="-m64"
> LIBPATH=../build/admb-10.1-linux-icc12.0.5-64bit/objects
> DISK=../build/admb-10.1-linux-icc12.0.5-64bit/admb-10.1-linux-icc12.0.5-64bit
> ADMB_CONFIGURE=1 make --directory=src --file=linux.mak
> make[1]: Entering directory `/home/daft/Downloads/admb-10.1/src'
> mkdir -p
> ../build/admb-10.1-linux-icc12.0.5-64bit/admb-10.1-linux-icc12.0.5-64bit/{bin,lib,include,docs,docs/manuals,examples}
>  mkdir -p ../build/admb-10.1-linux-icc12.0.5-64bit/objects/linad99-olp
> mkdir -p ../build/admb-10.1-linux-icc12.0.5-64bit/objects/linad99-slp
> mkdir -p ../build/admb-10.1-linux-icc12.0.5-64bit/objects/nh99-olp
> mkdir -p ../build/admb-10.1-linux-icc12.0.5-64bit/objects/nh99-olp-stub
> mkdir -p ../build/admb-10.1-linux-icc12.0.5-64bit/objects/tools99-olp
> mkdir -p
> ../build/admb-10.1-linux-icc12.0.5-64bit/objects/df1b2-separable-slp
> mkdir -p
> ../build/admb-10.1-linux-icc12.0.5-64bit/objects/df1b2-separable-olp
> make --directory=linad99 CXX=icpc CXXFLAGS="-DOPT_LIB -c -m64 -O3 -Wall
> -Wno-deprecated -DUSE_LAPLACE -fpermissive -I../df1b2-separable -I../nh99
> -I../linad99 -I../tools99 -D__SPDLL__ -D__GNUDOS__ -Dlinux"
> LIBPATH=../../build/admb-10.1-linux-icc12.0.5-64bit/objects/linad99-olp
> DISKDIR=../../build/admb-10.1-linux-icc12.0.5-64bit/admb-10.1-linux-icc12.0.5-64bit
> -f optg32-rh8-laplace.mak disk
> make[2]: Entering directory `/home/daft/Downloads/admb-10.1/src/linad99'
> icpc -DOPT_LIB -c -m64 -O3 -Wall -Wno-deprecated -DUSE_LAPLACE -fpermissive
> -I../df1b2-separable -I../nh99 -I../linad99 -I../tools99 -D__SPDLL__
> -D__GNUDOS__ -Dlinux model49.cpp -o
> ../../build/admb-10.1-linux-icc12.0.5-64bit/objects/linad99-olp/model49.obj
> ../linad99/fvar.hpp(6242): warning #858: type qualifier on return type is
> meaningless
>     const int indexmin(void) const { return (shape->indexmin());}
>     ^
>
>  ../linad99/fvar.hpp(6243): warning #858: type qualifier on return type is
> meaningless
>     const int indexmax(void) const { return (shape->indexmax());}
>     ^
>
>  ../linad99/fvar.hpp(6244): warning #858: type qualifier on return type is
> meaningless
>     const int size(void) const { return (indexmax()-indexmin()+1);}
>     ^
>
>  ../linad99/fvar.hpp(6363): warning #858: type qualifier on return type is
> meaningless
>     const int indexmin(void) const { return (shape->indexmin());}
>     ^
>
>  ../linad99/fvar.hpp(6364): warning #858: type qualifier on return type is
> meaningless
>     const int indexmax(void) const { return (shape->indexmax());}
>     ^
>
>  ../linad99/fvar.hpp(6365): warning #858: type qualifier on return type is
> meaningless
>     const int size(void) const { return (indexmax()-indexmin()+1);}
>     ^
>
>  ../linad99/fvar.hpp(6499): warning #858: type qualifier on return type is
> meaningless
>     const int indexmin(void) const { return (shape->indexmin());}
>     ^
>
>  ../linad99/fvar.hpp(6500): warning #858: type qualifier on return type is
> meaningless
>     const int indexmax(void) const { return (shape->indexmax());}
>     ^
>
>  ../linad99/fvar.hpp(6501): warning #858: type qualifier on return type is
> meaningless
>     const int size(void) const { return (indexmax()-indexmin()+1);}
>     ^
>
>  ../linad99/fvar.hpp(6636): warning #858: type qualifier on return type is
> meaningless
>     const int indexmin(void) const { return (shape->indexmin());}
>     ^
>
>  ../linad99/fvar.hpp(6637): warning #858: type qualifier on return type is
> meaningless
>     const int indexmax(void) const { return (shape->indexmax());}
>     ^
>
>  ../linad99/fvar.hpp(6638): warning #858: type qualifier on return type is
> meaningless
>     const int size(void) const { return (indexmax()-indexmin()+1);}
>     ^
>
>  ../linad99/fvar.hpp(6790): warning #858: type qualifier on return type is
> meaningless
>     const int indexmin(void) const { return (shape->indexmin());}
>     ^
>
>  ../linad99/fvar.hpp(6791): warning #858: type qualifier on return type is
> meaningless
>     const int indexmax(void) const { return (shape->indexmax());}
>     ^
>
>  ../linad99/fvar.hpp(6792): warning #858: type qualifier on return type is
> meaningless
>     const int size(void) const { return (indexmax()-indexmin()+1);}
>     ^
>
>  ../linad99/fvar.hpp(6943): warning #858: type qualifier on return type is
> meaningless
>     const int indexmin(void) const { return (shape->indexmin());}
>     ^
>
>  ../linad99/fvar.hpp(6944): warning #858: type qualifier on return type is
> meaningless
>     const int indexmax(void) const { return (shape->indexmax());}
>     ^
>
>  ../linad99/fvar.hpp(6945): warning #858: type qualifier on return type is
> meaningless
>     const int size(void) const { return (indexmax()-indexmin()+1);}
>     ^
>
>  ../tools99/adstring.hpp(250): warning #858: type qualifier on return type
> is meaningless
>     _CONST int indexmin(void) _CONST { return shape->indexmin();}
>     ^
>
>  ../tools99/adstring.hpp(251): warning #858: type qualifier on return type
> is meaningless
>     _CONST int indexmax(void) _CONST { return shape->indexmax();}
>     ^
>
>  ../tools99/admb_messages.h(143): error: more than one operator "+"
> matches these operands:
>             built-in operator "integer + pointer-to-object"
>             function "operator+(const adstring &, const adstring &)"
>             operand types are: adstring + const char [24]
>                    + " used for array range ["
>                    ^
>
>  compilation aborted for model49.cpp (code 2)
> make[2]: *** [model49.obj] Error 2
> make[2]: Leaving directory `/home/daft/Downloads/admb-10.1/src/linad99'
> make[1]: *** [dist] Error 2
> make[1]: Leaving directory `/home/daft/Downloads/admb-10.1/src'
> make: *** [all] Error 2
>  Hey daft ! What is up? debian :~/Downloads/admb-10.1$
>
>  Clearly something went wrong.
>
>
>
> _______________________________________________
> Users mailing listUsers at admb-project.orghttp://lists.admb-project.org/mailman/listinfo/users
>
>
>
> _______________________________________________
> Users mailing list
> Users at admb-project.org
> http://lists.admb-project.org/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.admb-project.org/pipermail/users/attachments/20110808/441d1e78/attachment.html>
-------------- next part --------------
ADMB Project
Version 10.1
Released January 17, 2011

Overview
========
The ADMB(Automatic Differentiation Model Builder) software suite 
is an environment for non-linear statistical modeling enabling
rapid model development, numerical stability, fast and efficient 
computation, and high accuracy parameter estimates.  ADModel Builder
is a high level language built around the AUTODIF Library, a C++
language extension which transparently implements reverse mode 
automatic differentiation.  A closely related software package, 
ADMB-RE, implements random effects in non-linear models.

Donations
=========
ADMB is an open source project that is freely available for download.
If you would like to contribute or donate funds, please contact 
<users at admb-project.org>.  Cool ADMB T-shirts are also available 
for purchase.

Table of Contents
=================
 * Release Notes
   - Changes
 * Requirements
 * Downloading
 * Installation
 * Installation from Source Distribution
 * Installation from Binary Distribution
 * Documentation
 * Developing ADModel Builder
   - Version Control
 * Help and Support
 * Contributors

Release Notes
=============
The goal for this release was to improve algorithms, add new 
requested features, correct defects (bugs), and streamline 
installation and build process.

Below lists some of the changes.

Changes
-------
 * Fixed gammln functions
 * Fixed configure script
 * Fixed atan2 functions
 * Documentation changes
 * Script changes
 * Various bug fixes

Thanks to the following people for providing fixes and
suggestions.
 * Dave Fournier
 * Jan Jaap
 * Gareth Williams
 * Weihai Liu

Requirements
============
ADMB has been tested and used on Windows and UNIX operating 
systems in both 32 and 64 bit versions.  A C/C++ compiler 
must be be installed on the local computer. Below lists some 
tested compilers.

Several compilers are supported including 
 * GNU g++ 3.4 or newer
 * Microsoft Visual C++ 2003 or newer
 * MacOS XCode 3.2
 * Intel C++ Compiler 11
 * Sun Studio 12
 * Borland 5.5

If the compiler is not listed, build the source distribution or 
email user group <users at admb-project.org> for help.

Downloading
===========
Precompiled binaries and the source distribution can be downloaded
from "http://www.admb-project.org/downloads/".

Installation from Source Code
=============================
Below are procedures for installing ADMB from source code.

Unix and GNU g++
----------------
1. Extract source distribution
   
   $ unzip admb-10.1.zip

2. Change to distribution directory

   $ cd admb-10.1

3. Create configure script  

   $ make --directory=scripts/configure/

4. Configure the build files for 32-bit

   $ ./configure

   or configure the build files for 64-bit.

   $ ./configure BUILD_64BIT=yes

5. Build libraries 
  
   $ make

6. [Optional] Test build by running examples

   $ make verify

7. Install libraries to default location /usr/local.

   $ make install

Unix and Sun Studio 12
----------------------
1. Extract source distribution
   
   $ unzip admb-10.1.zip

2. Change to source directory

   $ cd admb-10.1/src

3. Build libraries 
  
   $ make --file=sunstudio.mak

4. [Optional] Test build by running examples

   $ make verify

5. Install libraries to default location /usr/local.

   $ make install

Unix and Intel C++ Compiler
---------------------------
1. Extract source distribution
   
   $ unzip admb-10.1.zip

2. Change to distribution directory

   $ cd admb-10.1

3. Create configure script  

   $ make --directory=scripts/configure/$ make --directory=scripts/configure/

4. Configure the build files for 32-bit

   $ ./configure CC=icc CXX=icpc

   or configure the build files for 64-bit.

   $ ./configure BUILD_64BIT=yes CC=icc CXX=icpc


5. Build libraries 
  
   $ make

6. [Optional] Test build by running examples

   $ make verify

7. Install libraries to default location /usr/local.

   $ make install

Microsoft Windows and Visual C++
--------------------------------
1. Extract source distribution.

2. Open Visual C++ Command Prompt. 

3. Change directory to the "src" folder. 

   > cd admb-10.1\src

4. Build libraries

   > nmake /fvc.mak

5. [Optional] Test build by running examples

   > nmake /fvc.mak verify

6. Install libraries to default location %ProgramFiles%\ADMB
   and adds ADMB shortcuts in the Start menu.

   > nmake /fvc.mak install

Microsoft Windows and Borland C++ 5.5
-------------------------------------
1. Extract source distribution.

2. Open Windows Command Prompt in Start->All Programs->Accessories.

3. Set BCC55_HOME variable to location of BCC55 folder.

   > set BCC55_HOME=c:\Borland\BCC55

4. Add BCC55_HOME to system PATH variable.

   > set PATH=c:\Borland\BCC55\Bin;%PATH%

5. Change directory to the "src" folder. 

   > cd admb-10.1\src

6. Build 32-bit libraries

   > make /fbcc.mak

7. [Optional] Test build by running examples

   > make /fbcc.mak verify

8. Install libraries to default location %ProgramFiles%\ADMB
   and adds ADMB shortcuts in the Start menu.

   > make /fbcc.mak install

Microsoft Windows and MinGW (msys and gcc-4.5)
----------------------------------------------
1. Open MinGW Shell located in Start->MinGW->MinGW Shell.

2. Extract source distribution.
   
   $ unzip admb-10.1.zip

2. Change to distribution directory

   $ cd admb-10.1

3. Create configure script

   $ make --directory=scripts/configure/

4. Configure the build files for 32-bit

   $ ./configure

5. Build libraries 
  
   $ make

6. [Optional] Test build by running examples

   $ make verify

7. Install libraries to default location /usr/local.

   $ make install

Installation from Binary Distributions
======================================

MacOS10.6 and XCode3.2
----------------------
1. Download .dmg
2. Double click .dmg file
3. Double click the .pkg
4. Follow the installation instructions

If successful, the wizard will have installed admb 
directory(/usr/local/admb) and script (/usr/local/bin/admb).


Documentation
=============
User manuals for ADModel Builder, the AUTODIF library and the ADMB-RE
Nonlinear random effects module can be downloaded from 
"http://www.admb-project.org/downloads/".

More documentation is also available on the main ADMB homepage 
"http://www.admb-project.org/".

Developing ADModel Builder
==========================
If you are interested in contributing to the further development of
ADModel Builder please contact <users at admb-project.org>.

Version Control
---------------
ADMB source version control URL is
"http://www.admb-project.org/svn/trunk/".  

To download source files, use the command below

$ svn checkout http://www.admb-project.org/svn/trunk admb-trunk-readonly

If you would like to write access, please email <users at admb-project.org>
to request an account.

Help and Support
================
For help and support, email the ADMB users group <users at admb-project.org>.

Contributors
============
This software was originally developed by David Fournier of Otter Research, Ltd. 

Several other folks have contributed to the ADMB Project:

David Fournier <davef at otter-rsch.com>
John Sibert <sibert at hawaii.edu>
Hans Skaug <Hans.Skaug at mi.uib.no>
Mark Maunder <mmaunder at iattc.org> 
Anders Nielsen <anders at nielsensweb.org>
Arni Magnusson <arnima at hafro.is> 
Derek Seiple <dseiple at hawaii.edu>
Johnoel Ancheta <johnoel at hawaii.edu>


More information about the Users mailing list