• Bug#1100025: fails to compile helloworld program

    From Tilmann Hentze@21:1/5 to All on Mon Mar 10 13:10:02 2025
    Package: hare
    Version: 0.24.2-2
    Severity: important

    hare build fails to compile the helloworld program from the tutorial [htut]: hare build -vv helloworld.ha
    # HARE_TD_rt=/home/def/.cache/hare/usr/share/hare/stdlib/rt/e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.td
    # HARE_TD_debug=/home/def/.cache/hare/usr/share/hare/stdlib/debug/e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.td
    # HARE_TD_fmt=/home/def/.cache/hare/usr/share/hare/stdlib/fmt/e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.td
    harec -a 'x86_64' -M /home/def/hare/helloworld.ha/ -o /home/def/.cache/hare/home/def/hare/helloworld.ha/9ef0d89e54347fadcbae93e961295ffc7f03254001d312f6c40c29856020e4f5.ssa.tmp -t /home/def/.cache/hare/home/def/hare/helloworld.ha/
    9ef0d89e54347fadcbae93e961295ffc7f03254001d312f6c40c29856020e4f5.ssa.td.tmp /home/def/hare/helloworld.ha
    qbe -t 'amd64_sysv' -o /home/def/.cache/hare/usr/share/hare/stdlib/fmt/052dabb35ac93018ba740e73e7ec8ad7eaeecb06ebac20e324deea22b1bf0930.s.tmp /home/def/.cache/hare/usr/share/hare/stdlib/fmt/3821b7cdbb44477b9b8f8e4f5f9fe1795c60203e1e5174a8015e7808a5b20d0c.
    ssa
    /home/def/hare/helloworld.ha:4:21: error: Unknown object 'fmt::println'

    4 | fmt::println("Hello world!")!;
    | ^

    harec for /home/def/hare/helloworld.ha exited with status 4
    ---snip---

    [htut] <https://harelang.org/tutorials/introduction>


    -- System Information:
    Distributor ID: Devuan
    Description: Devuan GNU/Linux 6 (excalibur/ceres)
    Release: 6
    Codename: excalibur ceres
    Architecture: x86_64

    Kernel: Linux 6.1.0-31-amd64 (SMP w/2 CPU threads; PREEMPT)
    Locale: LANG=de_AT.utf8, LC_CTYPE=de_AT.utf8 (charmap=UTF-8) (ignored: LC_ALL set to de_AT.utf8), LANGUAGE not set
    Shell: /bin/sh linked to /usr/bin/dash
    Init: sysvinit (via /sbin/init)
    LSM: AppArmor: enabled

    Versions of packages hare depends on:
    ii harec 0.24.2-3

    hare recommends no packages.

    hare suggests no packages.

    -- debconf-show failed

    use fmt;

    export fn main() void = {
    fmt::println("Hello world!")!;
    };

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Miguel Landaeta@21:1/5 to Tilmann Hentze on Mon Mar 10 23:50:01 2025
    tags 1100025 + moreinfo unreproducible
    thanks

    Hi Tilmann,

    On Mon, Mar 10, 2025 at 11:53:49AM +0000, Tilmann Hentze wrote:
    Package: hare
    Version: 0.24.2-2
    Severity: important

    Did you try with 0.24.2-3, that's the most recent version in Debian.
    See: https://tracker.debian.org/pkg/hare

    hare build fails to compile the helloworld program from the tutorial [htut]: hare build -vv helloworld.ha
    [...]
    qbe -t 'amd64_sysv' -o /home/def/.cache/hare/usr/share/hare/stdlib/fmt/052dabb35ac93018ba740e73e7ec8ad7eaeecb06ebac20e324deea22b1bf0930.s.tmp /home/def/.cache/hare/usr/share/hare/stdlib/fmt/
    3821b7cdbb44477b9b8f8e4f5f9fe1795c60203e1e5174a8015e7808a5b20d0c.ssa
    /home/def/hare/helloworld.ha:4:21: error: Unknown object 'fmt::println'

    4 | fmt::println("Hello world!")!;
    | ^

    I could not reproduce the reported issue in Debian unstable
    with hare 0.24.2-3 on amd64. I could follow the hare intro tutorial
    at https://harelang.org/tutorials/introduction without any issues.


    -- System Information:
    Distributor ID: Devuan
    Description: Devuan GNU/Linux 6 (excalibur/ceres)
    Release: 6
    Codename: excalibur ceres
    Architecture: x86_64

    Devuan != Debian.
    Devuan bugs must be reported to https://bugs.devuan.org.

    Can you try again with the most recent version of hare packages in
    Debian?

    Thanks!

    --
    Miguel Landaeta, nomadium at debian.org
    secure email with PGP 0x6E608B637D8967E9 available at http://miguel.cc/key. "Faith means not wanting to know what is true." -- Nietzsche

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)