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

[MSVC] ROOT_x86 failed due to libCling.exp : error LNK2001: unresolved external symbol "char const * __cdecl __std_find_trivial<char const ,char>(char const *,char const *,char) #15336

Open
1 task done
SyahmieS opened this issue Apr 25, 2024 · 2 comments
Assignees
Labels

Comments

@SyahmieS
Copy link

SyahmieS commented Apr 25, 2024

Check duplicate issues.

  • Checked for duplicates

Description

Hi all,

[MSVC] ROOT_x86 failed due to failed due to libCling.exp : error LNK2001: unresolved external symbol "char const * __cdecl __std_find_trivial<char const ,char>(char const *,char const *,char). It can be reproduced on this commit 1f86c24 Could you please help look at this issue? Thanks in advance!

Reproducer

Steps to reproduce the behavior:

  1. https://github.com/root-project/root C:\gitP\root-project/root
  2. Open a VS2022 x86 cmd
  3. set VSCMD_SKIP_SENDTELEMETRY=1 & "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat" -host_arch=x86 -arch=x86 & set CL= /Bcapture_repro C:\a_work_temp\rwc_project_logs\ROOT\preprocessed_repro_build & set LINK= /onfailrepro:C:\a_work_temp\rwc_project_logs\ROOT\link_repro_build
  4. cd /d C:\gitP\root-project\root\build_x86
  5. msbuild /m /p:Platform=Win32 /p:Configuration=Release ALL_BUILD.vcxproj /t:Rebuild 2>&1

Error Message: After updating the hash commit, ROOT_amd64 passed but ROOT_X86 failed with the following error:
libCling.exp : error LNK2001: unresolved external symbol "char const * __cdecl __std_find_trivial<char const ,char>(char const *,char const *,char)"

What is the expected behaviour?
Project Pass

Operating System
Windows

What versions of the operating systems?
VS 2022 + Windows Server 2022 Datacenter

Architectures
86-bit

Stacktrace
No response

Plug-in formats (if applicable)
No response

Plug-in host applications (DAWs) (if applicable)
No response

Testing on the develop branch
The bug is present on the develop branch.

ROOT version

N/A

Installation method

N/A

Operating system

Windows

Additional context

No response

@SyahmieS SyahmieS added the bug label Apr 25, 2024
@SyahmieS SyahmieS changed the title [MSVC] ROOT_x86 failed due to fatal error LNK1181: cannot open input file 'libCore.lib'. [MSVC] ROOT_x86 failed due libCling.exp : error LNK2001: unresolved external symbol "char const * __cdecl __std_find_trivial<char const ,char>(char const *,char const *,char) Apr 25, 2024
@bellenot
Copy link
Member

@SyahmieS it is maybe related to #15321 and #9445
I'm pretty sure that building ROOT without the following environment variables will work:

& set CL= /Bcapture_repro C:\a_work_temp\rwc_project_logs\ROOT\preprocessed_repro_build & set LINK= /onfailrepro:C:\a_work_temp\rwc_project_logs\ROOT\link_repro_build

@bellenot
Copy link
Member

I just tried with ROOT master and it works with the following commands:

set VSCMD_SKIP_SENDTELEMETRY=1 & "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\VsDevCmd.bat" -host_arch=x86 -arch=x86 & set CL= /Bcapture_repro C:\a_work_temp\rwc_project_logs\ROOT\preprocessed_repro_build & set LINK= /onfailrepro:C:\a_work_temp\rwc_project_logs\ROOT\link_repro_build
cmake -G "Visual Studio 17 2022" -A Win32 -Dtesting=ON -Droottest=ON -Droofit=off ..\..\..\git\master
msbuild /m /p:Platform=Win32 /p:Configuration=Release ALL_BUILD.vcxproj /t:Rebuild

@SyahmieS SyahmieS changed the title [MSVC] ROOT_x86 failed due libCling.exp : error LNK2001: unresolved external symbol "char const * __cdecl __std_find_trivial<char const ,char>(char const *,char const *,char) [MSVC] ROOT_x86 failed due to libCling.exp : error LNK2001: unresolved external symbol "char const * __cdecl __std_find_trivial<char const ,char>(char const *,char const *,char) Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants