<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>RE: Replacement for MinGW; bug in ADMB revision 1461</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>Hi Wade,<BR>
Thanks for your help with this.<BR>
But.. I think you are compiling 32-bit objects. I also got TDM64 4.8.1 (it is 32/64 bit) and compiled the same way you do but the object files created are 32-bit Windows objects. I checked this by running:<BR>
<BR>
dumpbin /headers C:\admb-trunk\build\objects\dist\optlp-df1b2-separable-adpool.obj<BR>
<BR>
(You need Visual studio for dumpbin.exe or look here for another way to tell: <A HREF="http://superuser.com/questions/358434/how-to-check-if-a-binary-is-32-or-64-bit-on-windows">http://superuser.com/questions/358434/how-to-check-if-a-binary-is-32-or-64-bit-on-windows</A>)<BR>
<BR>
The (truncated) output follows, the line that says 14C machine(x86) should read x64 instead of x86<BR>
<BR>
Microsoft (R) COFF/PE Dumper Version 10.00.30319.01<BR>
Copyright (C) Microsoft Corporation. All rights reserved.<BR>
<BR>
<BR>
Dump of file optlp-contrib-alk.obj<BR>
<BR>
File Type: COFF OBJECT<BR>
<BR>
FILE HEADER VALUES<BR>
14C machine (x86)<BR>
7 number of sections<BR>
0 time date stamp Wed Dec 31 16:00:00 1969<BR>
F30 file pointer to symbol table<BR>
33 number of symbols<BR>
0 size of optional header<BR>
104 characteristics<BR>
Line numbers stripped<BR>
32 bit word machine<BR>
<BR>
<BR>
Cheers<BR>
Chris<BR>
<BR>
-----Original Message-----<BR>
From: Cooper, Wade [<A HREF="mailto:Wade.Cooper@MyFWC.com">mailto:Wade.Cooper@MyFWC.com</A>]<BR>
Sent: Mon 12/9/2013 7:43 AM<BR>
To: Jon Schnute; 'John Sibert'; 'Johnoel Ancheta'; developers@admb-project.org<BR>
Cc: Haigh, Rowan; Grandin, Chris<BR>
Subject: RE: Replacement for MinGW; bug in ADMB revision 1461<BR>
<BR>
Hi Jon,<BR>
<BR>
I just pulled the latest version from the svn this morning (revision 1461), built using my normal approach (make through msys shell) with my existing mingw-w64 (4.8.1 from tdm64) and it works fine. I checked simple and polio and both ran. <BR>
<BR>
I then tried the mingw-w64 version you had a link for in your ADMBtools.pdf document (<A HREF="http://sourceforge.net/projects/mingwbuilds/files/host-windows/releases/4.8.1/64-bit/threads-posix/seh/x64-4.8.1-release-posix-seh-rev5.7z/download">http://sourceforge.net/projects/mingwbuilds/files/host-windows/releases/4.8.1/64-bit/threads-posix/seh/x64-4.8.1-release-posix-seh-rev5.7z/download</A>). This worked fine too on my machine (Win 7 64 bit). <BR>
<BR>
Good luck with diagnosing the issue,<BR>
<BR>
Wade<BR>
<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: Jon Schnute [<A HREF="mailto:schnutej-dfo@shaw.ca">mailto:schnutej-dfo@shaw.ca</A>]<BR>
Sent: Monday, December 09, 2013 4:06 AM<BR>
To: 'John Sibert'; 'Johnoel Ancheta'; developers@admb-project.org<BR>
Cc: 'Haigh, Rowan'; Cooper, Wade; 'Chris Grandin'<BR>
Subject: Replacement for MinGW; bug in ADMB revision 1461<BR>
<BR>
John and others - I hope you just got my message about problems with the old MinGW. Next I enclose my proposed solution for moving to MinGW-w64 (see ADMBtools.pdf). The file includes links to the download sites for each software package. I ended up with something close to that used by Wade Cooper. I also used the discussion at Rioki's Corner (<A HREF="http://www.rioki.org/2013/10/16/mingw-w64.html">http://www.rioki.org/2013/10/16/mingw-w64.html</A>).<BR>
<BR>
Having assembled these tools on my computer, I used them to build the latest revision 1461. Unfortunately, I encountered a bug that you can see in the following output:<BR>
<BR>
**********<BR>
g++ -c -Wall -O3 -DOPT_LIB -D__GNUDOS__ -Dlinux -D__SPDLL__<BR>
g++ -DUSE_LAPLACE<BR>
-I../<BR>
build/dist/include<BR>
-o../build/objects/dist/optlp-df1b2-separable-fquadpri.obj df 1b2-separable/fquadpri.cpp<BR>
g++ -c -Wall -O3 -DOPT_LIB -D__GNUDOS__ -Dlinux -D__SPDLL__<BR>
g++ -DUSE_LAPLACE<BR>
-I../<BR>
build/dist/include -o../build/objects/dist/optlp-df1b2-separable-gammdev.obj<BR>
df1<BR>
b2-separable/gammdev.cpp<BR>
GNUmakefile:267: recipe for target<BR>
`../build/objects/dist/optlp-df1b2-separable-<BR>
gammdev.obj' failed<BR>
make[2]: *** [../build/objects/dist/optlp-df1b2-separable-gammdev.obj] Error<BR>
1<BR>
make[2]: Leaving directory `/d/ADMbuild/admb1461/src'<BR>
Makefile:63: recipe for target `g++-src' failed<BR>
make[1]: *** [g++-src] Error 2<BR>
make[1]: Leaving directory `/d/ADMbuild/admb1461'<BR>
Makefile:60: recipe for target `g++-all' failed<BR>
make: *** [g++-all] Error 2<BR>
**********<BR>
<BR>
A strange window popped up referring to "cc1plus.exe". Is it possible that the makefile confuses the new version of MinGW with Microsoft Visual Studio?<BR>
<BR>
Wade, it would be great if you could test the latest version of ADMB with your software.<BR>
<BR>
Best wishes to all,<BR>
<BR>
Jon<BR>
<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: Jon Schnute [<A HREF="mailto:schnutej-dfo@shaw.ca">mailto:schnutej-dfo@shaw.ca</A>]<BR>
Sent: December-09-13 12:41 AM<BR>
To: 'John Sibert'; 'Johnoel Ancheta'; 'developers@admb-project.org'<BR>
Cc: 'Haigh, Rowan'; 'Cooper, Wade'<BR>
Subject: MinGW "nasty problem"<BR>
<BR>
Hi John - Your experience with the MinGW "nasty problem" matches mine exactly. I've done a lot of research on this, and I've written the attached report "MinGW problem with drives that don't exist". I think you'll find that it offers a credible explanation. It contains many Internet links that connect you with other sources.<BR>
<BR>
Along with other developers (cited in the report), I've concluded that the original MinGW project has fallen off the rails and can no longer be considered reliable. We need to move to the independent new project MinGW-w64. In the long run, we need to do this anyway to get 64-bit support.<BR>
<BR>
I hope my little report convinces everyone involved. I'm copying Wade Cooper on this because he reported success with ADMB in the message he sent on November 18.<BR>
<BR>
In my next message, I'll send my recommendations for the explicit software I think we should use.<BR>
<BR>
Best wishes,<BR>
<BR>
Jon<BR>
<BR>
-----Original Message-----<BR>
From: John Sibert [<A HREF="mailto:sibert@hawaii.edu">mailto:sibert@hawaii.edu</A>]<BR>
Sent: December-06-13 9:54 AM<BR>
To: Jon Schnute; 'Johnoel Ancheta'; developers@admb-project.org<BR>
Cc: 'Haigh, Rowan'<BR>
Subject: Re: [Developers] Big changes in Revision 1438<BR>
<BR>
Hi Jon,<BR>
Thank you for your patience in testing this stuff. It can be onerous in windows.<BR>
<BR>
Regarding the "nasty problem with MinGW" that you mentioned, I may have encountered something similar.<BR>
<BR>
I was trying to install admb on my wife's new windows 7 machine and the procedure ran smoothly until it started to build the libraries. As soon as it started to compile the first source file, the system popped up an error window titled "g++" containing the error message "There is no disk in the drive. Please insert a disk in drive \Device\Harddisk2\DR2."<BR>
Further experimentation revealed the error window any time g++ starts.<BR>
So it appears not to be anything to do with admb; it is an windows/mingw issue.<BR>
<BR>
Searching for a solution was pretty fruitless. I lot of know-nothing responses to similar questions and BS remarks from microsoft flacks about how important solving the problem is to microsoft. But the responses pointed to usb drive issues.<BR>
<BR>
So I'm wonder if this is the "nasty problem" you mentioned, and if so, how it was solved.<BR>
<BR>
Cheers,<BR>
John<BR>
<BR>
<BR>
John Sibert<BR>
Emeritus Researcher, SOEST<BR>
University of Hawaii at Manoa<BR>
Honolulu HI (GMT-10)<BR>
808-294-3842<BR>
<BR>
Visit the ADMB project <A HREF="http://admb-project.org/">http://admb-project.org/</A><BR>
<BR>
On 12/05/2013 11:17 PM, Jon Schnute wrote:<BR>
><BR>
> I've tested revisions 1444 and 1447 on Windows 7 using Msys and MinGW,<BR>
> obtained independently from the Internet. The build process worked in<BR>
> both cases with no problems. Also, the executable files and scripts in<BR>
> ..\build\dist successfully converted .tpl files to .exe files.<BR>
><BR>
> In the process, I discovered a nasty problem with MinGW that stems<BR>
> from a bug in Windows. It will occur if you connect and disconnect a<BR>
> USB drive before using MinGW.<BR>
><BR>
> I'm planning to write installation instructions that document exactly<BR>
> what I've done, along with a warning about the potential MinGW problem<BR>
> and its resolution. I'll circulate this document when I have a draft.<BR>
><BR>
> I should add that Rowan Haigh, using the official QuickStart procedure<BR>
> on revision 1444, encountered the problem with "banner.cpp" that I've<BR>
> described in earlier email. When we have the opportunity, we'll check<BR>
> into this further and send a bug report if we can reproduce the problem.<BR>
><BR>
> Again, thanks to everyone for your good work cleaning up the code.<BR>
><BR>
> Jon<BR>
><BR>
> *From:*developers-bounces@admb-project.org<BR>
> [<A HREF="mailto:developers-bounces@admb-project.org">mailto:developers-bounces@admb-project.org</A>] *On Behalf Of *Johnoel<BR>
> Ancheta<BR>
> *Sent:* December-05-13 1:32 AM<BR>
> *To:* developers@admb-project.org<BR>
> *Subject:* [Developers] Big changes in Revision 1438<BR>
><BR>
> Hi all,<BR>
><BR>
> The ADMB build files have again been reworked and improved. After<BR>
> getting<BR>
><BR>
> feedback,<BR>
><BR>
> * the build files have been simplified a bit more<BR>
><BR>
> - Dave Fournier<BR>
><BR>
> * works with Rtools (but not with Rtools->make)<BR>
><BR>
> - Jon Schnute<BR>
><BR>
> * should build in Windows if Msys or Rtools are in the system PATH<BR>
><BR>
> A lot of time and effort was spent by everyone to test and develop<BR>
><BR>
> the build scripts.<BR>
><BR>
> Please test the installation by following documentation in<BR>
><BR>
> <A HREF="http://www.admb-project.org/buildbot/documentation/">http://www.admb-project.org/buildbot/documentation/</A><BR>
><BR>
> Changes and QuickStart pages are in the the directory.<BR>
><BR>
> Thanks to everyone who participated in the testing.<BR>
><BR>
> Johnoel<BR>
><BR>
><BR>
><BR>
> _______________________________________________<BR>
> Developers mailing list<BR>
> Developers@admb-project.org<BR>
> <A HREF="http://lists.admb-project.org/mailman/listinfo/developers">http://lists.admb-project.org/mailman/listinfo/developers</A><BR>
<BR>
<BR>
<BR>
</FONT>
</P>
</BODY>
</HTML>