[ADMB Users] old compilation problem, new version (10.1)
Johnoel Ancheta
johnoel at hawaii.edu
Fri Apr 15 18:53:49 PDT 2011
What is the output of
$ ./configure
Did it create the GNUMakefile?
On 4/15/11 3:26 PM, Evan Cooch wrote:
> Well, thanks -- that seems to have moved things along. At least, now I
> have different FAILS:
>
>
> configure:2062: $? = 0
> configure:2065: test -s conftest.o
> configure:2068: $? = 0
> configure:2086: result: none needed
> configure:2104: gcc -c -g -O2 conftest.c >&5
> conftest.c:2: error: expected '=', ',', ';', 'asm' or '__attribute__'
> before 'me'
> configure:2110: $? = 1
> configure: failed program was:
> | #ifndef __cplusplus
> | choke me
> | #endif
> configure:2295: checking for g++
> configure:2311: found /usr/bin/g++
> configure:2321: result: g++
> configure:2337: checking for C++ compiler version
> configure:2340: g++ --version </dev/null >&5
> g++ (GCC) 4.1.2 20080704 (Red Hat 4.1.2-48)
> Copyright (C) 2006 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
> PURPOSE.
>
>
> and
>
>
> configure:2524: $? = 0
> configure:2527: test -s conftest.o
> configure:2530: $? = 0
> configure:2556: g++ -c -g -O2 conftest.cc >&5
> conftest.cc: In function 'int main()':
> conftest.cc:13: error: 'exit' was not declared in this scope
> configure:2562: $? = 1
> configure: failed program was:
> | /* confdefs.h. */
> |
> | #define PACKAGE_NAME "ADMB"
> | #define PACKAGE_TARNAME "admb"
> | #define PACKAGE_VERSION "10.0"
> | #define PACKAGE_STRING "ADMB 10.0"
> | #define PACKAGE_BUGREPORT "users at admb-project.org"
> | /* end confdefs.h. */
>
>
> and
>
>
> configure:2724: result: g++ -E
> configure:2748: g++ -E conftest.cc
> configure:2754: $? = 0
> configure:2786: g++ -E conftest.cc
> conftest.cc:12:28: error: ac_nonexistent.h: No such file or directory
> configure:2792: $? = 1
> configure: failed program was:
> | /* confdefs.h. */
> |
> | #define PACKAGE_NAME "ADMB"
> | #define PACKAGE_TARNAME "admb"
> | #define PACKAGE_VERSION "10.0"
> | #define PACKAGE_STRING "ADMB 10.0"
> | #define PACKAGE_BUGREPORT "users at admb-project.org"
> | #ifdef __cplusplus
> | extern "C" void std::exit (int) throw (); using std::exit;
> | #endif
> | /* end confdefs.h. */
> | #include <ac_nonexistent.h>
> configure:2836: checking for egrep
> configure:2846: result: grep -E
> configure:2851: checking for ANSI C header files
> configure:2876: g++ -c -g -O2 conftest.cc >&5
> configure:2882: $? = 0
> configure:2886: test -z
>
> and
>
>
> onfigure:3469: g++ -o conftest -g -O2 conftest.cc -lfl >&5
> /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libfl.a(libmain.o):
> In function `main':
> (.text+0x7): undefined reference to `yylex'
> collect2: ld returned 1 exit status
> configure:3475: $? = 1
> configure: failed program was:
> | /* A lexical scanner generated by flex*/
> |
> | /* Scanner skeleton version:
> | * $Header: /home/daffy/u0/vern/flex/RCS/flex.skl,v 2.91 96/09/10
> 16:58:48 vern Exp $
> | */
> |
> | #define FLEX_SCANNER
> | #define YY_FLEX_MAJOR_VERSION 2
> | #define YY_FLEX_MINOR_VERSION 5
>
>
>
>
>
>
> On 4/15/2011 8:48 PM, Johnoel Ancheta wrote:
>> Rebuild the configure file.
>>
>> $ make --directory=scripts/configure
>>
>>
>> On 4/15/11 2:38 PM, Evan Cooch wrote:
>>> Alas, no look. Took latest admb-10.1.zip archive, extracted it, and
>>> tried ./configure with the 'native' (non-tweaked) scripts, and
>>> config.log still shows the same FAIL(s) -- for example:
>>>
>>> conftest.cpp:9:28: error: ac_nonexistent.h: No such file or directory
>>> configure:3169: $? = 1
>>> configure: failed program was:
>>> | /* confdefs.h */
>>> | #define PACKAGE_NAME "ADMB"
>>> | #define PACKAGE_TARNAME "admb"
>>> | #define PACKAGE_VERSION "10.0"
>>> | #define PACKAGE_STRING "ADMB 10.0"
>>> | #define PACKAGE_BUGREPORT "users at admb-project.org"
>>> | #define PACKAGE_URL ""
>>> | /* end confdefs.h. */
>>> | #include <ac_nonexistent.h>
>>> configure:3194: result: g++ -E
>>>
>>>
>>> On 4/15/2011 3:34 PM, bigA wrote:
>>>> Hi Evan,
>>>> Have you tried the untweaked scripts? In version 10.0 there was a
>>>> bug in the script that produced the compilation scripts. That was
>>>> fixed in version 10.1, I have successfully compiled and installed
>>>> 10.1 without any tweaking of the compilation scripts.
>>>> Best!
>>>>
>>>> On Thu, Apr 14, 2011 at 6:05 AM, Evan Cooch <evan.cooch at gmail.com
>>>> <mailto:evan.cooch at gmail.com>> wrote:
>>>>
>>>> So, with the assistance of several folks on the list, who
>>>> provided a hacked configure and GNUmakefile.in script
>>>> (attached), I was able to successfully compile ADMB 10.0 for my
>>>> various CentOS (5.5) boxes. However, when I tried the same
>>>> compile sequence, using the 'tweaked' scripts, with the 10.1
>>>> source, I ended up with the same FAIL during configure that I
>>>> did initially with 10.0. In the config.log, I see things like:
>>>>
>>>> configure:3169: $? = 1
>>>> configure: failed program was:
>>>> | /* confdefs.h */
>>>> | #define PACKAGE_NAME "ADMB"
>>>> | #define PACKAGE_TARNAME "admb"
>>>> | #define PACKAGE_VERSION "10.0"
>>>> | #define PACKAGE_STRING "ADMB 10.0"
>>>> | #define PACKAGE_BUGREPORT "users at admb-project.org"
>>>> <mailto:users at admb-project.org>
>>>> | #define PACKAGE_URL ""
>>>> | /* end confdefs.h. */
>>>> | #include <ac_nonexistent.h>
>>>> configure:3194: result: /usr/bin/g++44 -E
>>>> configure:3214: /usr/bin/g++44 -E conftest.cpp
>>>> configure:3214: $? = 0
>>>> configure:3228: /usr/bin/g++44 -E conftest.cpp
>>>> conftest.cpp:9:28: error: ac_nonexistent.h: No such file or
>>>> directory
>>>>
>>>>
>>>> So, I *think* that there is something in the tweaked scripts
>>>> that needs to be re-tweaked for the 10.1 source. I'd be happy
>>>> to take a stab at it myself, but probably more efficient to let
>>>> the 'smart' folks out there suggest/make the changes (or
>>>> suggest other fixes). Given that CentOS is basically RHEL, and
>>>> given that RH does have a non-trivial market share, perhaps it
>>>> would be worth adding something to the config script to detect
>>>> the distro, and self-tweak as needed?
>>>>
>>>> Thanks in advance...
>>>>
>>>> _______________________________________________
>>>> Users mailing list
>>>> Users at admb-project.org <mailto:Users at admb-project.org>
>>>> http://lists.admb-project.org/mailman/listinfo/users
>>>>
>>>>
>>>
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at admb-project.org
>>> http://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/20110415/4a60f535/attachment.html>
More information about the Users
mailing list