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

Build fails with clang-cl due to undefined symbols #575

Closed
emmenlau opened this issue Sep 2, 2020 · 3 comments · Fixed by #619
Closed

Build fails with clang-cl due to undefined symbols #575

emmenlau opened this issue Sep 2, 2020 · 3 comments · Fixed by #619
Assignees
Milestone

Comments

@emmenlau
Copy link

emmenlau commented Sep 2, 2020

I've built glog 0.4.0 often with cmake on various platforms successfully. We just recently switched to clang-cl on MSVC and now the build fails for the first time, with several errors about undefined symbols such as:

LINK Pass 1: command "C:\PROGRA~2\MICROS~1\2019\COMMUN~1\VC\Tools\Llvm\x64\bin\lld-link.exe CMakeFiles\demangle_unittest.dir\src\demangle_unittest.cc.obj /out:demangle_unittest.exe /implib:demangle_unittest.lib /pdb:demangle_unittest.pdb /version:0.0 /machine:x64 /MACHINE:X64 /DEBUG /debug /INCREMENTAL /subsystem:console glogd.lib dbghelp.lib C:\data\stable-artifacts-MSVC-Haswell-7-x64-cl19.27.29111_clang10.0.0\Debug\lib\gflags_debug.lib shlwapi.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTFILE:CMakeFiles\demangle_unittest.dir/intermediate.manifest CMakeFiles\demangle_unittest.dir/manifest.res" failed (exit code 1) with the following output:
 lld-link: error: undefined symbol: bool __cdecl google::Demangle(char const *, char *, int)

Does that mean anything to anyone?

@sergiud
Copy link
Collaborator

sergiud commented Oct 3, 2020

Please test the version from master.

@emmenlau
Copy link
Author

Sadly, that's not easy for me due to the way our build works in a continuous integration.

@sergiud
Copy link
Collaborator

sergiud commented Mar 30, 2021

May be fixed by #619.

@sergiud sergiud linked a pull request Mar 30, 2021 that will close this issue
@sergiud sergiud self-assigned this Mar 30, 2021
@sergiud sergiud added this to the 0.5 milestone Mar 30, 2021
@sergiud sergiud mentioned this issue May 6, 2021
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

Successfully merging a pull request may close this issue.

2 participants