Package Details: gleam 1.6.2-1

Git Clone URL: https://aur.archlinux.org/gleam.git (read-only, click to copy)
Package Base: gleam
Description: A friendly language for building type-safe, scalable systems!
Upstream URL: http://github.com/gleam-lang/gleam
Keywords: gleam
Licenses: Apache2
Provides: gleam
Submitter: NobbZ
Maintainer: tleican
Last Packager: tleican
Votes: 16
Popularity: 2.46
First Submitted: 2019-04-22 21:38 (UTC)
Last Updated: 2024-11-25 16:31 (UTC)

Pinned Comments

xyproto commented on 2024-09-03 21:53 (UTC)

@tleican I'm planning to move this package to [extra], and adopt+maintain it there, if you don't mind.

Latest Comments

1 2 Next › Last »

hippospark commented on 2024-11-22 00:21 (UTC)

Just a hint: Rust needs to be updated to 1.82 or the compilation will fail:

   Compiling gleam-wasm v1.6.1 ()
error[E0432]: unresolved import `std::panic::PanicHookInfo`
 --> compiler-cli/src/panic.rs:2:5
  |
2 | use std::panic::PanicHookInfo;
  |     ^^^^^^^^^^^^-------------
  |     |           |
  |     |           help: a similar name exists in the module: `PanicInfo`
  |     no `PanicHookInfo` in `panic`

For more information about this error, try `rustc --explain E0432`.
error: could not compile `gleam` (bin "gleam") due to 1 previous error

So check your Rust version ($ rustc --version) before installing this package, or run command $ rustup update stable to update.

alphabitserial commented on 2024-09-19 22:53 (UTC)

Looking forward to seeing this land in [extra]!

tleican commented on 2024-09-04 01:09 (UTC) (edited on 2024-09-04 01:13 (UTC) by tleican)

@xyproto Is that a real question or a "I'm taking over" notice? :)

(Edit: I mean, it's good to see gleam graduate to an official package, so do proceed!)

xyproto commented on 2024-09-03 21:53 (UTC)

@tleican I'm planning to move this package to [extra], and adopt+maintain it there, if you don't mind.

xyproto commented on 2024-08-24 19:50 (UTC)

Building the package with "pkgctl build" worked here.

tleican commented on 2024-08-06 03:46 (UTC)

@endercheif Hi! Try with the latest stable release of rust (1.80.0 right now). It should work for you.

If that helps, install the rustup package, then use rustup update stable to get the latest stable version of the rust compiler and build gleam.

endercheif commented on 2024-08-05 21:17 (UTC)

Is is just me or does building the latest package provide a compiler error:

   ...
   Compiling crossbeam-deque v0.8.5
   Compiling hyper-rustls v0.27.2
   Compiling digest v0.10.7
   Compiling js-sys v0.3.69
error[E0716]: temporary value dropped while borrowed
   --> compiler-core/src/language_server/code_action.rs:350:19
    |
347 |         let assigned = match variables.len() {
    |             -------- borrow later stored here
...
350 |             _ => &format!("#({})", variables.join(", ")),
    |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-
    |                   |                                    |
    |                   |                                    temporary value is freed at the end of this statement
    |                   creates a temporary value which is freed while still in use
    |
    = note: consider using a `let` binding to create a longer lived value
    = note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info)

   Compiling http-body-util v0.1.1
   Compiling clap_derive v4.5.13
For more information about this error, try `rustc --explain E0716`.
error: could not compile `gleam-core` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: gleam-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
gleam - exit status 4

spookster commented on 2024-03-08 13:38 (UTC)

Hey @ephoz!

I am on amd64 (too) and this was the first time lto made difficulties building for me... all is fine now :)

Thanks again!

tleican commented on 2024-03-07 17:56 (UTC) (edited on 2024-03-07 17:57 (UTC) by tleican)

Hey @spookster,

Thanks for the feedback. I do release builds with LTO on (amd64) without issue. Are you on a different arch? I'll update the PKGBUILD to add !lto and save everyone else from the issue. :)

I'm not sure whether the gleam compiler benefits much from LTO. It does not make a change in the output binary size at least.

If that helps, I believe that you can set !lto globally by changing OPTIONS in /etc/makepkg.conf.

spookster commented on 2024-03-07 09:42 (UTC) (edited on 2024-03-07 09:42 (UTC) by spookster)

Heya, thanks for the pkg! I wasn't able to build this latest version. Got some error message with hidden symbol `GFp_ia32cap_P' isn't defined in it. Adding !lto to options fixed it for me.