Clash/ghc Can't Find Source Files

14 views
Skip to first unread message

Pat the Builder

unread,
Dec 24, 2021, 7:54:40 AM12/24/21
to Clash - Hardware Description Language
Hello,

I just installed a @clash@ update with @snap@. When I run @clash@ I get an error.

    $ clash --vhdl -fclash-hdlsyn Quartus Blinker.lhs

    <no location info>: error:
        Other error:
        <command line>: Missing directory: .

I am compiling from the directory containing @Blinker.lhs@.

    $ ls  -l Blinker.lhs
    -rwx------ 1 paddy paddy 4378 Dec 24 09:33 Blinker.lhs

All directories in the path leading to the working directory are also owned by me and have my group. Compiling with a previous version from GitHub does work. What I don't understand is that both have the same version:

    $ clash --version
    Clash, version 1.5.0 (using clash-lib, version: 1.5.0)
    $ ls -l `which clash`
    lrwxrwxrwx 1 root root 13 Dec 24 07:36 /snap/bin/clash -> /usr/bin/snap
    $ ls -l `which clash` /usr/bin/snap
    lrwxrwxrwx 1 root root       13 Dec 24 07:36 /snap/bin/clash -> /usr/bin/snap
    -rwxr-xr-x 1 root root 18411912 Jun 15  2021 /usr/bin/snap


    # From a nix-shell
    [nix-shell:~/Altera/Clash]$ clash --version
    Clash, version 1.5.0 (using clash-lib, version: 1.5.0)
    [nix-shell:~/Altera/Clash]$ ls -l `which clash`
    lrwxrwxrwx 1 paddy paddy 69 Jan  1  1970 /nix/store/a4vdh74ylswgnnfz57h3v8wbx82gci79-ghc-8.8.4-with-packages/bin/clash -> /nix/store/dajglcl8sdj7ngdabiky8xpxakshhm7l-clash-ghc-1.5.0/bin/clash
    [nix-shell:~/Altera/Clash]$ ls -l /nix/store/dajglcl8sdj7ngdabiky8xpxakshhm7l-clash-ghc-1.5.0/bin/clash -r-xr-xr-x 1 paddy paddy 30904 Jan  1  1970 /nix/store/dajglcl8sdj7ngdabiky8xpxakshhm7l-clash-ghc-1.

Any suggestions?

Regards,

Paddy

Peter Lebbing

unread,
Dec 24, 2021, 8:13:37 AM12/24/21
to Clash - Hardware Description Language
Hello Paddy,

I actually also noticed snaps of Clash beginning to misbehave once I
updated my Debian to Bullseye. It seemed confined to its snap
installation directory rather than having access to stuff in my home
directory. It also complained that "jail implementation was incomplete"
or something? I didn't look into it because I hardly ever use snap, and
then later it started magically working again, without the warning
message.

However, beyond this anecdote I don't have any concrete advice. I just
hoped it might get you a step in the right direction, something with
snap and jails or some such.

Regards,

Peter.

Pat the Builder

unread,
Dec 24, 2021, 8:29:58 AM12/24/21
to Clash - Hardware Description Language
Thanks. I removed @clash@ and re-installed. I now get a different version and the problem seems to have disappeared...

    $ clash --version
    Clash, version 1.4.6 (using clash-lib, version: 1.4.6)

Peter Lebbing

unread,
Dec 24, 2021, 8:38:37 AM12/24/21
to Clash - Hardware Description Language
> Thanks. I removed @clash@ and re-installed. I now get a different
> version and the problem seems to have disappeared...
>
>     $ clash --version
>     Clash, version 1.4.6 (using clash-lib, version: 1.4.6)

That's our latest stable. The 1.5.0 you got earlier is a development
version, coming from the snap "edge" channel. It's periodically built
from our git master branch, but I'm not familiar with any further
details.

Our version numbering scheme gives even minor numbers to stable
versions, so after 1.4 comes 1.6. The odd minor numbers are development
versions.

By the way, I encountered the issues with snap not having access to my
home directory with the "stable" channel rather than the "edge" channel.

HTH,

Peter.
Reply all
Reply to author
Forward
0 new messages