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
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
- GameObject becomes gray when using HDRP and STP together on macOS
Resolution Note (fix version 2022.1):
Fixed in: 2022.1.0a12
Resolution Note (fix version 2021.2):
Fixed in: 2021.2.0b17