Skip to content

[MSVC] Different linkage #6030

Description

@SunBlack

Tried to update asmjit in the vcpkg repo and therefore also to update this library as it contains necessary adjustments for latest asmjit.

But with the 1.8.0 tag I'm getting:

[53/70] "C:\Program Files\Microsoft Visual Studio\18\Community\VC\Tools\MSVC\14.51.36231\bin\Hostx64\x64\cl.exe"   /TP -DCPUINFO_SUPPORTED_PLATFORM=1 -IC:\dev\vcpkg_dev\buildtrees\fbgemm\src\v1.8.0-631dbde29a.clean -IC:\dev\vcpkg_dev\buildtrees\fbgemm\src\v1.8.0-631dbde29a.clean\include -IC:\dev\vcpkg_dev\buildtrees\fbgemm\src\v1.8.0-631dbde29a.clean\bench -external:IC:\dev\vcpkg_dev\installed\x64-windows\include -external:W0 /nologo /DWIN32 /D_WINDOWS /utf-8 /GR /EHsc /MP  /MDd /Z7 /Ob0 /Od /RTC1  -std:c++20 -MDd /wd4244 /wd4267 /wd4305 /wd4309 -openmp /showIncludes /FoCMakeFiles\fbgemm_autovec.dir\src\EmbeddingSpMDMAutovec.cc.obj /FdCMakeFiles\fbgemm_autovec.dir\ /FS -c C:\dev\vcpkg_dev\buildtrees\fbgemm\src\v1.8.0-631dbde29a.clean\src\EmbeddingSpMDMAutovec.cc
FAILED: [code=2] CMakeFiles/fbgemm_autovec.dir/src/EmbeddingSpMDMAutovec.cc.obj 
"C:\Program Files\Microsoft Visual Studio\18\Community\VC\Tools\MSVC\14.51.36231\bin\Hostx64\x64\cl.exe"   /TP -DCPUINFO_SUPPORTED_PLATFORM=1 -IC:\dev\vcpkg_dev\buildtrees\fbgemm\src\v1.8.0-631dbde29a.clean -IC:\dev\vcpkg_dev\buildtrees\fbgemm\src\v1.8.0-631dbde29a.clean\include -IC:\dev\vcpkg_dev\buildtrees\fbgemm\src\v1.8.0-631dbde29a.clean\bench -external:IC:\dev\vcpkg_dev\installed\x64-windows\include -external:W0 /nologo /DWIN32 /D_WINDOWS /utf-8 /GR /EHsc /MP  /MDd /Z7 /Ob0 /Od /RTC1  -std:c++20 -MDd /wd4244 /wd4267 /wd4305 /wd4309 -openmp /showIncludes /FoCMakeFiles\fbgemm_autovec.dir\src\EmbeddingSpMDMAutovec.cc.obj /FdCMakeFiles\fbgemm_autovec.dir\ /FS -c C:\dev\vcpkg_dev\buildtrees\fbgemm\src\v1.8.0-631dbde29a.clean\src\EmbeddingSpMDMAutovec.cc
C:\dev\vcpkg_dev\buildtrees\fbgemm\src\v1.8.0-631dbde29a.clean\src\EmbeddingSpMDMAutovec.cc(1840): error C2375: 'fbgemm::GenerateEmbeddingSpMDMNBitWithStrides_autovec': redefinition; different linkage
C:\dev\vcpkg_dev\buildtrees\fbgemm\src\v1.8.0-631dbde29a.clean\src\./EmbeddingSpMDMAutovec.h(48): note: see declaration of 'fbgemm::GenerateEmbeddingSpMDMNBitWithStrides_autovec'

I assume it is due to the FBGEMM_API here:

FBGEMM_API typename EmbeddingSpMDMKernelSignature<

Which is not present here:
typename EmbeddingSpMDMKernelSignature<

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions