- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
with below command to build part of scipy failed:
"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\amd64\link.exe" /DLL /LIBPATH:S:\sc\EEsofTools\Windows\vs2012\win32_64\python\2.7.3\win32_64\release\python\PCbuild\amd64 /LIBPATH:S:\sc\EEsofTools\Windows\vs2012\win32_64\python\2.7.3\win32_64\release\python\libs /LIBPATH:"C:\Program Files (x86)\Intel\Composer XE 2015\compiler\lib\intel64" /LIBPATH:S:\sc\EEsofTools\Windows\vs2012\win32_64\scipy\scipy-0.11.0\build\temp.win-amd64-2.7 dfftpack.lib fftpack.lib /EXPORT:init_fftpack build\temp.win-amd64-2.7\Release\build\src.win-amd64-2.7\scipy\fftpack\_fftpackmodule.obj build\temp.win-amd64-2.7\Release\scipy\fftpack\src\zfft.obj build\temp.win-amd64-2.7\Release\scipy\fftpack\src\drfft.obj build\temp.win-amd64-2.7\Release\scipy\fftpack\src\zrfft.obj build\temp.win-amd64-2.7\Release\scipy\fftpack\src\zfftnd.obj build\temp.win-amd64-2.7\Release\build\src.win-amd64-2.7\scipy\fftpack\src\dct.obj build\temp.win-amd64-2.7\Release\build\src.win-amd64-2.7\scipy\fftpack\src\dst.obj build\temp.win-amd64-2.7\Release\build\src.win-amd64-2.7\fortranobject.obj /OUT:build\lib.win-amd64-2.7\scipy\fftpack\_fftpack.pyd /IMPLIB:build\temp.win-amd64-2.7\Release\build\src.win-amd64-2.7\scipy\fftpack\_fftpack.lib /MANIFESTFILE:build\temp.win-amd64-2.7\Release\build\src.win-amd64-2.7\scipy\fftpack\_fftpack.pyd.manifest
Error Message:
_fftpackmodule.obj : warning LNK4197: export 'init_fftpack' specified multiple times; using first specificatio
n
Creating library build\temp.win-amd64-2.7\Release\build\src.win-amd64-2.7\scipy\fftpack\_fftpack.lib and ob
ject build\temp.win-amd64-2.7\Release\build\src.win-amd64-2.7\scipy\fftpack\_fftpack.exp
zfft.obj : error LNK2019: unresolved external symbol zfftf_ referenced in function zfft
zfft.obj : error LNK2019: unresolved external symbol zfftb_ referenced in function zfft
zfft.obj : error LNK2019: unresolved external symbol zffti_ referenced in function get_cache_id_zfft
zfft.obj : error LNK2019: unresolved external symbol cfftf_ referenced in function cfft
zfft.obj : error LNK2019: unresolved external symbol cfftb_ referenced in function cfft
zfft.obj : error LNK2019: unresolved external symbol cffti_ referenced in function get_cache_id_cfft
drfft.obj : error LNK2019: unresolved external symbol dfftf_ referenced in function drfft
drfft.obj : error LNK2019: unresolved external symbol dfftb_ referenced in function drfft
drfft.obj : error LNK2019: unresolved external symbol dffti_ referenced in function get_cache_id_drfft
drfft.obj : error LNK2019: unresolved external symbol rfftf_ referenced in function rfft
drfft.obj : error LNK2019: unresolved external symbol rfftb_ referenced in function rfft
drfft.obj : error LNK2019: unresolved external symbol rffti_ referenced in function get_cache_id_rfft
dct.obj : error LNK2019: unresolved external symbol costi_ referenced in function get_cache_id_dct1
dct.obj : error LNK2019: unresolved external symbol cost_ referenced in function dct1
dct.obj : error LNK2019: unresolved external symbol cosqi_ referenced in function get_cache_id_dct2
dct.obj : error LNK2019: unresolved external symbol cosqb_ referenced in function dct2
dct.obj : error LNK2019: unresolved external symbol cosqf_ referenced in function dct3
dct.obj : error LNK2019: unresolved external symbol dcosti_ referenced in function get_cache_id_ddct1
dct.obj : error LNK2019: unresolved external symbol dcost_ referenced in function ddct1
dct.obj : error LNK2019: unresolved external symbol dcosqi_ referenced in function get_cache_id_ddct2
dct.obj : error LNK2019: unresolved external symbol dcosqb_ referenced in function ddct2
dct.obj : error LNK2019: unresolved external symbol dcosqf_ referenced in function ddct3
dst.obj : error LNK2019: unresolved external symbol sinti_ referenced in function get_cache_id_dst1
dst.obj : error LNK2019: unresolved external symbol sint_ referenced in function dst1
dst.obj : error LNK2019: unresolved external symbol sinqi_ referenced in function get_cache_id_dst2
dst.obj : error LNK2019: unresolved external symbol sinqb_ referenced in function dst2
dst.obj : error LNK2019: unresolved external symbol sinqf_ referenced in function dst3
dst.obj : error LNK2019: unresolved external symbol dsinti_ referenced in function get_cache_id_ddst1
dst.obj : error LNK2019: unresolved external symbol dsint_ referenced in function ddst1
dst.obj : error LNK2019: unresolved external symbol dsinqi_ referenced in function get_cache_id_ddst2
dst.obj : error LNK2019: unresolved external symbol dsinqb_ referenced in function ddst2
dst.obj : error LNK2019: unresolved external symbol dsinqf_ referenced in function ddst3
build\lib.win-amd64-2.7\scipy\fftpack\_fftpack.pyd : fatal error LNK1120: 32 unresolved externals
How to solve it?
Thanks for your suggestion.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The Windows compiler emits object files with Fortran external symbols in uppercase and with no underscores appended or prepended. You may need to adjust your makefile accordingly, or specify compiler/linker options to compensate, or use C interoperability features. You may also look for a build/install script that is known to be Windows-Ifort-compatible.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you would follow the suggestion to link against the MKL library which comes with ifort (USEing corresponding .mod files), you would not have to concern yourself with the differences in default link symbols. Setting the lowercase and underscore options will not necessarily solve your problem if you are attempting to link libraries which weren't built with a compatible compiler (e.g. linux libraries will not work on Windows; mingw libraries would likely have several incompatibilities).
You might find some hints in the step by step instructions for building scipy with linux MKL, but you will need to make allowances for the differences in the Windows compilation.
I am assuming that you use ifort since you posted on this forum, but there isn't sufficient information in what you posted.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Duplicate of https://software.intel.com/en-us/forums/topic/538120

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page