You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am adapting GraalVM for Nacos. In the past, I was able to successfully package the Native Image binary program through GraalVM on the Windows 11 platform. However, after I upgraded Visual Studio, a build error occurred. Specifically, it was missing two link symbols:
__imp_SHGetFolderPathW referenced in function getHomeFromShell32
SHGetKnownFolderPath referenced in function getHomeFromShell32
These problems only occur on the Windows 11 platform. The binary file can be packaged normally on Linux. My environment information is as follows:
Name
Value
Java version
17.0.13+10-LTS
Vendor version
Oracle GraalVM 17.0.13+10.1
Runtime version
17.0.13+10-LTS-jvmci-23.0-b49
C compiler
cl.exe (microsoft, x64, 19.42.34435)
Please confirm if you have tested with the latest available version.
Thank you for reaching out to us about this. Could you please provide us with a reproducer alongside the steps needed to encounter the issue?
No problem, the relevant code has been pushed to the official repository of nacos. You can build the GraalVM binary file by following the steps below:
clone https://github.com/alibaba/nacos.git
switch git branch to summer-ospp#12028
run command mvn clean install -Pnative -Pnative-win64 -DskipTests=true
I encountered a build problem in the following environment:
Name
Value
OS version
Windows 11 Pro 24H2 26100.2605
Java version
17.0.13+10-LTS
Vendor version
Oracle GraalVM 17.0.13+10.1
Runtime version
17.0.13+10-LTS-jvmci-23.0-b49
C compiler
cl.exe (microsoft, x64, 19.42.34435)
Visual Studio Community version
2022 17.12.3
Visual Studio Build Tools version
2019 16.11.42
Windows 11 SDK version
10.0.22621.0
I have encountered this problem on Windows 11 before. Later, I reinstalled my operating system and reinstalled all the environments, but I still encountered this problem.
Describe the Issue
I am adapting GraalVM for Nacos. In the past, I was able to successfully package the Native Image binary program through GraalVM on the Windows 11 platform. However, after I upgraded Visual Studio, a build error occurred. Specifically, it was missing two link symbols:
__imp_SHGetFolderPathW
referenced in functiongetHomeFromShell32
SHGetKnownFolderPath
referenced in functiongetHomeFromShell32
These problems only occur on the Windows 11 platform. The binary file can be packaged normally on Linux. My environment information is as follows:
17.0.13+10-LTS
Oracle GraalVM 17.0.13+10.1
17.0.13+10-LTS-jvmci-23.0-b49
cl.exe (microsoft, x64, 19.42.34435)
Please confirm if you have tested with the latest available version.
Share the
svm_err_b_*.md
Filesvm_err_b_20250107T234343.404_pid9276.md
Additional Context
No response
The text was updated successfully, but these errors were encountered: