EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: building 64-bit base on windows
From: "Mark Rivers" <[email protected]>
To: <[email protected]>, <[email protected]>
Date: Thu, 29 Sep 2011 07:59:51 -0500
Hi Matthew,
 
I never tried building windows-x64 on 3.14.11.  But it definitely works on 3.13.12.1.  I build it both "natively" on a Windows 7 64-bit machine with EPICS_HOST_ARCH=windows-x64, and also cross-compiling for windows-x64 from an XP 32-bit machine with EPICS_HOST_ARCH=win32-x86.  I am using Visual Studio 2008.
 
Mark
 
 

________________________________

From: [email protected] on behalf of [email protected]
Sent: Thu 9/29/2011 3:45 AM
To: [email protected]
Subject: building 64-bit base on windows



Hi,

I'm attempting to build a 64-bit version of base 3.14.11 on Windows Server 2008. From reading tech-talk, I've not come across this specific problem I have. In the 3.14.12 release notes I saw that windows-x64 support was added for that release, but there are x64 config files in the 3.14.11 release. Is it the case that the 3.14.11 support was incomplete and that I need to move to 3.14.12?

I managed to build the win32-x86 version with no issues, but the windows-x64 version fails the first time the linker is called (error pasted below).

We're using Visual Studio 2010, with GnuWin32 make 3.81 and ActiveState Perl 64-bit 5.12.4. To set up the VS environment I'm calling "vcvarsall.bat" passing "amd64" as an argument.

Here's where the linker fails, after successfully compiling libCom...


link /nologo /subsystem:windows /dll /MANIFEST /LTCG /incremental:no /opt:ref /r
elease /version:3.14     /implib:Com.lib /out:Com.dll
LINK : warning LNK4001: no object files specified; libraries used
LINK : warning LNK4068: /MACHINE not specified; defaulting to X64
LINK : error LNK2001: unresolved external symbol _DllMainCRTStartup
Com.dll : fatal error LNK1120: 1 unresolved externals
make[3]: *** [Com.dll] Error 1120
make[3]: Leaving directory `D:/epics/base/src/libCom/O.windows-x64'
make[2]: *** [install.windows-x64] Error 2
make[2]: Leaving directory `D:/epics/base/src/libCom'
make[1]: *** [libCom.install] Error 2
make[1]: Leaving directory `D:/epics/base/src'
make: *** [src.install] Error 2


There are no object files in the argument list of the linker. There's also an error which seems to indicate it can't find the C runtime libraries.

Any ideas? I've pasted my environment below, in case that's helpful...

Cheers,
Matthew


D:\epics\base>set
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\mp49\AppData\Roaming
APR_ICONV_PATH=C:\Program Files (x86)\Subversion\iconv
CLIENTNAME=pc0034
CommandPromptType=Native
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=DIAMCSTS01
ComSpec=C:\Windows\system32\cmd.exe
EPICS_BASE=D:\epics\\base
EPICS_CA_REPEATER_PORT=6065
EPICS_CA_SERVER_PORT=6064
EPICS_EXTENSIONS=D:\epics\\extensions
EPICS_HOST=WIN32
EPICS_HOST_ARCH=windows-x64
EPICS_MBA_TEMPLATE_TOP=D:\epics\\base\Templates\makeBaseApp\top
EPICS_SUPPORT=W:\epics\\support
FP_NO_HOST_CHECK=NO
Framework35Version=v3.5
FrameworkDir=c:\Windows\Microsoft.NET\Framework64
FrameworkDIR64=c:\Windows\Microsoft.NET\Framework64
FrameworkVersion=v4.0.30319
FrameworkVersion64=v4.0.30319
FSHARPINSTALLDIR=c:\Program Files (x86)\Microsoft F#\v4.0\
HOMEDRIVE=C:
HOMEPATH=\Users\mp49
INCLUDE=c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE;c:\Progra
m Files (x86)\Microsoft Visual Studio 10.0\VC\ATLMFC\INCLUDE;C:\Program Files (x
86)\Microsoft SDKs\Windows\v7.0A\include;
LIB=c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\LIB\amd64;c:\Program
Files (x86)\Microsoft Visual Studio 10.0\VC\ATLMFC\LIB\amd64;C:\Program Files (x
86)\Microsoft SDKs\Windows\v7.0A\lib\x64;
LIBPATH=c:\Windows\Microsoft.NET\Framework64\v4.0.30319;c:\Windows\Microsoft.NET
\Framework64\v3.5;c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\LIB\amd
64;c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\ATLMFC\LIB\amd64;
LOCALAPPDATA=C:\Users\mp49\AppData\Local
LOGONSERVER=\\LOGON05
NUMBER_OF_PROCESSORS=16
OS=Windows_NT
Path=c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64;c:\Windows
\Microsoft.NET\Framework64\v4.0.30319;c:\Windows\Microsoft.NET\Framework64\v3.5;
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\VCPackages;c:\Program Fil
es (x86)\Microsoft Visual Studio 10.0\Common7\IDE;c:\Program Files (x86)\Microso
ft Visual Studio 10.0\Common7\Tools;C:\Program Files (x86)\HTML Help Workshop;C:
\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\x64;C:\Pro
gram Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\x64;C:\Program Files (x86)\Mic
rosoft SDKs\Windows\v7.0A\bin;C:\Python26\;C:\Python26\Scripts;C:\Perl64\site\bi
n;C:\Perl64\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windo
ws\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Dell\SysMgt\oma\bin;C
:\Program Files (x86)\Dell\SysMgt\idrac;c:\Program Files (x86)\Microsoft SQL Ser
ver\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Pro
gram Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Subversion\
bin;C:\Windows\System32;C:\Users\mp49\AppData\Roaming\Python\Scripts;C:\Program
Files (x86)\GnuWin32\bin;D:\epics\\base\bin\windows-x64;D:\epics\\extensions\bin
\windows-x64
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.py;.pyw
Platform=X64
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 26 Stepping 5, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=1a05
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PROMPT=$P$G
PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC=C:\Users\Public
SESSIONNAME=RDP-Tcp#0
SystemDrive=C:
SystemRoot=C:\Windows
TEMP=C:\Users\mp49\AppData\Local\Temp\3
TMP=C:\Users\mp49\AppData\Local\Temp\3
USERDNSDOMAIN=FED.CCLRC.AC.UK
USERDOMAIN=CLRC
USERNAME=mp49
USERPROFILE=C:\Users\mp49
VCINSTALLDIR=c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\
VS100COMNTOOLS=c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools
\
VSINSTALLDIR=c:\Program Files (x86)\Microsoft Visual Studio 10.0\
windir=C:\Windows
WindowsSdkDir=C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\
windows_tracing_flags=3
windows_tracing_logfile=C:\BVTBin\Tests\installpackage\csilogfile.log


Dr Matthew Pearson
Senior Software Systems Engineer
Diamond Light Source
Chilton, Didcot
OX11 0DE
UK

Beamline Controls - I16, I19, B18


--
This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd.
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom









References:
building 64-bit base on windows matthew.pearson

Navigate by Date:
Prev: the seq that launched a thousand seqs Laznovsky Michael
Next: RE: the seq that launched a thousand seqs Laznovsky Michael
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: building 64-bit base on windows matthew.pearson
Next: Re: building 64-bit base on windows Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·