1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 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 2011 2012 2013 2014 2015 <2016> 2017 2018 2019 2020 2021 2022 2023 2024 |
<== Date ==> | <== Thread ==> |
---|
Subject: | RE: link: invalid option -- n.....make[2]: *** [install.windows-x64] Error 2 |
From: | <[email protected]> |
To: | <[email protected]>, <[email protected]>, <[email protected]> |
Date: | Sat, 17 Sep 2016 22:44:07 +0000 |
Hi Max, I’ve managed to reproduce a
epicsTempFile.obj error and in this case it was caused by make not being able to locate the Visual Studio compiler.
The express version of Visual Studio does not provide a native 64bit compiler, it only provides a 32bit cross compiler, so if “x64” is passed as the argument to vcvarsall.bat within the file base\startup\win32.bat the build will fail. Were you using
“x64” here? If so, then to get things to work you just need to use “x86_amd64” instead to generate a 64bit epics build via the cross compiler. One of the possible issues with using the cross compiler is that being a 32bit program it has the usual 32bit program
memory limits etc., so if there was a particularly complicated bit of code to compile or optimisation to perform it might run out of resources. The 3.15.2 release notes mention not working with the express version due to hitting a compiler limit, I’m not
sure of the underlying cause there and whether it will still apply in certain circumstances, but the following setup worked for me: Windows 10 x64 Strawberry perl 5.24.0.1 x64 EPICS base 3.15.4 GNU Make 4.1 (from
https://www.aps.anl.gov/epics/download/tools/make-4.1-win64.zip ) Visual Studio Express for Desktop (2015 update 3) Regards, Freddie
From: [email protected] [mailto:[email protected]]
On Behalf Of Max Power Thank you Mark, After trying again and again using mingw, make 4.1 for windows, and the last version of MVC2015 (free version) both windows 8.1 and windows 10, I have to say that I had always the following error:
http://www.aps.anl.gov/epics/tech-talk/2015/msg01742.php, about: ... make[3]: *** No rule to make target 'epicsTempFile.obj', needed by 'antelope.exe'. Stop.
make[3]: Leaving directory 'c:/base-3.15.2/src/libCom/O.win32-x86'
../../configure/RULES_ARCHS:61: recipe for target 'install.win32-x86' failed
make[2]: *** [install.win32-x86] Error 2
make[2]: Leaving directory 'c:/base-3.15.2/src/libCom'
...
I followed all the indications about the recommendations written in this forwarding, including the modification of the bat file (you mention Mark), but as says Mark at this point, I think the problem is the express edition of MVC2015:
For building base 3.15.2 with Visual Studio 2015 you need to look at the Known Problems page here. Finally I had to do waht I didn't want to, and is use cygwing... It compiled at first time. anyway Thank you very much Max 2016-09-07 23:48 GMT+02:00 Mark S. Engbretson <[email protected]>: Normally, a reasonable system to get good builds with Microsoft compilers uses any modern
version of pearl, Mingw, or gnuwin32. You then modify or use the win32.bat file found in base\startup to point to all your
tools. You run *that* and it sets up all the Microsoft paths for all of its stuff. Base should then build without a hitch. Enclosed is how I have my build system set up.for a MSVC2015 system. I renamed the gnu
link to be something else since the standard batch file does the directories in the wrong order. You might try doing a
make clean uninstall and starting fresh.
Or . . . . if you have a full version of mingw, you could build EPICS with that just
to see if it will build or not. From:
[email protected] [mailto:[email protected]]
On Behalf Of Max Power Dear Mark, Thank you very much for your support. Yes you are totally right, I put first in the PATH, the path to the Microsoft LINK command, but It didn't work. Anyway,
I have tried to do what Enbregtson said, and Another compiling/linking problems have appeared. I am going to try to understand what is the new problem, and in both cases: I fix the problem or not I will write the solution or the problem :D. Thank you very much to all Regards 2016-09-07 21:39 GMT+02:00 Mark Rivers <[email protected]>:
|