<div dir="ltr">Could you try and reduce this somehow? Is mpir.h in the same directory as the source file you're compiling? What happens when you call the compiler manually. Using -v should give you some idea about header search paths.</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 24, 2015 at 4:06 AM, Russell Wallace <span dir="ltr"><<a href="mailto:russell.wallace@gmail.com" target="_blank">russell.wallace@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I'm trying to compile mpir (the Windows port of GMP) with clang 3.7.0, using the release version of Visual C++ 2015. The following is a sample of the resulting messages.</div><div><br></div><div><div>Notes:</div><div><br></div><div>An immediately preceding attempt to compile the same version of mpir in the same directory with the same version of Visual C++ succeeded; as far as I know, nothing else changed in the meantime.</div><div><br></div><div>I'm using <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_russellw_wic&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=CnzuN65ENJ1H9py9XLiRvC_UQz6u3oG6GUNn7_wosSM&m=TLgEwllnEOK8jgA_etlD68eufsk4AixPbeJarZ1PoR0&s=9lZbP28FVV_8MTNnS4OaFD8GfTIsZ9dntuNykF-Blp0&e=" target="_blank">https://github.com/russellw/wic</a> to redirect the cl calls to clang-cl so the procedure is as seamless as possible.</div><div><br></div><div>mpir.h exists - I've appended its location after the error messages - and was found by the build with Visual C++.</div></div><div><br></div><div><div>Anyone have any idea what might be causing this or what might be a fruitful line of investigation?</div><div><br></div><div>Error messages:</div></div><div><br></div><div><div> cmd.exe /C "C:\Users\w\AppData\Local\Temp\tmp4f8795ae47164f55b788fae62ca2c5e7.cmd"</div><div> "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\"vsyasm.exe -Xvc -f x64 -g cv8 -i "..\..\mpn\x86_64w\\" -o "x64\Release\mpn\\" -rnasm -pnasm ..\..\mpn\x86_64w\add_err1_n.asm ..\..\mp</div><div> n\x86_64w\add_err2_n.asm ..\..\mpn\x86_64w\core2\add_n.asm ..\..\mpn\x86_64w\core2\addadd_n.asm ..\..\mpn\x86_64w\core2\addlsh1_n.asm ..\..\mpn\x86_64w\core2\addlsh_n.asm ..\..\mpn\x86_64w\cor</div><div> e2\addmul_1.asm ..\..\mpn\x86_64w\core2\addmul_2.asm ..\..\mpn\x86_64w\core2\addsub_n.asm ..\..\mpn\x86_64w\core2\and_n.asm ..\..\mpn\x86_64w\core2\andn_n.asm ..\..\mpn\x86_64w\core2\com_n.asm</div><div> ..\..\mpn\x86_64w\core2\copyd.asm ..\..\mpn\x86_64w\core2\copyi.asm ..\..\mpn\x86_64w\divexact_1.asm ..\..\mpn\x86_64w\divexact_by3c.asm ..\..\mpn\x86_64w\core2\divexact_byff.asm ..\..\mpn\x</div><div> 86_64w\divexact_byfobm1.asm ..\..\mpn\x86_64w\divrem_2.asm ..\..\mpn\x86_64w\divrem_euclidean_qr_1.asm ..\..\mpn\x86_64w\divrem_euclidean_qr_2.asm ..\..\mpn\x86_64w\core2\divrem_hensel_qr_1_2.a</div><div> sm ..\..\mpn\x86_64w\core2\hamdist.asm ..\..\mpn\x86_64w\core2\ior_n.asm ..\..\mpn\x86_64w\core2\iorn_n.asm ..\..\mpn\x86_64w\core2\karaadd.asm ..\..\mpn\x86_64w\core2\karasub.asm ..\..\mpn\x</div><div> 86_64w\core2\lshift.asm ..\..\mpn\x86_64w\core2\lshift1.asm ..\..\mpn\x86_64w\core2\mod_1_1.asm ..\..\mpn\x86_64w\core2\mod_1_2.asm ..\..\mpn\x86_64w\core2\mod_1_3.asm ..\..\mpn\x86_64w\modexa</div><div> ct_1c_odd.asm ..\..\mpn\x86_64w\core2\mul_1.asm ..\..\mpn\x86_64w\core2\mul_2.asm ..\..\mpn\x86_64w\core2\mul_basecase.asm ..\..\mpn\x86_64w\mulmid_basecase.asm ..\..\mpn\x86_64w\core2\nand_n.</div><div> asm ..\..\mpn\x86_64w\core2\nior_n.asm ..\..\mpn\x86_64w\core2\popcount.asm ..\..\mpn\x86_64w\core2\redc_1.asm ..\..\mpn\x86_64w\core2\rsh1add_n.asm ..\..\mpn\x86_64w\core2\rsh1sub_n.asm ..\.</div><div> .\mpn\x86_64w\core2\rsh_divrem_hensel_qr_1_2.asm ..\..\mpn\x86_64w\core2\rshift.asm ..\..\mpn\x86_64w\core2\rshift1.asm ..\..\mpn\x86_64w\sqr_basecase.asm ..\..\mpn\x86_64w\core2\store.asm ..\</div><div> ..\mpn\x86_64w\sub_err1_n.asm ..\..\mpn\x86_64w\sub_err2_n.asm ..\..\mpn\x86_64w\core2\sub_n.asm ..\..\mpn\x86_64w\core2\subadd_n.asm ..\..\mpn\x86_64w\core2\sublsh1_n.asm ..\..\mpn\x86_64w\co</div><div> re2\submul_1.asm ..\..\mpn\x86_64w\core2\sumdiff_n.asm ..\..\mpn\x86_64w\core2\udiv_qrnnd.asm ..\..\mpn\x86_64w\core2\umul_ppmm.asm ..\..\mpn\x86_64w\core2\xnor_n.asm ..\..\mpn\x86_64w\core2\x</div><div> or_n.asm</div><div>ClCompile:</div><div> C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\CL.exe /c /I..\..\ /Zi /nologo /W1 /WX- /Ox /Oi /D NDEBUG /D WIN32 /D _LIB /D HAVE_CONFIG_H /D _WIN64 /Gm- /EHsc /MT /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"x64\Release\\" /Fd"C:\mpir\build.vc14\lib_mpir_core2\x64\Release\mpir.pdb" /Gd /TC /errorReport:queue ..\..\assert.c ..\..\errno.c "..\..\extract-dbl.c"</div><div> ..\..\invalid.c ..\..\memory.c ..\..\mp_bpl.c ..\..\mp_clz_tab.c ..\..\mp_dv_tab.c ..\..\mp_get_fns.c ..\..\mp_minv_tab.c ..\..\mp_set_fns.c ..\..\nextprime.c ..\..\primesieve.c ..\..\randbui.c ..</div><div> \..\randclr.c ..\..\randdef.c ..\..\randiset.c ..\..\randlc2s.c ..\..\randlc2x.c ..\..\randmt.c ..\..\randmts.c ..\..\randmui.c ..\..\rands.c ..\..\randsd.c ..\..\randsdui.c "..\..\tal-reent.c" ..\</div><div> ..\version.c</div><div>clang-cl.exe : warning : argument unused during compilation: '/Gm-' [C:\mpir\build.vc14\lib_mpir_core2\lib_mpir_core2.vcxproj]</div><div>clang-cl.exe : warning : argument unused during compilation: '/GS' [C:\mpir\build.vc14\lib_mpir_core2\lib_mpir_core2.vcxproj]</div><div> In file included from ..\..\mp_clz_tab.c:28:</div><div>..\../longlong.h(255,12): warning : unknown pragma ignored [-Wunknown-pragmas] [C:\mpir\build.vc14\lib_mpir_core2\lib_mpir_core2.vcxproj]</div><div> # pragma intrinsic(_BitScanReverse64)</div><div> ^</div><div>..\../longlong.h(265,12): warning : unknown pragma ignored [-Wunknown-pragmas] [C:\mpir\build.vc14\lib_mpir_core2\lib_mpir_core2.vcxproj]</div><div> # pragma intrinsic(_BitScanForward64)</div><div> ^</div><div>..\../longlong.h(275,13): warning : unknown pragma ignored [-Wunknown-pragmas] [C:\mpir\build.vc14\lib_mpir_core2\lib_mpir_core2.vcxproj]</div><div> # pragma intrinsic(_umul128)</div><div> ^</div><div> 3 warnings generated.</div><div> In file included from ..\..\randmui.c:24:</div><div>..\../longlong.h(255,12): warning : unknown pragma ignored [-Wunknown-pragmas] [C:\mpir\build.vc14\lib_mpir_core2\lib_mpir_core2.vcxproj]</div><div> # pragma intrinsic(_BitScanReverse64)</div><div> ^</div><div>..\../longlong.h(265,12): warning : unknown pragma ignored [-Wunknown-pragmas] [C:\mpir\build.vc14\lib_mpir_core2\lib_mpir_core2.vcxproj]</div><div> # pragma intrinsic(_BitScanForward64)</div><div> ^</div><div>..\../longlong.h(275,13): warning : unknown pragma ignored [-Wunknown-pragmas] [C:\mpir\build.vc14\lib_mpir_core2\lib_mpir_core2.vcxproj]</div><div> # pragma intrinsic(_umul128)</div><div> ^</div><div> 3 warnings generated.</div><div> C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\CL.exe /c /I..\..\ /Zi /nologo /W1 /WX- /Ox /Oi /D NDEBUG /D WIN32 /D _LIB /D HAVE_CONFIG_H /D _WIN64 /Gm- /EHsc /MT /GS /fp:pre</div><div> cise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"x64\Release\fft\\" /Fd"C:\mpir\build.vc14\lib_mpir_core2\x64\Release\mpir.pdb" /Gd /TC /errorReport:queue ..\..\fft\adjust.c ..\..\fft\adjust_sqrt2.c ..</div><div> \..\fft\butterfly_lshB.c ..\..\fft\butterfly_rshB.c ..\..\fft\combine_bits.c ..\..\fft\div_2expmod_2expp1.c ..\..\fft\fermat_to_mpz.c ..\..\fft\fft_mfa_trunc_sqrt2.c ..\..\fft\fft_mfa_trunc_sqrt2_i</div><div> nner.c ..\..\fft\fft_negacyclic.c ..\..\fft\fft_radix2.c ..\..\fft\fft_trunc.c ..\..\fft\fft_trunc_sqrt2.c ..\..\fft\ifft_mfa_trunc_sqrt2.c ..\..\fft\ifft_negacyclic.c ..\..\fft\ifft_radix2.c ..\..</div><div> \fft\ifft_trunc.c ..\..\fft\ifft_trunc_sqrt2.c ..\..\fft\mul_2expmod_2expp1.c ..\..\fft\mul_fft_main.c ..\..\fft\mul_mfa_trunc_sqrt2.c ..\..\fft\mul_trunc_sqrt2.c ..\..\fft\mulmod_2expp1.c ..\..\ff</div><div> t\normmod_2expp1.c ..\..\fft\revbin.c ..\..\fft\split_bits.c</div><div>clang-cl.exe : warning : argument unused during compilation: '/Gm-' [C:\mpir\build.vc14\lib_mpir_core2\lib_mpir_core2.vcxproj]</div><div>clang-cl.exe : warning : argument unused during compilation: '/GS' [C:\mpir\build.vc14\lib_mpir_core2\lib_mpir_core2.vcxproj]</div><div>..\..\fft\adjust.c(31,10): fatal error : 'mpir.h' file not found [C:\mpir\build.vc14\lib_mpir_core2\lib_mpir_core2.vcxproj]</div><div> #include "mpir.h"</div><div> ^</div><div> 1 error generated.</div><div>..\..\fft\adjust_sqrt2.c(31,10): fatal error : 'mpir.h' file not found [C:\mpir\build.vc14\lib_mpir_core2\lib_mpir_core2.vcxproj]</div><div> #include "mpir.h"</div><div> ^</div><div> 1 error generated.</div><div>..\..\fft\butterfly_lshB.c(31,10): fatal error : 'mpir.h' file not found [C:\mpir\build.vc14\lib_mpir_core2\lib_mpir_core2.vcxproj]</div><div> #include "mpir.h"</div><div> ^</div><div> 1 error generated.</div><div>..\..\fft\butterfly_rshB.c(31,10): fatal error : 'mpir.h' file not found [C:\mpir\build.vc14\lib_mpir_core2\lib_mpir_core2.vcxproj]</div><div> #include "mpir.h"</div><div> ^</div><div> 1 error generated.</div></div><div><br></div><div>Location of the header file:<br></div><div><br></div><div><div>C:\mpir>dir /s mpir.h</div><div> Volume in drive C is OS</div><div> Volume Serial Number is C685-B1F1</div><div><br></div><div> Directory of C:\mpir</div><div><br></div><div>23/07/2015 12:59 96,496 mpir.h</div><div> 1 File(s) 96,496 bytes</div><div><br></div><div> Directory of C:\mpir\lib\x64\Release</div><div><br></div><div>23/07/2015 12:59 96,496 mpir.h</div><div> 1 File(s) 96,496 bytes</div><div><br></div><div> Total Files Listed:</div><div> 2 File(s) 192,992 bytes</div><div> 0 Dir(s) 157,248,802,816 bytes free</div></div><div><br></div></div>
<br>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br></div>