Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fatal error LNK1104: cannot open file 'libboost_date_time-vc140-mt-1_64.lib' #121

Open
bxk-sonavex opened this issue Nov 7, 2017 · 4 comments
Assignees

Comments

@bxk-sonavex
Copy link

bxk-sonavex commented Nov 7, 2017

First of all, thanks for providing the CK package, it works amazingly! However, when I am trying
ck compile program:caffe-time-opencl
I got a linking error
fatal error LNK1104: cannot open file 'libboost_date_time-vc140-mt-1_64.lib'

Could you help me on solving this? Thanks a lot!

FYI, here is the log

> ck compile program:caffe-time-opencl

* caffe-time-opencl (2b9f71021ffb7681)

***************************************************************************************
Current directory: C:\Users\xxxx\CK\ck-caffe\program\caffe-time-opencl\tmp
***************************************************************************************

  -----------------------------------
  Resolving software dependencies ...

*** Dependency 1 = compiler (C++ compiler):

More than one environment found for "C++ compiler" with tags="compiler,lang-cpp" and setup={"host_os_uoa": "windows-64", "target_os_bits": "64", "target_os_uoa": "windows-64"}:

0) Microsoft C compiler - v19.00.24215.1 (64bits,compiler,host-os-windows-64,lang-c,lang-cpp,mcl,microsoft,target-os-windows-64,v19,v19.0,v19.0.24215,v19.0.24215.1 (1907cfaf4cbc4498))
                                  - Depends on "msdk" (env UOA=d135a412c8273308, tags="microsoft,sdk", version=10.0A)

1) GNU C compiler - v6.3.0 (64bits,channel-stable,compiler,fortran,gcc,gfortran,host-os-windows-64,lang-c,lang-cpp,lang-f77,lang-f90,lang-f95,target-os-windows-64,v6,v6.3,v6.3.0 (ba00577dbc4bbfa0))

Select one of the options for "C++ compiler" with tags="compiler,lang-cpp" and setup={"host_os_uoa": "windows-64", "target_os_bits": "64", "target_os_uoa": "windows-64"} or press Enter for 0:

    Resolved. CK environment UID = 1907cfaf4cbc4498 (detected version 19.00.24215.1)

*** Dependency 2 = lib-caffe (Caffe library):

    Resolved. CK environment UID = 00f1f1704548ab83

*** Dependency 3 = lib-boost (Boost library):

    Resolved. CK environment UID = 34eed437889f183b

*** Dependency 4 = lib-gflags (GFlags library):

    Resolved. CK environment UID = 3648c088c9ecfb43

*** Dependency 5 = lib-lmdb (LMDB library):

    Resolved. CK environment UID = ae5f7107444f99ba

*** Dependency 6 = lib-glog (GLog library):

    Resolved. CK environment UID = 1c7741bfb7bc9c48

*** Dependency 7 = lib-blas (BLAS library):

    Resolved. CK environment UID = 479693316cbda055

*** Dependency 8 = lib-protobuf-host (ProtoBuf HOST library):

    Resolved. CK environment UID = 5ddd1e204646baeb

*** Dependency 9 = lib-opencv (OpenCV library):

    Resolved. CK environment UID = 1174c5ca79fd6ae0

*** Dependency 10 = lib-opencl (OpenCL library (stubs on Android)):

    Resolved. CK environment UID = a91d440cfb942cae

*** Dependency 11 = boost (Boost C++ libraries):

    Resolved. CK environment UID = 34eed437889f183b

*** Dependency 12 = lib-viennacl (ViennaCL library):

    Resolved. CK environment UID = 929f0b64453fa877

*** Dependency 13 = xopenme (xOpenME library):

    Resolved. CK environment UID = 487743ea80c9da9b
  -----------------------------------
***************************************************************************************
Detected compiler version: 19.00.24215.1

***************************************************************************************
Compiler vars:
  ANDROID_USE_OPENMP=ON
  BLAS=Open
  CK_HOST_OS_NAME2_WIN=1
  CK_HOST_OS_NAME_WIN=1
  CK_TARGET_OS_NAME2_WIN=1
  CK_TARGET_OS_NAME_WIN=1
  USE_GREENTEA=ON
  USE_LMDB=OFF
  USE_OPENCV=ON
  XOPENME=ON
***************************************************************************************

Executing prepared batch file tmp-9tn9vs5w.bat ...

A subdirectory or file C:\Users\NUC-SO~1\AppData\Local\Temp\viennacl_cache\ already exists.
cl /c /DWINDOWS /GS- /MD /I..\ /DANDROID_USE_OPENMP=ON /DBLAS=Open /DCK_HOST_OS_NAME2_WIN=1 /DCK_HOST_OS_NAME_WIN=1 /DCK_TARGET_OS_NAME2_WIN=1 /DCK_TARGET_OS_NAME_WIN=1 /DUSE_GREENTEA=ON /DUSE_LMDB=OFF /DUSE_OPENCV=ON /DXOPENME=ON /EHsc /D CMAKE_WINDOWS_BUILD   /I"C:\Users\xxxx\CK-TOOLS\lib-caffe-bvlc-opencl-libdnn-viennacl-bin-5a1422a93a842bd6-windows-64\install\include" /I"C:\Users\xxxx\CK-TOOLS\lib-boost-min-for-caffe-1.64.0-min-for-caffe-mcl-19.00.24215.1-windows-64\install\include" /I"C:\Users\xxxx\CK-TOOLS\lib-gflags-2.2.0-mcl-19.00.24215.1-windows-64\install\include" /I"C:/Users/xxxx/CK-TOOLS/lib-lmdb-0.9.21-mcl-19.00.24215.1-windows-64/include" /I"C:\Users\xxxx\CK-TOOLS\lib-glog-0.3.5-mcl-19.00.24215.1-windows-64\install\include" /I"C:\Users\xxxx\CK-TOOLS\lib-openblas-0.2.20-mcl-19.00.24215.1-compiler.gcc-6.3.0-windows-64\install\include" /I"C:\Users\xxxx\CK-TOOLS\lib-protobuf-host-3.1.0-windows-64\install\include" /I"C:\Users\xxxx\CK-TOOLS\lib-opencv-3.3.0-mcl-19.00.24215.1-windows-64\install/include" /I"C:\Program Files (x86)\Intel\OpenCL SDK\6.3\include" /I"C:\Users\xxxx\CK-TOOLS\lib-boost-min-for-caffe-1.64.0-min-for-caffe-mcl-19.00.24215.1-windows-64\install\include" /I"C:\Users\xxxx\CK-TOOLS\lib-viennacl-1.7.1-mcl-19.00.24215.1-windows-64\install\include" /I"C:\Users\xxxx\CK-TOOLS\lib-rtl-xopenme-0.3-mcl-19.00.24215.1-windows-64\include" /I"C:\Users\xxxx\CK-TOOLS\lib-caffe-bvlc-opencl-libdnn-viennacl-bin-5a1422a93a842bd6-windows-64\install\.build_release\src"  ..\caffe.cpp  /Fecaffe.obj
Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24215.1 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

caffe.cpp
cl /DWINDOWS /GS-  /MD caffe.obj  /Fecaffe.exe   "C:\Users\xxxx\CK-TOOLS\lib-caffe-bvlc-opencl-libdnn-viennacl-bin-5a1422a93a842bd6-windows-64\install\lib\caffe.lib" "C:\Users\xxxx\CK-TOOLS\lib-gflags-2.2.0-mcl-19.00.24215.1-windows-64\install\Lib\gflags.lib" "C:/Users/xxxx/CK-TOOLS/lib-lmdb-0.9.21-mcl-19.00.24215.1-windows-64/lib\lmdb.lib" "C:\Users\xxxx\CK-TOOLS\lib-glog-0.3.5-mcl-19.00.24215.1-windows-64\install\lib\glog.lib" "C:\Users\xxxx\CK-TOOLS\lib-openblas-0.2.20-mcl-19.00.24215.1-compiler.gcc-6.3.0-windows-64\install/lib\libopenblas.dll.a" "C:\Users\xxxx\CK-TOOLS\lib-protobuf-host-3.1.0-windows-64\install\lib\libprotobuf.lib" "C:\Users\xxxx\CK-TOOLS\lib-opencv-3.3.0-mcl-19.00.24215.1-windows-64\install\lib\opencv_core330.lib" "C:\Program Files (x86)\Intel\OpenCL SDK\6.3\lib\x64\OpenCL.lib" "C:\Users\xxxx\CK-TOOLS\lib-rtl-xopenme-0.3-mcl-19.00.24215.1-windows-64\lib\librtlxopenme.lib"    C:\Users\xxxx\CK-TOOLS\lib-boost-min-for-caffe-1.64.0-min-for-caffe-mcl-19.00.24215.1-windows-64\install\lib\boost_thread-mt.lib C:\Users\xxxx\CK-TOOLS\lib-boost-min-for-caffe-1.64.0-min-for-caffe-mcl-19.00.24215.1-windows-64\install\lib\boost_date_time-mt.lib C:\Users\xxxx\CK-TOOLS\lib-boost-min-for-caffe-1.64.0-min-for-caffe-mcl-19.00.24215.1-windows-64\install\lib\boost_filesystem-mt.lib C:\Users\xxxx\CK-TOOLS\lib-boost-min-for-caffe-1.64.0-min-for-caffe-mcl-19.00.24215.1-windows-64\install\lib\boost_system-mt.lib C:\Users\xxxx\CK-TOOLS\lib-opencv-3.3.0-mcl-19.00.24215.1-windows-64\install\lib\opencv_imgproc330.lib C:\Users\xxxx\CK-TOOLS\lib-opencv-3.3.0-mcl-19.00.24215.1-windows-64\install\lib\opencv_highgui330.lib C:\Users\xxxx\CK-TOOLS\lib-opencv-3.3.0-mcl-19.00.24215.1-windows-64\install\lib\opencv_core330.lib C:\Users\xxxx\CK-TOOLS\lib-opencv-3.3.0-mcl-19.00.24215.1-windows-64\install\lib\opencv_imgcodecs330.lib     C:\Users\xxxx\CK-TOOLS\lib-caffe-bvlc-opencl-libdnn-viennacl-bin-5a1422a93a842bd6-windows-64\install\lib\proto.lib /link /NODEFAULTLIB:libboost_date_time-vcvc120-mt-1_60.lib /NODEFAULTLIB:libboost_date_time-vcvc140-mt-1_60.lib /NODEFAULTLIB:libboost_date_time-vcvc141-mt-1_60.lib /NODEFAULTLIB:libboost_date_time-vcvc120-mt-1_62.lib /NODEFAULTLIB:libboost_date_time-vcvc140-mt-1_62.lib /NODEFAULTLIB:libboost_date_time-vcvc141-mt-1_62.lib /NODEFAULTLIB:libboost_date_time-vcvc120-mt-1_64.lib /NODEFAULTLIB:libboost_date_time-vcvc140-mt-1_64.lib /NODEFAULTLIB:libboost_date_time-vcvc141-mt-1_64.lib /NODEFAULTLIB:libboost_filesystem-vcvc120-mt-1_60.lib /NODEFAULTLIB:libboost_filesystem-vcvc140-mt-1_60.lib /NODEFAULTLIB:libboost_filesystem-vcvc141-mt-1_60.lib /NODEFAULTLIB:libboost_filesystem-vcvc120-mt-1_62.lib /NODEFAULTLIB:libboost_filesystem-vcvc140-mt-1_62.lib /NODEFAULTLIB:libboost_filesystem-vcvc141-mt-1_62.lib /NODEFAULTLIB:libboost_filesystem-vcvc120-mt-1_64.lib /NODEFAULTLIB:libboost_filesystem-vcvc140-mt-1_64.lib /NODEFAULTLIB:libboost_filesystem-vcvc141-mt-1_64.lib /NODEFAULTLIB:libboost_system-vcvc120-mt-1_60.lib /NODEFAULTLIB:libboost_system-vcvc140-mt-1_60.lib /NODEFAULTLIB:libboost_system-vcvc141-mt-1_60.lib /NODEFAULTLIB:libboost_system-vcvc120-mt-1_62.lib /NODEFAULTLIB:libboost_system-vcvc140-mt-1_62.lib /NODEFAULTLIB:libboost_system-vcvc141-mt-1_62.lib /NODEFAULTLIB:libboost_system-vcvc120-mt-1_64.lib /NODEFAULTLIB:libboost_system-vcvc140-mt-1_64.lib /NODEFAULTLIB:libboost_system-vcvc141-mt-1_64.lib
Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24215.1 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

cl : Command line warning D9024 : unrecognized source file type 'C:\Users\xxxx\CK-TOOLS\lib-openblas-0.2.20-mcl-19.00.24215.1-compiler.gcc-6.3.0-windows-64\install/lib\libopenblas.dll.a', object file assumed
Microsoft (R) Incremental Linker Version 14.00.24215.1
Copyright (C) Microsoft Corporation.  All rights reserved.

/out:caffe.exe
/NODEFAULTLIB:libboost_date_time-vcvc120-mt-1_60.lib
/NODEFAULTLIB:libboost_date_time-vcvc140-mt-1_60.lib
/NODEFAULTLIB:libboost_date_time-vcvc141-mt-1_60.lib
/NODEFAULTLIB:libboost_date_time-vcvc120-mt-1_62.lib
/NODEFAULTLIB:libboost_date_time-vcvc140-mt-1_62.lib
/NODEFAULTLIB:libboost_date_time-vcvc141-mt-1_62.lib
/NODEFAULTLIB:libboost_date_time-vcvc120-mt-1_64.lib
/NODEFAULTLIB:libboost_date_time-vcvc140-mt-1_64.lib
/NODEFAULTLIB:libboost_date_time-vcvc141-mt-1_64.lib
/NODEFAULTLIB:libboost_filesystem-vcvc120-mt-1_60.lib
/NODEFAULTLIB:libboost_filesystem-vcvc140-mt-1_60.lib
/NODEFAULTLIB:libboost_filesystem-vcvc141-mt-1_60.lib
/NODEFAULTLIB:libboost_filesystem-vcvc120-mt-1_62.lib
/NODEFAULTLIB:libboost_filesystem-vcvc140-mt-1_62.lib
/NODEFAULTLIB:libboost_filesystem-vcvc141-mt-1_62.lib
/NODEFAULTLIB:libboost_filesystem-vcvc120-mt-1_64.lib
/NODEFAULTLIB:libboost_filesystem-vcvc140-mt-1_64.lib
/NODEFAULTLIB:libboost_filesystem-vcvc141-mt-1_64.lib
/NODEFAULTLIB:libboost_system-vcvc120-mt-1_60.lib
/NODEFAULTLIB:libboost_system-vcvc140-mt-1_60.lib
/NODEFAULTLIB:libboost_system-vcvc141-mt-1_60.lib
/NODEFAULTLIB:libboost_system-vcvc120-mt-1_62.lib
/NODEFAULTLIB:libboost_system-vcvc140-mt-1_62.lib
/NODEFAULTLIB:libboost_system-vcvc141-mt-1_62.lib
/NODEFAULTLIB:libboost_system-vcvc120-mt-1_64.lib
/NODEFAULTLIB:libboost_system-vcvc140-mt-1_64.lib
/NODEFAULTLIB:libboost_system-vcvc141-mt-1_64.lib
caffe.obj
C:\Users\xxxx\CK-TOOLS\lib-caffe-bvlc-opencl-libdnn-viennacl-bin-5a1422a93a842bd6-windows-64\install\lib\caffe.lib
C:\Users\xxxx\CK-TOOLS\lib-gflags-2.2.0-mcl-19.00.24215.1-windows-64\install\Lib\gflags.lib
C:/Users/xxxx/CK-TOOLS/lib-lmdb-0.9.21-mcl-19.00.24215.1-windows-64/lib\lmdb.lib
C:\Users\xxxx\CK-TOOLS\lib-glog-0.3.5-mcl-19.00.24215.1-windows-64\install\lib\glog.lib
C:\Users\xxxx\CK-TOOLS\lib-openblas-0.2.20-mcl-19.00.24215.1-compiler.gcc-6.3.0-windows-64\install/lib\libopenblas.dll.a
C:\Users\xxxx\CK-TOOLS\lib-protobuf-host-3.1.0-windows-64\install\lib\libprotobuf.lib
C:\Users\xxxx\CK-TOOLS\lib-opencv-3.3.0-mcl-19.00.24215.1-windows-64\install\lib\opencv_core330.lib
"C:\Program Files (x86)\Intel\OpenCL SDK\6.3\lib\x64\OpenCL.lib"
C:\Users\xxxx\CK-TOOLS\lib-rtl-xopenme-0.3-mcl-19.00.24215.1-windows-64\lib\librtlxopenme.lib
C:\Users\xxxx\CK-TOOLS\lib-boost-min-for-caffe-1.64.0-min-for-caffe-mcl-19.00.24215.1-windows-64\install\lib\boost_thread-mt.lib
C:\Users\xxxx\CK-TOOLS\lib-boost-min-for-caffe-1.64.0-min-for-caffe-mcl-19.00.24215.1-windows-64\install\lib\boost_date_time-mt.lib
C:\Users\xxxx\CK-TOOLS\lib-boost-min-for-caffe-1.64.0-min-for-caffe-mcl-19.00.24215.1-windows-64\install\lib\boost_filesystem-mt.lib
C:\Users\xxxx\CK-TOOLS\lib-boost-min-for-caffe-1.64.0-min-for-caffe-mcl-19.00.24215.1-windows-64\install\lib\boost_system-mt.lib
C:\Users\xxxx\CK-TOOLS\lib-opencv-3.3.0-mcl-19.00.24215.1-windows-64\install\lib\opencv_imgproc330.lib
C:\Users\xxxx\CK-TOOLS\lib-opencv-3.3.0-mcl-19.00.24215.1-windows-64\install\lib\opencv_highgui330.lib
C:\Users\xxxx\CK-TOOLS\lib-opencv-3.3.0-mcl-19.00.24215.1-windows-64\install\lib\opencv_core330.lib
C:\Users\xxxx\CK-TOOLS\lib-opencv-3.3.0-mcl-19.00.24215.1-windows-64\install\lib\opencv_imgcodecs330.lib
C:\Users\xxxx\CK-TOOLS\lib-caffe-bvlc-opencl-libdnn-viennacl-bin-5a1422a93a842bd6-windows-64\install\lib\proto.lib
LINK : fatal error LNK1104: cannot open file 'libboost_date_time-vc140-mt-1_64.lib'
***************************************************************************************
Compilation time: 4.204 sec.; Object size: 0; Total binary size: 0; MD5:
Warning: compilation failed!
@psyhtest
Copy link
Member

Hi @bxk-sonavex, Apologies for the delay with replying - I've only just noticed this issue.

Not being a Windows user I am afraid I can't help much. Let me just note that CK did seem to build:

C:\Users\xxxx\CK-TOOLS\lib-boost-min-for-caffe-1.64.0-min-for-caffe-mcl-19.00.24215.1-windows-64\install\lib\boost_date_time-mt.lib

for you, but I'm not sure why linking against libboost_date_time-vc140-mt-1_64.lib is attempted.

Perhaps @gfursin can help here?

@gfursin
Copy link
Contributor

gfursin commented Nov 29, 2017

Oh, @bxk-sonavex , the same for me - I somehow missed your ticket in myriads of our messages - really sorry about that (in case I don't reply within a week one should ping me again since I may loose emails nowdays). And thanks a lot for nice words about CK.

I think I see the problem - there is currently an unpleasant thing on Windows when building boost, that it forces extra names in the lib. I didn't manage to solve it so I do a temporal ugly trick with /NODEFAULTLIB where I remove all long boost names and try to link with the correct short one. However, from your log seems like I did a typo somewhere and there is a "vcvc-140" instead of "vc-140" - I will try to check it shortly ...

Once again thanks a lot for your interest and sorry for such a long delay in replaying!!!

@gfursin
Copy link
Contributor

gfursin commented Nov 29, 2017

I actually think I fixed it. @bxk-sonavex , to check it you can do the following:

  1. Update either just ck-caffe repo (where I have a fix) or all repos (we had many updates lately but they should normally be backwards compatible):
$ ck pull all

or

$ ck pull repo:ck-caffe

Then "refresh" Caffe env.

$ ck refresh env:* --tags=caffe

Normally it should fix this issue with "vcvc".

Then you can try to compile time example again:

$ ck compile program:caffe-time-opencl

Hopefully it should work this time!
Cheers!

@gfursin
Copy link
Contributor

gfursin commented Nov 29, 2017

And thanks a lot for reporting this issue! It was typo on our side which was important to fix it since we are now preparing a fun AI/SW/HW co-design tournament based on CK framework, so hope to avoid such kind of issues ( http://cKnowledge.org/request ) ;) !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants