-----Original Message----- From: mpir-devel@googlegroups.com [mailto:mpir-devel@googlegroups.com] On Behalf Of Brian Gladman Sent: Thursday, May 7, 2015 3:09 PM To: mpir-devel@googlegroups.com Subject: Re: [mpir-devel] Prebuilt binaries?
On 07/05/2015 21:34, Dann Corbit wrote: > I cannot build MPIR (any version) on my machine now with Visual Studio > 2013. I can build it with Mingw, but I want to use Visual Studio > since development is easier for me in that environment (I like the > debugger better, etc.) Hi Dann, I have tested the MPIR builds for Visual Studio 2012, 2013 and 2015 and they all work for me so I am at a bit of a loss about the failure you are seeing. Can I ask what happens when you try to build it? What output do you get from Visual Studio during the build? Have you tried a clean build from the newly downloaded repository version of MPIR? >> OK. I pulled all the current source from the git repository. I was building for core2, but I figured out that I really need to build for sandybridge (I have Intel® Xeon® Processor E5-1650). Steps I took. 1. Pull new instance of repository 2. Load mpir project 3. Build for sandybridge 4. Load mpir-tests project 5. Wait until all the "initializing" things go away 6. Try to build the tests. 7. Abject failure. When I build the MPIR library everything looks happy: ... lib_mpir_sandybridge.vcxproj -> F:\math\mpir-master\build.vc12\x64\Release\mpir.lib 1> copying outputs from "x64\Release" to "..\lib\x64\Release" Until I try to use it, at which point I get a giant pile of this stuff: 1>------ Build started: Project: add-test-lib, Configuration: Release x64 ------ 2>------ Build started: Project: mpn.mullow_basecase, Configuration: Release x64 ------ 3>------ Build started: Project: mpn.mulmid, Configuration: Release x64 ------ 4>------ Build started: Project: mpn.subadd_n, Configuration: Release x64 ------ 5>------ Build started: Project: mpn.mullowhigh, Configuration: Release x64 ------ 6>------ Build started: Project: mpf.eq, Configuration: Release x64 ------ 7>------ Build started: Project: mpn.neg, Configuration: Release x64 ------ 8>------ Build started: Project: mpn.mulmod_2expm1, Configuration: Release x64 ------ 9>------ Build started: Project: mpz.trial_division, Configuration: Release x64 ------ 10>------ Build started: Project: mpn.sb_divappr_q, Configuration: Release x64 ------ 11>------ Build started: Project: mpz.likely_prime_p, Configuration: Release x64 ------ 12>------ Build started: Project: mpn.inv_div_q, Configuration: Release x64 ------ 1>EXEC : error : static library tests need 'mpirxx.lib' 1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(122,5): error MSB3073: The command "..\check_config x64 Release 1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(122,5): error MSB3073: :VCEnd" exited with code -1. 2>EXEC : error : static library tests need 'mpirxx.lib' 2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(122,5): error MSB3073: The command "..\check_config x64 Release 2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(122,5): error MSB3073: :VCEnd" exited with code -1. 4>EXEC : error : static library tests need 'mpirxx.lib' 4>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(122,5): error MSB3073: The command "..\check_config x64 Release 4>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(122,5): error MSB3073: :VCEnd" exited with code -1. Pages and pages and pages with more of the same. At the bottom, it looks like this: 201>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(122,5): error MSB3073: The command "..\check_config x64 Release 201>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(122,5): error MSB3073: :VCEnd" exited with code -1. ========== Build: 0 succeeded, 202 failed, 0 up-to-date, 0 skipped ========== Seems obvious, I need to build mpirxx.lib It does not have a solution, so I opened the vcxproj and built it from that. Successful. Try again with the mpir-tests project: 1>------ Build started: Project: add-test-lib, Configuration: Release x64 ------ 2>------ Build started: Project: mpn.mullow_basecase, Configuration: Release x64 ------ 3>------ Build started: Project: mpn.mulmid, Configuration: Release x64 ------ 4>------ Build started: Project: mpn.subadd_n, Configuration: Release x64 ------ 5>------ Build started: Project: mpn.mullowhigh, Configuration: Release x64 ------ 6>------ Build started: Project: mpf.eq, Configuration: Release x64 ------ 7>------ Build started: Project: mpn.neg, Configuration: Release x64 ------ 8>------ Build started: Project: mpn.mulmod_2expm1, Configuration: Release x64 ------ 9>------ Build started: Project: mpz.trial_division, Configuration: Release x64 ------ 10>------ Build started: Project: mpn.sb_divappr_q, Configuration: Release x64 ------ 11>------ Build started: Project: mpz.likely_prime_p, Configuration: Release x64 ------ 12>------ Build started: Project: mpn.inv_div_q, Configuration: Release x64 ------ 3>EXEC : error : static library tests need 'mpirxx.lib' 5>EXEC : error : static library tests need 'mpirxx.lib' 3>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(122,5): error MSB3073: The command "..\check_config x64 Release 3>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(122,5): error MSB3073: :VCEnd" exited with code -1. 9>EXEC : error : static library tests need 'mpirxx.lib' Same error. Perhaps the mpirxx.lib is hardwired to some specific folder? I build on a drive called F: In all the previous versions I had no problems. Maybe it is something in my environment. We upgraded compilers to VC++ 2013. I tried using 2010, but it does not work for me either. << -- You received this message because you are subscribed to the Google Groups "mpir-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to mpir-devel+unsubscr...@googlegroups.com. To post to this group, send email to mpir-devel@googlegroups.com. Visit this group at http://groups.google.com/group/mpir-devel. For more options, visit https://groups.google.com/d/optout.