Search Issue Tracker
Fixed in 2022.1.X
Fixed in 2021.2.X
Votes
4
Found in
2021.2.0b1
2021.2.0b5
2022.1
Issue ID
1354670
Regression
Yes
Building for WebGL fails when the project contains native plugin files (.bc)
How to reproduce:
1. Open the user's attached project
2. Build the project for WebGL
3. Observe the Console
Expected result: Build succeeds, there are no visible errors present
Actual result: Build fails, multiple errors appear in the Console
Reproducible with: 2021.2.0b6, 2022.1.0a5
Not reproducible with: 2019.4.29f1, 2020.3.16f1, 2021.1.17f1, 2021.2.0a16, 2021.2.0a17
Note:
- The following error appears in the Console:
Building Library\Bee\artifacts\WebGL\build\debug_WebGL_wasm\build.js failed with output:
emcc:WARNING: --llvm-lto ignored when using llvm backend
emcc2: warning: EXTRA_EXPORTED_RUNTIME_METHODS is deprecated, please use EXPORTED_RUNTIME_METHODS instead [-Wdeprecated]
emcc2: error: C:\Users\LAIMAV~1\AppData\Local\Temp\tmpai1qldchNativePluginExample.a: File has a suffix of a static library ('.a',), but instead is an LLVM bitcode file! When linking LLVM bitcode files use .bc or .o.
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun ()
Comments (5)
-
DarkSealer
Sep 08, 2022 07:44
I had this problem in 2021.3.8 and the problem was solved when I unchecked the Development build. For some reason that did not want to build.
-
Slothtopia
Jun 10, 2022 14:47
Also failing for me, Unity 2021.3 LTS
-
vivekgorrepati
Jun 07, 2022 07:03
This issue still exists for me in 2022.1.x and 2021.3.1 (LTS).
I am getting issue when trying to build photon for WebGl.Library\Bee\artifacts\WebGL\build\debug_WebGL_wasm\build.js: undefined symbol: devices (referenced by top-level compiled C/C++ code)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) -
TheZinex
Aug 27, 2021 00:52
This was also reproducible for me when using .jslib files.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Dragging and dropping a system that contains event context to create nested VFX crashes the editor
- TextMeshPro UV2 custom data not rendering for off-screen text with RectMask2D in Unity 6
- Text overlap and is unreadable in Inspector > Terrain Paint Texture after creating new Terrain Layer
- Event "XRInputSubsystem.trackingOriginUpdated" triggers twice when recentering the view
- UITK TextField value is overwritten incorrectly by the converter result when Binding Mode is set to "To Source"
Resolution Note (fix version 2022.1):
Fixed in: 2022.1.0a12
Resolution Note (fix version 2021.2):
Fixed in: 2021.2.0b17