-
Notifications
You must be signed in to change notification settings - Fork 269
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
teleport/17.0.5 package update #36438
base: main
Are you sure you want to change the base?
Conversation
octo-sts
bot
commented
Dec 11, 2024
Signed-off-by: wolfi-bot <[email protected]>
Gen AI suggestions to solve the build error: Based on the error output, I'll analyze and provide specific fixes: • Detected Error:
• Error Category: Build Configuration • Failure Point: WASM optimization step during web assets compilation • Root Cause Analysis: • Suggested Fix:
[package.metadata.wasm-pack.profile.release]
wasm-opt = false Or alternatively, add these flags to the wasm-pack build command in the pipeline: - runs: |
RUST_MIN_STACK=16777216 wasm-pack build ./src/ironrdp --target web -- --features bulk-memory • Explanation: • Additional Notes:
• References: |
Gen AI suggestions to solve the build error: Based on the error output, let me analyze and provide a solution: • Detected Error:
• Error Category: Dependency/Configuration • Failure Point: pnpm execution during the • Root Cause Analysis: • Suggested Fix: environment:
contents:
packages:
# Existing packages...
- icu-libs
- icu-data-full
- nodejs-20 # Use Node.js 20 instead of 23
# Rest of existing packages... • Explanation:
• Additional Notes:
• References:
|
Gen AI suggestions to solve the build error: Let me analyze this build error and provide a solution. • Detected Error: "[wasm-validator error in function fastpathprocessor_process\20externref\20shim] unexpected false: table.fill requires bulk-memory [--enable-bulk-memory]" • Error Category: Build Configuration • Failure Point: WASM optimization step during web assets compilation for Teleport UI • Root Cause Analysis: The wasm-opt tool is failing because bulk memory operations are not enabled, but the compiled WASM code requires this feature. This is a configuration mismatch between the WASM compilation settings and the optimizer. • Suggested Fix:
[package.metadata.wasm-pack.profile.release]
wasm-opt = ["-O", "--enable-bulk-memory"] Or alternatively, disable wasm-opt temporarily: [package.metadata.wasm-pack.profile.release]
wasm-opt = false • Explanation: The error occurs because the WASM code uses table.fill operations which require bulk memory support. The fix either enables bulk memory operations during optimization or disables the optimization step altogether to prevent the error. • Additional Notes:
• References:
The fix ensures the WASM optimization step has the correct feature flags enabled for the code being generated, allowing the build to complete successfully. |
Gen AI suggestions to solve the build error: Based on the error output, I'll analyze and provide specific fixes: • Detected Error:
• Error Category: Build Configuration • Failure Point: WASM compilation during the web assets build step, specifically during wasm-opt optimization • Root Cause Analysis: • Suggested Fix: [package.metadata.wasm-pack.profile.release]
wasm-opt = ["-O", "--enable-bulk-memory"]
# Alternatively, if that doesn't work, disable wasm-opt:
[package.metadata]
wasm-opt = false • Explanation: • Additional Notes:
• References:
If disabling wasm-opt is not acceptable for performance reasons, you may need to:
|
Found an upstream ticket opened, going to do the same patch gravitational/teleport#50194 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we add a comment about what the purpose of this patch is, why we need it in our build, and if/when we'll no longer need it?